/* ================================================================
   Footer buyer app block — dynamic layouts
   ================================================================ */

/* ── Base ─────────────────────────────────────────────────────── */
.footer-buyer-app-wrap { margin-bottom: 40px; }
.footer-buyer-app {
    background:
        url("data:image/svg+xml,%3Csvg width='44' height='44' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='22' cy='22' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='44' cy='0' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='0' cy='44' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='44' cy='44' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center/44px 44px,
        linear-gradient(135deg, #0d1b2a 0%, #162540 55%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    align-items: stretch;
    margin-top: -70px;
    margin-left: 40px;
    margin-right: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Right content panel — gradient (order: 2 moves it right) */
.footer-buyer-app .footer-app-content {
    padding: 48px 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    z-index: 1;
    order: 2;
}

/* Decorative glow blobs */
.footer-buyer-app::before {
    content: '';
    position: absolute; top: -80px; right: -60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none; z-index: 0;
}
.footer-buyer-app::after {
    content: '';
    position: absolute; bottom: -60px; left: 30%;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none; z-index: 0;
}

/* Content typography */
.footer-buyer-app .footer-app-content small {
    color: rgba(255,255,255,0.88); font-size: 12px; letter-spacing: 1.4px;
    font-weight: 700; text-transform: uppercase;
    display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.footer-buyer-app .footer-app-content small::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
}
.footer-buyer-app .footer-app-content h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1;
    margin: 0 0 16px; font-weight: 800; color: #fff;
}
.footer-buyer-app .footer-app-content h2 span {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.35);
    text-underline-offset: 4px;
}
.footer-buyer-app .footer-app-content p {
    color: rgba(255,255,255,0.82); font-size: 15.5px; line-height: 1.7;
    max-width: 640px; margin-bottom: 32px;
}
.footer-buyer-app .feature-row { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-buyer-app .feature-box { display: flex; align-items: center; gap: 11px; }
.footer-buyer-app .feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; flex-shrink: 0;
    transition: background .25s, transform .25s;
}
.footer-buyer-app .feature-box:hover .feature-icon { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.footer-buyer-app .feature-box span { font-size: 13.5px; color: rgba(255,255,255,0.9); line-height: 1.5; white-space: pre-line; font-weight: 500; }

/* Left download panel — dark glass (order: 1 moves it left) */
.footer-buyer-app .download-side {
    padding: 44px 32px;
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.09);
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-buyer-app .download-side h3 {
    font-size: 15px; margin-bottom: 18px; font-weight: 700;
    color: rgba(255,255,255,0.9); letter-spacing: 0.2px;
}

/* QR code box */
.footer-buyer-app .qr-box {
    width: 100%; height: auto; aspect-ratio: 1;
    background: #fff; border-radius: 14px;
    padding: 10px; margin: 0 0 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,255,255,0.08);
}
.footer-buyer-app .qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Store badge buttons — white badge style, stacked */
.footer-buyer-app .store-btn,
.footer-buyer-app a.store-btn {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; cursor: pointer;
    transition: transform .22s, box-shadow .22s, background .22s;
    text-decoration: none; color: #111827;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.footer-buyer-app .store-btn:hover,
.footer-buyer-app a.store-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    color: #111827;
}
.footer-buyer-app .store-btn i { font-size: 26px; color: #111827; flex-shrink: 0; }
.footer-buyer-app .store-btn span { display: block; color: #6b7280; font-size: 9px; font-weight: 500; }
.footer-buyer-app .store-btn strong { font-size: 12.5px; color: #111827; font-weight: 700; }

.footer-buyer-app .mobile-image { text-align: center; }
.footer-buyer-app .mobile-image img { width: 220px; max-width: 100%; filter: drop-shadow(0 25px 40px rgba(0,0,0,0.5)); }

/* ── Layout: banner_qr_bottom ─────────────────────────────────── */
.footer-buyer-app.layout-banner_qr_bottom { grid-template-columns: 1fr; }
.footer-buyer-app.layout-banner_qr_bottom .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 28px;
    display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 18px; align-items: start;
}
.footer-buyer-app.layout-banner_qr_bottom .download-side h3 { grid-column: 1/-1; }

/* ── Layout: compact_inline ───────────────────────────────────── */
.footer-buyer-app.layout-compact_inline {
    grid-template-columns: 1fr auto; padding: 26px 30px;
    margin-left: 20px; margin-right: 20px; border-radius: 22px;
}
.footer-buyer-app.layout-compact_inline .footer-app-content p { margin-bottom: 18px; font-size: 14px; }
.footer-buyer-app.layout-compact_inline .feature-row { gap: 18px; }
.footer-buyer-app.layout-compact_inline .download-side { border-left: none; padding-left: 0; min-width: 200px; }

/* ── Layout: minimal_strip ────────────────────────────────────── */
.footer-buyer-app.layout-minimal_strip {
    grid-template-columns: 1fr auto auto; gap: 20px;
    padding: 20px 28px; border-radius: 18px; margin-top: -36px;
}
.footer-buyer-app.layout-minimal_strip .footer-app-content p { display: none; }
.footer-buyer-app.layout-minimal_strip .feature-row { display: none; }
.footer-buyer-app.layout-minimal_strip .footer-app-content h2 { margin: 6px 0; font-size: 1.3rem; }
.footer-buyer-app.layout-minimal_strip .download-side {
    border-left: none; padding-left: 0; display: flex; align-items: center; gap: 14px;
}
.footer-buyer-app.layout-minimal_strip .download-side h3 { margin: 0; font-size: 13px; white-space: nowrap; }
.footer-buyer-app.layout-minimal_strip .qr-box { width: 72px; height: 72px; margin: 0; padding: 7px; }
.footer-buyer-app.layout-minimal_strip .store-btn,
.footer-buyer-app.layout-minimal_strip a.store-btn { width: auto; min-width: 170px; margin-bottom: 0; }

/* ── Layout: full_banner ──────────────────────────────────────── */
.footer-buyer-app.layout-full_banner {
    grid-template-columns: 1fr;
    margin-left: 0; margin-right: 0; border-radius: 0;
    padding: 56px 60px;
    text-align: center;
}
.footer-buyer-app.layout-full_banner .footer-app-content h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 18px; }
.footer-buyer-app.layout-full_banner .footer-app-content p { font-size: 18px; max-width: 680px; margin-left: auto; margin-right: auto; }
.footer-buyer-app.layout-full_banner .feature-row { justify-content: center; gap: 32px; margin-bottom: 32px; }
.footer-buyer-app.layout-full_banner .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 32px;
    display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.footer-buyer-app.layout-full_banner .download-side h3 { margin: 0; font-size: 16px; }
.footer-buyer-app.layout-full_banner .qr-box { margin: 0; width: 100px; height: 100px; }
.footer-buyer-app.layout-full_banner .store-btn,
.footer-buyer-app.layout-full_banner a.store-btn { width: auto; min-width: 190px; margin-bottom: 0; }

/* ── Layout: cards_row ────────────────────────────────────────── */
.footer-buyer-app.layout-cards_row {
    grid-template-columns: 1fr;
    padding: 40px;
}
.footer-buyer-app.layout-cards_row .feature-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px; margin-bottom: 28px;
}
.footer-buyer-app.layout-cards_row .feature-box {
    flex-direction: column; text-align: center;
    background: rgba(255,255,255,0.06); border-radius: 16px;
    padding: 20px 16px; border: 1px solid rgba(255,255,255,0.1);
    transition: all .3s;
}
.footer-buyer-app.layout-cards_row .feature-box:hover {
    background: rgba(255,255,255,0.1); transform: translateY(-4px);
}
.footer-buyer-app.layout-cards_row .feature-icon { margin-bottom: 10px; width: 56px; height: 56px; }
.footer-buyer-app.layout-cards_row .feature-box span { text-align: center; white-space: normal; }
.footer-buyer-app.layout-cards_row .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 28px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-buyer-app.layout-cards_row .download-side h3 { margin: 0; font-size: 15px; }
.footer-buyer-app.layout-cards_row .qr-box { margin: 0; }
.footer-buyer-app.layout-cards_row .store-btn,
.footer-buyer-app.layout-cards_row a.store-btn { width: auto; min-width: 185px; margin-bottom: 0; }

/* ── Layout: dark_split ───────────────────────────────────────── */
.footer-buyer-app.layout-dark_split {
    background: linear-gradient(135deg, #020817 0%, #0f1b30 100%);
    border: 1px solid rgba(94,162,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.footer-buyer-app.layout-dark_split .footer-app-content small { color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .footer-app-content h2 span { color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .feature-icon { background: rgba(126,179,255,0.12); color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .download-side { border-left-color: rgba(94,162,255,0.15); }
.footer-buyer-app.layout-dark_split .store-btn,
.footer-buyer-app.layout-dark_split a.store-btn {
    background: rgba(255,255,255,0.04); border-color: rgba(94,162,255,0.2);
}
.footer-buyer-app.layout-dark_split .store-btn:hover,
.footer-buyer-app.layout-dark_split a.store-btn:hover { background: rgba(94,162,255,0.12); border-color: rgba(94,162,255,0.4); }

/* ── Layout: neon_glow ────────────────────────────────────────── */
.footer-buyer-app.layout-neon_glow {
    background: #0a0a0f;
    border: 1px solid rgba(100,220,200,0.2);
    box-shadow: 0 0 60px rgba(100,220,200,0.07), 0 16px 48px rgba(0,0,0,0.4);
}
.footer-buyer-app.layout-neon_glow::before {
    background: radial-gradient(circle, rgba(100,220,200,0.15), transparent 70%);
}
.footer-buyer-app.layout-neon_glow .footer-app-content small { color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .footer-app-content h2 span { color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .feature-icon { background: rgba(100,220,200,0.1); color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .download-side { border-left-color: rgba(100,220,200,0.15); }
.footer-buyer-app.layout-neon_glow .store-btn,
.footer-buyer-app.layout-neon_glow a.store-btn {
    background: rgba(100,220,200,0.06); border-color: rgba(100,220,200,0.15);
}
.footer-buyer-app.layout-neon_glow .store-btn:hover,
.footer-buyer-app.layout-neon_glow a.store-btn:hover {
    background: rgba(100,220,200,0.12); border-color: rgba(100,220,200,0.3);
    box-shadow: 0 0 20px rgba(100,220,200,0.15);
}
.footer-buyer-app.layout-neon_glow .qr-box { border: 2px solid rgba(100,220,200,0.3); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .footer-buyer-app-wrap { margin-bottom: 28px; }
    .footer-buyer-app {
        grid-template-columns: 1fr;
        margin-left: 16px; margin-right: 16px;
        margin-top: -44px;
        border-radius: 20px;
    }
    .footer-buyer-app .footer-app-content { padding: 32px 28px; }
    .footer-buyer-app .download-side {
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.09);
        padding: 28px;
        text-align: center;
    }
    .footer-buyer-app .download-side h3 { text-align: center; }
    .footer-buyer-app .mobile-image img { width: 180px; }
    .footer-buyer-app.layout-minimal_strip { grid-template-columns: 1fr; gap: 14px; }
    .footer-buyer-app.layout-minimal_strip .download-side { flex-wrap: wrap; justify-content: center; }
    .footer-buyer-app.layout-minimal_strip .store-btn,
    .footer-buyer-app.layout-minimal_strip a.store-btn { width: 100%; min-width: unset; }
    .footer-buyer-app.layout-full_banner { padding: 36px 24px; border-radius: 20px; }
    .footer-buyer-app.layout-full_banner .download-side { gap: 16px; }
    .footer-buyer-app.layout-full_banner .store-btn,
    .footer-buyer-app.layout-full_banner a.store-btn { min-width: 170px; }
    .footer-buyer-app.layout-cards_row .download-side { justify-content: center; }
    .footer-buyer-app.layout-cards_row .store-btn,
    .footer-buyer-app.layout-cards_row a.store-btn { min-width: unset; width: 100%; }
    .footer-buyer-app.layout-compact_inline { grid-template-columns: 1fr; padding: 28px 22px; margin-left: 16px; margin-right: 16px; }
    .footer-buyer-app.layout-compact_inline .download-side { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; }
    .footer-buyer-app.layout-banner_qr_bottom .download-side { grid-template-columns: 1fr; gap: 14px; text-align: center; }
}
@media (max-width: 768px) {
    .footer-buyer-app-wrap { margin-bottom: 20px; }
    .footer-buyer-app {
        margin-left: 12px; margin-right: 12px;
        margin-top: -36px; border-radius: 18px;
    }
    .footer-buyer-app::before { width: 220px; height: 220px; top: -60px; left: -40px; }
    .footer-buyer-app .footer-app-content { padding: 26px 22px; }
    .footer-buyer-app .footer-app-content small { font-size: 11px; margin-bottom: 8px; }
    .footer-buyer-app .footer-app-content h2 { font-size: 22px; margin-bottom: 10px; }
    .footer-buyer-app .footer-app-content p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
    .footer-buyer-app .feature-row { gap: 14px; }
    .footer-buyer-app .feature-icon { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
    .footer-buyer-app .feature-box span { font-size: 13px; }
    .footer-buyer-app .download-side { padding: 22px 18px; }
    .footer-buyer-app .download-side h3 { font-size: 14px; margin-bottom: 14px; }
    .footer-buyer-app .qr-box { width: 100px; height: 100px; border-radius: 10px; padding: 8px; margin-bottom: 14px; }
    .footer-buyer-app .store-btn,
    .footer-buyer-app a.store-btn { padding: 10px 13px; gap: 10px; border-radius: 10px; margin-bottom: 8px; }
    .footer-buyer-app .store-btn i { font-size: 26px; }
    .footer-buyer-app .store-btn span { font-size: 9px; }
    .footer-buyer-app .store-btn strong { font-size: 13px; }
    .footer-buyer-app .mobile-image img { width: 150px; }

    .footer-buyer-app.layout-full_banner { padding: 28px 18px; }
    .footer-buyer-app.layout-full_banner .footer-app-content h2 { font-size: 22px; }
    .footer-buyer-app.layout-full_banner .footer-app-content p { font-size: 14px; }
    .footer-buyer-app.layout-full_banner .feature-row { gap: 16px; margin-bottom: 22px; }
    .footer-buyer-app.layout-full_banner .download-side { padding-top: 22px; gap: 14px; flex-direction: column; align-items: center; }
    .footer-buyer-app.layout-full_banner .store-btn,
    .footer-buyer-app.layout-full_banner a.store-btn { min-width: unset; width: 100%; max-width: 280px; }
    .footer-buyer-app.layout-full_banner .qr-box { width: 90px; height: 90px; }

    .footer-buyer-app.layout-cards_row { padding: 24px 18px; }
    .footer-buyer-app.layout-cards_row .feature-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
    .footer-buyer-app.layout-cards_row .feature-box { padding: 14px 12px; }
    .footer-buyer-app.layout-cards_row .feature-icon { width: 44px; height: 44px; margin-bottom: 8px; }
    .footer-buyer-app.layout-cards_row .download-side { flex-direction: column; align-items: center; gap: 14px; }
    .footer-buyer-app.layout-cards_row .store-btn,
    .footer-buyer-app.layout-cards_row a.store-btn { width: 100%; min-width: unset; max-width: 280px; }

    .footer-buyer-app.layout-minimal_strip .footer-app-content h2 { font-size: 1.1rem; }
    .footer-buyer-app.layout-minimal_strip .download-side { gap: 10px; }
    .footer-buyer-app.layout-minimal_strip .qr-box { width: 60px; height: 60px; padding: 5px; }
}
@media (max-width: 480px) {
    .footer-buyer-app-wrap { margin-bottom: 16px; }
    .footer-buyer-app {
        margin-left: 8px; margin-right: 8px;
        padding: 20px 14px; margin-top: -60px;
        border-radius: 16px; gap: 18px;
    }
    .footer-buyer-app::before { display: none; }
    .footer-buyer-app .footer-app-content small { font-size: 11px; letter-spacing: 0.8px; gap: 5px; margin-bottom: 6px; }
    .footer-buyer-app .footer-app-content h2 { font-size: 18px; margin-bottom: 8px; line-height: 1.2; }
    .footer-buyer-app .footer-app-content p { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
    .footer-buyer-app .feature-row { gap: 10px; }
    .footer-buyer-app .feature-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
    .footer-buyer-app .feature-box span { font-size: 12px; }
    .footer-buyer-app .feature-box { gap: 8px; }
    .footer-buyer-app .download-side { padding-top: 14px; }
    .footer-buyer-app .download-side h3 { font-size: 14px; margin-bottom: 12px; }
    .footer-buyer-app .qr-box { width: 90px; height: 90px; border-radius: 10px; padding: 6px; margin-bottom: 12px; }
    .footer-buyer-app .store-btn,
    .footer-buyer-app a.store-btn { padding: 9px 12px; gap: 8px; border-radius: 10px; margin-bottom: 8px; }
    .footer-buyer-app .store-btn i { font-size: 24px; }
    .footer-buyer-app .store-btn span { font-size: 9px; }
    .footer-buyer-app .store-btn strong { font-size: 12px; }
    .footer-buyer-app .mobile-image img { width: 120px; }

    .footer-buyer-app.layout-full_banner { padding: 20px 14px; }
    .footer-buyer-app.layout-full_banner .footer-app-content h2 { font-size: 18px; }
    .footer-buyer-app.layout-full_banner .feature-row { gap: 10px; margin-bottom: 16px; }
    .footer-buyer-app.layout-full_banner .download-side { padding-top: 16px; gap: 10px; }
    .footer-buyer-app.layout-full_banner .qr-box { width: 80px; height: 80px; }

    .footer-buyer-app.layout-cards_row .feature-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
    .footer-buyer-app.layout-cards_row .feature-box { flex-direction: row; text-align: left; padding: 12px; }
    .footer-buyer-app.layout-cards_row .feature-icon { margin-bottom: 0; width: 38px; height: 38px; }

    .footer-buyer-app.layout-minimal_strip .footer-app-content h2 { font-size: 1rem; }
    .footer-buyer-app.layout-minimal_strip .footer-app-content small { display: none; }
}
@media (max-width: 360px) {
    .footer-buyer-app { padding: 16px 12px; margin-left: 6px; margin-right: 6px; margin-top: -22px; border-radius: 14px; }
    .footer-buyer-app .footer-app-content h2 { font-size: 16px; }
    .footer-buyer-app .footer-app-content p { font-size: 12px; }
    .footer-buyer-app .qr-box { width: 80px; height: 80px; }
    .footer-buyer-app .feature-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }
    .footer-buyer-app .feature-box span { font-size: 11px; }
    .footer-buyer-app .store-btn i { font-size: 20px; }
    .footer-buyer-app .store-btn strong { font-size: 11px; }
}
