/*!
 * BABUFOREX storefront – Aurora theme
 * Bootstrap 5 + Tailwind (tw- prefix) + this design layer.
 * Colors are CSS variables injected from Admin > Appearance.
 */
:root {
  --bf-primary: #2563eb;
  --bf-secondary: #7c3aed;
  --bf-accent: #f59e0b;
  --bf-success: #10b981;
  --bf-danger: #ef4444;
  --bf-dark: #0b1220;
  --bf-radius: 16px;
  --bf-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bf-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bf-bg: #f6f8fc;
  --bf-surface: #ffffff;
  --bf-surface-2: #f1f5fb;
  --bf-text: #0f172a;
  --bf-muted: #64748b;
  --bf-border: rgba(15, 23, 42, .08);
  --bf-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --bf-shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .25);
  --bf-gradient: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-secondary) 100%);
  --bf-gradient-warm: linear-gradient(135deg, var(--bf-accent) 0%, #f97316 100%);
  --bf-header-h: 72px;
  --bf-bottom-nav-h: 68px;
  --bs-body-font-family: var(--bf-font);
}

[data-bs-theme="dark"] {
  --bf-bg: #070d19;
  --bf-surface: #0f1a2e;
  --bf-surface-2: #13213a;
  --bf-text: #e2e8f0;
  --bf-muted: #94a3b8;
  --bf-border: rgba(148, 163, 184, .14);
  --bf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --bs-body-bg: var(--bf-bg);
  --bs-body-color: var(--bf-text);
  --bs-border-color: var(--bf-border);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--bf-font);
  background: var(--bf-bg);
  color: var(--bf-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--bf-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bf-secondary); }
::selection { background: color-mix(in srgb, var(--bf-primary) 30%, transparent); }
.text-muted, .text-secondary { color: var(--bf-muted) !important; }
.font-mono { font-family: var(--bf-mono); }
.fw-800 { font-weight: 800; }
.text-gradient { background: var(--bf-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gradient-warm { background: var(--bf-gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-surface { background: var(--bf-surface) !important; }
.bg-surface-2 { background: var(--bf-surface-2) !important; }
.border-soft { border: 1px solid var(--bf-border) !important; }
.rounded-bf { border-radius: var(--bf-radius) !important; }
.shadow-bf { box-shadow: var(--bf-shadow) !important; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--bf-primary); }

/* ---------- Buttons ---------- */
.btn { border-radius: calc(var(--bf-radius) * .75); font-weight: 600; padding: .65rem 1.25rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: .85rem 1.6rem; }
.btn-gradient { background: var(--bf-gradient); color: #fff; border: 0; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--bf-primary) 70%, transparent); }
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--bf-secondary) 70%, transparent); }
.btn-warm { background: var(--bf-gradient-warm); color: #1a1205; border: 0; }
.btn-warm:hover { color: #1a1205; transform: translateY(-2px); }
.btn-soft { background: color-mix(in srgb, var(--bf-primary) 10%, transparent); color: var(--bf-primary); border: 0; }
.btn-soft:hover { background: color-mix(in srgb, var(--bf-primary) 18%, transparent); color: var(--bf-primary); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-primary { --bs-btn-bg: var(--bf-primary); --bs-btn-border-color: var(--bf-primary); --bs-btn-hover-bg: var(--bf-secondary); --bs-btn-hover-border-color: var(--bf-secondary); }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }

/* ---------- Ticker ---------- */
.bf-ticker { background: var(--bf-dark); min-height: 46px; overflow: hidden; }
.bf-ticker .tradingview-widget-container { height: 46px; }

/* ---------- Header ---------- */
.bf-header { position: sticky; top: 0; z-index: 1030; transition: background .3s ease, box-shadow .3s ease; }
.bf-header.glass { background: color-mix(in srgb, var(--bf-surface) 78%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--bf-border); }
.bf-header.solid { background: var(--bf-dark); }
.bf-header.solid .nav-link, .bf-header.solid .bf-brand { color: #e2e8f0; }
.bf-header.light { background: var(--bf-surface); border-bottom: 1px solid var(--bf-border); }
.bf-header.scrolled { box-shadow: 0 10px 30px -18px rgba(2, 6, 23, .45); }
.bf-header .navbar { min-height: var(--bf-header-h); }
.bf-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--bf-text); }
.bf-brand img { height: 38px; width: auto; }
.bf-logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--bf-gradient); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px -6px var(--bf-primary); }
.bf-nav .nav-link { font-weight: 600; color: var(--bf-text); padding: .55rem .7rem !important; white-space: nowrap; border-radius: 10px; position: relative; }
.bf-nav .nav-link:hover, .bf-nav .nav-link.active { color: var(--bf-primary); background: color-mix(in srgb, var(--bf-primary) 8%, transparent); }
.mega-menu { width: min(860px, 92vw); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); padding: 1.25rem; box-shadow: var(--bf-shadow-lg); background: var(--bf-surface); }
.mega-item { display: flex; gap: .85rem; padding: .75rem; border-radius: 12px; color: var(--bf-text); transition: background .2s ease, transform .2s ease; }
.mega-item:hover { background: var(--bf-surface-2); transform: translateX(3px); color: var(--bf-text); }
.mega-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-size: 1.15rem; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--bf-border); box-shadow: var(--bf-shadow-lg); padding: .5rem; background: var(--bf-surface); animation: dropIn .18s ease; }
.dropdown-item { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; }
@keyframes dropIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bf-search { position: relative; }
.bf-search input { border-radius: 999px; padding-left: 2.6rem; background: var(--bf-surface-2); border: 1px solid transparent; height: 44px; }
.bf-search input:focus { border-color: var(--bf-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bf-primary) 15%, transparent); background: var(--bf-surface); }
.bf-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--bf-muted); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 999px; font-size: .68rem; display: grid; place-items: center; background: var(--bf-danger); color: #fff; font-weight: 700; padding: 0 5px; border: 2px solid var(--bf-surface); }

/* ---------- Hero / slider ---------- */
.bf-hero { position: relative; border-radius: calc(var(--bf-radius) * 1.5); overflow: hidden; color: #fff; min-height: 440px; isolation: isolate; }
.bf-hero .carousel-item { min-height: 440px; }
.bf-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.bf-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 6, 23, .85) 0%, rgba(2, 6, 23, .55) 50%, rgba(2, 6, 23, .05) 100%); }
.bf-hero h1, .bf-hero h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.bf-hero .lead { color: rgba(255, 255, 255, .82); }
.carousel-indicators [data-bs-target] { width: 28px; height: 6px; border-radius: 6px; border: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-success); box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ---------- Feature / trust cards ---------- */
.feature-card { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); padding: 1.4rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--bf-shadow-lg); }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.grad-1 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.grad-2 { background: linear-gradient(135deg, #10b981, #0d9488); }
.grad-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-4 { background: linear-gradient(135deg, #ef4444, #db2777); }
.grad-5 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.grad-6 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); color: var(--bf-text); transition: all .25s ease; position: relative; overflow: hidden; }
.cat-tile::before { content: ''; position: absolute; inset: 0; background: var(--cat-color, var(--bf-primary)); opacity: 0; transition: opacity .25s ease; }
.cat-tile > * { position: relative; }
.cat-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--bf-shadow-lg); }
.cat-tile:hover::before { opacity: 1; }
.cat-tile:hover .text-muted { color: rgba(255, 255, 255, .85) !important; }
.cat-tile .cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--cat-color, var(--bf-primary)); flex-shrink: 0; transition: background .25s ease; }
.cat-tile:hover .cat-icon { background: rgba(255, 255, 255, .2); }

/* ---------- Product card ---------- */
.product-card { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--bf-shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bf-surface-2); display: block; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.p-badge { font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; color: #fff; backdrop-filter: blur(6px); }
.p-badge.sale { background: var(--bf-danger); }
.p-badge.type { background: rgba(2, 6, 23, .6); }
.p-badge.free { background: var(--bf-success); }
.p-badge.hot { background: var(--bf-gradient-warm); color: #1a1205; }
.product-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--bf-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-title:hover { color: var(--bf-primary); }
.product-meta { font-size: .8rem; color: var(--bf-muted); }
.price { font-family: var(--bf-mono); font-weight: 700; font-size: 1.2rem; color: var(--bf-text); }
.price-old { font-family: var(--bf-mono); color: var(--bf-muted); text-decoration: line-through; font-size: .9rem; }
.price-free { color: var(--bf-success); }
.stars { color: #fbbf24; letter-spacing: 1px; font-size: .85rem; }
.add-cart-btn { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bf-gradient); color: #fff; border: 0; transition: transform .2s ease; }
.add-cart-btn:hover { transform: rotate(-8deg) scale(1.06); color: #fff; }

/* ---------- Product page ---------- */
.gallery-main { border-radius: var(--bf-radius); overflow: hidden; background: var(--bf-surface-2); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; width: 84px; flex-shrink: 0; aspect-ratio: 4 / 3; background: none; opacity: .65; transition: all .2s ease; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--bf-primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); padding: 1.5rem; box-shadow: var(--bf-shadow); position: sticky; top: calc(var(--bf-header-h) + 16px); }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--bf-border); font-size: .92rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--bf-muted); }
.countdown { display: flex; gap: .5rem; }
.countdown div { background: var(--bf-dark); color: #fff; border-radius: 10px; padding: .4rem .55rem; text-align: center; min-width: 54px; font-family: var(--bf-mono); font-weight: 700; }
.countdown small { display: block; font-family: var(--bf-font); font-size: .62rem; opacity: .7; font-weight: 500; text-transform: uppercase; }
.prose { line-height: 1.8; font-size: 1.02rem; }
.prose h2, .prose h3 { font-weight: 800; margin-top: 1.8rem; letter-spacing: -.01em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose ul li { margin-bottom: .35rem; }
.prose ul li::marker { color: var(--bf-primary); }
.prose blockquote { border-left: 4px solid var(--bf-primary); padding: .5rem 1rem; background: var(--bf-surface-2); border-radius: 0 12px 12px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--bf-border); padding: .5rem .75rem; }
.prose details { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .75rem; }
.prose summary { font-weight: 700; cursor: pointer; }
.nav-pills-bf .nav-link { border-radius: 999px; font-weight: 600; color: var(--bf-muted); padding: .55rem 1.1rem; }
.nav-pills-bf .nav-link.active { background: var(--bf-gradient); color: #fff; }

/* ---------- Generic cards / forms ---------- */
.card-bf { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); box-shadow: var(--bf-shadow); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: var(--bf-border); background-color: var(--bf-surface); color: var(--bf-text); }
.form-control:focus, .form-select:focus { border-color: var(--bf-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bf-primary) 15%, transparent); background-color: var(--bf-surface); color: var(--bf-text); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-check-input:checked { background-color: var(--bf-primary); border-color: var(--bf-primary); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--bf-muted); z-index: 4; }
.input-icon .form-control { padding-left: 2.6rem; }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--bf-muted); font-size: .85rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--bf-border); }
.btn-google { background: var(--bf-surface); border: 1px solid var(--bf-border); color: var(--bf-text); }
.btn-google:hover { background: var(--bf-surface-2); }
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 460px; }
.gateway-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 2px solid var(--bf-border); border-radius: 14px; cursor: pointer; transition: all .2s ease; background: var(--bf-surface); }
.gateway-option:hover { border-color: color-mix(in srgb, var(--bf-primary) 50%, transparent); }
.btn-check:checked + .gateway-option { border-color: var(--bf-primary); background: color-mix(in srgb, var(--bf-primary) 6%, var(--bf-surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bf-primary) 12%, transparent); }
.gateway-option .g-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--bf-gradient); flex-shrink: 0; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary-total { font-size: 1.25rem; font-weight: 800; border-top: 1px dashed var(--bf-border); padding-top: .9rem; margin-top: .4rem; }

/* ---------- Status ---------- */
.status-hero { text-align: center; padding: 2.5rem 1.5rem; }
.status-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1.2rem; }
.status-icon.wait { background: color-mix(in srgb, var(--bf-accent) 15%, transparent); color: var(--bf-accent); }
.status-icon.ok { background: color-mix(in srgb, var(--bf-success) 15%, transparent); color: var(--bf-success); animation: pop .5s ease; }
.status-icon.fail { background: color-mix(in srgb, var(--bf-danger) 15%, transparent); color: var(--bf-danger); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.spinner-ring { width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Account / dashboard (mobile app feel) ---------- */
.account-nav .list-group-item { border: 0; border-radius: 12px !important; margin-bottom: 4px; font-weight: 600; color: var(--bf-text); background: transparent; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.account-nav .list-group-item.active { background: var(--bf-gradient); color: #fff; }
.account-nav .list-group-item:not(.active):hover { background: var(--bf-surface-2); }
.stat-card { border-radius: var(--bf-radius); padding: 1.25rem; color: #fff; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -40px; top: -40px; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; font-family: var(--bf-mono); }
.list-item-app { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--bf-border); }
.list-item-app:last-child { border-bottom: 0; }
.thumb-sm { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bf-surface-2); }
.license-key { font-family: var(--bf-mono); background: var(--bf-surface-2); padding: .45rem .7rem; border-radius: 10px; font-size: .88rem; word-break: break-all; user-select: all; }
.copy-btn { cursor: pointer; }

/* ---------- Blog ---------- */
.post-card { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); overflow: hidden; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--bf-shadow-lg); }
.post-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }

/* ---------- Stats band / CTA ---------- */
.stats-band { background: var(--bf-dark); color: #fff; border-radius: calc(var(--bf-radius) * 1.5); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--bf-primary) 45%, transparent), transparent 40%), radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--bf-secondary) 40%, transparent), transparent 40%); }
.stats-band > * { position: relative; }
.stat-num { font-size: 2.4rem; font-weight: 800; font-family: var(--bf-mono); }
.cta-band { background: var(--bf-gradient); color: #fff; border-radius: calc(var(--bf-radius) * 1.5); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); }

/* ---------- Footer ---------- */
.bf-footer { background: var(--bf-dark); color: #94a3b8; padding: 64px 0 24px; margin-top: 64px; }
.bf-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.bf-footer a { color: #94a3b8; }
.bf-footer a:hover { color: #fff; }
.bf-footer .footer-links li { margin-bottom: .55rem; }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .06); color: #e2e8f0; transition: all .2s ease; }
.social-btn:hover { background: var(--bf-primary); color: #fff; transform: translateY(-3px); }
.pay-badges span { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .06); color: #cbd5e1; border-radius: 8px; padding: .35rem .65rem; font-size: .78rem; font-weight: 600; margin: 0 .35rem .35rem 0; }
.risk-note { font-size: .78rem; color: #64748b; border-top: 1px solid rgba(148, 163, 184, .12); padding-top: 1.25rem; margin-top: 2rem; }

/* ---------- FAB speed dial ---------- */
.bf-fab { position: fixed; bottom: 24px; z-index: 1040; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.bf-fab.right { right: 22px; }
.bf-fab.left { left: 22px; }
.fab-main { width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; font-size: 1.5rem; background: var(--bf-gradient); box-shadow: 0 12px 30px -8px var(--bf-primary); transition: transform .3s ease; display: grid; place-items: center; }
.bf-fab.open .fab-main { transform: rotate(135deg); }
.fab-items { display: flex; flex-direction: column-reverse; gap: 10px; }
.bf-fab.speed .fab-items a { opacity: 0; transform: translateY(14px) scale(.6); pointer-events: none; transition: all .25s cubic-bezier(.2, .8, .2, 1); }
.bf-fab.speed.open .fab-items a { opacity: 1; transform: none; pointer-events: auto; }
.bf-fab.speed.open .fab-items a:nth-child(1) { transition-delay: .02s; }
.bf-fab.speed.open .fab-items a:nth-child(2) { transition-delay: .05s; }
.bf-fab.speed.open .fab-items a:nth-child(3) { transition-delay: .08s; }
.bf-fab.speed.open .fab-items a:nth-child(4) { transition-delay: .11s; }
.bf-fab.speed.open .fab-items a:nth-child(5) { transition-delay: .14s; }
.fab-items a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .35); position: relative; }
.fab-items a:hover { transform: scale(1.1) !important; color: #fff; }
.fab-items a .fab-tip { position: absolute; right: 56px; white-space: nowrap; background: var(--bf-dark); color: #fff; font-size: .75rem; padding: .3rem .6rem; border-radius: 8px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.bf-fab.left .fab-items a .fab-tip { right: auto; left: 56px; }
.fab-items a:hover .fab-tip { opacity: 1; }
.fab-whatsapp { background: #25d366; } .fab-telegram { background: #229ed9; } .fab-discord { background: #5865f2; } .fab-messenger { background: #0084ff; }
.fab-facebook { background: #1877f2; } .fab-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); } .fab-x { background: #000; } .fab-youtube { background: #ff0000; }
.fab-tiktok { background: #111; } .fab-linkedin { background: #0a66c2; } .fab-line { background: #06c755; } .fab-email { background: #ea580c; } .fab-phone { background: #0ea5e9; } .fab-mql5 { background: #2f80ed; } .fab-tradingview { background: #131722; }

.back-to-top { position: fixed; bottom: 96px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--bf-surface); color: var(--bf-text); box-shadow: var(--bf-shadow-lg); z-index: 1035; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s ease; display: grid; place-items: center; }
.back-to-top.right { right: 28px; } .back-to-top.left { left: 28px; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--bf-primary); color: #fff; }

/* ---------- Mobile app experience ---------- */
.bf-bottom-nav { display: none; }
@media (max-width: 991.98px) {
  :root { --bf-header-h: 60px; }
  body.has-bottom-nav { padding-bottom: calc(var(--bf-bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bf-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; background: color-mix(in srgb, var(--bf-surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--bf-border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bf-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--bf-muted); padding: 6px 0; border-radius: 12px; position: relative; }
  .bf-bottom-nav a .bi { font-size: 1.32rem; transition: transform .2s ease; }
  .bf-bottom-nav a.active { color: var(--bf-primary); }
  .bf-bottom-nav a.active .bi { transform: translateY(-2px); }
  .bf-bottom-nav a.active::before { content: ''; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--bf-gradient); }
  .bf-bottom-nav .bn-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--bf-danger); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 4px; }
  .bf-fab { bottom: calc(var(--bf-bottom-nav-h) + 18px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(var(--bf-bottom-nav-h) + 90px + env(safe-area-inset-bottom)); }
  .section { padding: 44px 0; }
  .bf-hero, .bf-hero .carousel-item { min-height: 360px; }
  .bf-hero-bg::after { background: linear-gradient(0deg, rgba(2, 6, 23, .9) 15%, rgba(2, 6, 23, .35) 100%); }
  .buy-box { position: static; }
  .bf-footer { margin-top: 32px; padding-top: 40px; }
  .product-body { padding: .85rem; }
  .product-title { font-size: .93rem; }
  .price { font-size: 1.02rem; }
  .add-cart-btn { width: 38px; height: 38px; border-radius: 11px; }
  .mobile-sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--bf-bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 1040; background: var(--bf-surface); border-top: 1px solid var(--bf-border); padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .4); }
  .page-has-sticky-buy .bf-fab { bottom: calc(var(--bf-bottom-nav-h) + 92px); }
}
@media (min-width: 992px) { .mobile-sticky-buy { display: none !important; } }
.offcanvas { background: var(--bf-surface); }
.offcanvas .nav-link { padding: .8rem 1rem; border-radius: 12px; font-weight: 600; color: var(--bf-text); display: flex; align-items: center; gap: .8rem; }
.offcanvas .nav-link:hover { background: var(--bf-surface-2); }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }
.breadcrumb { font-size: .85rem; }
.breadcrumb a { color: var(--bf-muted); }
.page-head { padding: 36px 0 12px; }
.page-head h1 { font-weight: 800; letter-spacing: -.02em; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--bf-muted); }
.empty-state .bi { font-size: 3rem; opacity: .5; }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--bf-border); color: var(--bf-text); background: var(--bf-surface); }
.pagination .active .page-link { background: var(--bf-gradient); border-color: transparent; color: #fff; }
.toast-bf { position: fixed; top: 90px; right: 20px; z-index: 2000; min-width: 280px; }
.lang-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; }
.skeleton { background: linear-gradient(90deg, var(--bf-surface-2) 25%, var(--bf-surface) 50%, var(--bf-surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.filter-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--bf-border); background: var(--bf-surface); font-weight: 600; font-size: .85rem; color: var(--bf-text); white-space: nowrap; transition: all .2s ease; }
.filter-chip:hover { border-color: var(--bf-primary); color: var(--bf-primary); }
.filter-chip.active { background: var(--bf-gradient); border-color: transparent; color: #fff; }
.chip-scroll { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.popup-banner .modal-content { border-radius: calc(var(--bf-radius) * 1.25); overflow: hidden; border: 0; }
[dir="rtl"] .bf-search input { padding-left: .95rem; padding-right: 2.6rem; }
[dir="rtl"] .bf-search .bi { left: auto; right: 1rem; }

.bf-header .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .bf-nav .nav-link { padding: .5rem .5rem !important; font-size: .9rem; } }
