/**
 * IMT Montessori Academic Book Fair & 3D Exhibition
 * Designed following landing-page-design & redesign-existing-projects specifications
 * Spacing, typography, radii, motion, and contrast verified.
 */

:root {
    /* Brand Palette */
    --bf-navy: #12345A;
    --bf-navy-dark: #0A1C33;
    --bf-navy-soft: #1E4670;
    --bf-mint: #EAF5F0;
    --bf-mint-accent: #2E7D5B;
    --bf-cream: #FAF7F2;
    --bf-surface: #FFFFFF;
    --bf-border: #E5E9EE;
    --bf-text-main: #181818;
    --bf-text-muted: #5A6A7E;
    --bf-gold: #C29338;
    --bf-gold-light: #FFF8E7;

    /* Spacing Tokens */
    --sp-0: 0px;
    --sp-25: 2px;
    --sp-50: 4px;
    --sp-75: 8px;
    --sp-100: 12px;
    --sp-200: 16px;
    --sp-300: 24px;
    --sp-400: 32px;
    --sp-500: 40px;
    --sp-600: 48px;
    --sp-700: 64px;
    --sp-800: 80px;
    --sp-900: 96px;

    /* Motion Curve */
    --ease-base: cubic-bezier(0.22, 1, 0.36, 1);
}

.imt-book-fair-page {
    background-color: var(--bf-cream);
    color: var(--bf-text-main);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Base typography utilities */
.imt-book-fair-page h1,
.imt-book-fair-page h2,
.imt-book-fair-page h3,
.imt-book-fair-page h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    margin: 0;
}

.imt-book-fair-page p {
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    text-wrap: pretty;
    margin: 0;
}

.bf-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: var(--sp-300);
    padding-right: var(--sp-300);
}

/* 1. Sub-nav Breadcrumb Strip */
.bf-subnav-strip {
    background: var(--bf-surface);
    border-bottom: 1px solid var(--bf-border);
    padding: var(--sp-100) 0;
}

.bf-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-100);
}

.bf-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--sp-75);
    font-size: 13px;
    color: var(--bf-text-muted);
}

.bf-breadcrumbs a {
    color: var(--bf-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s var(--ease-base);
}

.bf-breadcrumbs a:hover {
    color: var(--bf-mint-accent);
}

.bf-subnav-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bf-mint);
    color: var(--bf-mint-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* 2. Hero Section */
.bf-hero-section {
    padding: var(--sp-700) 0 var(--sp-800);
    background: var(--bf-cream);
    position: relative;
}

.bf-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-600);
    align-items: center;
}

.bf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bf-gold-light);
    color: var(--bf-gold);
    border: 1px solid rgba(194, 147, 56, 0.25);
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: var(--sp-200);
}

.bf-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--bf-navy);
    background: linear-gradient(135deg, #0A1C33 0%, #1E4670 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 680px;
    margin-bottom: var(--sp-200);
    letter-spacing: -0.5px;
}

.bf-hero-desc {
    font-size: 18px;
    color: var(--bf-text-muted);
    max-width: 620px;
    margin-bottom: var(--sp-400);
    line-height: 1.7;
}

.bf-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-200);
    margin-bottom: var(--sp-400);
    flex-wrap: wrap;
}

.bf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bf-navy);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease-base);
    box-shadow: 0 4px 16px rgba(18, 52, 90, 0.22);
}

.bf-btn-primary:hover {
    background: var(--bf-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 52, 90, 0.30);
}

.bf-btn-primary:active {
    transform: scale(0.98);
}

.bf-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bf-surface);
    color: var(--bf-navy) !important;
    border: 1px solid var(--bf-border);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-base);
}

.bf-btn-secondary:hover {
    border-color: var(--bf-navy);
    background: #f8fafc;
}

.bf-hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--bf-text-muted);
    font-weight: 500;
}

.bf-proof-stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

/* Hero Visual Composition & Video */
.bf-hero-visual-card {
    position: relative;
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 24px;
    padding: var(--sp-400);
    box-shadow: 0 20px 48px rgba(18, 52, 90, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bf-hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    margin: 0 auto var(--sp-300);
    border-radius: 18px;
    overflow: hidden;
    background: #090f16;
    box-shadow: 0 16px 36px rgba(18, 52, 90, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bf-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.bf-hero-pill-float {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 52, 90, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 5;
}

/* Polish Overrides for 3D Library UI */
.imt-library-header {
    top: 16px !important;
    right: 16px !important;
    left: 16px !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.imt-camera-controls {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 4px 8px !important;
}

.imt-cam-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.imt-drawer-actions .imt-btn-return,
.imt-drawer-actions .imt-btn-catalog {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.imt-drawer-actions .mr-8 {
    margin: 0 !important;
}

.bf-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: bfPulse 2s infinite ease-in-out;
}

@keyframes bfPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

.bf-hero-card-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.bf-hero-badge-tag {
    background: var(--bf-mint);
    color: var(--bf-mint-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.bf-hero-book-stage {
    position: relative;
    width: 220px;
    height: 310px;
    perspective: 1000px;
    margin: var(--sp-200) auto var(--sp-300);
}

/* 3D Academic Library Showcase Section */
.bf-3d-library-showcase {
    padding: var(--sp-800) 0;
    background: #090f16;
    color: #ffffff;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-3d-library-showcase .bf-section-badge {
    background: rgba(212, 175, 55, 0.15);
    color: #eab308;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bf-3d-library-showcase .bf-section-title {
    color: #ffffff;
}

.bf-3d-library-showcase .bf-section-desc {
    color: #94a3b8;
}

.bf-hero-book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(6deg);
    transition: transform 0.6s var(--ease-base);
    box-shadow: -15px 18px 36px rgba(18, 52, 90, 0.25);
    border-radius: 6px;
}

.bf-hero-book-3d:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.04);
}

.bf-hero-book-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 8px 8px 4px;
    display: block;
}

.bf-hero-pill-float {
    position: absolute;
    bottom: -12px;
    background: var(--bf-navy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(18, 52, 90, 0.3);
}

.bf-hero-card-meta {
    margin-top: var(--sp-200);
}

.bf-hero-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bf-navy);
    margin-bottom: 4px;
}

.bf-hero-card-sub {
    font-size: 13px;
    color: var(--bf-text-muted);
}

/* 3. Mandatory Tagline Reveal Section (B11) */
.bf-tagline-reveal-section {
    padding: var(--sp-800) 0;
    background: var(--bf-surface);
    border-top: 1px solid var(--bf-border);
    border-bottom: 1px solid var(--bf-border);
    text-align: center;
}

.bf-tagline-quote {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--bf-navy);
    max-width: 880px;
    margin: 0 auto;
}

.bf-reveal-word {
    opacity: 0.25;
    transition: opacity 0.5s var(--ease-base), color 0.5s var(--ease-base);
    display: inline-block;
    margin: 0 3px;
}

.bf-reveal-word.is-revealed {
    opacity: 1;
    color: var(--bf-navy);
}

.bf-tagline-author {
    margin-top: var(--sp-300);
    font-size: 15px;
    font-weight: 700;
    color: var(--bf-gold);
    display: block;
}

/* 4. Interactive 3D Exhibition Gallery */
.bf-gallery-section {
    padding: var(--sp-800) 0;
    background: var(--bf-cream);
}

.bf-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-600);
}

.bf-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bf-mint);
    color: var(--bf-mint-accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: var(--sp-100);
}

.bf-section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--bf-navy);
    margin-bottom: var(--sp-100);
}

.bf-section-desc {
    font-size: 16px;
    color: var(--bf-text-muted);
}

/* Category Filter Tabs */
.bf-filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--sp-100);
    margin-bottom: var(--sp-500);
    flex-wrap: wrap;
}

.bf-filter-btn {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    color: var(--bf-text-muted);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-base);
}

.bf-filter-btn:hover {
    color: var(--bf-navy);
    border-color: var(--bf-navy-soft);
}

.bf-filter-btn.is-active {
    background: var(--bf-navy);
    color: #ffffff;
    border-color: var(--bf-navy);
    box-shadow: 0 4px 12px rgba(18, 52, 90, 0.2);
}

/* Books Grid */
.bf-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-400);
}

.bf-book-card {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-base), box-shadow 0.4s var(--ease-base), border-color 0.4s var(--ease-base);
    position: relative;
}

.bf-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(18, 52, 90, 0.12);
    border-color: rgba(18, 52, 90, 0.25);
}

.bf-card-visual {
    background: #F2EDE4;
    padding: var(--sp-400) var(--sp-300) var(--sp-300);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--bf-border);
    cursor: pointer;
}

.bf-book-cover-wrap {
    width: 160px;
    height: 228px;
    position: relative;
    box-shadow: -8px 12px 24px rgba(18, 52, 90, 0.22);
    border-radius: 4px 6px 6px 4px;
    transition: transform 0.4s var(--ease-base);
}

.bf-book-card:hover .bf-book-cover-wrap {
    transform: scale(1.04) rotateY(-6deg);
}

.bf-book-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 6px 6px 4px;
    display: block;
}

.bf-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bf-navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.bf-card-age {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(18, 52, 90, 0.08);
    color: var(--bf-navy);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(18, 52, 90, 0.15);
}

.bf-btn-3d-trigger-overlay {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background: rgba(18, 52, 90, 0.90);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.bf-card-visual:hover .bf-btn-3d-trigger-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bf-card-body {
    padding: var(--sp-300);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bf-card-author {
    font-size: 13px;
    color: var(--bf-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.bf-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-navy);
    margin-bottom: 6px;
}

.bf-card-sub {
    font-size: 13px;
    color: var(--bf-text-muted);
    margin-bottom: var(--sp-200);
    line-height: 1.5;
}

.bf-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-300) 0;
    border-top: 1px dashed var(--bf-border);
    padding-top: var(--sp-200);
    flex-grow: 1;
}

.bf-card-features li {
    font-size: 13px;
    color: var(--bf-text-muted);
    margin-bottom: 6px;
    position: relative;
    padding-right: 18px;
    line-height: 1.5;
}

.bf-card-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--bf-mint-accent);
    font-weight: 700;
}

.bf-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: var(--sp-200);
    border-top: 1px solid var(--bf-border);
    flex-wrap: wrap;
}

.bf-btn-card-3d {
    background: var(--bf-mint);
    color: var(--bf-mint-accent);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bf-btn-card-3d:hover {
    background: #d4ece1;
    transform: translateY(-1px);
}

.bf-btn-card-poster {
    background: #f8fafc;
    color: var(--bf-navy);
    border: 1px solid var(--bf-border);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bf-btn-card-poster:hover {
    background: #ffffff;
    border-color: var(--bf-navy-soft);
    transform: translateY(-1px);
}

.bf-btn-card-buy {
    flex-grow: 1;
    background: var(--bf-navy);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s var(--ease-base);
    box-shadow: 0 4px 12px rgba(18, 52, 90, 0.16);
    white-space: nowrap;
}

.bf-btn-card-buy:hover {
    background: var(--bf-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 52, 90, 0.26);
}

.bf-buy-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.bf-btn-card-buy:hover .bf-buy-arrow {
    transform: translateX(-3px);
}

/* Poster Lightbox Modal */
.bf-poster-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-300);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bf-poster-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.bf-poster-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.88);
    backdrop-filter: blur(8px);
}

.bf-poster-modal-dialog {
    position: relative;
    z-index: 2;
    background: var(--bf-surface);
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bf-poster-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bf-border);
    background: #f8fafc;
}

.bf-poster-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bf-navy);
}

.bf-poster-modal-body {
    padding: 20px;
    overflow-y: auto;
    text-align: center;
    background: #0d1724;
}

.bf-poster-modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.bf-poster-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--bf-border);
    background: #f8fafc;
}

.bf-btn-card-buy:hover {
    background: var(--bf-navy-dark);
}

/* 5. Photorealistic 3D Inspector Modal */
.bf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-300);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-base);
}

.bf-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 51, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bf-modal-dialog {
    position: relative;
    background: var(--bf-surface);
    border-radius: 24px;
    width: 100%;
    max-width: 1040px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.4s var(--ease-base);
}

.bf-modal.is-active .bf-modal-dialog {
    transform: scale(1);
}

.bf-modal-close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: var(--bf-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s var(--ease-base);
}

.bf-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

/* 3D Viewport Column inside Modal */
.bf-modal-canvas-col {
    background: #0E1622;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--sp-300);
    border-radius: 0 24px 24px 0;
    overflow: hidden;
}

#bf-modal-3d-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
    display: block;
}

#bf-modal-3d-canvas:active {
    cursor: grabbing;
}

.bf-canvas-hud-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 54px;
}

.bf-canvas-hud-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.bf-canvas-hud-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.bf-btn-canvas-flip {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s;
}

.bf-btn-canvas-flip:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Modal Info Column */
.bf-modal-info-col {
    padding: var(--sp-500) var(--sp-400);
    display: flex;
    flex-direction: column;
}

.bf-modal-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--bf-gold);
    margin-bottom: 6px;
}

.bf-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--bf-navy);
    margin-bottom: 4px;
}

.bf-modal-sub {
    font-size: 14px;
    color: var(--bf-text-muted);
    margin-bottom: var(--sp-300);
}

.bf-modal-summary {
    font-size: 14px;
    color: var(--bf-text-main);
    line-height: 1.7;
    margin-bottom: var(--sp-300);
    padding: var(--sp-200);
    background: var(--bf-cream);
    border-radius: 12px;
}

.bf-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: var(--sp-400);
}

.bf-spec-item {
    background: #f8fafc;
    border: 1px solid var(--bf-border);
    padding: 8px 12px;
    border-radius: 8px;
}

.bf-spec-label {
    font-size: 11px;
    color: var(--bf-text-muted);
    display: block;
}

.bf-spec-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--bf-navy);
}

.bf-modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-100);
}

.bf-modal-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bf-navy);
    color: #ffffff !important;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease-base);
    box-shadow: 0 4px 16px rgba(18, 52, 90, 0.25);
}

.bf-modal-buy-btn:hover {
    background: var(--bf-navy-dark);
    transform: translateY(-2px);
}

.bf-modal-store-all-link {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--bf-navy);
    text-decoration: underline;
    cursor: pointer;
}

/* 6. Benefits Section */
.bf-benefits-section {
    padding: var(--sp-800) 0;
    background: var(--bf-surface);
    border-top: 1px solid var(--bf-border);
}

.bf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-300);
}

.bf-benefit-card {
    background: var(--bf-cream);
    border: 1px solid var(--bf-border);
    border-radius: 16px;
    padding: var(--sp-400) var(--sp-300);
    transition: transform 0.3s var(--ease-base);
}

.bf-benefit-card:hover {
    transform: translateY(-4px);
}

.bf-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-200);
    color: var(--bf-navy);
}

.bf-benefit-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bf-navy);
    margin-bottom: 8px;
}

.bf-benefit-desc {
    font-size: 14px;
    color: var(--bf-text-muted);
    line-height: 1.6;
}

/* 7. How it Works (3 Steps) */
.bf-steps-section {
    padding: var(--sp-800) 0;
    background: var(--bf-cream);
}

.bf-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-400);
    position: relative;
}

.bf-step-card {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 20px;
    padding: var(--sp-400);
    position: relative;
}

.bf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bf-mint);
    color: var(--bf-mint-accent);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: var(--sp-200);
}

.bf-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bf-navy);
    margin-bottom: 8px;
}

.bf-step-desc {
    font-size: 14px;
    color: var(--bf-text-muted);
    line-height: 1.6;
}

/* 8. FAQ Section */
.bf-faq-section {
    padding: var(--sp-800) 0;
    background: var(--bf-surface);
    border-top: 1px solid var(--bf-border);
}

.bf-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-300);
    max-width: 1040px;
    margin: 0 auto;
}

.bf-faq-card {
    background: var(--bf-cream);
    border: 1px solid var(--bf-border);
    border-radius: 16px;
    padding: var(--sp-300);
}

.bf-faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--bf-navy);
    margin-bottom: 8px;
}

.bf-faq-answer {
    font-size: 14px;
    color: var(--bf-text-muted);
    line-height: 1.65;
}

/* 9. Final CTA Banner */
.bf-final-cta-section {
    padding: var(--sp-800) 0;
    background: var(--bf-navy);
    color: #ffffff;
    text-align: center;
}

.bf-final-cta-box {
    max-width: 720px;
    margin: 0 auto;
}

.bf-final-cta-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--sp-200);
}

.bf-final-cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--sp-400);
    line-height: 1.65;
}

.bf-final-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--bf-navy) !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s var(--ease-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bf-final-cta-btn:hover {
    background: var(--bf-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .bf-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bf-hero-title,
    .bf-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .bf-hero-actions,
    .bf-hero-proof {
        justify-content: center;
    }

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

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

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

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

    .bf-modal-dialog {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .bf-modal-canvas-col {
        min-height: 360px;
        border-radius: 24px 24px 0 0;
    }
}

@media (max-width: 640px) {
    .bf-hero-title {
        font-size: 30px;
    }

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

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

    .bf-tagline-quote {
        font-size: 22px;
    }

    .bf-modal {
        padding: 8px;
    }
}
