/* فوتر سه‌بعدی ویوان: کارت‌های شیشه‌ای با عمق، شمارنده‌های زنده و حرکت سبک (فقط transform/opacity) */
.vf { position: relative; isolation: isolate; overflow: hidden; margin-top: 60px; padding: 70px 0 0; color: #cfcbe6; line-height: 1.9;
  background: radial-gradient(1100px 420px at 85% 0%, rgba(123,92,255,.18), transparent 60%), radial-gradient(900px 380px at 5% 100%, rgba(34,211,238,.12), transparent 60%), #0c0a1c;
  border-top: 1px solid rgba(255,255,255,.08); }
.vf a { text-decoration: none; }
.vf__wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.vf__orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; will-change: transform; }
.vf__orb--a { width: 280px; height: 280px; top: -80px; inset-inline-end: 8%; background: #7b5cff; animation: vf-orb 14s ease-in-out infinite alternate; }
.vf__orb--b { width: 240px; height: 240px; bottom: -90px; inset-inline-start: 6%; background: #22d3ee; opacity: .35; animation: vf-orb 17s ease-in-out infinite alternate-reverse; }
@keyframes vf-orb { to { transform: translate3d(-40px, 30px, 0) scale(1.15); } }

/* کارت شیشه‌ای سه‌بعدی (مشترک) */
.vf [data-tilt] { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.vf__stat, .vf__card { position: relative; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -18px 30px -24px rgba(123,92,255,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vf__stat::before, .vf__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(123,92,255,.9), transparent 38%, transparent 62%, rgba(34,211,238,.8)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }

/* آمار */
.vf__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.vf__stat { padding: 22px 20px 20px; text-align: center; overflow: hidden; }
.vf__stat > * { position: relative; }
.vf__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-size: 19px; color: #fff; margin-bottom: 8px;
  background: linear-gradient(135deg, #7b5cff, #22d3ee); box-shadow: 0 10px 22px -8px rgba(123,92,255,.9); transform: translateZ(34px); animation: vf-bob 4.5s ease-in-out infinite; }
.vf__stat--tickets .vf__ico { background: linear-gradient(135deg, #f472b6, #fbbf24); box-shadow: 0 10px 22px -8px rgba(244,114,182,.9); animation-delay: -1.5s; }
.vf__stat--entries .vf__ico { background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 10px 22px -8px rgba(52,211,153,.9); animation-delay: -3s; }
@keyframes vf-bob { 50% { transform: translateZ(34px) translateY(-5px); } }
.vf__num { display: block; font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.3; color: #fff; letter-spacing: .5px; transform: translateZ(26px); font-variant-numeric: tabular-nums; text-shadow: 0 6px 24px rgba(123,92,255,.55); }
.vf__lbl { display: block; font-size: 14px; color: #b9b4d6; font-weight: 700; }
.vf__sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-style: normal; font-size: 12.5px; color: #8f8aab; }
.vf__sub span { color: #7ee2b8; font-weight: 800; }
.vf__pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: vf-pulse 2s infinite; }
@keyframes vf-pulse { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.vf__spark { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 34px; margin-top: 10px; }
.vf__spark i { width: 9px; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(#22d3ee, #7b5cff); transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 70ms); opacity: .9; }
.vf.is-in .vf__spark i { transform: scaleY(1); }

/* شبکه‌ی اصلی */
.vf__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.vf__brand, .vf__news { grid-column: span 12; } .vf__col { grid-column: span 4; }
@media (min-width: 992px) { .vf__brand { grid-column: span 5; order: 1; } .vf__news { grid-column: span 7; order: 2; } .vf__col { order: 3; } }
.vf__card { padding: 22px 22px 20px; }
.vf__card h4 { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; transform: translateZ(22px); }
.vf__card h4 i { color: #ad99ff; font-size: 15px; }
.vf__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vf__col a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; border-radius: 13px; color: #d8d4ee; background: rgba(255,255,255,.04); border: 1px solid transparent; font-size: 14.5px;
  transition: transform .25s, background .25s, border-color .25s, color .25s; }
.vf__col a i { font-size: 11px; opacity: .55; transition: transform .25s, opacity .25s; }
.vf__col a:hover { transform: translate3d(-4px, -2px, 0); background: rgba(123,92,255,.2); border-color: rgba(123,92,255,.5); color: #fff; }
.vf__col a:hover i { transform: translateX(-4px); opacity: 1; }
.vf__col a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vf__brand { display: grid; align-content: start; gap: 4px; text-align: center; }
@media (min-width: 992px) { .vf__brand { text-align: start; } }
.vf__logo { display: block; margin: -6px 0 0; transform: translateZ(30px); }
.vf__logo .Middle-logo { margin-inline: auto; }
.vf__about { margin: 8px 0 12px; font-size: 14.5px; color: #b9b4d6; }
.vf__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 992px) { .vf__social { justify-content: flex-start; } }
.vf__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: transform .25s, background .25s; }
.vf__social a:hover { transform: translateY(-4px) rotate(-6deg); background: rgba(123,92,255,.3); }
.vf__social img { width: 20px; height: 20px; object-fit: contain; }

.vf__news p { margin: 0 0 12px; font-size: 14px; color: #b9b4d6; }
.vf__form { display: flex; gap: 10px; flex-wrap: wrap; }
.vf__form input { flex: 1 1 220px; min-width: 0; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #fff; padding: 12px 16px; font: inherit; }
.vf__form input:focus { outline: 0; border-color: #7b5cff; box-shadow: 0 0 0 3px rgba(123,92,255,.28); }
.vf__form button { flex: 0 0 auto; border: 0; border-radius: 14px; padding: 12px 24px; font: 800 15px inherit; color: #fff; cursor: pointer; background: linear-gradient(135deg, #7b5cff, #6696ff); box-shadow: 0 12px 26px -10px rgba(123,92,255,.9); transition: transform .2s; }
.vf__form button:hover { transform: translateY(-2px); } .vf__form button:active { transform: scale(.97); }
.vf__form button i { margin-inline-start: 6px; font-size: 12px; }

.vf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 34px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #8f8aab; }
.vf__bar p { margin: 0; } .vf__bar a { color: #ad99ff; } .vf__bar a:hover { color: #fff; }
.vf__bar ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ورود با اسکرول */
.vf [data-tilt] { opacity: 0; translate: 0 24px; transition: transform .25s ease-out, opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); transition-delay: 0s, calc(var(--k, 0) * 70ms), calc(var(--k, 0) * 70ms); }
.vf.is-in [data-tilt] { opacity: 1; translate: 0 0; }
.vf:not([data-js]) [data-tilt] { opacity: 1; translate: 0 0; }

/* موبایل: سه آمار کنار هم و فشرده، کارت‌ها یک‌ستون، نوسان ملایم به‌جای tilt */
@media (max-width: 767px) {
  .vf { padding-top: 46px; margin-top: 40px; }
  .vf__stats { gap: 9px; margin-bottom: 22px; }
  .vf__stat { padding: 14px 6px 12px; border-radius: 18px; }
  .vf__ico { width: 36px; height: 36px; font-size: 15px; border-radius: 12px; margin-bottom: 4px; }
  .vf__num { font-size: 19px; } .vf__lbl { font-size: 11.5px; line-height: 1.5; } .vf__sub { font-size: 11px; }
  .vf__spark { height: 24px; gap: 3px; margin-top: 6px; } .vf__spark i { width: 6px; }
  .vf__grid { gap: 12px; }
  .vf__col { grid-column: span 12; } .vf__card { padding: 18px 16px; border-radius: 18px; }
  .vf__col ul { grid-template-columns: 1fr; }
  .vf [data-tilt] { transform: none; }
  .vf__stat { animation: vf-float 6s ease-in-out infinite; } .vf__stat--tickets { animation-delay: -2s; } .vf__stat--entries { animation-delay: -4s; }
  .vf__bar { justify-content: center; text-align: center; margin-top: 22px; }
}
@keyframes vf-float { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .vf *, .vf *::before { animation: none !important; transition-duration: .01s !important; }
  .vf [data-tilt] { opacity: 1; translate: 0 0; transform: none !important; } .vf__spark i { transform: none; }
}
