/* Home: single viewport, no document scroll */
html:has(body.page-home),
body.page-home {
  overflow: hidden;
  height: 100%;
}

body.page-home .app-wrapper {
  height: 100dvh;
  max-height: 100dvh;
  min-height: unset;
  overflow: hidden;
  padding-bottom: 0 !important;
}

body.page-home .main-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-home .site-footer {
  flex-shrink: 0;
}

/* Home mobile — compact footer bar */
@media (max-width: 991px) {
  body.page-home .site-footer {
    display: grid !important;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      ". copy copy ."
      ". socials enamad .";
    align-items: center;
    justify-items: center;
    column-gap: 10px;
    row-gap: 2px;
    min-height: 0 !important;
    padding: 4px max(10px, var(--safe-left)) calc(50px + env(safe-area-inset-bottom, 0px)) max(10px, var(--safe-right)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent, rgba(11, 17, 32, 0.72));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    font-size: 0.625rem;
  }

  .light-theme body.page-home .site-footer {
    border-top-color: rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82));
  }

  body.page-home .footer-copy {
    grid-area: copy;
    width: auto !important;
    display: block !important;
    text-align: center !important;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    opacity: 0.72;
    margin: 0;
    padding: 0;
    order: unset !important;
  }

  body.page-home .footer-brand-link {
    font-weight: 600;
    opacity: 1;
  }

  body.page-home .footer-socials {
    grid-area: socials;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    position: static !important;
    transform: none !important;
    order: unset !important;
  }

  body.page-home .footer-social-link {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.page-home .footer-social-link img {
    width: 13px !important;
    height: 13px !important;
  }

  body.page-home .footer-enamad {
    grid-area: enamad;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
    transform: none !important;
    order: unset !important;
  }

  body.page-home .footer-enamad img {
    height: 32px !important;
    max-width: 44px !important;
    opacity: 0.9;
  }
}

.hero-bg {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #4c8ef740, transparent 70%);
    transition: background 0.1s ease;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
    z-index: 1;
  }
  
  /* بک‌گراند تم دارک */
  .dark-theme .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0c1021, #1b1e33);
    opacity: 0.9;
    z-index: 0;
  }
  
  /* بک‌گراند تم روشن */
  .light-theme .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d1e6f7, #eef7fc);
    opacity: 0.95;
    z-index: 0;
  }
  
  /* رنگ تیتر وسط در تم‌ها */
  .dark-theme .hero-title {
    color: #ffffff;
  }
  .light-theme .hero-title {
    color: #111111;
  }
  
  .hero-overlay {
    z-index: 3;
    position: relative;
  }
  
  .hero-bg .nak-ad,
  .hero-bg .nak-ad__card,
  .hero-bg .nak-ad__inner {
    z-index: 3;
  }
  
  body:not(.page-home) {
    overflow-x: hidden;
  }
  
  .hero-bg {
    animation: fadeIn 0.8s ease-out;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* خطوط نئونی وسط صفحه */
  .neon-lines-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.07;
    animation: floatNeon 8s ease-in-out infinite alternate;
  }
  .neon-lines {
    width: 100%;
    height: 100%;
    animation: rotateNeon 20s linear infinite;
  }
  
  /* رنگ خطوط نئونی بر اساس تم */
  .dark-theme .neon-lines-group {
    stroke: #00ffff;
  }
  .light-theme .neon-lines-group {
    stroke: #1b2a4b; /* سرمه‌ای تیره برای تم روشن */
  }

  /* اختصاصی برای پاراگرافِ هِرو در تم دارک */
.dark-theme .hero-overlay .lead,
.dark-theme .hero-overlay .lead.text-muted,
.dark-theme .hero-overlay .text-muted,
.dark-theme .hero-tagline .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
  
  @keyframes rotateNeon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  @keyframes floatNeon {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
  }


  