/* ============================================================
   HOMEPAGE V2 - PROFESSIONAL LANDING SECTIONS
   Loaded only by App/Views/Home.php - all rules scoped to .bfx-*
   so no other page or the account/login flow is affected.
   ============================================================ */

.bfx-section { padding: 56px 0; }
.bfx-section--tight { padding: 32px 0; }

/* ---------- section headings ---------- */
.bfx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 2.5px;
    font-size: 12px; font-weight: 700; color: var(--theme-bg);
    margin-bottom: 10px;
}
.bfx-eyebrow::before {
    content: ""; width: 26px; height: 2px; background: var(--theme-bg);
    display: inline-block; border-radius: 2px;
}
.bfx-title { font-weight: 800; font-size: 30px; line-height: 1.2; color: #0f1736; margin-bottom: 8px; }
.bfx-sub { color: #5b6474; font-size: 15.5px; max-width: 640px; margin-bottom: 0; }
.bfx-head { margin-bottom: 34px; }

/* ============================================================
   LIVE FARE SCANNER (RADAR)
   ============================================================ */
.bfx-scanner {
    position: relative;
    border-radius: 20px;
    padding: 38px 34px 30px;
    color: #eaf1ff;
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(41, 121, 255, .28), transparent 60%),
        radial-gradient(700px 300px at 0% 110%, rgba(41, 121, 255, .18), transparent 60%),
        linear-gradient(135deg, #0b1530 0%, #101f4b 55%, #0b1530 100%);
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(11, 21, 48, .55);
}
.bfx-scanner::before {
    content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
    background-image:
        linear-gradient(rgba(160, 190, 255, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 190, 255, .35) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.bfx-scanner .bfx-title { color: #fff; }
.bfx-scanner .bfx-sub { color: #aebadb; }

.bfx-live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(46, 213, 115, .12);
    border: 1px solid rgba(46, 213, 115, .35);
    color: #7bedaa; font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 100px;
}
.bfx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ed573; position: relative; }
.bfx-live-dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(46, 213, 115, .6);
    animation: bfxPulse 1.6s ease-out infinite;
}
@keyframes bfxPulse {
    0% { transform: scale(.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
.bfx-scanned-at { color: #8ea0c9; font-size: 12.5px; }

.bfx-scan-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 18px; position: relative; z-index: 1; }
.bfx-scan-tab {
    border: 1px solid rgba(160, 190, 255, .25);
    background: rgba(255, 255, 255, .04);
    color: #c7d4f2; font-weight: 600; font-size: 13.5px;
    padding: 9px 18px; border-radius: 100px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s ease;
}
.bfx-scan-tab svg { width: 16px; height: 16px; fill: currentColor; }
.bfx-scan-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bfx-scan-tab.active {
    background: #fff; color: #0f1736; border-color: #fff;
    box-shadow: 0 8px 20px -8px rgba(255, 255, 255, .45);
}
.bfx-rescan {
    border: 1px solid rgba(160, 190, 255, .3); background: transparent;
    color: #c7d4f2; border-radius: 100px; font-size: 13px; font-weight: 600;
    padding: 8px 16px; display: inline-flex; align-items: center; gap: 7px;
    transition: all .2s ease; cursor: pointer;
}
.bfx-rescan:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bfx-rescan svg { width: 14px; height: 14px; stroke: currentColor; }
.bfx-rescan.bfx-spinning svg { animation: bfxSpin 1s linear infinite; }
@keyframes bfxSpin { to { transform: rotate(360deg); } }

.bfx-fares { position: relative; z-index: 1; }
.bfx-fare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1199px) { .bfx-fare-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .bfx-fare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .bfx-fare-grid { grid-template-columns: 1fr; } }

.bfx-fare-card {
    display: block; text-decoration: none;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(160, 190, 255, .18);
    border-radius: 14px; padding: 16px 16px 14px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.bfx-fare-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(160, 190, 255, .45);
}
.bfx-fare-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bfx-fare-carrier { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bfx-fare-logo {
    width: 34px; height: 34px; border-radius: 8px; background: #fff;
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    overflow: hidden;
}
.bfx-fare-logo img { max-width: 26px; max-height: 26px; object-fit: contain; }
.bfx-fare-carrier small {
    color: #9fb0d6; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bfx-fare-route {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 2px;
}
.bfx-fare-route .bfx-route-path {
    flex: 1; height: 2px; min-width: 18px; position: relative;
    background: repeating-linear-gradient(90deg, rgba(160,190,255,.55) 0 6px, transparent 6px 11px);
}
.bfx-fare-route .bfx-route-path::after {
    content: "\2708"; position: absolute; right: -4px; top: 50%;
    transform: translateY(-54%) rotate(0deg);
    color: #9fb0d6; font-size: 12px; background: transparent;
}
.bfx-fare-cities { color: #9fb0d6; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 12px; }
.bfx-fare-name { color: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.35; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfx-fare-meta { color: #9fb0d6; font-size: 12.5px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfx-fare-stars { color: #ffcf5c; font-size: 12px; letter-spacing: 1px; }
.bfx-fare-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.bfx-fare-from { display: block; color: #8ea0c9; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-bottom: 1px; }
.bfx-fare-price { color: #fff; font-weight: 800; font-size: 20px; line-height: 1; }
.bfx-fare-price span { font-size: 12px; font-weight: 700; color: #aebadb; margin-right: 3px; }
.bfx-fare-cta {
    color: #7db2ff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
}
.bfx-fare-card:hover .bfx-fare-cta { color: #fff; }

.bfx-scan-note { color: #8ea0c9; font-size: 12px; margin: 16px 2px 0; position: relative; z-index: 1; }

/* skeleton loading */
.bfx-skel { pointer-events: none; }
.bfx-skel .bfx-skel-bar {
    height: 12px; border-radius: 6px; margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.07) 75%);
    background-size: 300% 100%;
    animation: bfxShimmer 1.4s ease infinite;
}
@keyframes bfxShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.bfx-empty { color: #9fb0d6; font-size: 14px; padding: 24px 6px; }

/* stats strip inside scanner */
.bfx-stats {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
    margin-top: 24px; padding-top: 22px;
    border-top: 1px solid rgba(160, 190, 255, .16);
    position: relative; z-index: 1;
}
@media (max-width: 991px) { .bfx-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .bfx-stats { grid-template-columns: repeat(2, 1fr); } }
.bfx-stat { text-align: center; }
.bfx-stat b { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; }
.bfx-stat small { color: #8ea0c9; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.bfx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 991px) { .bfx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .bfx-steps { grid-template-columns: 1fr; } }
.bfx-step {
    background: #fff; border: 1px solid #e8ecf3; border-radius: 16px;
    padding: 26px 22px; position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bfx-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15, 23, 54, .35); }
.bfx-step-num {
    position: absolute; top: 18px; right: 20px;
    font-size: 34px; font-weight: 800; color: #eef2fa; line-height: 1;
}
.bfx-step-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: color-mix(in srgb, var(--theme-bg) 10%, #fff);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
@supports not (background: color-mix(in srgb, red 10%, #fff)) {
    .bfx-step-icon { background: rgba(16, 98, 254, .08); }
}
.bfx-step-icon svg { width: 22px; height: 22px; stroke: var(--theme-bg); fill: none; stroke-width: 2; }
.bfx-step h5 { font-weight: 700; font-size: 16.5px; color: #0f1736; margin-bottom: 6px; }
.bfx-step p { color: #5b6474; font-size: 13.8px; line-height: 1.6; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.bfx-faq .accordion-item {
    border: 1px solid #e8ecf3; border-radius: 14px !important;
    margin-bottom: 12px; overflow: hidden; background: #fff;
}
.bfx-faq .accordion-button {
    font-weight: 700; font-size: 15.5px; color: #0f1736;
    padding: 18px 22px; background: #fff; box-shadow: none;
}
.bfx-faq .accordion-button:not(.collapsed) { color: var(--theme-bg); background: #fff; }
.bfx-faq .accordion-button:focus { box-shadow: none; border: 0; }
.bfx-faq .accordion-body { color: #5b6474; font-size: 14.2px; line-height: 1.7; padding: 0 22px 20px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.bfx-cta {
    border-radius: 20px; padding: 44px 40px;
    background:
        radial-gradient(600px 240px at 90% -20%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(120deg, var(--theme-bg), var(--theme-bg));
    color: #fff; display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
}
@supports (background: color-mix(in srgb, red 50%, #000)) {
    .bfx-cta {
        background:
            radial-gradient(600px 240px at 90% -20%, rgba(255, 255, 255, .18), transparent 60%),
            linear-gradient(120deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 55%, #101f3c));
    }
}
.bfx-cta h3 { font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.bfx-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15px; max-width: 560px; }
.bfx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bfx-btn-light {
    background: #fff; color: #0f1736; font-weight: 700; font-size: 14.5px;
    border: 0; border-radius: 10px; padding: 13px 24px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: transform .18s ease;
}
.bfx-btn-light:hover { transform: translateY(-2px); color: #0f1736; }
.bfx-btn-ghost {
    background: transparent; color: #fff; font-weight: 700; font-size: 14.5px;
    border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 10px;
    padding: 12px 24px; text-decoration: none; display: inline-flex; align-items: center;
    gap: 8px; transition: all .18s ease;
}
.bfx-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ============================================================
   GENTLE HOMEPAGE-ONLY REFINEMENTS TO EXISTING SECTIONS
   ============================================================ */
.featured .card-item,
.featured .deal-card { transition: transform .2s ease, box-shadow .2s ease; }
.featured .deal-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(15, 23, 54, .4); }
.section-heading small { color: #5b6474; }

.featured-flight-image {
    display: block;
    height: 236px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .home-hero { height: 252px; min-height: 252px; }
    .bfx-scanner { padding: 26px 18px 22px; border-radius: 16px; }
    .bfx-title { font-size: 24px; }
    .bfx-cta { padding: 32px 24px; }
    .home-hero-controls { right: 16px; bottom: 14px; }
    .home-hero-control { width: 32px; height: 32px; }
    .featured-flight-image { height: 210px; }
}

/* ============================================================
   HOMEPAGE POLISH LAYER
   These selectors are limited to the homepage view and the
   existing bfx components. No booking or module behavior changes.
   ============================================================ */

.home-shell {
    position: relative;
    isolation: isolate;
}

.home-hero {
    position: relative;
    height: 330px;
    min-height: 330px;
    margin-top: 0;
    overflow: hidden;
    isolation: isolate;
    background: #7f1028;
    filter: saturate(.94) contrast(1.04);
}

.home-hero::before,
.home-hero::after {
    content: none;
    display: none;
}

.home-hero-slides,
.home-hero-slide,
.home-hero-overlay {
    position: absolute;
    inset: 0;
}

.home-hero-slides { z-index: 0; }

.home-hero-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .85s ease, transform 6.5s ease-out;
    will-change: opacity, transform;
}

.home-hero-slide.is-active {
    opacity: 1;
    transform: scale(1.06);
}

.home-hero-overlay {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(42, 4, 15, .72) 0%, rgba(42, 4, 15, .34) 46%, rgba(42, 4, 15, .16) 100%),
        linear-gradient(180deg, rgba(15, 4, 10, .06) 18%, rgba(15, 4, 10, .44) 100%);
}

.home-hero-controls {
    position: absolute;
    z-index: 2;
    right: clamp(18px, 4vw, 54px);
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-hero-control,
.home-hero-dot {
    border: 0;
    cursor: pointer;
}

.home-hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    color: #fff;
    background: rgba(60, 7, 22, .42);
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.home-hero-control:hover,
.home-hero-control:focus-visible {
    border-color: rgba(255, 255, 255, .78);
    background: rgba(181, 18, 51, .86);
    transform: translateY(-2px);
}

.home-hero-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.home-hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(47, 5, 17, .34);
    backdrop-filter: blur(10px);
}

.home-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .53);
    transition: width .2s ease, background .2s ease, transform .2s ease;
}

.home-hero-dot:hover,
.home-hero-dot:focus-visible { transform: scale(1.25); background: #fff; }
.home-hero-dot.is-active { width: 25px; border-radius: 10px; background: #fff; }

.home-hero-control:focus-visible,
.home-hero-dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .72);
    outline-offset: 3px;
}

.home-search-wrap {
    position: relative;
    z-index: 3;
}

.home-hero-copy {
    max-width: 760px;
    padding: 10px 0 2px;
    text-shadow: 0 2px 18px rgba(4, 18, 50, .2);
}

.home-hero-copy h4 {
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -.7px;
    margin-bottom: 12px;
}

.home-hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, .86) !important;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.55;
}

.home-search-card {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 24px 70px -32px rgba(6, 25, 68, .65);
    backdrop-filter: blur(12px);
}

.home-search-surface {
    overflow: hidden;
    border: 1px solid rgba(222, 230, 241, .95);
    box-shadow: 0 10px 26px -22px rgba(15, 23, 54, .4);
}

.home-search-content {
    background: #fff;
}

.home-search-tabs {
    align-items: stretch;
    margin: 0 !important;
    padding: 5px !important;
    border-bottom: 1px solid #e8edf5 !important;
    background: #f7faff;
}

.home-search-tabs .nav-item {
    flex: 1 1 0;
    min-width: 110px;
}

.home-search-tabs .nav-link {
    min-height: 54px;
    border: 0 !important;
    border-radius: 10px;
    color: #53617b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .1px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-search-tabs .nav-link svg {
    width: 21px;
    height: 21px;
    color: var(--theme-bg, #1062fe);
}

.home-search-tabs .nav-link:hover {
    color: #132450;
    background: rgba(255, 255, 255, .78);
}

.home-search-tabs .nav-link.active {
    color: #102d78;
    background: #fff;
    box-shadow: 0 7px 18px -14px rgba(15, 42, 106, .75), inset 0 0 0 1px #d7e3fb;
}

.home-search-tabs .nav-link.active svg {
    color: var(--theme-bg, #1062fe);
}

.home-search-results {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 20px 18px 18px !important;
}

/* Keep the legacy loading state attractive while the search modules boot. */
.home-search-surface .hide_loading {
    min-height: 205px !important;
    background: linear-gradient(135deg, #fbfdff, #f4f8ff) !important;
}

.home-search-surface .loading_home {
    width: min(100%, 620px);
    opacity: .78;
}

.home-search-surface .loading_home .bg-white {
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, #e4ebf7 20%, #fff 50%, #e4ebf7 80%) !important;
    background-size: 220% 100%;
    animation: bfxSearchShimmer 1.5s ease-in-out infinite;
}

@keyframes bfxSearchShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Existing featured modules: give each module a shared marketplace rhythm. */
.featured {
    background: transparent;
}

.featured .section-heading {
    padding-top: 22px;
    margin-bottom: 20px;
}

.featured .section-heading h2,
.featured .section-heading h3 {
    color: #101b3c;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -.45px;
}

.featured .section-heading small {
    color: #66738d;
    font-size: 13px;
}

.featured .deal-card,
.featured .card-item {
    border: 1px solid #e7ecf4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px -28px rgba(15, 23, 54, .7);
}

.featured .deal-card:hover,
.featured .card-item:hover {
    border-color: #cbdaf5;
    box-shadow: 0 20px 42px -28px rgba(15, 44, 105, .42);
}

/* Section rhythm and shared heading hierarchy. */
.bfx-section {
    padding: clamp(46px, 6vw, 76px) 0;
}

.bfx-section--tight {
    padding: clamp(34px, 4.3vw, 56px) 0;
}

.bfx-section--wash {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.bfx-eyebrow {
    color: var(--theme-bg, #1062fe);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.bfx-eyebrow::before {
    width: 30px;
    background: currentColor;
}

.bfx-title {
    font-size: clamp(25px, 3vw, 35px);
    letter-spacing: -.65px;
}

.bfx-sub {
    color: #68758d;
    font-size: 15px;
    line-height: 1.65;
}

.bfx-head {
    max-width: 720px;
    margin-bottom: clamp(24px, 3vw, 36px);
}

/* Live scanner: turn the existing radar into a clear control centre. */
.bfx-scanner {
    border: 1px solid rgba(141, 179, 244, .28);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 42px) clamp(18px, 3.5vw, 38px) 30px;
    box-shadow: 0 28px 74px -34px rgba(11, 21, 48, .7), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

.bfx-scanner-header {
    padding-bottom: 4px;
}

.bfx-scanner .bfx-title {
    max-width: 690px;
    letter-spacing: -.75px;
}

.bfx-scanner .bfx-sub {
    max-width: 690px;
    line-height: 1.65;
}

.bfx-live-badge {
    padding: 7px 13px;
    letter-spacing: 1.35px;
    box-shadow: 0 0 0 4px rgba(46, 213, 115, .05);
}

.bfx-scanned-at {
    min-height: 18px;
}

.bfx-scan-tabs {
    gap: 5px;
    margin: 24px 0 20px;
    padding: 5px;
    border: 1px solid rgba(160, 190, 255, .15);
    border-radius: 14px;
    background: rgba(3, 12, 34, .22);
}

.bfx-scan-tab {
    min-height: 38px;
    padding: 8px 15px;
    border-color: transparent;
    border-radius: 10px;
}

.bfx-scan-tab:focus-visible,
.bfx-rescan:focus-visible,
.bfx-fare-card:focus-visible {
    outline: 3px solid rgba(125, 178, 255, .55);
    outline-offset: 3px;
}

.bfx-scan-tab.active {
    color: #0e2b6d;
    background: #dceaff;
    border-color: #b5d1ff;
    box-shadow: 0 8px 20px -11px rgba(119, 173, 255, .75);
}

.bfx-fare-grid {
    gap: 13px;
}

.bfx-fare-card {
    min-height: 158px;
    padding: 17px 16px 15px;
    border-color: rgba(160, 190, 255, .24);
    border-radius: 15px;
    box-shadow: 0 10px 20px -18px rgba(0, 0, 0, .8);
}

.bfx-fare-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160, 190, 255, .66);
    box-shadow: 0 16px 28px -19px rgba(0, 0, 0, .72);
}

.bfx-fare-logo {
    box-shadow: 0 4px 11px rgba(4, 12, 31, .25);
}

.bfx-fare-name {
    letter-spacing: -.1px;
}

.bfx-fare-cta {
    transition: color .2s ease, transform .2s ease;
}

.bfx-fare-card:hover .bfx-fare-cta {
    transform: translateX(2px);
}

.bfx-empty {
    grid-column: 1 / -1;
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(160, 190, 255, .34);
    border-radius: 14px;
    text-align: center;
}

.bfx-scan-note {
    margin-top: 18px;
    color: #9eafd2;
}

.bfx-stats {
    gap: 0;
    margin-top: 26px;
    padding-top: 22px;
}

.bfx-stat {
    padding: 0 10px;
    border-right: 1px solid rgba(160, 190, 255, .14);
}

.bfx-stat:last-child {
    border-right: 0;
}

.bfx-stat b {
    letter-spacing: -.4px;
}

/* Connected progression for the four existing steps. */
.bfx-steps {
    position: relative;
    gap: 16px;
}

.bfx-steps::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 49px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c7d9f7 12%, #c7d9f7 88%, transparent);
}

.bfx-step {
    z-index: 1;
    min-height: 236px;
    padding: 27px 22px 24px;
    border-color: #e5ebf4;
    border-radius: 18px;
    box-shadow: 0 13px 32px -30px rgba(15, 23, 54, .7);
}

.bfx-step:hover {
    transform: translateY(-5px);
    border-color: #cbdcf6;
    box-shadow: 0 22px 42px -28px rgba(15, 54, 128, .35);
}

.bfx-step-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-radius: 15px;
    margin-bottom: 19px;
    box-shadow: 0 0 0 1px #dbe6f8, 0 8px 18px -12px rgba(16, 98, 254, .6);
}

.bfx-step-num {
    top: 20px;
    right: 18px;
    color: #edf2fa;
    font-size: 31px;
}

.bfx-step h5 {
    letter-spacing: -.1px;
}

.bfx-step p {
    line-height: 1.65;
}

/* Existing information strip, restyled into three balanced benefits. */
.bfx-benefits-section {
    padding-top: clamp(26px, 4vw, 48px);
    background: #f3f7fd !important;
}

.bfx-benefits-card {
    position: relative;
    overflow: hidden;
    padding: 9px 8px 10px;
    background:
        radial-gradient(520px 180px at 8% 0%, rgba(96, 158, 255, .23), transparent 70%),
        linear-gradient(130deg, #0b1839 0%, #102b61 52%, #0b1839 100%);
    border: 1px solid rgba(118, 165, 243, .35);
    box-shadow: 0 26px 58px -36px rgba(8, 24, 61, .75);
}

.bfx-benefits-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(120deg, transparent 0 47%, rgba(255,255,255,.4) 48%, transparent 49% 100%);
    background-size: 190px 190px;
}

.bfx-benefit-col {
    position: relative;
    z-index: 1;
    padding: 18px 24px;
}

.bfx-benefit-col + .bfx-benefit-col {
    border-left: 1px solid rgba(182, 211, 255, .18);
}

.bfx-benefit {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bfx-benefit .info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 23px -13px rgba(0, 0, 0, .65);
}

.bfx-benefit .info-icon svg {
    width: 21px;
    height: 21px;
    fill: none !important;
    stroke: #123d8e !important;
    stroke-width: 2;
}

.bfx-benefit .mt-4 {
    margin-top: 16px !important;
}

.bfx-benefit h4 {
    font-size: 16px;
    letter-spacing: -.1px;
}

.bfx-benefit .info__desc {
    max-width: 280px;
    color: rgba(236, 243, 255, .72);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 8px auto 0;
}

/* FAQ and CTA should read as calm, high-intent closing sections. */
.bfx-section--faq {
    background: #fff;
}

.bfx-faq {
    max-width: 840px;
}

.bfx-faq .accordion-item {
    border-color: #e4eaf3;
    border-radius: 16px !important;
    margin-bottom: 13px;
    box-shadow: 0 11px 28px -27px rgba(15, 23, 54, .8);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bfx-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: #c9daf8;
    box-shadow: 0 17px 35px -27px rgba(16, 98, 254, .45);
}

.bfx-faq .accordion-button {
    min-height: 60px;
    padding: 17px 22px;
    color: #172443;
}

.bfx-faq .accordion-button:not(.collapsed) {
    color: #1254c6;
}

.bfx-faq .accordion-button:focus {
    box-shadow: inset 0 0 0 3px rgba(16, 98, 254, .16);
}

.bfx-faq .accordion-body {
    color: #68758d;
    padding: 0 22px 21px;
}

.bfx-cta {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border: 1px solid rgba(140, 192, 255, .28);
    border-radius: 24px;
    padding: clamp(30px, 4.5vw, 50px) clamp(24px, 5vw, 48px);
    box-shadow: 0 26px 60px -34px rgba(12, 47, 113, .65);
}

.bfx-cta::after {
    content: "✦";
    position: absolute;
    right: 32%;
    bottom: -33px;
    color: rgba(255, 255, 255, .1);
    font-size: 170px;
    line-height: 1;
    pointer-events: none;
}

.bfx-cta > * {
    position: relative;
    z-index: 1;
}

.bfx-cta h3 {
    font-size: clamp(23px, 3vw, 31px);
    letter-spacing: -.55px;
}

.bfx-btn-light,
.bfx-btn-ghost {
    min-height: 46px;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bfx-btn-light:hover,
.bfx-btn-ghost:hover {
    transform: translateY(-3px);
}

.bfx-btn-light:focus-visible,
.bfx-btn-ghost:focus-visible,
.bfx-faq .accordion-button:focus-visible {
    outline: 3px solid rgba(102, 171, 255, .62);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .bfx-steps::before { left: 20%; right: 20%; }
    .bfx-benefit-col { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 767px) {
    .home-hero { height: 252px; min-height: 252px; }
    .home-hero-copy { padding-top: 0; }
    .home-hero-copy h4 { letter-spacing: -.35px; }
    .home-search-card { padding: 5px; border-radius: 17px; }
    .home-search-tabs .nav-item { flex-basis: 33.333%; min-width: 92px; }
    .home-search-tabs .nav-link { min-height: 48px; padding: 7px 6px; font-size: 12px; gap: 5px; }
    .home-search-tabs .nav-link svg { width: 18px; height: 18px; }
    .home-search-results { padding: 15px 10px 12px !important; }
    .bfx-scanner { border-radius: 19px; }
    .bfx-scanner-header { display: block !important; }
    .bfx-scanner-header > :last-child { margin-top: 18px; text-align: left !important; }
    .bfx-scan-tabs { margin-top: 20px; }
    .bfx-scan-tab { flex: 1 1 calc(33.333% - 5px); justify-content: center; padding-left: 7px; padding-right: 7px; }
    .bfx-stats { gap: 16px 0; }
    .bfx-stat:nth-child(3n) { border-right: 1px solid rgba(160, 190, 255, .14); }
    .bfx-stat:nth-child(2n) { border-right: 0; }
    .bfx-steps::before { display: none; }
    .bfx-step { min-height: 0; }
    .bfx-benefit-col + .bfx-benefit-col { border-left: 0; border-top: 1px solid rgba(182, 211, 255, .18); }
    .bfx-benefit-col { padding-top: 22px; padding-bottom: 22px; }
    .bfx-cta { border-radius: 19px; }
    .bfx-cta-actions { width: 100%; }
    .bfx-btn-light, .bfx-btn-ghost { flex: 1 1 auto; justify-content: center; }
    .home-hero-controls { right: 16px; bottom: 14px; }
    .home-hero-control { width: 32px; height: 32px; }
    .featured-flight-image { height: 210px; }
}

@media (max-width: 380px) {
    .home-search-tabs .nav-item { min-width: 78px; }
    .home-search-tabs .nav-link span { white-space: nowrap; }
    .bfx-scan-tab { font-size: 12px; }
    .bfx-scan-tab svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-search-surface .loading_home .bg-white,
    .bfx-live-dot::after,
    .bfx-skel .bfx-skel-bar { animation: none; }
    .bfx-fare-card,
    .bfx-step,
    .bfx-btn-light,
    .bfx-btn-ghost,
    .home-hero-slide,
    .home-hero-control,
    .home-hero-dot { transition: none; }
}

/* Brand red treatment for homepage promotional panels. Keep success/live
   indicators green because they communicate a status, not a brand accent. */
.bfx-scanner {
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(255, 110, 136, .24), transparent 60%),
        radial-gradient(700px 300px at 0% 110%, rgba(255, 174, 190, .14), transparent 60%),
        linear-gradient(135deg, #7f1028 0%, #b51233 55%, #7f1028 100%);
    border-color: rgba(255, 214, 222, .28);
    box-shadow: 0 28px 74px -34px rgba(127, 16, 40, .72), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

.bfx-scanner::before {
    background-image:
        linear-gradient(rgba(255, 214, 222, .30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 214, 222, .30) 1px, transparent 1px);
}

.bfx-scanner .bfx-sub { color: #ffd8df; }
.bfx-scanned-at { color: #ffc1cd; }

.bfx-benefits-card {
    background:
        radial-gradient(520px 180px at 8% 0%, rgba(255, 118, 145, .24), transparent 70%),
        linear-gradient(130deg, #7f1028 0%, #b51233 52%, #7f1028 100%);
    border-color: rgba(255, 214, 222, .35);
    box-shadow: 0 26px 58px -36px rgba(127, 16, 40, .82);
}

.bfx-benefit-col + .bfx-benefit-col { border-color: rgba(255, 214, 222, .24); }

.bfx-cta {
    background:
        radial-gradient(600px 240px at 90% -20%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(120deg, #7f1028, #b51233 58%, #8d132e);
    border-color: rgba(255, 214, 222, .3);
    box-shadow: 0 26px 60px -34px rgba(127, 16, 40, .76);
}

.bfx-cta::after { color: rgba(255, 232, 236, .12); }

/* If the optional AOS stylesheet loads but its script does not, never leave
   homepage content at AOS's hidden initial state. */
html.aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ============================================================
   TRUST / REASSURANCE STRIP
   Sits between the hero search and the featured modules.
   Scoped to .bfx-trust* so no other page is affected.
   ============================================================ */
.bfx-trustbar-wrap { padding: clamp(20px, 3vw, 30px) 0 0; }

.bfx-trustbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bfx-trust {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid #e7ecf4;
    border-radius: 14px;
    box-shadow: 0 12px 30px -26px rgba(15, 23, 54, .6);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bfx-trust:hover {
    transform: translateY(-3px);
    border-color: #cbdaf5;
    box-shadow: 0 18px 38px -26px rgba(15, 44, 105, .42);
}

.bfx-trust-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--theme-bg, #b51233);
    background: color-mix(in srgb, var(--theme-bg, #b51233) 11%, #fff);
}

@supports not (background: color-mix(in srgb, red 11%, #fff)) {
    .bfx-trust-icon { background: rgba(181, 18, 51, .09); }
}

.bfx-trust-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.bfx-trust-text b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.1px;
    color: #101b3c;
}

.bfx-trust-text span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #66738d;
}

@media (max-width: 991px) {
    .bfx-trustbar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .bfx-trustbar { grid-template-columns: 1fr; gap: 10px; }
    .bfx-trust { padding: 13px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .bfx-trust { transition: none; }
}
