/* Permanent Light Mode Enforcement: completely disables any OS/browser dark mode */
:root,
html,
body {
  color-scheme: light !important;
  forced-color-adjust: none !important;
}

@media (prefers-color-scheme: dark) {
  :root,
  html,
  body {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #222117 !important;
  }
}

/* Brand mark, centred product copy, and the extended scroll choreography. */

/* ===== Palette clean-up: no leftover violet/cyan from the dark theme ===== */
::selection {
  background: #5a3f00;
  color: #fff8e1;
}
::-moz-selection {
  background: #5a3f00;
  color: #fff8e1;
}

/* The radar keeps its original colours — no overrides here. */

/* ===== Hover tilt: shallow, and lifting rather than pressing in ===== */
.tilt-glass {
  /* A longer focal length flattens the whole effect. */
  transform: perspective(2200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.hero-perspective { perspective: 2400px; }

/* ===== Cost control =====
   `backdrop-filter` makes the compositor read back everything painted behind
   each card on every frame. In the light theme the cards are 85% opaque white,
   so the blur was invisible anyway — and there are 20+ of them. */
.glass-card,
.nav-inner,
.radar-alert {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Offscreen work the browser can skip until it is nearly in view — the native
   equivalent of deferring a subtree. The intrinsic sizes keep the scrollbar
   and every anchor offset stable while the content is still unrendered. */
.shenas-preview[open] .dash-shot {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
#team .copy-grid,
#founders .copy-grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

/* ===== Background wash: the yellow was reading too hot ===== */
body {
  background:
    radial-gradient(ellipse at 80% 7%, #fff7d6 0, transparent 38%),
    linear-gradient(155deg, #fff 18%, #fffdf6 70%, #fff 100%);
  background-attachment: fixed;
}
.orbs-container { opacity: .22; }
#ai-canvas { opacity: .34; }

/* Each orb is a 560px disc behind a 70px blur. Without its own layer the mouse
   parallax re-rasterises that blur on every pointer move — four of them. */
.orb-wrapper {
  will-change: transform;
  transform: translateZ(0);
}

/* The half-space (U+200C) is left to the font — tightening it threw the word
   spacing off, so Dana's own advance stands. */

/* ===== Logo ===== */
.nav-logo .brand-mark {
  display: block;
  width: auto;
  height: 1.85rem;
}
.nav-logo .nav-wordmark {
  padding-inline-start: .55rem;
  border-inline-start: 1px solid var(--line);
}
.site-footer .footer-logo {
  background: #fff;
  border: 1px solid var(--line);
}
.site-footer .footer-logo .brand-mark {
  display: block;
  width: auto;
  height: 1.5rem;
}
@media (max-width: 420px) {
  .nav-logo .nav-wordmark { display: none; }
}

/* ===== Hero: continue cue ===== */
.hero-next {
  gap: .6rem;
}
.hero-next-arrow {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  rotate: 45deg;
  translate: 0 -1px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-next-arrow { animation: hero-next-bob 1.8s ease-in-out infinite; }
}
@keyframes hero-next-bob {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 3px; }
}

/* Whole partner card is the link — logo and label both clickable. */
a.partner-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.partner-card:hover,
a.partner-card:focus-visible {
  transform: translateY(-4px);
  border-color: #e3c86a;
  box-shadow: 0 20px 40px -24px #6149008c;
}
a.partner-card:hover strong { color: var(--cyan); }

/* Step-down link that closes each section. */
.copy-actions.section-next {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
.copy-actions.section-next .contact-cta {
  background: none;
  border: 1px solid #e3c86a;
  color: var(--cyan);
  box-shadow: none;
  font-weight: 600;
}
.copy-actions.section-next .contact-cta:hover,
.copy-actions.section-next .contact-cta:focus-visible {
  background: linear-gradient(125deg, #ffe987, #ffc82c);
  border-color: transparent;
  color: #241a00;
  box-shadow: 0 10px 24px -12px #b3830088;
}
#story .copy-actions.section-next { justify-content: center; }

/* ===== Product cards: centred, standardised type ===== */
#product .pipeline-card,
#pipeline .pipeline-card {
  text-align: center;
}
#product .pipeline-card :is(p, h3, h4, summary),
#pipeline .pipeline-card :is(p, h3, h4, summary) {
  text-align: center;
  margin-inline: auto;
  max-width: 46rem;
}
/* Bullets share one edge: the list is centred as a block, items stay aligned. */
#product .pipeline-card .copy-list,
#pipeline .pipeline-card .copy-list {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline-start: 1.15rem;
  list-style-position: outside;
  text-align: start;
}
#product .pipeline-card .copy-list li,
#pipeline .pipeline-card .copy-list li { text-align: start; }
#product .pipeline-title,
#pipeline .pipeline-title {
  font-size: clamp(1.3rem, 1.05rem + .85vw, 1.7rem);
  line-height: 1.6;
  margin-bottom: .35rem;
}
#product .pipeline-card h4,
#pipeline .pipeline-card h4 {
  font-family: var(--font-heading);
  font-size: clamp(.98rem, .93rem + .35vw, 1.15rem);
  font-weight: 600;
  line-height: 1.85;
  color: var(--text-dim);
}
#product .pipeline-card :is(p, li),
#pipeline .pipeline-card :is(p, li) {
  font-size: clamp(.95rem, .92rem + .2vw, 1.03rem);
  line-height: 2;
}
#product .future-details summary,
#pipeline .future-details summary {
  font-size: .95rem;
  font-weight: 600;
}
#product .shenas-screen img { margin-inline: auto; }

/* Two dashboard shots per product, stacked. */
.dash-shot { margin: 1.5rem 0 0; }
.dash-shot figcaption {
  margin-top: .85rem;
  font-size: .85rem;
  color: var(--text-faint);
  text-align: center;
}
.dash-note {
  margin-top: 1.25rem;
  font-size: .8rem !important;
  color: var(--text-faint);
  text-align: center;
}

/* ===== Soft yellow wash behind the two editorial blocks ===== */
.geometry-copy {
  position: relative;
  isolation: isolate;
}
.geometry-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1.5rem -3rem -1.5rem -1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(to left, #ffd64d4d, #ffe6951f 42%, transparent 82%);
  opacity: calc(.18 + var(--scroll-reveal, 1) * .82);
  pointer-events: none;
}
#about .geometry-copy::before {
  background: linear-gradient(to left, #ffd64d47, #ffeeb01c 48%, transparent 85%);
}
@media (max-width: 700px) {
  .geometry-copy::before { inset: -1rem -1.1rem; }
}

/* ===== Scroll choreography ===== */
.scroll-enter {
  translate: var(--entry-x, 0px) calc(var(--entry-offset, 0px) + var(--exit-shift, 0px));
  opacity: calc(var(--entry-opacity, 1) * var(--exit-fade, 1));
  /* No blanket `will-change`: ~30 blocks each promoted to their own compositor
     layer costs more than the repaint it would save. No `contain` either — it
     changed margin collapsing and threw the spacing out. */
}
@media (prefers-reduced-motion: reduce) {
  .scroll-enter { translate: none; rotate: none; scale: none; filter: none; opacity: 1; }
  .geometry-copy::before { opacity: .5; }
}
@media (prefers-reduced-motion: no-preference) {
  /* No animated `filter: blur()`. Blurring 33 blocks every frame re-rasterises
     each one into a texture — that was the scroll stutter. Translate, scale,
     rotate and opacity all stay on the compositor. */
  .scroll-enter {
    rotate: var(--entry-rotate, 0deg);
    scale: var(--entry-scale, 1);
  }

  /* Hero recedes as it leaves. */
  .hero-card {
    translate: 0 var(--hero-shift, 0px);
    scale: var(--hero-scale, 1);
  }
  .hero-card .hero-sub,
  .hero-card .copy-actions { opacity: var(--hero-fade, 1); }
  .hero-eyebrow { opacity: var(--hero-fade, 1); }

  /* Per-element follow-through inside each revealed block. */
  .origin-story p {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 78px);
    opacity: calc(.15 + var(--scroll-reveal, 1) * .85);
  }
  .origin-story p:nth-of-type(2) {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 124px);
  }
  .about-copy p:nth-of-type(2) {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 64px);
  }
  .section-header > p {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 54px);
    opacity: calc(.1 + var(--scroll-reveal, 1) * .9);
  }
  .pipeline-card .pipeline-title {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * -34px);
  }
  .pipeline-card h4 {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 34px);
    opacity: calc(.1 + var(--scroll-reveal, 1) * .9);
  }
  .pipeline-card .future-details {
    opacity: calc(.08 + var(--scroll-reveal, 1) * .92);
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 46px);
  }
  .profile strong,
  .profile span {
    translate: 0 calc((1 - var(--scroll-reveal, 1)) * 38px);
    opacity: calc(.1 + var(--scroll-reveal, 1) * .9);
  }
  .profile-photo {
    rotate: calc((1 - var(--scroll-reveal, 1)) * -14deg);
  }
  #partners .partner-card {
    scale: calc(.82 + var(--scroll-reveal, 1) * .18);
  }
  .contact-card .contact-cta {
    scale: calc(.76 + var(--scroll-reveal, 1) * .24);
  }
  .contact-card .contact-headline,
  .contact-card .contact-desc {
    translate: calc((1 - var(--scroll-reveal, 1)) * 62px) 0;
  }
  .site-footer .copy-footer-links a {
    opacity: calc(.1 + var(--scroll-reveal, 1) * .9);
  }
    .geometry-copy::before {
    scale: calc(.76 + var(--scroll-reveal, 1) * .24);
    transform-origin: right center;
  }

  /* Page-wide: the yellow wash and the grid strengthen as you descend. */
  body::after { opacity: 0.7; }
  .orbs-container { will-change: auto; }
}

/* The JS glide owns anchor scrolling; native smooth is too abrupt for it. */
.js-scroll { scroll-behavior: auto; }

/* The rule above the About copy duplicates the yellow wash — drop it. */
#about .geometry-copy .section-header::after { content: none; }

/* Remove divider line from Meaning (اکوسیستم مالی؛ همراه با حارمان) section */
#meaning .section-header::after,
#meaning .geometry-copy .section-header::after,
#meaning h2::after {
  content: none !important;
  display: none !important;
}

/* ===== Footer: one compact line ===== */
.site-footer {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .5rem clamp(.5rem, 1.4vw, 1rem);
  padding-block: .8rem;
  padding-inline: clamp(.75rem, 2vw, 1.5rem);
  text-align: center;
  /* A footer must stay legible — never blur or offset it. */
  filter: none !important;
  rotate: none !important;
  scale: none !important;
}
.site-footer > * { flex: 0 0 auto; min-width: 0; }
.site-footer .footer-tagline { flex: 0 0 auto; }
/* One line while it genuinely fits; below that, wrap instead of clipping. */
@media (max-width: 880px) {
  .site-footer { flex-wrap: wrap; }
  .site-footer .copy-footer-links { flex-wrap: wrap; }
  .site-footer .footer-tagline { white-space: normal; }
}
.site-footer .footer-logo {
  gap: .5rem;
  padding: .3rem .6rem;
  border-radius: .55rem;
}
.site-footer .footer-logo .brand-mark { height: 1.15rem; }
/* The mark already spells HARMAN — no need to repeat it in text. */
.site-footer .footer-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-footer .footer-tagline {
  margin: 0;
  font-size: .78rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.site-footer .copy-footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .3rem;
  margin: 0;
}
.site-footer .copy-footer-links a {
  padding: .22rem .5rem;
  font-size: .72rem;
}
.site-footer .footer-copy {
  width: auto;
  padding-top: 0;
  border-top: 0;
  font-size: .68rem;
  white-space: nowrap;
}
.site-footer > :not(:last-child)::after { content: none; }
@media (max-width: 620px) {
  .site-footer .footer-tagline { white-space: normal; }
}

/* ===== Mehdi Naderi: nudge the crop so the face sits further left ===== */
/* Percentages, not pixels: the source was downscaled and px insets would shift. */
@supports (object-view-box: inset(0%)) {
  .profile-photo[src$="/mehdi-naderi.jpg"] {
    object-view-box: inset(16% 0% 35% 15%);
    object-fit: cover;
    object-position: center;
  }
}


/* Clean, ultra-light background: soft yellow radial halo + subtle grid */
body {
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 85% 12%, rgba(255, 230, 130, 0.45) 0%, rgba(255, 245, 190, 0.25) 25%, transparent 60%),
    radial-gradient(circle at 12% 45%, rgba(255, 225, 120, 0.35) 0%, rgba(255, 248, 205, 0.18) 28%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(255, 235, 140, 0.35) 0%, rgba(255, 248, 210, 0.15) 30%, transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #fffdf5 50%, #ffffff 100%);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 65%, transparent 100%);
  opacity: 1;
}

.orbs-container {
  display: none !important;
}

#ai-canvas, .grain { display: none !important; }

/* Subtle, gentle yellow ambient glows behind #product section (placed only in outer negative space) */
#product {
  position: relative;
  isolation: isolate;
}

#product::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: -5rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 95, 0.28) 0%, rgba(255, 238, 155, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#product::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  left: -5.5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 85, 0.25) 0%, rgba(255, 235, 145, 0.10) 45%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}



/* Internal soft yellow halos inside product cards (exactly like contact-card) */
#product .pipeline-card,
#pipeline .pipeline-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#product .pipeline-card .card-bg-left,
#pipeline .pipeline-card .card-bg-left {
  pointer-events: none;
  position: absolute;
  left: -3.5rem;
  top: -3.5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: #ffdf6455;
  filter: blur(42px);
  z-index: -1;
  opacity: 0.85;
}

#product .pipeline-card .card-bg-right,
#pipeline .pipeline-card .card-bg-right {
  pointer-events: none;
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: #ffdf6455;
  filter: blur(42px);
  z-index: -1;
  opacity: 0.85;
}

/* Remove divider line from Story section heading and tighten spacing */
#story .section-header::after,
#story .geometry-copy .section-header::after {
  content: none !important;
  display: none !important;
}

#story .geometry-copy {
  border-inline-start: none !important;
  padding-inline-start: 0 !important;
}

#story .about-copy {
  margin-top: -0.65rem;
}

#story .geometry-layout {
  align-items: center;
}

/* Perfectly aligned story text without any divider */
#story .section-header {
  margin: 0 0 1.25rem 0 !important;
  text-align: start !important;
}

#story .section-header::after,
#story h2::after {
  content: none !important;
  display: none !important;
}

#story .story-copy {
  border-inline-start: 3px solid #e2b43b !important;
  padding-inline-start: clamp(1rem, 2vw, 2rem) !important;
  text-align: start !important;
}

#story .story-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

#story .story-paragraphs p {
  font-size: clamp(0.98rem, 0.95rem + 0.22vw, 1.08rem) !important;
  line-height: 2 !important;
  color: var(--text-dim) !important;
  margin: 0 !important;
  text-align: start !important;
  max-width: 100% !important;
}

/* Hide partner-carousel navigation buttons permanently */
.partner-carousel button,
.partner-carousel > button {
  display: none !important;
}

.partner-carousel {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}

/* Interactive team & founder profile cards */
a.profile {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.profile:hover,
a.profile:focus-visible {
  transform: translateY(-4px);
  border-color: #e3c86a;
  box-shadow: 0 16px 36px -20px #6149008c;
}

a.profile:hover strong {
  color: var(--cyan);
}


/* ===== Responsive Floating Glass Bottom Navigation (Mobile & Tablet) ===== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 879px) {
  /* 1. Top Header: stays at top with logo and CTA, completely glassy (not white) */
  .nav-header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    inset-inline: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0.65rem 0.85rem !important;
    pointer-events: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .nav-header .nav-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08), 
                inset 0 1px 1px rgba(255, 255, 255, 0.9),
                inset 0 -1px 1px rgba(226, 180, 59, 0.2) !important;
  }

  .nav-header .nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    text-decoration: none !important;
  }

  .nav-header .nav-logo .brand-mark {
    height: 1.55rem !important;
    width: auto !important;
  }

  .nav-header .nav-end {
    display: flex !important;
    align-items: center !important;
  }

  .nav-header .nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.42rem 0.9rem !important;
    font-size: 0.78rem !important;
    border-radius: 9999px !important;
  }

  /* Hide desktop header links and hamburger toggle on mobile */
  .nav-header .nav-links,
  .nav-header .nav-toggle {
    display: none !important;
  }

  /* 2. Floating Crystal Glass Bottom Dock (Instagram-style modern navigation) */
  .mobile-bottom-dock {
    position: fixed !important;
    bottom: max(0.9rem, env(safe-area-inset-bottom, 0.9rem)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 25rem !important;
    margin: 0 !important;
    padding: 0.38rem 0.45rem !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    /* Ultra Crystal Liquid Glass: deep blur, high translucency, luminous reflection */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 248, 220, 0.2) 100%) !important;
    backdrop-filter: blur(34px) saturate(230%) brightness(105%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(230%) brightness(105%) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(226, 180, 59, 0.4) !important;
    box-shadow: 0 20px 45px -10px rgba(60, 45, 10, 0.24), 
                0 8px 18px -6px rgba(0, 0, 0, 0.08),
                inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 
                inset 0 -1.5px 1.5px 0 rgba(226, 180, 59, 0.25) !important;
    pointer-events: auto !important;
  }

  /* Lens reflection sheen across top half of dock */
  .mobile-bottom-dock::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 9999px 9999px 0 0;
    pointer-events: none;
    z-index: 0;
  }

  .mobile-bottom-dock .dock-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 0.32rem 0.12rem !important;
    border-radius: 1.25rem !important;
    color: #3d3215 !important;
    text-decoration: none !important;
    gap: 0.2rem !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    z-index: 1 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-bottom-dock .dock-item svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
    flex-shrink: 0 !important;
  }

  .mobile-bottom-dock .dock-item .dock-label {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    color: inherit !important;
  }

  .mobile-bottom-dock .dock-item:hover,
  .mobile-bottom-dock .dock-item:focus-visible,
  .mobile-bottom-dock .dock-item.nav-active {
    color: #1a1200 !important;
    background: linear-gradient(135deg, rgba(255, 222, 107, 0.5) 0%, rgba(255, 240, 165, 0.25) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 14px -3px rgba(179, 131, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  }

  .mobile-bottom-dock .dock-item.nav-active svg {
    transform: scale(1.12) !important;
    stroke: #876200 !important;
  }

  .mobile-bottom-dock .dock-item.nav-active .dock-label {
    font-weight: 700 !important;
    color: #1a1200 !important;
  }

  .dock-label .label-short {
    display: none;
  }

  body {
    padding-bottom: 5.5rem !important;
  }
}

@media (max-width: 380px) {
  .dock-label .label-full {
    display: none !important;
  }
  .dock-label .label-short {
    display: inline !important;
  }
  .mobile-bottom-dock .dock-item .dock-label {
    font-size: 0.62rem !important;
  }
}

/* ===== Fluid Infinite Marquee Carousel for Partners (Cross-Platform & iOS Safe) ===== */
#partners .partner-carousel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0.75rem 0 !important;
  margin-top: 1.5rem !important;
  direction: ltr !important; /* Uniform LTR coordinate space for cross-browser animation */
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#partners .partner-carousel button,
#partners .partner-carousel > button {
  display: none !important;
}

#partners .partner-track {
  display: flex !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
  contain: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#partners .partner-strip {
  display: flex !important;
  width: max-content !important;
  flex-shrink: 0 !important;
  will-change: transform !important;
  animation: partner-marquee-loop 22s linear infinite !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Pause animation on hover or touch/focus */
#partners .partner-carousel:hover .partner-strip,
#partners .partner-carousel:focus-within .partner-strip,
#partners .partner-carousel:active .partner-strip {
  animation-play-state: paused !important;
}

@keyframes partner-marquee-loop {
  0% {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-25%, 0, 0);
    -webkit-transform: translate3d(-25%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #partners .partner-strip {
    animation: none !important;
    transform: none !important;
  }
}

#partners .partner-group {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding-right: 1.25rem !important;
  flex-shrink: 0 !important;
}

#partners .partner-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(175px, 18vw, 230px) !important;
  height: 154px !important;
  padding: 1.1rem 0.85rem !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(226, 180, 59, 0.32) !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 10px 26px -12px rgba(163, 120, 10, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
  direction: rtl !important; /* Persian content inside is RTL */
  flex-shrink: 0 !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#partners .partner-card:hover,
#partners .partner-card:focus-visible {
  transform: translateY(-4px) !important;
  border-color: #d4a938 !important;
  box-shadow: 0 16px 36px -16px rgba(163, 120, 10, 0.25) !important;
}

#partners .partner-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 4.5rem !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.85rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(230, 220, 195, 0.6) !important;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

#partners .partner-logo img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

#partners .partner-card strong {
  display: block !important;
  margin-top: 0.8rem !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

#partners .partner-card:hover strong {
  color: #876200 !important;
}

@media (max-width: 768px) {
  #partners .partner-group {
    gap: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  #partners .partner-card {
    width: 165px !important;
    height: 142px !important;
    padding: 0.95rem 0.65rem !important;
  }
  #partners .partner-logo {
    height: 3.9rem !important;
    padding: 0.45rem 0.7rem !important;
  }
  #partners .partner-card strong {
    font-size: 0.85rem !important;
    margin-top: 0.65rem !important;
  }
}

/* ==========================================================================
   Dashboard Gallery & Popup Lightbox (Site Luxury Glass Style)
   ========================================================================== */

/* Product Card Trigger & Thumbnails */
.dash-preview-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.9) 0%, rgba(255, 237, 180, 0.75) 100%);
  border: 1px solid rgba(226, 180, 59, 0.45);
  border-radius: 0.95rem;
  color: #3b2800;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(179, 131, 0, 0.2), inset 0 1px 0 #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  box-sizing: border-box;
}

.dash-gallery-btn:hover {
  background: linear-gradient(125deg, #ffe987 0%, #ffc82c 100%);
  border-color: #c99818;
  color: #1a1200;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(179, 131, 0, 0.38);
}

.dash-gallery-btn:active {
  transform: translateY(0) scale(0.98);
}

.dash-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  color: #876200;
  border: 1px solid rgba(226, 180, 59, 0.4);
  margin-inline-end: 0.65rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -2px rgba(163, 120, 10, 0.2);
}

.dash-gallery-btn:hover .dash-btn-icon-wrap {
  background: #ffffff;
  color: #4a3400;
  border-color: #d4a938;
}

.dash-btn-text {
  flex-grow: 1;
  text-align: start;
}

.dash-btn-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #755500;
  border: 1px solid rgba(226, 180, 59, 0.35);
  margin-inline: 0.5rem;
}

.dash-gallery-btn:hover .dash-btn-badge {
  background: #ffffff;
  color: #241a00;
}

.dash-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #876200;
  transition: transform 0.2s ease;
}

.dash-gallery-btn:hover .dash-btn-arrow {
  transform: translateX(-4px);
  color: #241a00;
}

/* ==========================================================================
   Full Popup Modal Gallery Lightbox
   ========================================================================== */
body.dash-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  box-sizing: border-box;
}

.dash-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 22, 5, 0.68) 0%, rgba(15, 10, 2, 0.82) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.dash-modal-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(94vw, 1240px);
  max-height: min(92vh, 880px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 251, 240, 0.95) 100%);
  border: 1.5px solid rgba(226, 180, 59, 0.45);
  border-radius: 1.5rem;
  box-shadow: 0 35px 90px -20px rgba(45, 30, 0, 0.4), inset 0 1px 0 #ffffff;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  box-sizing: border-box;
}

.dash-modal.is-open .dash-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header Bar */
.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(226, 180, 59, 0.25);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  gap: 1rem;
}

.dash-modal-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.dash-modal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  text-align: center;
}

.dash-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 222, 107, 0.3);
  border: 1px solid rgba(226, 180, 59, 0.45);
  color: #755500;
  font-size: 0.78rem;
  font-weight: 700;
}

.dash-modal-title {
  font-family: var(--font-heading, inherit);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1200;
  margin: 0;
}

.dash-modal-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.dash-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-modal-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: #755500;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 180, 59, 0.3);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* دکمه خروج طبق طرح سایت */
.dash-modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 238, 168, 0.9) 0%, rgba(255, 214, 88, 0.8) 100%);
  border: 1px solid rgba(212, 169, 56, 0.7);
  border-radius: 999px;
  color: #3b2800;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px -3px rgba(179, 131, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.dash-modal-close-btn:hover {
  background: linear-gradient(125deg, #ffe987, #ffc82c);
  border-color: #b38300;
  color: #1a1200;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px -4px rgba(179, 131, 0, 0.5);
}

.dash-modal-close-btn:active {
  transform: scale(0.96);
}

/* Modal Stage (Image & Arrows) */
.dash-modal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 280px;
  max-height: calc(88vh - 160px);
  padding: 1rem 1.5rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 248, 228, 0.5) 100%);
  overflow: hidden;
  box-sizing: border-box;
}

/* فلش‌های ناوبری طبق طرح سایت */
.dash-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(226, 180, 59, 0.5);
  color: #755500;
  cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(97, 73, 0, 0.22), inset 0 1px 0 #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.dash-arrow-prev {
  right: 1.25rem;
}

.dash-arrow-next {
  left: 1.25rem;
}

.dash-arrow-btn:hover {
  background: linear-gradient(125deg, #ffe987, #ffc82c);
  border-color: #d4a938;
  color: #1a1200;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 14px 32px -6px rgba(179, 131, 0, 0.45);
}

.dash-arrow-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* Large Image Viewport */
.dash-modal-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dash-img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 7rem);
  max-height: calc(82vh - 170px);
  border-radius: 1rem;
  background: #111827;
  padding: 0.4rem;
  border: 1.5px solid rgba(226, 180, 59, 0.35);
  box-shadow: 0 20px 50px -15px rgba(45, 30, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-sizing: border-box;
}

.dash-img-frame.is-transitioning {
  opacity: 0.6;
  transform: scale(0.98);
}

.dash-modal-img {
  display: block;
  max-width: 100%;
  max-height: calc(82vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
}

/* Modal Footer Bar */
.dash-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(226, 180, 59, 0.25);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-modal-caption {
  flex: 1;
  min-width: 220px;
}

.dash-caption-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1700;
  margin: 0 0 0.2rem;
}

.dash-caption-desc {
  font-size: 0.82rem;
  color: var(--text-dim, #5d5847);
  margin: 0;
  line-height: 1.4;
}

/* Indicator Dots */
.dash-modal-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(226, 180, 59, 0.35);
  border: 1px solid rgba(226, 180, 59, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}

.dash-dot.is-active {
  width: 1.8rem;
  background: linear-gradient(90deg, #ffd64d, #d4a938);
  border-color: #b38300;
  box-shadow: 0 2px 8px -1px rgba(179, 131, 0, 0.4);
}

.dash-dot:hover:not(.is-active) {
  background: rgba(226, 180, 59, 0.6);
  transform: scale(1.2);
}

/* Responsive Modal Styling */
@media (max-width: 768px) {
  .dash-modal {
    padding: 0.5rem;
  }
  .dash-modal-container {
    width: 98vw;
    max-height: 96vh;
    border-radius: 1.25rem;
  }
  .dash-modal-header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .dash-modal-header-right,
  .dash-modal-header-left {
    flex-shrink: 0;
  }
  .dash-modal-meta {
    gap: 0.35rem;
    overflow: hidden;
  }
  .dash-modal-badge {
    display: none;
  }
  .dash-modal-title {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
  }
  .dash-modal-header-actions {
    gap: 0.45rem;
  }
  .dash-modal-counter {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }
  .dash-modal-close-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
  .dash-modal-stage {
    padding: 0.6rem 0.35rem;
    min-height: 250px;
    max-height: calc(82vh - 120px);
  }
  .dash-arrow-btn {
    width: 2.6rem;
    height: 2.6rem;
    z-index: 6;
  }
  .dash-arrow-prev {
    right: 0.35rem;
  }
  .dash-arrow-next {
    left: 0.35rem;
  }
  .dash-img-frame {
    max-width: 100%;
    max-height: calc(78vh - 120px);
    padding: 0.25rem;
  }
  .dash-modal-img {
    max-height: calc(78vh - 130px);
  }
  .dash-modal-footer {
    padding: 0.65rem 0.85rem;
    gap: 0.45rem;
  }
  .dash-caption-title {
    font-size: 0.88rem;
  }
  .dash-caption-desc {
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .dash-gallery-btn {
    padding: 0.75rem 0.95rem;
    font-size: 0.88rem;
  }
  .dash-modal-badge {
    display: none;
  }
  .dash-modal-title {
    font-size: 0.86rem;
  }
}





