/* =====================================================
   SHARED MOBILE RESPONSIVE STYLES — AfolksDigital (v6)
   Breakpoints: 1024px | 768px | 480px | 360px
   Applied to: Learn AfolksDigital.html, ecommerce.html, index.html
   ===================================================== */

/* ── GLOBAL BOX-SIZING & OVERFLOW SAFETY ── */
*, *::before, *::after { 
    box-sizing: border-box; 
}

html, body { 
    overflow-x: hidden !important; 
    max-width: 100vw !important;
    position: relative;
}

img, video, canvas, iframe, embed, svg { 
    max-width: 100%; 
}

/* ── BASE DESKTOP DEFAULTS (Desktop > 1024px) ── */
.mobile-menu-toggle,
.mobile-nav-drawer,
.mobile-nav-overlay {
    display: none !important;
}

.nav-cta-btn {
    padding: 6px 14px !important;
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.nav-cta-btn i {
    font-size: 0.90rem !important;
}

.hero-stats-4inline-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-column: 1 / -1 !important;
    gap: 16px !important;
    margin-top: 32px !important;
    width: 100% !important;
}

/* ══════════════════════════════════════════
   TABLET  (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* --- HERO --- */
    .hero {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 36px 4% 24px !important;
        gap: 24px !important;
        min-width: 0 !important;
    }
    .hero > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .hero-content, .hero-text, .hero-left-content { 
        order: 1 !important; 
        text-align: left !important;
    }
    .hero-card-frame, .hero-right, .copilot-card-frame, .hero-video-column { 
        order: 2 !important; 
    }
    .hero-stats-4inline-row, .hero-stats-grid, .hero-stat-cards-row {
        order: 3 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .ai-tools-marquee-section, .ecom-marquee-container {
        order: 4 !important;
    }

    /* --- HIGHLIGHTS ROW (4 cards) --- */
    .highlights-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 0 16px !important;
        gap: 16px !important;
    }
    .highlights-connect-svg,
    .card-connector-badge {
        display: none !important;
    }

    /* --- MAIN LAYOUT GRIDS --- */
    .programs-grid, .ecom-programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
    .feedback-main-grid, .contact-grid, .feedback-layout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* --- PASSION STATS --- */
    .passion-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    /* --- LEARNING PATH --- */
    .learning-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* --- FOOTER --- */
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    /* --- VIDEO LOOP GRID --- */
    .video-loop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* --- STUDENTS ACTION GRID --- */
    .students-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* --- ECOM: STEPS GRID → 2 COL --- */
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* --- AI-TOOLS MARQUEE SECTION --- */
    .ai-tools-marquee-section, .ecom-marquee-container {
        margin-top: 20px !important;
        min-width: 0 !important;
    }
}


/* ══════════════════════════════════════════
   MOBILE  (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── SECTION PADDING & ALIGNMENT ── */
    .section {
        padding: 40px 4% !important;
    }
    .section-header {
        margin-bottom: 24px !important;
        text-align: center !important;
    }
    .section-header h2 {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
    }

    /* ── TOP SWITCHER BAR & TOUCH TARGETS ── */
    .academy-top-bar {
        font-size: 0.76rem !important;
        padding: 8px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .academy-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .academy-pills a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 36px !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }

    /* ── NAVBAR & MOBILE MENU TOGGLE ── */
    .navbar {
        padding: 10px 14px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        gap: 8px !important;
    }
    .navbar .logo,
    .navbar a.logo,
    a.logo {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .nav-links {
        display: none !important; /* Replaced by mobile drawer */
    }
    .nav-actions-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .nav-cta-btn { 
        padding: 4px 9px !important;
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        height: 28px !important;
        min-height: 28px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        line-height: 1 !important;
    }
    .nav-cta-btn i {
        font-size: 0.80rem !important;
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
        color: #7C3AED !important;
        background: rgba(124, 58, 237, 0.08) !important;
        border: 1.5px solid rgba(124, 58, 237, 0.2) !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .mobile-menu-toggle:hover {
        background: rgba(124, 58, 237, 0.15) !important;
        transform: scale(1.05);
    }

    /* ── MOBILE NAVIGATION DRAWER & OVERLAY ── */
    .mobile-nav-drawer {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #FFFFFF !important;
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25) !important;
        z-index: 100000 !important;
        flex-direction: column !important;
        padding: 24px 20px !important;
        gap: 10px !important;
        transform: translateX(105%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        pointer-events: none;
    }
    .mobile-nav-drawer.open {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
    .mobile-nav-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 14px !important;
        margin-bottom: 8px !important;
        border-bottom: 1.5px solid #F1F5F9 !important;
    }
    .mobile-nav-close-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #F1F5F9 !important;
        border: none !important;
        color: #64748B !important;
        font-size: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    .mobile-nav-drawer a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
        color: #1E293B !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
    }
    .mobile-nav-drawer a:hover,
    .mobile-nav-drawer a:active {
        background: #F5F3FF !important;
        color: #7C3AED !important;
    }
    .mobile-nav-cta-btn {
        margin-top: 14px !important;
        background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
        color: #FFFFFF !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        border-radius: 24px !important;
        font-weight: 800 !important;
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3) !important;
    }
    .mobile-menu-toggle.ecom-toggle {
        color: #059669 !important;
        background: rgba(16, 185, 129, 0.08) !important;
        border-color: rgba(16, 185, 129, 0.25) !important;
    }
    .mobile-nav-cta-btn.ecom-drawer-btn {
        background: linear-gradient(135deg, #059669, #10B981) !important;
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
    }
    .mobile-nav-overlay {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 99999 !important;
        opacity: 0;
        transition: opacity 0.35s ease !important;
    }
    .mobile-nav-overlay.open {
        display: block !important;
        opacity: 1 !important;
    }
    .contact-section {
        padding: 32px 18px !important;
        margin: 0 12px 40px !important;
        border-radius: 20px !important;
    }

    /* ── HERO SECTION & CSS FLEX SAFETY ── */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        padding: 24px 16px 20px !important;
        margin: 0 !important;
        gap: 18px !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .hero > * {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-content, .hero-text, .hero-left-content { 
        order: 1 !important; 
        text-align: left !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2 !important;
        padding: 4px 0 6px !important;
    }
    .hero-card-frame, .hero-right, .copilot-card-frame, .hero-video-column { 
        order: 2 !important; 
        width: 100% !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Hero Typography */
    .hero h1, .hero-text h1, .hero-main-h1 {
        font-size: clamp(1.7rem, 5.5vw, 2.1rem) !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        color: #0F172A !important;
        margin-bottom: 12px !important;
    }
    .hero p, .hero-text p, .hero-left-content > p {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
        color: #475569 !important;
    }
    .ecom-gradient-text, .hero-gradient-text, .hero h1 span {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Hero CTA & Actions */
    .hero-actions, .hero .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    .hero .btn-cta, .hero .btn-primary, .btn-ecom-cta, .btn-cta {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        min-height: 44px !important;
        padding: 12px 24px !important;
        font-size: 1rem !important;
        border-radius: 28px !important;
    }

    /* Hero Eyebrow Badge (Learn AI & Earn Online) */
    .hero-learn-earn-badge {
        display: inline-flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        font-size: 0.74rem !important;
        line-height: 1.45 !important;
        padding: 8px 14px !important;
        border-radius: 14px !important;
        background: #FFFFFF !important;
        border: 1.5px solid rgba(124, 58, 237, 0.22) !important;
        box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08) !important;
        max-width: 100% !important;
        width: auto !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }
    .hero-learn-earn-badge .online-pulse {
        margin-top: 4px !important;
        flex-shrink: 0 !important;
    }
    .hero-learn-earn-badge span {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        color: #6D28D9 !important;
        font-weight: 700 !important;
    }
    .hero-urgency {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
        white-space: normal !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Ambient Halo Glow on Video Frame */
    .copilot-card-frame::before {
        inset: -8px -6px !important;
        filter: blur(16px) !important;
        opacity: 0.65 !important;
    }
    .hero-video-column video,
    .hero-card-frame video,
    #heroVideo {
        width: 100% !important;
        max-height: 260px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }
    .hero-watermark-cover {
        top: 10px !important;
        left: 10px !important;
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
        z-index: 20 !important;
    }

    /* ── HERO STAT CARDS (4 Cards Grid) ── */
    .hero-stats-4inline-row,
    .hero-stats-grid,
    .hero-stat-cards-row,
    .under-video-stats-grid {
        order: 3 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 14px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .hero-stat-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        align-items: center !important;
    }
    .hero-stat-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 1.05rem !important;
        flex-shrink: 0 !important;
    }
    .hero-stat-num { 
        font-size: 1.22rem !important; 
        line-height: 1.15 !important;
        font-weight: 800 !important;
    }
    .hero-stat-label { 
        font-size: 0.74rem !important; 
        line-height: 1.2 !important;
        margin-top: 1px !important;
    }

    /* ── MARQUEE TICKERS (AI Tools & eCommerce Platforms) ── */
    .ai-tools-marquee-section,
    .ecom-marquee-container {
        order: 4 !important;
        margin-top: 16px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .ai-tools-marquee-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 10px !important;
        padding: 0 4% !important;
    }
    .ai-tools-marquee-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #FFFFFF !important;
        border: 1.5px solid rgba(124, 58, 237, 0.22) !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ai-tools-marquee-title {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        color: #5B21B6 !important;
        letter-spacing: 0.06em !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .ai-tools-marquee-section,
    .ecom-marquee-container {
        grid-column: 1 / -1 !important;
        margin-top: 14px !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%) !important;
    }
    .ai-tools-ticker-track,
    .ecom-ticker-track {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        width: max-content !important;
        max-width: none !important;
        will-change: transform !important;
    }
    .ticker-item,
    .ecom-ticker-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 7px 14px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }
    .ticker-item img,
    .ecom-ticker-item img {
        height: 22px !important;
        max-width: 75px !important;
        object-fit: contain !important;
    }
    .ticker-item span,
    .ecom-ticker-item p {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    /* ── HIGHLIGHTS ROW → 1 COLUMN ── */
    .highlights-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0 4% !important;
        gap: 12px !important;
        margin-bottom: 32px !important;
    }
    .highlights-connect-svg,
    .card-connector-badge {
        display: none !important;
    }
    .highlight-card { 
        padding: 16px 14px !important; 
        border-radius: 16px !important;
    }

    /* ── ALL CONTENT & FEATURE GRIDS → 1 COLUMN ── */
    .programs-section-wrap {
        padding: 56px 4% !important;
    }
    .programs-main-heading {
        font-size: 1.85rem !important;
        letter-spacing: -0.02em !important;
    }
    .programs-sub-heading {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 32px !important;
    }
    .program-card {
        padding: 24px 20px !important;
        border-radius: 20px !important;
    }
    .program-card-title {
        font-size: 1.6rem !important;
    }
    .program-best-for {
        font-size: 0.78rem !important;
        padding: 4px 10px !important;
        line-height: 1.35 !important;
    }
    .btn-program-saas {
        width: 100% !important;
        padding: 13px 20px !important;
    }
    .decision-helper-link {
        font-size: 0.82rem !important;
        padding: 8px 14px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .feedback-trust-bar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
        padding: 12px 18px !important;
        font-size: 0.82rem !important;
        border-radius: 20px !important;
        width: 100% !important;
    }
    .feedback-trust-divider {
        display: none !important;
    }
    .ai-demo-pill-badge {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }
    .student-project-card {
        width: 290px !important;
    }
    .programs-grid,
    .ecom-programs-grid,
    .learning-path-grid,
    .video-loop-grid,
    .hub-grid,
    .students-action-grid,
    .steps-grid,
    .contact-grid,
    .feedback-main-grid,
    .feedback-layout-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .learning-path-grid .learning-light-paths-svg {
        display: none !important;
    }
    .contact-form {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    /* ── REAL STUDENT PROOF SHOWCASE OVERHAUL (MOBILE) ── */
    .student-carousel-wrapper {
        margin: 0 -4% 14px !important;
        padding: 0 4% !important;
    }
    .student-tabs-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 10px !important;
        padding: 4px 4px 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .student-tab-card {
        flex: 0 0 auto !important;
        min-width: 195px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        scroll-snap-align: start !important;
    }
    .photo-showcase-frame {
        border-radius: 18px !important;
        margin-bottom: 24px !important;
    }
    .photo-frame-header {
        padding: 10px 14px !important;
        font-size: 0.78rem !important;
        flex-direction: column !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }
    .photo-showcase-body {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .photo-img-container {
        min-height: 240px !important;
        padding: 10px !important;
    }
    .photo-sidebar-card {
        border-left: none !important;
        border-top: 1.5px solid #E2E8F0 !important;
        padding: 16px 14px !important;
    }
    .photo-student-bio {
        gap: 10px !important;
        padding-bottom: 12px !important;
    }
    .photo-student-bio h3 {
        font-size: 1.05rem !important;
    }
    .photo-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }
    .photo-stat-box {
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }
    .photo-stat-box h4 {
        font-size: 1.05rem !important;
    }
    .photo-stat-box p {
        font-size: 0.65rem !important;
    }

    /* ── PASSION STATS ── */
    .passion-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    /* ── FOOTER MOBILIZATION & POLISH ── */
    footer, .footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 32px 20px 24px !important;
        margin: 0 12px 30px !important;
        border-radius: 20px !important;
        gap: 22px !important;
        box-sizing: border-box !important;
    }
    .footer-brand {
        text-align: left !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
    }
    .footer-brand .logo {
        font-size: 1.35rem !important;
    }
    .footer-brand p {
        font-size: 0.86rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        color: #94A3B8 !important;
    }
    .footer-col h5 {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
        color: #F8FAFC !important;
        border-left: 3px solid #7C3AED;
        padding-left: 8px;
    }
    .footer-col ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding-left: 0 !important;
    }
    .footer-col a {
        font-size: 0.85rem !important;
        color: #94A3B8 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        word-break: break-word !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
        font-size: 0.78rem !important;
        padding-top: 16px !important;
        margin-top: 8px !important;
        border-top: 1px solid rgba(148, 163, 184, 0.15) !important;
    }

    /* ── FLOATING WIDGETS & MODALS (Stack cleanly, no overlapping) ── */
    .hero-float-pill,
    .hero-bg-floating-icon,
    .hero-bg-watermark,
    #heroConstellationCanvas { 
        display: none !important; 
    }
    .mascot-widget,
    .mascot-bubble,
    .mascot-btn {
        display: none !important; /* Hide old redundant mascot; modern afolks-chat-launcher handles chat */
    }
    .fixed-widgets-container {
        position: fixed !important;
        bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        z-index: 99990 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        pointer-events: none !important;
    }
    .scroll-top-btn {
        pointer-events: auto !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
        border-radius: 50% !important;
        opacity: 0.9 !important;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
    }
    .afolks-chat-launcher {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 1.45rem !important;
        z-index: 99999 !important;
    }
    .afolks-voice-launcher {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        height: 44px !important;
        padding: 0 14px 0 10px !important;
        font-size: 0.82rem !important;
        z-index: 99998 !important;
    }
    .afolks-voice-bubble {
        display: none !important;
    }
    .afolks-chat-modal {
        right: 8px !important;
        left: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: 100% !important;
        max-height: 80vh !important;
        bottom: 74px !important;
        border-radius: 20px !important;
        z-index: 100001 !important;
    }
}


/* ══════════════════════════════════════════
   SMALL PHONES  (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Hero Typography */
    .hero h1, .hero-text h1, .hero-main-h1 { 
        font-size: clamp(1.5rem, 5.5vw, 1.8rem) !important; 
    }
    .hero p, .hero-text p, .hero-left-content > p { 
        font-size: 0.88rem !important; 
    }

    /* Stat Cards → 2 compact columns (or 1 column if sub-380px) */
    .hero-stats-4inline-row,
    .hero-stats-grid,
    .hero-stat-cards-row,
    .under-video-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .hero-stat-card {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    .hero-stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }
    .hero-stat-num {
        font-size: 1.1rem !important;
    }
    .hero-stat-label {
        font-size: 0.7rem !important;
    }

    /* Grids to 1 Column */
    .passion-stats-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    /* Section Spacing */
    .section { 
        padding: 32px 3.5% !important; 
    }
    .nav-links { 
        font-size: 0.75rem !important; 
        gap: 6px 8px !important; 
    }
    .hero-trust-badge {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    .hero-flags-pill { 
        font-size: 0.68rem !important; 
        padding: 5px 10px !important; 
    }
}


/* ══════════════════════════════════════════
   TINY PHONES  (≤ 360px)
══════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero h1, .hero-text h1, .hero-main-h1 { 
        font-size: 1.4rem !important; 
    }
    .navbar { 
        padding: 8px 12px !important; 
    }
    .nav-links { 
        font-size: 0.7rem !important; 
        gap: 4px 6px !important; 
    }
    .hero-stats-4inline-row,
    .hero-stats-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .hero-trust-badge { 
        font-size: 0.6rem !important; 
    }
    .section { 
        padding: 24px 3% !important; 
    }
}

/* ══════════════════════════════════════════
   FUNNEL & DECISION MATRIX RESPONSIVE STYLES (v14)
══════════════════════════════════════════ */
.hero-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.hero-spec-pill {
    background: #FFFFFF;
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4C1D95;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
}
.delivery-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.delivery-toggle-btn {
    background: #FFFFFF;
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.delivery-toggle-btn:hover {
    border-color: #7C3AED;
    color: #7C3AED;
}
.delivery-toggle-btn.active {
    background: #7C3AED;
    color: #FFFFFF;
    border-color: #7C3AED;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.mobile-table-swipe-hint {
    display: none;
}
.decision-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.decision-table th, .decision-table td {
    padding: 14px 16px;
}
@media (max-width: 768px) {
    .hero-specs-row {
        gap: 6px;
    }
    .hero-spec-pill {
        font-size: 0.74rem !important;
        padding: 5px 10px !important;
    }
    .delivery-toggle-btn {
        font-size: 0.76rem !important;
        padding: 6px 12px !important;
    }
    .mobile-table-swipe-hint {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: rgba(124, 58, 237, 0.08);
        color: #7C3AED;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 8px 14px;
        border-radius: 20px;
        margin-bottom: 12px;
        border: 1px dashed rgba(124, 58, 237, 0.25);
        text-align: center;
    }
    .decision-table-wrap {
        padding: 14px 10px !important;
        border-radius: 18px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.06) !important;
    }
    .decision-table {
        min-width: 560px !important;
        font-size: 0.84rem !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }
    .decision-table th,
    .decision-table td {
        padding: 10px 12px !important;
        line-height: 1.4 !important;
        border-bottom: 1px solid #F1F5F9 !important;
    }
    .decision-table th:first-child,
    .decision-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        z-index: 5 !important;
        box-shadow: 4px 0 10px rgba(15, 23, 42, 0.08) !important;
        min-width: 140px !important;
        max-width: 155px !important;
        border-right: 1.5px solid #E2E8F0 !important;
    }
    .decision-table thead tr th:first-child {
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        z-index: 6 !important;
        border-bottom: 2px solid #E2E8F0 !important;
    }
}

