/*
Theme Name:   Drift Pro Child — FoldedBookArt
Theme URI:    https://foldedbookart.co.uk
Description:  Child theme for FoldedBookArt.co.uk — dark navy pattern library matching SmartFold.co.uk design.
Author:       FoldedBookArt
Version:      1.0.0
Template:     Drift_Pro
Text Domain:  drift-pro-child
*/

/* ============================================================
   IMPORT PARENT STYLES
   (handled via functions.php wp_enqueue_scripts — do not use @import)
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES — design tokens matching SmartFold
   ============================================================ */
:root {
    --fba-bg:           #0D1117;
    --fba-bg2:          #131929;
    --fba-surface:      #161E2E;
    --fba-surface2:     #1C2640;
    --fba-border:       #232E45;
    --fba-border2:      #2A3855;
    --fba-purple:       #9B87F5;
    --fba-purple2:      #7C3AED;
    --fba-purple-bg:    #1E1445;
    --fba-purple-dim:   #2D1F5E;
    --fba-blue:         #6B9EFF;
    --fba-blue-bg:      #1A2A4A;
    --fba-green:        #4ABA7A;
    --fba-green-bg:     #1A3028;
    --fba-text:         #E8E8F8;
    --fba-text2:        #8B9AB8;
    --fba-text3:        #4A5878;
    --fba-radius:       12px;
    --fba-radius-sm:    8px;
    --fba-radius-xs:    6px;
}

/* ============================================================
   GLOBAL OVERRIDES
   ============================================================ */
body {
    background-color: var(--fba-bg) !important;
    color: var(--fba-text) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--fba-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--fba-text);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header,
#masthead {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fba-border) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .site-title a,
.site-branding .site-title a {
    color: var(--fba-purple) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: -0.01em;
}

.main-navigation a,
#site-navigation a {
    color: var(--fba-text2) !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover,
#site-navigation a:hover {
    color: var(--fba-text) !important;
    background: transparent !important;
}

.main-navigation ul ul {
    background: var(--fba-surface2) !important;
    border: 1px solid var(--fba-border2) !important;
    border-radius: var(--fba-radius-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.fba-hero {
    background: linear-gradient(180deg, #161B35 0%, var(--fba-bg) 100%);
    padding: 64px 32px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fba-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.fba-hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fba-purple);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fba-hero__eyebrow::before,
.fba-hero__eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--fba-purple);
    opacity: 0.4;
}

.fba-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.fba-hero__title span {
    color: var(--fba-purple);
}

.fba-hero__desc {
    font-size: 15px;
    color: var(--fba-text2);
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.fba-hero__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fba-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--fba-border);
    flex-wrap: wrap;
}

.fba-stat__val {
    font-size: 22px;
    font-weight: 800;
    color: var(--fba-purple);
}

.fba-stat__lbl {
    font-size: 11px;
    color: var(--fba-text3);
    margin-top: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.fba-btn,
.fba-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fba-purple2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.fba-btn:hover,
.fba-btn-primary:hover {
    background: #6D2FD4;
    color: #fff !important;
    transform: translateY(-1px);
}

.fba-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--fba-border2);
    color: var(--fba-purple) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
    text-decoration: none;
}

.fba-btn-secondary:hover {
    border-color: var(--fba-purple);
}

.fba-btn-sm {
    font-size: 12px;
    padding: 7px 16px;
    border-radius: var(--fba-radius-sm);
}

/* ============================================================
   FILTER / TAB BAR
   ============================================================ */
.fba-filter-bar {
    background: var(--fba-bg2);
    border-bottom: 1px solid var(--fba-border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 60px;
    z-index: 90;
    flex-wrap: wrap;
    gap: 8px;
}

.fba-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.fba-tab {
    padding: 7px 16px;
    border-radius: var(--fba-radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--fba-text3);
    transition: all 0.2s;
    border: none;
    background: none;
    font-family: inherit;
}

.fba-tab:hover {
    color: var(--fba-text2);
    background: var(--fba-surface);
}

.fba-tab.active,
.fba-tab--active {
    background: var(--fba-purple2);
    color: #fff;
    font-weight: 600;
}

.fba-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.fba-search {
    position: relative;
}

.fba-search__input {
    padding: 7px 10px 7px 30px;
    font-size: 12px;
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-sm);
    background: var(--fba-surface);
    color: var(--fba-text);
    outline: none;
    font-family: inherit;
    width: 200px;
    transition: border-color 0.2s;
}

.fba-search__input::placeholder { color: var(--fba-text3); }
.fba-search__input:focus { border-color: var(--fba-purple); }

.fba-select {
    font-size: 12px;
    padding: 7px 10px;
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-sm);
    background: var(--fba-surface);
    color: var(--fba-text2);
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.fba-main {
    padding: 28px 32px 48px;
}

.fba-content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.fba-content-main {
    min-width: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.fba-section-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.fba-section-hd h2,
.fba-section-hd__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.fba-section-hd__sub {
    font-size: 12px;
    color: var(--fba-text3);
}

.fba-section-hd__link {
    font-size: 12px;
    color: var(--fba-purple);
    margin-left: auto;
}

/* ============================================================
   CATEGORY GRID (matching SmartFold Central Library)
   ============================================================ */
.fba-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.fba-cat-tile {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    padding: 18px 10px 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    display: block;
}

.fba-cat-tile:hover {
    border-color: var(--fba-purple);
    background: var(--fba-surface2);
}

.fba-cat-tile__count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--fba-purple-dim);
    color: var(--fba-purple);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    border: 1px solid #3A2A70;
}

.fba-cat-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--fba-surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: background 0.2s;
}

.fba-cat-tile:hover .fba-cat-tile__icon {
    background: var(--fba-purple-dim);
}

.fba-cat-tile__name {
    font-size: 11px;
    font-weight: 600;
    color: #C0CCE8;
    line-height: 1.3;
}

/* ============================================================
   PATTERN CARDS
   ============================================================ */
.fba-pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.fba-pat-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: block;
}

.fba-pat-card:hover {
    border-color: var(--fba-purple);
    transform: translateY(-2px);
}

.fba-pat-card__bar {
    height: 2px;
    background: var(--fba-purple);
}

.fba-pat-card__bar--mmf   { background: var(--fba-purple); }
.fba-pat-card__bar--caf   { background: var(--fba-blue); }
.fba-pat-card__bar--fore  { background: var(--fba-green); }

.fba-pat-card__thumb {
    aspect-ratio: 3/4;
    background: var(--fba-bg2);
    position: relative;
    overflow: hidden;
}

.fba-pat-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fba-pat-card__badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--fba-purple-dim);
    color: var(--fba-purple);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid #4A3A8A;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fba-pat-card__dl-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(13,17,23,0.9) 0%, transparent 100%);
    padding: 20px 10px 10px;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.fba-pat-card:hover .fba-pat-card__dl-hover {
    opacity: 1;
}

.fba-dl-badge {
    background: var(--fba-purple2);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fba-pat-card__info {
    padding: 10px 11px 12px;
}

.fba-pat-card__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fba-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.fba-pat-card__sub {
    font-size: 10px;
    color: var(--fba-text3);
    margin-bottom: 8px;
}

.fba-pat-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   METHOD TAGS
   ============================================================ */
.fba-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
}

.fba-tag--mmf  { background: var(--fba-purple-dim); color: var(--fba-purple);  border: 1px solid #4A3580; }
.fba-tag--caf  { background: var(--fba-blue-bg);    color: var(--fba-blue);    border: 1px solid #2A4070; }
.fba-tag--fore { background: var(--fba-green-bg);   color: var(--fba-green);   border: 1px solid #2A6044; }
.fba-tag--free { background: var(--fba-purple-dim); color: var(--fba-purple);  border: 1px solid #3A2A70; }

/* ============================================================
   AD SLOTS
   ============================================================ */
.fba-ad-slot {
    width: 100%;
    overflow: hidden;
    display: block;
}

/* Leaderboard — top & in-content horizontal */
.fba-ad-slot--leaderboard {
    min-height: 90px;
    margin-bottom: 24px;
    text-align: center;
}

/* In-content — between category rows */
.fba-ad-slot--in-content {
    min-height: 90px;
    margin: 20px 0;
    text-align: center;
}

/* Sidebar rectangle */
.fba-ad-slot--sidebar {
    min-height: 250px;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer banner */
.fba-ad-slot--footer {
    min-height: 90px;
    margin: 24px 0 0;
    text-align: center;
}

/* Ensure AdSense iframes don't overflow */
.fba-ad-slot ins,
.fba-ad-slot iframe {
    max-width: 100% !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.fba-sidebar {
    position: sticky;
    top: 120px;
}

.fba-sidebar .widget {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    padding: 18px;
    margin-bottom: 16px;
}

.fba-sidebar .widget-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--fba-text2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.fba-cta-strip {
    background: linear-gradient(135deg, #1A1050 0%, var(--fba-surface) 100%);
    border: 1px solid var(--fba-border2);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.fba-cta-strip__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--fba-purple2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.fba-cta-strip__text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.fba-cta-strip__text p {
    font-size: 12px;
    color: var(--fba-text2);
    line-height: 1.5;
}

.fba-cta-strip__btns {
    display: flex;
    gap: 8px;
    flex: none;
}

/* ============================================================
   SINGLE PATTERN PAGE
   ============================================================ */
.fba-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}

.fba-single__wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

.fba-single__preview {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fba-single__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fba-single__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.fba-meta__item label {
    display: block;
    font-size: 10px;
    color: var(--fba-text3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.fba-meta__item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--fba-text);
}

/* Download gate */
.fba-download-gate {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border2);
    border-radius: var(--fba-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.fba-download-gate__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.fba-download-gate__sub {
    font-size: 12px;
    color: var(--fba-text2);
    line-height: 1.55;
    margin-bottom: 16px;
}

.fba-download-gate .fba-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.fba-download-gate__signin {
    text-align: center;
    font-size: 12px;
    color: var(--fba-text3);
}

.fba-download-gate__signin a {
    color: var(--fba-text2);
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
#colophon {
    background: var(--fba-surface) !important;
    border-top: 1px solid var(--fba-border) !important;
    color: var(--fba-text3) !important;
    padding: 20px 32px !important;
}

.site-footer a,
#colophon a {
    color: var(--fba-text3) !important;
    transition: color 0.2s;
}

.site-footer a:hover,
#colophon a:hover {
    color: var(--fba-purple) !important;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-page .woocommerce,
.woocommerce {
    color: var(--fba-text);
}

/* Hide WooCommerce prices — everything is free */
.woocommerce ul.products li.product .price,
.woocommerce .price {
    display: none !important;
}

/* Hide Add to Cart — replaced by download gate */
.woocommerce ul.products li.product .button,
.woocommerce .single_add_to_cart_button {
    display: none !important;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.fba-divider {
    height: 1px;
    background: var(--fba-border);
    margin: 24px 0;
}

.fba-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fba-bg); }
::-webkit-scrollbar-thumb { background: var(--fba-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fba-purple); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .fba-content-wrap {
        grid-template-columns: 1fr;
    }
    .fba-sidebar {
        position: static;
    }
    .fba-ad-slot--sidebar {
        display: none; /* hide sidebar ads on smaller screens */
    }
}

@media (max-width: 768px) {
    .fba-main { padding: 16px; }
    .fba-hero { padding: 40px 16px 32px; }
    .fba-filter-bar { padding: 0 16px; }
    .fba-cat-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .fba-pattern-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .fba-single__wrap { grid-template-columns: 1fr; }
    .fba-cta-strip { flex-direction: column; text-align: center; }
}
/* ============================================================
   NAV — append to style.css
   ============================================================ */
.fba-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13,17,23,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fba-border);
    height: 56px;
}

.fba-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.fba-nav__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fba-nav__sister {
    font-size: 12px;
    color: var(--fba-text3);
    text-decoration: none;
    transition: color .2s;
}
.fba-nav__sister:hover { color: var(--fba-purple); }

.fba-nav__divider {
    width: 1px;
    height: 18px;
    background: var(--fba-border2);
}

.fba-nav__logo {
    font-size: 16px;
    font-weight: 800;
    color: var(--fba-purple) !important;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.fba-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fba-nav__links .fba-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fba-nav__links .fba-nav__menu li a,
.fba-nav__link {
    font-size: 12px;
    color: var(--fba-text2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--fba-radius-sm);
    transition: color .2s, background .2s;
    display: block;
}

.fba-nav__links .fba-nav__menu li a:hover,
.fba-nav__link:hover {
    color: var(--fba-text);
    background: var(--fba-surface);
}

.fba-nav__link--accent {
    color: var(--fba-purple) !important;
    margin-left: 8px;
}

.fba-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.fba-footer {
    background: var(--fba-surface);
    border-top: 1px solid var(--fba-border);
    padding: 20px 32px;
}

.fba-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.fba-footer__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fba-footer__logo {
    font-size: 14px;
    font-weight: 800;
    color: var(--fba-purple);
}

.fba-footer__copy {
    font-size: 11px;
    color: var(--fba-text3);
}

.fba-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fba-footer__links a,
.fba-footer__menu li a {
    font-size: 11px;
    color: var(--fba-text3);
    text-decoration: none;
    transition: color .2s;
    list-style: none;
}

.fba-footer__menu {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fba-footer__links a:hover,
.fba-footer__menu li a:hover {
    color: var(--fba-purple);
}

/* ============================================================
   STAT DIVIDER
   ============================================================ */
.fba-stat__div {
    width: 1px;
    height: 32px;
    background: var(--fba-border);
}

/* ============================================================
   TAB COUNT
   ============================================================ */
.fba-tab__ct {
    opacity: 0.6;
    font-size: 11px;
    font-weight: 400;
    margin-left: 3px;
}

/* ============================================================
   FULL WIDTH BODY OVERRIDE
   Remove any Drift Pro body padding/margins on our template
   ============================================================ */
body.fba-fullwidth {
    margin: 0 !important;
    padding: 0 !important;
}

body.fba-fullwidth #page,
body.fba-fullwidth .site,
body.fba-fullwidth #content,
body.fba-fullwidth .site-content,
body.fba-fullwidth .content-area,
body.fba-fullwidth #primary,
body.fba-fullwidth .widget-area,
body.fba-fullwidth #secondary,
body.fba-fullwidth .sidebar,
body.fba-fullwidth aside.widget-area {
    all: unset !important;
    display: block !important;
}

/* Hide ALL Drift Pro structural elements on our page */
body.fba-fullwidth .site-header:not(.fba-nav),
body.fba-fullwidth #masthead,
body.fba-fullwidth .site-footer:not(.fba-footer),
body.fba-fullwidth #colophon,
body.fba-fullwidth .social-navigation,
body.fba-fullwidth .fba-driftpro-sidebar {
    display: none !important;
}

/* ============================================================
   FIXES — May 6 2026
   ============================================================ */

/* Fix search input white background */
.fba-search__input,
input.fba-search__input {
    background: #1C2640 !important;
    color: #E8E8F8 !important;
    border-color: #2A3855 !important;
}

/* Fix filter bar white backgrounds */
.fba-filter-bar,
.fba-filter-bar select,
.fba-select {
    background: #131929 !important;
    color: #8B9AB8 !important;
    border-color: #232E45 !important;
}

/* Fix footer overlapping filter bar */
.fba-footer {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 40px;
}

/* Fix category grid — ensure full grid displays */
.fba-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Category tile thumbnail images */
.fba-cat-tile__icon img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

/* Fix main content area taking full width */
.fba-content-wrap {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Ensure main fills correctly */
.fba-main {
    display: block !important;
    width: 100% !important;
    padding: 28px 32px 48px !important;
    background: #0D1117 !important;
}

/* Fix any white backgrounds leaking from Drift Pro */
body.fba-fullwidth,
body.fba-fullwidth #page,
body.fba-fullwidth .site,
body.fba-fullwidth #content,
body.fba-fullwidth .site-content {
    background: #0D1117 !important;
    color: #E8E8F8 !important;
}

/* AdSense ad slots — white ad container */
.fba-ad-slot {
    background: #1C2640;
    border-radius: 8px;
    padding: 4px;
}

/* Make sure Drift Pro sidebar is fully hidden on our page */
body.fba-fullwidth #secondary,
body.fba-fullwidth .widget-area,
body.fba-fullwidth aside:not(.fba-sidebar) {
    display: none !important;
}

/* ============================================================
   OVERFLOW FIX + FULL WIDTH MAIN
   ============================================================ */
.fba-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 32px 48px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

/* Remove sidebar from homepage — full width layout */
.fba-fullwidth .fba-content-wrap {
    display: block !important;
    width: 100% !important;
}

.fba-fullwidth .fba-sidebar {
    display: none !important;
}

/* Featured pattern grid — 6 columns on homepage */
.fba-fullwidth .fba-pattern-grid {
    grid-template-columns: repeat(6, 1fr) !important;
}

@media (max-width: 1200px) {
    .fba-fullwidth .fba-pattern-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .fba-fullwidth .fba-pattern-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .fba-main {
        padding: 16px !important;
    }
}

/* Category grid — 8 columns matching SmartFold */
.fba-fullwidth .fba-cat-grid {
    grid-template-columns: repeat(8, 1fr) !important;
}

@media (max-width: 1200px) {
    .fba-fullwidth .fba-cat-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .fba-fullwidth .fba-cat-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Section header spacing */
.fba-section-hd {
    margin-top: 32px;
}

/* ============================================================
   ADMIN BAR + NAV FIX
   ============================================================ */
/* Push nav down when admin bar is showing */
body.admin-bar .fba-nav {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .fba-nav {
        top: 46px !important;
    }
}

/* Make sure nav always shows on our template */
.fba-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================================
   FULL WIDTH — NO SIDEBAR SHIFT
   Remove ALL sidebar/ad column layout on homepage
   ============================================================ */
body.fba-fullwidth .fba-main {
    padding: 28px 40px 48px !important;
}

/* Pattern card category tag — show method type */
.fba-pat-card__sub {
    font-size: 10px !important;
    color: #6B7A9A !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

/* Make pattern card images have white bg for black/white pattern images */
.fba-pat-card__thumb {
    background: #fff !important;
}

/* Pattern name text colour fix */
.fba-pat-card__name {
    color: #E8E8F8 !important;
}

/* Pattern card background */
.fba-pat-card {
    background: #161E2E !important;
}

/* ============================================================
   FEATURED PATTERN CARDS — smaller, tighter
   ============================================================ */
.fba-pat-card__thumb {
    aspect-ratio: 4/3 !important; /* wider, less tall */
}

/* 6 columns but smaller */
body.fba-fullwidth .fba-pattern-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
}

.fba-pat-card__name {
    font-size: 11px !important;
    margin-bottom: 3px !important;
}

.fba-pat-card__info {
    padding: 8px 10px 10px !important;
}

/* Method tag colour coding */
.fba-pat-card__method--mmf  { color: #9B87F5 !important; }
.fba-pat-card__method--caf  { color: #6B9EFF !important; }
.fba-pat-card__method--fore { color: #4ABA7A !important; }
.fba-pat-card__method--other{ color: #8B9AB8 !important; }

/* ============================================================
   PARENT METHOD TILES — more prominent
   ============================================================ */
.fba-cat-tile--parent {
    border-color: #2A3855 !important;
    background: #1C2640 !important;
}

.fba-cat-tile--parent:hover {
    border-color: #9B87F5 !important;
    background: #2D1F5E !important;
}

.fba-cat-tile--parent .fba-cat-tile__icon {
    background: #252D45 !important;
    width: 56px !important;
    height: 56px !important;
}

.fba-cat-tile--parent .fba-cat-tile__name {
    font-size: 11px !important;
    color: #E8E8F8 !important;
    font-weight: 600 !important;
}

.fba-cat-tile--parent .fba-cat-tile__count {
    background: #2D1F5E !important;
    color: #9B87F5 !important;
    font-weight: 700 !important;
}

/* Parent grid — 7 equal columns */
.fba-cat-grid--parents {
    grid-template-columns: repeat(7, 1fr) !important;
    margin-bottom: 32px !important;
}

/* Section spacing */
.fba-section-hd + .fba-cat-grid--parents {
    margin-top: 12px;
}

/* ============================================================
   NAV SEARCH
   ============================================================ */
.fba-nav__center {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.fba-nav__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.fba-nav__search {
    position: relative;
}

.fba-nav__search-input {
    background: #1C2640;
    border: 1px solid #232E45;
    border-radius: var(--fba-radius-sm);
    color: var(--fba-text);
    font-size: 12px;
    padding: 6px 10px 6px 28px;
    outline: none;
    width: 180px;
    font-family: inherit;
    transition: border-color .2s, width .2s;
}

.fba-nav__search-input::placeholder { color: var(--fba-text3); }
.fba-nav__search-input:focus {
    border-color: var(--fba-purple);
    width: 220px;
}

/* ============================================================
   HOME CARDS — 3 column layout
   ============================================================ */
.fba-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}

.fba-home-card {
    background: #161E2E;
    border: 1px solid #232E45;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.fba-home-card:hover {
    border-color: #9B87F5;
    transform: translateY(-3px);
}

.fba-home-card__bar {
    height: 3px;
    background: #9B87F5;
}

.fba-home-card--caf .fba-home-card__bar { background: #6B9EFF; }
.fba-home-card--smartfold .fba-home-card__bar { background: linear-gradient(90deg,#9B87F5,#7C3AED); }

/* Photo strip — 3 stacked images */
.fba-home-card__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    height: 160px;
    background: #0D1117;
}

.fba-home-card__photo {
    background-size: cover;
    background-position: center;
    background-color: #1C2640;
    height: 100%;
}

.fba-home-card__photo--placeholder {
    background: linear-gradient(135deg, #1C2640, #252D45);
}

/* SmartFold hero area instead of photos */
.fba-home-card__smartfold-hero {
    height: 160px;
    background: linear-gradient(135deg, #160F38, #1A1050);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fba-home-card__sf-icon {
    width: 54px;
    height: 54px;
    background: #2D1F5E;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.fba-home-card__sf-title {
    font-size: 18px;
    font-weight: 800;
    color: #9B87F5;
    letter-spacing: -0.01em;
}

.fba-home-card__sf-sub {
    font-size: 11px;
    color: #4A3880;
    font-weight: 500;
}

.fba-home-card__sf-features {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 12px;
}

.fba-home-card__sf-features span {
    font-size: 10px;
    color: #6B5A9A;
    font-weight: 500;
}

/* Card body */
.fba-home-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fba-home-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9B87F5;
    margin-bottom: 8px;
}

.fba-home-card__label--caf { color: #6B9EFF; }

.fba-home-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.25;
}

.fba-home-card__desc {
    font-size: 13px;
    color: #6B7A9A;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.fba-home-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #232E45;
}

.fba-home-card__count {
    font-size: 12px;
    color: #4A5878;
}

/* ============================================================
   WOOCOMMERCE CATEGORY PAGE — dark restyle
   ============================================================ */

/* Category archive page */
.woocommerce-page ul.products,
.woocommerce ul.products {
    background: transparent !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #161E2E !important;
    border: 1px solid #232E45 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: border-color .2s, transform .2s !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: #9B87F5 !important;
    transform: translateY(-2px) !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Category name on shop pages — modernise font */
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #E8E8F8 !important;
    padding: 12px 14px 4px !important;
    font-style: normal !important;
}

/* Count badge */
.woocommerce ul.products li.product .count {
    background: #2D1F5E !important;
    color: #9B87F5 !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin: 0 14px 14px !important;
    display: inline-block !important;
    border: 1px solid #3A2A70 !important;
}

/* Shop page background */
.woocommerce-page,
.woocommerce {
    background: #0D1117 !important;
    color: #E8E8F8 !important;
}

/* Page titles on shop/category pages */
.woocommerce-products-header__title,
.woocommerce-page h1.page-title,
h1.woocommerce-products-header__title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #fff !important;
    font-weight: 800 !important;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    color: #4A5878 !important;
    font-size: 12px !important;
    background: transparent !important;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #9B87F5 !important;
}

/* ============================================================
   RESPONSIVE HOME CARDS
   ============================================================ */
@media (max-width: 900px) {
    .fba-home-cards {
        grid-template-columns: 1fr !important;
    }
    .fba-nav__center {
        display: none;
    }
}

/* ============================================================
   INTERACTIVE HOMEPAGE TABS
   ============================================================ */
.fba-tabs-wrap {
    margin-bottom: 32px;
}

/* Tab headers */
.fba-tabs-hd {
    display: flex;
    gap: 8px;
}

.fba-tab-hd {
    flex: 1;
    padding: 14px 18px;
    background: #161E2E;
    border: 1px solid #232E45;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    bottom: -1px;
    z-index: 1;
}

.fba-tab-hd:hover:not(.active) {
    background: #1A2235;
    border-color: #2A3855;
}

.fba-tab-hd.active {
    background: #1C2640;
    border-bottom-color: #1C2640;
}

.fba-tab-hd--mmf.active { border-color: #9B87F5; border-bottom-color: #1C2640; }
.fba-tab-hd--caf.active { border-color: #6B9EFF; border-bottom-color: #1C2640; }
.fba-tab-hd--sf.active  { border-color: #9B87F5; border-bottom-color: #1C2640; }

.fba-tab-hd__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #252D45;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background .2s;
}

.fba-tab-hd--mmf.active .fba-tab-hd__icon,
.fba-tab-hd--sf.active .fba-tab-hd__icon { background: #2D1F5E; }
.fba-tab-hd--caf.active .fba-tab-hd__icon { background: #1A2A4A; }

.fba-tab-hd__title {
    font-size: 14px;
    font-weight: 700;
    color: #E8E8F8;
    margin-bottom: 2px;
}

.fba-tab-hd__sub {
    font-size: 11px;
    color: #4A5878;
    transition: color .2s;
}

.fba-tab-hd--mmf.active .fba-tab-hd__sub,
.fba-tab-hd--sf.active .fba-tab-hd__sub { color: #9B87F5; }
.fba-tab-hd--caf.active .fba-tab-hd__sub { color: #6B9EFF; }

.fba-tab-hd__arrow {
    font-size: 20px;
    color: #4A5878;
    margin-left: auto;
    transition: transform .2s, color .2s;
    line-height: 1;
}

.fba-tab-hd.active .fba-tab-hd__arrow {
    transform: rotate(90deg);
    color: #9B87F5;
}

.fba-tab-hd--caf.active .fba-tab-hd__arrow { color: #6B9EFF; }

/* Tab panels */
.fba-tab-panel {
    background: #1C2640;
    border: 1px solid #9B87F5;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.fba-tab-panel--caf { border-color: #6B9EFF; }
.fba-tab-panel--sf  { border-color: #9B87F5; }

.fba-tab-panel__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 340px;
}

.fba-tab-panel__left {
    padding: 20px;
    border-right: 1px solid #1E2540;
}

/* Technique explainer */
.fba-technique {
    background: #161E2E;
    border: 1px solid #1E2540;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.fba-technique__visual {
    width: 100px;
    height: 70px;
    border-radius: 7px;
    overflow: hidden;
    flex: none;
}

.fba-technique__text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.fba-technique__text p {
    font-size: 12px;
    color: #6B7A9A;
    line-height: 1.55;
}

.fba-panel-grid-hd {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4A5878;
    margin-bottom: 12px;
}

/* Pattern preview grid */
.fba-panel-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.fba-panel-pat {
    background: #161E2E;
    border: 1px solid #232E45;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
}

.fba-panel-pat:hover {
    border-color: #9B87F5;
    transform: translateY(-2px);
}

.fba-panel-pat--caf:hover { border-color: #6B9EFF; }

.fba-panel-pat__img {
    aspect-ratio: 1/1;
    background: #252D45;
    background-size: cover;
    background-position: center;
    background-color: #252D45;
}

.fba-panel-pat__name {
    font-size: 9px;
    font-weight: 500;
    color: #8B9AB8;
    padding: 5px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fba-panel-pat--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1438;
    border-color: #2D1F5E;
    aspect-ratio: unset;
    min-height: 60px;
}

.fba-panel-pat--more-caf {
    background: #141828;
    border-color: #1A2A4A;
}

.fba-more-count {
    font-size: 18px;
    font-weight: 800;
    color: #9B87F5;
    line-height: 1;
}

.fba-more-lbl {
    font-size: 9px;
    color: #4A5878;
    margin-top: 3px;
}

/* Panel sidebar */
.fba-tab-panel__sidebar {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.fba-panel-sidebar__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9B87F5;
    margin-bottom: 8px;
}

.fba-panel-sidebar__title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
    transition: all .2s;
}

.fba-panel-sidebar__desc {
    font-size: 12px;
    color: #6B7A9A;
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
    transition: all .2s;
}

.fba-panel-sidebar__stats {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.fba-pstat {
    background: #1C2640;
    border: 1px solid #232E45;
    border-radius: 8px;
    padding: 9px 10px;
    flex: 1;
    text-align: center;
}

.fba-pstat--caf .fba-pstat__val { color: #6B9EFF !important; }

.fba-pstat__val {
    font-size: 16px;
    font-weight: 700;
    color: #9B87F5;
}

.fba-pstat__lbl {
    font-size: 9px;
    color: #4A5878;
    margin-top: 2px;
}

.fba-panel-sidebar__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.fba-pbtn-main {
    background: #7C3AED;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    border-radius: 9px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: background .2s;
}

.fba-pbtn-main:hover { background: #6D2FD4; }
.fba-pbtn-main--caf  { background: #3A5FCC !important; }
.fba-pbtn-main--caf:hover { background: #2A4FBC !important; }

.fba-pbtn-sub {
    border: 1px solid #1E2540;
    color: #6B7A9A !important;
    font-size: 12px;
    padding: 9px;
    border-radius: 9px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all .2s;
}

.fba-pbtn-sub:hover { border-color: #9B87F5; color: #9B87F5 !important; }

/* SmartFold panel */
.fba-sf-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #1E2540;
}

.fba-sf-tool {
    background: #161E2E;
    padding: 20px 18px;
    cursor: pointer;
    transition: background .2s;
}

.fba-sf-tool:hover { background: #1A2235; }

.fba-sf-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 12px;
    background: #2D1F5E;
    color: #9B87F5;
    border: 1px solid #3A2A70;
}

.fba-sf-badge--green {
    background: #1A3028;
    color: #4ABA7A;
    border-color: #2A5038;
}

.fba-sf-icon {
    width: 40px;
    height: 40px;
    background: #252D45;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.fba-sf-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.fba-sf-desc {
    font-size: 12px;
    color: #6B7A9A;
    line-height: 1.55;
}

.fba-sf-footer {
    background: #1C2640;
    border-top: 1px solid #1E2540;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.fba-sf-footer__text { flex: 1; }

.fba-sf-footer__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: none;
    width: 220px;
}

/* Nav additions */
.fba-nav__center { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.fba-nav__right  { display: flex; align-items: center; gap: 8px; flex: none; }
.fba-nav__search { position: relative; }
.fba-nav__search-input {
    background: #1C2640;
    border: 1px solid #232E45;
    border-radius: var(--fba-radius-sm);
    color: var(--fba-text);
    font-size: 12px;
    padding: 6px 10px 6px 28px;
    outline: none;
    width: 170px;
    font-family: inherit;
    transition: border-color .2s, width .2s;
}
.fba-nav__search-input::placeholder { color: var(--fba-text3); }
.fba-nav__search-input:focus { border-color: var(--fba-purple); width: 210px; }

/* Responsive */
@media (max-width: 1024px) {
    .fba-tab-panel__inner { grid-template-columns: 1fr; }
    .fba-tab-panel__sidebar { border-top: 1px solid #1E2540; }
    .fba-panel-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .fba-tabs-hd { flex-direction: column; }
    .fba-tab-hd { border-radius: 10px; border-bottom: 1px solid #232E45; margin-bottom: 4px; bottom: 0; }
    .fba-tab-hd.active { border-radius: 10px 10px 0 0; border-bottom: none; }
    .fba-sf-tools { grid-template-columns: 1fr; }
    .fba-sf-footer { flex-direction: column; }
    .fba-nav__center { display: none; }
    .fba-panel-grid { grid-template-columns: repeat(4, 1fr); }
}
