/* ============================================================
   فوترِ سراسری (pf-*) — طراحی از Claude Design.
   کلاس‌های .pf-* منحصربه‌فردند (بدون تداخل). globalهای :root/html/body/*
   حذف و --pf-* از --bm-* نگاشت شده‌اند تا با دارک‌مود و رنگ‌بندیِ پنل هماهنگ بماند.
   ============================================================ */
.pf-footer{
  --pf-font: var(--bm-font, "Vazirmatn", Tahoma, Arial, sans-serif);
  --pf-page: var(--bm-bg);
  --pf-footer: var(--bm-surface-2);
  --pf-surface: var(--bm-surface);
  --pf-surface-2: var(--bm-surface-2);
  --pf-text: var(--bm-text);
  --pf-muted: var(--bm-text-sub);
  --pf-border: var(--bm-border);
  --pf-primary: var(--bm-primary);
  --pf-primary-rgb: 86, 89, 245;
  --pf-primary-soft: var(--bm-primary-soft);
  --pf-blue: #149bda; --pf-green: #159b70; --pf-amber: #d58b0b;
  --pf-shadow: var(--bm-shadow-lg, 0 18px 48px rgba(28,39,74,.09));
  --pf-shadow-soft: var(--bm-shadow-md, 0 9px 28px rgba(28,39,74,.065));
  font-family: var(--pf-font);
}
:root[data-theme="dark"] .pf-footer{ --pf-primary-rgb: 124, 124, 255; }
.pf-footer *{ box-sizing: border-box; }
.pf-footer button, .pf-footer input, .pf-footer a{ font: inherit; }

    .pf-footer {
      position: relative;
      overflow: hidden;
      padding: 0 20px;
      color: var(--pf-text);
      background: var(--pf-footer);
      border-top: 1px solid var(--pf-border);
      isolation: isolate;
      transition: color .25s ease, background-color .25s ease;
    }

    .pf-footer-pattern {
      position: absolute;
      z-index: 0;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .pf-container {
      position: relative;
      z-index: 1;
      width: min(1220px, 100%);
      margin-inline: auto;
    }

    .pf-trust-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 9px;
      padding: 28px 0 13px;
    }

    .pf-trust-item {
      --item-color: var(--pf-primary);
      display: grid;
      grid-template-columns: 43px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-height: 72px;
      padding: 12px;
      color: var(--pf-text);
      text-decoration: none;
      background: color-mix(in srgb, var(--item-color) 3%, var(--pf-surface));
      border: 1px solid color-mix(in srgb, var(--item-color) 16%, var(--pf-border));
      border-radius: 17px;
      box-shadow: var(--pf-shadow-soft);
      transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
    }

    .pf-trust-item:hover {
      z-index: 2;
      background: color-mix(in srgb, var(--item-color) 6%, var(--pf-surface));
      border-color: color-mix(in srgb, var(--item-color) 37%, var(--pf-border));
      box-shadow: 0 13px 30px color-mix(in srgb, var(--item-color) 12%, transparent);
      transform: translateY(-4px);
    }

    .pf-trust-icon {
      display: grid;
      width: 43px;
      height: 43px;
      place-items: center;
      color: var(--item-color);
      background: color-mix(in srgb, var(--item-color) 11%, var(--pf-surface));
      border: 1px solid color-mix(in srgb, var(--item-color) 21%, var(--pf-border));
      border-radius: 13px;
      transition: color .25s ease, background-color .25s ease, transform .25s ease;
    }

    .pf-trust-item:hover .pf-trust-icon { color: #fff; background: var(--item-color); transform: rotate(-4deg); }
    .pf-trust-icon svg { width: 21px; height: 21px; }
    .pf-trust-copy { min-width: 0; }
    .pf-trust-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
    .pf-trust-copy small { display: block; margin-top: 3px; overflow: hidden; color: var(--pf-muted); font-size: 8.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

    .pf-newsletter {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(360px, .8fr);
      align-items: center;
      gap: clamp(20px, 3vw, 36px);
      margin-top: 8px;
      padding: 21px 23px;
      overflow: hidden;
      background: var(--pf-surface);
      border: 1px solid var(--pf-border);
      border-radius: 20px;
      box-shadow: var(--pf-shadow-soft);
      isolation: isolate;
    }

    .pf-news-copy { max-width: 650px; }

    .pf-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 27px;
      margin: 0 0 6px;
      padding: 4px 9px;
      color: var(--pf-primary);
      background: var(--pf-primary-soft);
      border: 1px solid color-mix(in srgb, var(--pf-primary) 18%, transparent);
      border-radius: 999px;
      font-size: 9px;
      font-weight: 900;
    }

    .pf-eyebrow::before { width: 6px; height: 6px; content: ""; background: currentColor; border-radius: 50%; }
    .pf-news-title { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 900; line-height: 1.6; letter-spacing: -.025em; }
    .pf-news-title span { color: var(--pf-primary); }
    .pf-news-text { max-width: 620px; margin: 5px 0 0; color: var(--pf-muted); font-size: 10.5px; font-weight: 500; line-height: 1.85; }

    .pf-news-points { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 9px 0 0; padding: 0; list-style: none; }
    .pf-news-points li { display: inline-flex; align-items: center; gap: 5px; color: var(--pf-muted); font-size: 8.5px; font-weight: 700; }
    .pf-news-points svg { width: 13px; height: 13px; color: var(--pf-green); }

    .pf-form-box {
      padding: 13px;
      background: var(--pf-surface-2);
      border: 1px solid var(--pf-border);
      border-radius: 15px;
    }

    .pf-form-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 9.5px; font-weight: 900; }
    .pf-form-label small { color: var(--pf-muted); font-size: 8px; font-weight: 600; }
    .pf-news-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }

    .pf-input-wrap { position: relative; min-width: 0; }
    .pf-input-wrap svg { position: absolute; inset: 50% 13px auto auto; width: 18px; height: 18px; color: var(--pf-muted); pointer-events: none; transform: translateY(-50%); }

    .pf-email {
      width: 100%;
      min-height: 44px;
      padding: 0 41px 0 13px;
      color: var(--pf-text);
      background: var(--pf-surface);
      border: 1px solid var(--pf-border);
      border-radius: 13px;
      outline: none;
      font-size: 10.5px;
      direction: ltr;
      text-align: right;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .pf-email::placeholder { color: color-mix(in srgb, var(--pf-muted) 78%, transparent); direction: rtl; }
    .pf-email:focus { border-color: var(--pf-primary); box-shadow: 0 0 0 4px rgba(var(--pf-primary-rgb), .10); }
    .pf-form-box.has-error .pf-email { border-color: #e05263; box-shadow: 0 0 0 4px rgba(224, 82, 99, .09); }

    .pf-submit {
      display: inline-flex;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 0 14px;
      color: #fff;
      background: var(--pf-primary);
      border: 1px solid var(--pf-primary);
      border-radius: 13px;
      box-shadow: 0 10px 23px rgba(var(--pf-primary-rgb), .23);
      cursor: pointer;
      font-size: 9.5px;
      font-weight: 900;
      white-space: nowrap;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .pf-submit:hover { box-shadow: 0 13px 28px rgba(var(--pf-primary-rgb), .31); transform: translateY(-2px); }
    .pf-submit:disabled { cursor: default; opacity: .72; transform: none; }
    .pf-submit svg { width: 16px; height: 16px; }
    .pf-form-message { min-height: 14px; margin: 6px 2px 0; color: var(--pf-muted); font-size: 7.8px; font-weight: 700; }
    .pf-form-box.has-error .pf-form-message { color: #d64658; }
    .pf-form-box.is-success .pf-form-message { color: var(--pf-green); }

    .pf-main {
      display: grid;
      grid-template-columns: minmax(245px, 1.35fr) minmax(140px, .74fr) minmax(160px, .84fr) minmax(160px, .86fr) minmax(220px, 1.08fr);
      gap: clamp(22px, 3vw, 38px);
      padding: 38px 0 34px;
    }

    .pf-brand { min-width: 0; }
    .pf-brand-head { display: flex; align-items: center; gap: 10px; }

    .pf-logo-mark {
      position: relative;
      display: grid;
      width: 45px;
      height: 45px;
      flex: 0 0 auto;
      place-items: center;
      color: #fff;
      background: var(--pf-primary);
      border-radius: 14px;
      box-shadow: 0 10px 24px rgba(var(--pf-primary-rgb), .24);
      transform: rotate(5deg);
    }

    .pf-logo-mark::before { position: absolute; width: 20px; height: 20px; content: ""; border: 2px solid currentColor; border-radius: 6px; transform: rotate(40deg); }
    .pf-logo-mark::after { width: 6px; height: 6px; content: ""; background: #ffd45b; border-radius: 50%; }
    .pf-brand-name strong { display: block; font-size: 21px; font-weight: 900; line-height: 1.2; }
    .pf-brand-name small { display: block; margin-top: 3px; color: var(--pf-muted); font-size: 9px; font-weight: 700; }
    .pf-brand-text { max-width: 315px; margin: 14px 0 0; color: var(--pf-muted); font-size: 10.5px; font-weight: 500; line-height: 1.95; }

    .pf-contact-list { display: grid; gap: 8px; margin-top: 16px; }
    .pf-contact-link { display: inline-flex; width: fit-content; align-items: center; gap: 8px; color: var(--pf-muted); font-size: 10px; font-weight: 700; text-decoration: none; direction: ltr; transition: color .2s ease; }
    .pf-contact-link:hover { color: var(--pf-primary); }
    .pf-contact-link svg { width: 16px; height: 16px; color: var(--pf-primary); }

    .pf-socials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
    .pf-social { display: grid; width: 36px; height: 36px; place-items: center; color: var(--pf-muted); background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: 11px; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
    .pf-social:hover { color: #fff; background: var(--pf-primary); border-color: var(--pf-primary); transform: translateY(-3px); }
    .pf-social svg { width: 17px; height: 17px; }

    .pf-links-title { display: flex; align-items: center; gap: 7px; margin: 5px 0 16px; font-size: 13.5px; font-weight: 900; }
    .pf-links-title::before { width: 14px; height: 3px; content: ""; background: var(--pf-primary); border-radius: 99px; }
    .pf-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .pf-links a { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--pf-muted); font-size: 13px; font-weight: 600; line-height: 1.65; text-decoration: none; transition: color .2s ease, transform .2s ease; }
    .pf-links a::before { width: 4px; height: 4px; content: ""; background: color-mix(in srgb, var(--pf-muted) 55%, transparent); border-radius: 50%; transition: background-color .2s ease, transform .2s ease; }
    .pf-links a:hover { color: var(--pf-primary); transform: translateX(-3px); }
    .pf-links a:hover::before { background: var(--pf-primary); transform: scale(1.45); }

    .pf-hours { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px; color: var(--pf-muted); background: var(--pf-surface-2); border: 1px solid var(--pf-border); border-radius: 12px; font-size: 9px; font-weight: 700; line-height: 1.75; }
    .pf-hours svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--pf-blue); }

    .pf-licenses { min-width: 0; }
    .pf-license-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

    .pf-license {
      display: grid;
      min-height: 113px;
      align-content: center;
      justify-items: center;
      gap: 7px;
      padding: 10px 6px;
      color: var(--pf-muted);
      text-align: center;
      text-decoration: none;
      background: var(--pf-surface);
      border: 1px solid var(--pf-border);
      border-radius: 14px;
      box-shadow: var(--pf-shadow-soft);
      transition: color .2s ease, border-color .2s ease, transform .2s ease;
    }

    .pf-license:hover { color: var(--pf-primary); border-color: color-mix(in srgb, var(--pf-primary) 38%, var(--pf-border)); transform: translateY(-3px); }
    .pf-license svg { width: 38px; height: 38px; color: var(--pf-primary); }
    .pf-license img {
      display: block;
      width: 100%;
      max-width: 64px;
      height: 52px;
      margin-inline: auto;
      object-fit: contain;
      object-position: center;
    }
    .pf-license strong { font-size: 9px; font-weight: 900; line-height: 1.65; }
    .pf-license small { color: var(--pf-muted); font-size: 7.5px; font-weight: 600; }
    .pf-license-note { margin: 9px 0 0; color: var(--pf-muted); font-size: 8px; font-weight: 600; line-height: 1.75; }

    .pf-bottom {
      display: flex;
      min-height: 68px;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 14px 0;
      color: var(--pf-muted);
      border-top: 1px solid var(--pf-border);
      font-size: 9px;
      font-weight: 600;
    }

    .pf-legal { display: flex; flex-wrap: wrap; gap: 17px; }
    .pf-legal a { color: inherit; text-decoration: none; transition: color .2s ease; }
    .pf-legal a:hover { color: var(--pf-primary); }
    .pf-bottom-actions { display: flex; align-items: center; gap: 8px; }

    .pf-theme-toggle,
    .pf-backtop {
      display: inline-flex;
      width: 36px;
      height: 36px;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: var(--pf-text);
      background: var(--pf-surface);
      border: 1px solid var(--pf-border);
      border-radius: 11px;
      cursor: pointer;
      transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
    }

    .pf-theme-toggle:hover,
    .pf-backtop:hover { color: #fff; background: var(--pf-primary); border-color: var(--pf-primary); transform: translateY(-2px); }
    .pf-theme-toggle svg, .pf-backtop svg { width: 17px; height: 17px; }
    .pf-theme-toggle .pf-moon { display: none; }
    [data-theme="dark"] .pf-theme-toggle .pf-sun { display: none; }
    [data-theme="dark"] .pf-theme-toggle .pf-moon { display: block; }

    @media (max-width: 1050px) {
      .pf-main { grid-template-columns: minmax(235px, 1.2fr) repeat(3, minmax(140px, .78fr)); gap: 30px 24px; }
      .pf-licenses { grid-column: 1 / -1; }
      .pf-license-grid { width: min(420px, 100%); }
      .pf-license { min-height: 100px; }
    }

    @media (max-width: 820px) {
      .pf-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .pf-newsletter { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 16px; padding: 19px; }
      .pf-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
      .pf-brand { grid-column: 1 / -1; }
      .pf-brand-text { max-width: 540px; }
      .pf-licenses { grid-column: 1 / -1; }
    }

    @media (max-width: 720px) {
      .pf-newsletter { grid-template-columns: 1fr; gap: 15px; }
      .pf-news-copy { max-width: none; }
    }

    @media (max-width: 560px) {
      .pf-footer { padding-inline: 13px; }
      .pf-trust-strip { gap: 7px; padding-top: 22px; }
      .pf-trust-item { grid-template-columns: 36px minmax(0, 1fr); min-height: 62px; gap: 8px; padding: 9px; border-radius: 14px; }
      .pf-trust-icon { width: 36px; height: 36px; border-radius: 10px; }
      .pf-trust-icon svg { width: 18px; height: 18px; }
      .pf-trust-copy strong { font-size: 10px; }
      .pf-trust-copy small { font-size: 7px; }
      .pf-newsletter { padding: 16px 14px; border-radius: 17px; }
      .pf-news-title { font-size: 20px; }
      .pf-news-text { font-size: 10px; }
      .pf-news-points { gap: 7px 10px; }
      .pf-news-points li { font-size: 8.3px; }
      .pf-form-box { padding: 11px; border-radius: 14px; }
      .pf-news-form { grid-template-columns: 1fr; }
      .pf-email, .pf-submit { min-height: 45px; }
      .pf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 34px 2px 29px; }
      .pf-brand, .pf-licenses { grid-column: 1 / -1; }
      .pf-main > nav:last-of-type { grid-column: 1 / -1; }
      .pf-main > nav:last-of-type .pf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .pf-brand-name strong { font-size: 19px; }
      .pf-brand-text { font-size: 10px; }
      .pf-links-title { margin-bottom: 13px; font-size: 12.8px; }
      .pf-links { gap: 11px; }
      .pf-links a { font-size: 12.5px; }
      .pf-license-grid { width: 100%; }
      .pf-license { min-height: 93px; }
      .pf-license img { max-width: 58px; height: 46px; }
      .pf-bottom { align-items: flex-start; flex-direction: column; padding-block: 17px; }
      .pf-bottom-actions { width: 100%; justify-content: space-between; }
      .pf-legal { gap: 13px; }
    }

    @media (max-width: 370px) {
      .pf-trust-strip { grid-template-columns: 1fr; }
      .pf-main { gap: 25px 14px; }
      .pf-license strong { font-size: 7px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .pf-footer *, .pf-footer *::before, .pf-footer *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    }

/* لوگوی فوترِ آپلودی (روز/شب) — جایگزینِ نشانِ دکوراتیو */
.pf-logo-img{ display:block; width:auto; height:40px; max-width:150px; object-fit:contain; }
.pf-logo-dark{ display:none; }
:root[data-theme="dark"] .pf-logo-light{ display:none; }
:root[data-theme="dark"] .pf-logo-dark{ display:block; }
/* تصویرِ مجوز (اگر آپلود شود): کامل و بدونِ برش (contain)، بزرگ‌تر از قبل (۳۴px ← ۶۰px) */
.pf-license .pf-license-img{ width:100%; max-width:64px; height:60px; object-fit:contain; object-position:center; }
@media (max-width:560px){ .pf-license .pf-license-img{ max-width:58px; height:52px; } }
