/* =====================================================================
   Biameno — Shared footer (footer.css)
   مستقل از بقیه استایل‌ها؛ با data-theme="light" | "dark" روی <html> هماهنگ می‌شود.
   ===================================================================== */
   .bf {
    --bf-bg: #070c19;
    --bf-bg-2: #0c1428;
    --bf-text: #e8eeff;
    --bf-text-2: #b9c4de;
    --bf-muted: #8592b3;
    --bf-line: rgba(148, 178, 255, .1);
    --bf-line-2: rgba(148, 178, 255, .18);
    --bf-blue: #3b82f6;
    --bf-blue-ink: #8ab8ff;
    --bf-grad: linear-gradient(135deg, #1d6cf2 0%, #3b82f6 45%, #6366f1 100%);
    --bf-chip: rgba(148, 178, 255, .08);
    position: relative;
    margin: 0;
    padding: 0 0 calc(20px + env(safe-area-inset-bottom));
    background: var(--bf-bg);
    border-top: 1px solid var(--bf-line);
    color: var(--bf-text-2);
    font-family: Vazirmatn, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    text-align: start;
    direction: rtl;
  }
  [data-theme="light"] .bf {
    --bf-bg: #eef3ff;
    --bf-bg-2: #ffffff;
    --bf-text: #0b1530;
    --bf-text-2: #33405f;
    --bf-muted: #5c6a8a;
    --bf-line: rgba(30, 64, 175, .1);
    --bf-line-2: rgba(30, 64, 175, .18);
    --bf-blue: #2563eb;
    --bf-blue-ink: #1d4ed8;
    --bf-chip: rgba(37, 99, 235, .07);
  }
  .bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
  .bf ul { list-style: none; margin: 0; padding: 0; }
  .bf p { margin: 0; }
  .bf a { color: inherit; text-decoration: none; }
  .bf a:focus-visible, .bf button:focus-visible { outline: 2px solid var(--bf-blue); outline-offset: 3px; border-radius: 8px; }
  .bf [class^="ri-"], .bf [class*=" ri-"] { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
  
  .bf-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
  
  /* CTA strip */
  .bf-cta {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
    margin-top: 40px;
    padding: 24px 20px; border-radius: 22px; color: #fff;
    background: radial-gradient(70% 140% at 90% 0%, rgba(125, 211, 252, .45), transparent 60%), var(--bf-grad);
    box-shadow: 0 24px 60px -24px rgba(37, 99, 235, .7);
  }
  .bf-cta__text { display: grid; gap: 2px; }
  .bf-cta__text b { font-size: 1.12rem; }
  .bf-cta__text span { opacity: .85; font-size: .92rem; }
  .bf-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .bf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 18px; border-radius: 13px; font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
    transition: transform .2s, background-color .2s;
  }
  .bf-btn:hover { transform: translateY(-2px); }
  .bf .bf-btn--primary { background: #fff; color: #1745b8; }
  .bf .bf-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
  
  /* Main */
  .bf-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding: 56px 0 40px; }
  .bf-wrap:has(.bf-cta) + .bf-main { padding-top: 44px; }
  .bf-brand { grid-column: 1 / -1; display: grid; gap: 16px; align-content: start; }
  .bf-logo { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
  .bf-logo img { width: 44px; height: 44px; object-fit: contain; flex: none; }
  .bf-logo span { display: grid; line-height: 1.35; }
  .bf-logo b { color: var(--bf-text); font-size: 1.15rem; }
  .bf-logo small { color: var(--bf-muted); font-size: .8rem; }
  .bf-brand > p { color: var(--bf-muted); font-size: .92rem; line-height: 1.95; max-width: 400px; }
  
  .bf-contact { display: grid; gap: 10px; }
  .bf-contact li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
  .bf-contact i { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--bf-chip); color: var(--bf-blue-ink); font-size: 1.05rem; }
  .bf-contact a { color: var(--bf-text); font-weight: 600; }
  .bf-contact a:hover { color: var(--bf-blue-ink); }
  
  .bf-social { display: flex; gap: 10px; }
  .bf-social a {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    background: var(--bf-chip); border: 1px solid var(--bf-line); color: var(--bf-text-2); font-size: 1.25rem;
    transition: background-color .2s, color .2s, transform .2s, border-color .2s;
  }
  .bf-social a:hover { background: var(--bf-blue); border-color: var(--bf-blue); color: #fff; transform: translateY(-2px); }
  
  .bf-col b, .bf-trust b { display: block; color: var(--bf-text); font-size: .98rem; margin-bottom: 12px; }
  .bf-col ul { display: grid; gap: 2px; }
  .bf-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--bf-muted); font-size: .92rem; transition: color .2s, transform .2s; }
  .bf-col a:hover { color: var(--bf-blue-ink); transform: translateX(-3px); }
  
  .bf-trust { align-content: start; }
  .bf-enamad {
    display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 18px;
    background: #fff; border: 1px solid var(--bf-line); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3);
    transition: transform .2s;
  }
  .bf-enamad:hover { transform: translateY(-2px); }
  .bf-enamad img { width: 80px; height: 80px; object-fit: contain; }
  
  /* Bottom */
  .bf-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    padding-top: 20px; border-top: 1px solid var(--bf-line); color: var(--bf-muted); font-size: .84rem;
  }
  .bf-legal { display: flex; gap: 18px; }
  .bf-legal a:hover { color: var(--bf-blue-ink); }
  .bf-tools { display: flex; gap: 8px; }
  .bf-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
    background: var(--bf-chip); border: 1px solid var(--bf-line); color: var(--bf-text-2); font-size: 1.15rem; font-family: inherit;
    transition: color .2s, border-color .2s;
  }
  .bf-icon:hover { color: var(--bf-blue-ink); border-color: var(--bf-blue); }
  
  @media (max-width: 559px) {
    .bf-bottom { flex-direction: column; text-align: center; }
    .bf-col:last-of-type { grid-column: auto; }
    .bf-trust { justify-self: start; }
  }
  @media (min-width: 640px) {
    .bf-cta { flex-direction: row; justify-content: space-between; text-align: start; padding: 26px 32px; }
    .bf-cta__btns { justify-content: flex-end; }
  }
  @media (min-width: 900px) {
    .bf-main { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) auto; gap: 40px; padding: 72px 0 48px; }
    .bf-brand { grid-column: auto; }
  }
  @media (prefers-reduced-motion: reduce) {
    .bf *, .bf *::before, .bf *::after { transition: none !important; }
  }
  