/*
 * Liquid Glass Promo — Stylesheet
 * -----------------------------------------------
 * 1) Base / Typography / Layout
 * 2) Glass cards & Buttons (re-usable components)
 * 3) Sections (Hero, Promos, CTA) + responsive rules
 * 4) Background pattern (SVG dots & crosses)
 * 5) Utilities (Back-to-top / Go-to-bottom)
 * 6) Footer
 */

/* ==============================
   1) Base reset & typography
   ============================== */
* {
  box-sizing: border-box;
}

:root,
body,
button,
input,
textarea,
select,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Vazir", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Vazir", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #070c12;
  color: #eaf7ff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layout for sticky footer */
  padding-bottom: 0;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand accent color used across buttons, headings, etc. */
  --brand: #00ee77;
}

/* ==============================
   2) Glass cards (reusable wrapper)
   ============================== */

/* Generic glassmorphism container.
   Used for: hero copy, promo bodies, CTA cards, etc. */
.glass {
  position: relative;
  border: 1px solid rgba(0, 238, 119, 0.28);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: transparent;
  background-clip: padding-box;
}

.glass::before {
  /* Frosted blur overlay */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(48px) saturate(185%);
  -webkit-backdrop-filter: blur(48px) saturate(185%);
  background:
    linear-gradient(140deg,
      rgba(0, 238, 119, 0.12),
      rgba(255, 255, 255, 0.06)),
    linear-gradient(0deg,
      rgba(10, 16, 26, 0.72),
      rgba(10, 16, 26, 0.72));
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* ==============================
   3) Buttons (primary + Telegram)
   ============================== */

/* Primary pill button */
.btn {
  --brand: #00ee77;
  position: relative;
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid #00ee77;
  color: #062016;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  transform: translateZ(0);
  background: var(--brand);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
  overflow: hidden;
}

/* Button shine / highlight layers */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(150% 140% at 20% 0%,
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, .18) 35%,
      rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg,
      rgba(255, 255, 255, .16),
      rgba(255, 255, 255, 0) 40% 70%,
      rgba(255, 255, 255, .12));
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 -8px 18px rgba(0, 0, 0, .20);
  background: radial-gradient(80% 70% at 75% 85%,
      rgba(255, 255, 255, .10) 0%,
      rgba(255, 255, 255, 0) 70%);
}

.btn,
.btn * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  border-color: #00ee77;
}

.btn:active {
  transform: translateY(0);
}

/* Telegram-style button variant */
.btn-telegram {
  --brand: #229ED9;
  border-color: #229ED9;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-telegram svg {
  width: 22px;
  height: 22px;
  margin-inline-start: 0;
}

.btn-telegram svg path {
  fill: #ffffff;
}

/* CTA buttons row */
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==============================
   4) Hero shortcuts (quick access links)
   ============================== */

.hero-shortcuts-title {
  font-size: 13px;
  margin: 14px auto 6px;
  color: #9bf7e0;
  text-align: center;
}

/* Container for the 4 quick-access pills (sports, casino, etc.) */
.hero-shortcuts {
  margin-top: 8px;
  border: 1px solid rgba(0, 238, 119, 0.38);
  border-radius: 18px;
  padding: 8px 12px 10px;
  background: rgba(7, 12, 18, 0.9);
  width: 100%;
  max-width: min(980px, 92vw);
  margin-inline: auto;
}

.hero-shortcuts-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Individual shortcut button */
.hero-shortcut {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  color: #eaf7ff;
  padding: 6px 4px 4px;
  border-radius: 14px;
  cursor: pointer;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.hero-shortcut:hover {
  background: rgba(0, 238, 119, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-shortcut:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.hero-shortcut-icon {
  display: block;
  margin: 0 auto 4px;
  width: 26px;
  height: 26px;
}

.hero-shortcut-label {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 480.98px) {
  .hero-shortcuts-list {
    gap: 4px;
  }

  .hero-shortcut-label {
    font-size: 10px;
  }

  .hero-shortcut-icon {
    width: 24px;
    height: 24px;
  }
}

/* ==============================
   5) Generic section wrapper
   ============================== */

.section {
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 16px 12px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.section:not(.hero) {
  background: transparent;
}

.hero-copy .btn {
  margin-top: 20px;
}

.promo-body .btn {
  margin-top: 18px;
}

/* ==============================
   6) Top scroll progress bar
   ============================== */

.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 30;
  background: linear-gradient(90deg,
      rgba(155, 247, 224, 0.2),
      rgba(255, 255, 255, 0.0));
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9bf7e0, #d6fff5);
  transition: width .15s linear;
}

/* ==============================
   7) Background SVG pattern (dots + crosses)
   ============================== */

/* The SVG is empty in HTML, and fully populated by JS (script at bottom) */
.bg-svg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

/* Dot style */
.bg-dot {
  fill: none;
  stroke: #ffffff;
  stroke-opacity: .06;
  stroke-width: 2.2;
  transition:
    stroke .6s ease-in-out,
    stroke-opacity 1.2s ease-in-out;
}

/* Cross style */
.bg-cross line {
  stroke: #00ee77;
  stroke-opacity: .12;
  stroke-width: 2.8;
  stroke-linecap: round;
}

/* Dots that are "blinking" */
.bg-dot.is-lit {
  stroke: #00ee77;
  stroke-opacity: 0.7;
  filter: none;
}

/* ==============================
   8) Hero layout (image + copy)
   ============================== */

.hero-inner {
  width: min(980px, 92vw);
  display: grid;
  align-items: center;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* Hero image frame */
.hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}

/* Hero text block */
.hero-copy {
  padding: 26px;
  position: relative;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.8vw, 40px);
  line-height: 1.2;
  color: #00ee77;
}

.hero-copy p {
  margin: 0 0 16px;
  color: #d8f6ff;
}

/* Small line shown under hero panels */
.scroll-hint {
  opacity: .65;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* ==============================
   9) Vertical stack for panels (Promos section)
   ============================== */

.vstack {
  padding: 0;
}

.vstack .panels {
  display: block;
}

/* Each "panel" is one promo block */
.vstack .panel {
  min-height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 16px 12px;
  margin: 8px 0 20px;
  opacity: 1;
  transform: none;
  transition: transform .5s ease;
  position: relative;
}

/* When visible in viewport (class added via JS) */
.vstack .panel.is-visible {
  transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  html,
  body {
    scroll-snap-type: none;
  }

  .panel-head h2,
  .hero-copy h1,
  .cta-inner h3 {
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .btn {
    margin-inline: auto;
    display: inline-block;
  }

  .promo > .promo-media,
  .promo > .promo-body {
    justify-self: center;
    margin-inline: auto;
  }
}

/* ==============================
   10) Promo media sizing (round images)
   ============================== */

/* Each promo image is forced into a large circle (desktop & mobile) */
#promos .promo .promo-media {
  border-radius: 999px;
  overflow: hidden;
  width: 500px !important;
  max-width: min(92vw, 500px) !important;
  aspect-ratio: 1 / 1;
}

#promos .promo .promo-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023.98px) {
  #promos .promo .promo-media {
    width: 400px !important;
    max-width: min(92vw, 400px) !important;
  }
}

@media (max-width: 500.98px) {
  #promos .promo .promo-media {
    width: 300px !important;
    max-width: min(92vw, 300px) !important;
  }
}

/* Promo layout: image on top, text under (centered) */
#promos .promo {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 16px;
  justify-items: center;
  align-items: start;
}

#promos .promo .promo-media {
  justify-self: center;
  align-self: start;
}

#promos .promo .promo-body {
  width: 100%;
  max-width: min(92vw, 600px);
  margin-inline: auto;
  text-align: center;
}

#promos .panel {
  width: auto;
  margin-inline: auto;
}

.panel,
.promo-body,
.cta-inner {
  box-sizing: border-box;
}

.panel {
  padding: 16px 14px;
}

#promos .promo-body {
  padding: 16px 14px;
  width: 100%;
  max-width: min(92vw, 600px);
  margin-inline: auto;
  text-align: center;
}

/* ==============================
   11) Back-to-Top floating button
   ============================== */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 238, 119, 0.35);
  background: rgba(7, 12, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s;
  cursor: pointer;
  z-index: 40;
}

/* Shown when user scrolls down (class added via JS) */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: #00ee77;
  fill: none;
  stroke-width: 2;
}

/* ==============================
   12) CTA cards (Important notes + Support)
   ============================== */

/* Outer section wrapper for CTA cards */
section.cta-wrap {
  display: grid;
  place-items: center;
  margin-block-end: max(64px, env(safe-area-inset-bottom));
}

/* Glass CTA card itself */
section.cta-wrap .cta-inner.glass {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 24px 20px;
  margin-inline: auto;
  width: 100%;
  max-width: min(92vw, 640px);
}

section.cta-wrap .cta-inner.glass .btn {
  margin-inline: auto;
  display: inline-block;
}

body::after {
  content: "";
  display: block;
  height: 0;
}

.section:last-of-type {
  margin-bottom: 0;
}

/* ==============================
   13) Brand CTA image (footer promo)
   ============================== */

/* Clickable footer banner (image) that jumps back to promos */
.brand-cta {
  display: inline-grid;
  place-items: center;
  margin-inline: auto;
  outline: none;
  transform: translateZ(0);
  transition:
    transform .25s ease,
    filter .25s ease;
}

.brand-cta img {
  display: block;
  width: min(286px, 50vw);
  height: auto;
  max-height: none;
  -webkit-user-drag: none;
  user-select: none;
  image-rendering: auto;
}

.brand-cta:is(:hover, :focus-visible) {
  transform: translateY(-2px) scale(1.02);
}

.brand-cta:active {
  transform: translateY(0) scale(0.995);
}

section.cta-wrap .cta-inner.glass {
  justify-items: center;
  text-align: center;
}

section.cta-wrap .cta-inner.glass .btn {
  margin-inline: auto;
  display: inline-block;
}

@media (min-width: 640px) {
  .brand-cta img {
    width: min(308px, 45vw);
  }
}

/* Brand color applied to headings */
.hero-copy h1,
.panel-head h2,
.cta-inner h3 {
  color: var(--brand, #00ee77);
}

@media (min-width:1024px) {
  .hero-copy p {
    font-size: 18.5px;
    line-height: 1.75;
  }

  .promo-body p {
    font-size: 19px;
    line-height: 1.75;
  }

  .cta-inner p {
    font-size: 18px;
    line-height: 1.75;
  }
}

.cta-inner p {
  font-size: 17px;
  line-height: 1.7;
}

/* Highlight style for promo code boxes */
.promo-code {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--brand, #00ee77);
  border-radius: 12px;
  color: var(--brand, #00ee77);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: .5px;
  background: rgba(0, 238, 119, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.cta-inner .promo-code {
  margin: 6px auto 2px;
}

/* ==============================
   14) Go-to-bottom floating button
   ============================== */

/* Button that scrolls to bottom when user is at top */
.go-to-bottom {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 238, 119, 0.35);
  background: rgba(7, 12, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s;
  cursor: pointer;
  z-index: 40;
}

.go-to-bottom.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-bottom svg {
  width: 22px;
  height: 22px;
  stroke: #00ee77;
  fill: none;
  stroke-width: 2;
}

/* ==============================
   15) Footer (sticky at bottom)
   ============================== */

.site-footer {
  position: relative;
  z-index: 1;
  background-color: #060a0f !important;
  color: #eaf7ff;
  text-align: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  font-size: 14px;
  margin-top: auto;
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
  isolation: isolate;
}

@media (min-width:1024px) {
  .site-footer {
    font-size: 15px;
    padding: 18px 12px;
  }
}

/* ==============================
   16) Hero image tweaks for mobile
   (kept from your latest version)
   ============================== */

.hero-img {
  transform: none;
  bottom: auto;
}

.hero-img {
  object-position: 50% 50%;
  transform: none;
  bottom: -16px;
}

/* ==============================
   17) Visual separators between panels
   ============================== */

.vstack .panel:not(:last-child)::after {
  content: "";
  position: relative;
  display: block;
  width: 68%;
  height: 2px;
  margin: 18px auto 6px;
  background: linear-gradient(90deg,
      rgba(234, 247, 255, 0),
      rgba(234, 247, 255, 0.45),
      rgba(234, 247, 255, 0));
}

@media (min-width:1024px) {
  .vstack .panel:not(:last-child)::after {
    width: 56%;
    background: linear-gradient(90deg,
        rgba(0, 238, 119, 0),
        rgba(0, 238, 119, 0.55),
        rgba(0, 238, 119, 0));
  }

  #promos .panel .panel-head h2 {
    text-align: center;
    margin-inline: auto;
  }
}

/* ==============================
   18) HERO RESET
   (picture/IMG sizing overrides)
   ============================== */

/* Ensure picture fills hero container */
.hero-media > picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  z-index: 1;
}

/* Final hero image rule: full cover + absolute position */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: none;
}

@media (max-width:1023.98px) {
  .hero-media {
    width: 100%;
    margin-inline: 0;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .hero-img {
    object-position: 50% 50%;
  }
}

@media (min-width:1024px) {
  .hero-inner {
    justify-items: center;
  }

  .hero-media {
    width: calc(100% - 20px);
    margin-inline: auto;
    aspect-ratio: 21/5;
    max-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-img {
    object-position: center;
  }

  /* Center hero text card under banner on desktop */
  .hero-copy.glass {
    max-width: min(980px, 92vw);
    margin-top: 14px;
    text-align: center;
  }
}

/* ==============================
   19) List alignment inside promos
   ============================== */

#promos .promo-body ul {
  margin: 0 0 12px;
  padding: 0 1.4em 0 0;
  list-style-position: outside;
  text-align: right;
  direction: rtl;
}

#promos .promo-body ul li {
  text-align: right;
  margin: 4px 0;
}

/* Narrow hero shortcuts width on desktop for nicer alignment */
@media (min-width: 1024px) {
  .hero-shortcuts {
    /* Quick access width on desktop */
    max-width: 600px;
  }
}

/* ==============================
   20) Language switcher + final polish
   ============================== */

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.8vw, 40px);
  line-height: 1.28;
  color: var(--brand, #00ee77);
}

.language-switcher-wrap {
  width: min(980px, 92vw);
  margin: 0 auto 14px;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.language-switcher {
  direction: rtl;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(240px, 100%);
  padding: 5px;
  border: 1px solid rgba(0, 238, 119, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 18, 0.62);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  overflow: hidden;
  isolation: isolate;
}

.language-option {
  position: relative;
  z-index: 2;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(234, 247, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1px;
  transition:
    color .28s ease,
    transform .28s cubic-bezier(.2, .8, .2, 1);
}

.language-option:hover,
.language-option:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.language-option.is-active {
  color: #061d12;
}

.language-liquid {
  position: absolute;
  z-index: 1;
  top: 5px;
  right: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px 999px 999px 36px;
  background:
    radial-gradient(90% 120% at 18% 16%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, #35ff9c 0%, #00ee77 46%, #00bf62 100%);
  box-shadow:
    0 10px 26px rgba(0, 238, 119, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
  transform: translateX(0) scale(1);
  transform-origin: center;
  transition:
    transform .42s cubic-bezier(.2, .85, .2, 1.05),
    border-radius .42s ease,
    box-shadow .42s ease;
  pointer-events: none;
}

.language-liquid::before,
.language-liquid::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(.2px);
  opacity: .55;
  transition: transform .42s ease, opacity .42s ease;
}

.language-liquid::before {
  width: 15px;
  height: 15px;
  left: 18%;
  top: 23%;
}

.language-liquid::after {
  width: 9px;
  height: 9px;
  right: 18%;
  bottom: 22%;
  opacity: .32;
}

.language-switcher[data-current="ku"] .language-liquid,
.language-option:nth-child(2):hover ~ .language-liquid,
.language-option:nth-child(2):focus-visible ~ .language-liquid {
  transform: translateX(-100%) scale(1.02, .98);
  border-radius: 999px 999px 36px 999px;
}

.language-switcher[data-current="fa"] .language-option:nth-child(2):hover ~ .language-liquid,
.language-switcher[data-current="fa"] .language-option:nth-child(2):focus-visible ~ .language-liquid {
  box-shadow:
    0 13px 30px rgba(0, 238, 119, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.language-switcher[data-current="ku"] .language-option:nth-child(1):hover ~ .language-liquid,
.language-switcher[data-current="ku"] .language-option:nth-child(1):focus-visible ~ .language-liquid {
  transform: translateX(0) scale(1.02, .98);
  border-radius: 999px 999px 999px 36px;
}

@media (max-width: 480.98px) {
  .language-switcher-wrap {
    justify-content: center;
    margin-bottom: 12px;
  }

  .language-switcher {
    width: min(220px, 92vw);
  }

  .language-option {
    font-size: 12px;
    padding-inline: 12px;
  }
}

/* More refined shortcut hover state */
.hero-shortcut {
  position: relative;
  overflow: hidden;
}

.hero-shortcut::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 13px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0, 238, 119, 0.16), rgba(0, 238, 119, 0) 62%);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity .24s ease,
    transform .24s ease;
  pointer-events: none;
}

.hero-shortcut:hover::before,
.hero-shortcut:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.hero-shortcut:focus-visible {
  outline: 1px solid rgba(155, 247, 224, .78);
  outline-offset: 3px;
}

/* Floating scroll buttons: glass, clean, and brand-consistent */
.back-to-top,
.go-to-bottom {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 238, 119, 0.32);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(0, 238, 119, 0.12), rgba(0, 238, 119, 0) 58%),
    rgba(7, 12, 18, 0.44);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  transition:
    opacity .28s ease,
    transform .28s cubic-bezier(.2, .8, .2, 1),
    visibility .28s,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.back-to-top::before,
.go-to-bottom::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background:
    radial-gradient(70% 70% at 35% 25%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%);
  opacity: .7;
  pointer-events: none;
}

.back-to-top.show,
.go-to-bottom.show {
  transform: translateY(0) scale(1);
}

.back-to-top.show:hover,
.back-to-top:focus-visible,
.go-to-bottom.show:hover,
.go-to-bottom:focus-visible {
  border-color: rgba(155, 247, 224, 0.84);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(0, 238, 119, 0.18), rgba(0, 238, 119, 0) 62%),
    rgba(7, 12, 18, 0.60);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(0, 238, 119, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-3px) scale(1.03);
  outline: none;
}

.back-to-top:active,
.go-to-bottom:active {
  transform: translateY(0) scale(.98);
}

.back-to-top svg,
.go-to-bottom svg {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 23px;
  stroke: #9bf7e0;
  stroke-width: 2.15;
  transition:
    stroke .28s ease,
    transform .28s ease;
}

.back-to-top.show:hover svg {
  stroke: #ffffff;
  transform: translateY(-1px);
}

.go-to-bottom.show:hover svg {
  stroke: #ffffff;
  transform: translateY(1px);
}

/* Kurdish page text polish */
html[lang="ckb"] body,
html[lang="ckb"] button,
html[lang="ckb"] a,
html[lang="ckb"] h1,
html[lang="ckb"] h2,
html[lang="ckb"] h3,
html[lang="ckb"] p,
html[lang="ckb"] li {
  font-family: "Vazir", "Noto Sans Arabic", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

html[lang="ckb"] .promo-body p,
html[lang="ckb"] .cta-inner p {
  line-height: 1.9;
}

@media (prefers-reduced-motion: reduce) {
  .language-liquid,
  .language-option,
  .hero-shortcut,
  .hero-shortcut::before,
  .back-to-top,
  .go-to-bottom,
  .back-to-top svg,
  .go-to-bottom svg {
    transition: none !important;
    animation: none !important;
  }
}

/* ==============================
   21) Update pass: liquid interactions + fixed dynamic scroll button
   ============================== */

/* Keep language text readable while the liquid hover indicator moves. */
.language-option:hover,
.language-option:focus-visible {
  transform: none;
}

.language-switcher[data-current="fa"]:has(.language-option:nth-child(2):hover) .language-option:nth-child(1),
.language-switcher[data-current="fa"]:has(.language-option:nth-child(2):focus-visible) .language-option:nth-child(1),
.language-switcher[data-current="ku"]:has(.language-option:nth-child(1):hover) .language-option:nth-child(2),
.language-switcher[data-current="ku"]:has(.language-option:nth-child(1):focus-visible) .language-option:nth-child(2) {
  color: rgba(234, 247, 255, 0.86);
}

.language-switcher[data-current="fa"]:has(.language-option:nth-child(2):hover) .language-option:nth-child(2),
.language-switcher[data-current="fa"]:has(.language-option:nth-child(2):focus-visible) .language-option:nth-child(2),
.language-switcher[data-current="ku"]:has(.language-option:nth-child(1):hover) .language-option:nth-child(1),
.language-switcher[data-current="ku"]:has(.language-option:nth-child(1):focus-visible) .language-option:nth-child(1) {
  color: #061d12;
}

.language-switcher-wrap--bottom {
  margin: 22px auto 14px;
  justify-content: center;
}

/* Replace lift hover with a subtle liquid movement inside primary buttons. */
.btn {
  transition:
    filter .26s ease,
    box-shadow .26s ease,
    border-color .26s ease;
}

.btn::before {
  transform: translateX(0) scale(1);
  opacity: .95;
  transition:
    transform .42s cubic-bezier(.2, .85, .2, 1),
    opacity .26s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateZ(0);
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 15px 34px rgba(0, 0, 0, .34),
    0 0 22px rgba(0, 238, 119, .13),
    inset 0 1px 0 rgba(255, 255, 255, .36);
  border-color: rgba(155, 247, 224, .9);
  outline: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(-8%) scale(1.08, .96);
  opacity: 1;
}

.btn:active {
  transform: translateZ(0) scale(.985);
  filter: saturate(1.02) brightness(.99);
}

/* Shortcut buttons use liquid/glow feedback instead of moving upward. */
.hero-shortcut:hover,
.hero-shortcut:focus-visible {
  transform: none;
  background: rgba(0, 238, 119, 0.07);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.30),
    inset 0 0 0 1px rgba(155, 247, 224, .12);
}

.hero-shortcut:active {
  transform: scale(.985);
}

.hero-shortcut::before {
  background:
    radial-gradient(70% 120% at 18% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 48%),
    radial-gradient(95% 120% at 50% 0%, rgba(0, 238, 119, 0.20), rgba(0, 238, 119, 0) 66%);
  transform: translateX(12%) scale(.96, 1);
  transition:
    opacity .26s ease,
    transform .42s cubic-bezier(.2, .85, .2, 1);
}

.hero-shortcut:hover::before,
.hero-shortcut:focus-visible::before {
  opacity: 1;
  transform: translateX(-10%) scale(1.04, .98);
}

/* One fixed scroll control. The icon rotates in place between down/up. */
.page-scroll-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 238, 119, 0.34);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(0, 238, 119, 0.12), rgba(0, 238, 119, 0) 58%),
    rgba(7, 12, 18, 0.48);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(.94);
  cursor: pointer;
  z-index: 40;
  overflow: hidden;
  transition:
    opacity .28s ease,
    transform .28s cubic-bezier(.2, .85, .2, 1),
    visibility .28s,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.page-scroll-toggle.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.page-scroll-toggle::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background:
    radial-gradient(70% 70% at 35% 25%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%),
    radial-gradient(100% 120% at 52% 100%, rgba(0, 238, 119, .12), rgba(0, 238, 119, 0) 64%);
  opacity: .74;
  transform: translateY(0) scale(1);
  transition:
    opacity .28s ease,
    transform .42s cubic-bezier(.2, .85, .2, 1);
  pointer-events: none;
}

.page-scroll-toggle:hover,
.page-scroll-toggle:focus-visible {
  border-color: rgba(155, 247, 224, 0.86);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(0, 238, 119, 0.18), rgba(0, 238, 119, 0) 62%),
    rgba(7, 12, 18, 0.62);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(0, 238, 119, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: scale(1.035);
  outline: none;
}

.page-scroll-toggle:hover::before,
.page-scroll-toggle:focus-visible::before {
  opacity: .95;
  transform: translateY(-4%) scale(1.08, .94);
}

.page-scroll-toggle:active {
  transform: scale(.98);
}

.page-scroll-toggle svg {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 23px;
  stroke: #9bf7e0;
  fill: none;
  stroke-width: 2.15;
  transition:
    stroke .28s ease,
    transform .42s cubic-bezier(.2, .85, .2, 1);
}

.page-scroll-toggle.is-up svg {
  transform: rotate(180deg);
}

.page-scroll-toggle:hover svg,
.page-scroll-toggle:focus-visible svg {
  stroke: #ffffff;
}

@media (max-width: 480.98px) {
  .language-switcher-wrap--bottom {
    margin-top: 18px;
    margin-bottom: 12px;
  }

  .page-scroll-toggle {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .hero-shortcut,
  .hero-shortcut::before,
  .language-option,
  .page-scroll-toggle,
  .page-scroll-toggle::before,
  .page-scroll-toggle svg {
    transition: none !important;
    animation: none !important;
  }
}

/* ==============================
   22) V3 polish: stronger liquid hover + scrolling spin
   ============================== */

/* Stronger but still brand-consistent liquid response on CTA buttons. */
.btn {
  will-change: transform, filter, box-shadow;
}

.btn::before {
  background:
    radial-gradient(115% 135% at 18% 12%,
      rgba(255, 255, 255, .72) 0%,
      rgba(255, 255, 255, .30) 26%,
      rgba(255, 255, 255, 0) 52%),
    radial-gradient(85% 110% at 82% 78%,
      rgba(0, 255, 148, .34) 0%,
      rgba(0, 255, 148, .08) 34%,
      rgba(0, 255, 148, 0) 68%),
    linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .22) 42%,
      rgba(255, 255, 255, 0) 62% 100%);
  background-size: 100% 100%, 100% 100%, 230% 100%;
  background-position: center, center, 120% 0;
}

.btn:hover,
.btn:focus-visible {
  transform: translateZ(0) scale(1.018);
  filter: saturate(1.18) brightness(1.08);
  border-color: rgba(196, 255, 235, .98);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .36),
    0 0 30px rgba(0, 238, 119, .30),
    0 0 58px rgba(0, 238, 119, .12),
    inset 0 1px 0 rgba(255, 255, 255, .46);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(-12%) scale(1.12, .94);
  animation: liquidButtonSweep 1.45s ease-in-out infinite;
}

.btn:hover::after,
.btn:focus-visible::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .38),
    inset 0 -10px 22px rgba(0, 0, 0, .22),
    inset 0 0 20px rgba(255, 255, 255, .10);
}

@keyframes liquidButtonSweep {
  0%, 100% {
    background-position: center, center, 118% 0;
    border-radius: inherit;
  }
  48% {
    background-position: center, center, -32% 0;
    border-radius: 999px 999px 40px 999px;
  }
}

/* Make shortcut hover clearly visible without moving the button upward. */
.hero-shortcut {
  border: 1px solid transparent;
  will-change: filter, box-shadow, background;
}

.hero-shortcut > * {
  position: relative;
  z-index: 1;
}

.hero-shortcut:hover,
.hero-shortcut:focus-visible {
  background:
    radial-gradient(80% 140% at 22% 12%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 56%),
    rgba(0, 238, 119, 0.13);
  border-color: rgba(155, 247, 224, .34);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(0, 238, 119, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  filter: saturate(1.16) brightness(1.08);
}

.hero-shortcut:hover::before,
.hero-shortcut:focus-visible::before {
  opacity: 1;
  transform: translateX(-18%) scale(1.16, .92);
  background:
    radial-gradient(90% 120% at 18% 18%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 52%),
    radial-gradient(110% 130% at 50% 0%, rgba(0, 238, 119, 0.36), rgba(0, 238, 119, 0) 68%);
}

.hero-shortcut:hover .hero-shortcut-icon,
.hero-shortcut:focus-visible .hero-shortcut-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 9px rgba(155, 247, 224, .38));
}

.hero-shortcut-icon {
  transition:
    transform .28s cubic-bezier(.2, .85, .2, 1),
    filter .28s ease;
}

/* Spin the floating arrow while the page is auto-scrolling. */
.page-scroll-toggle.is-scrolling {
  border-color: rgba(196, 255, 235, .92);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 238, 119, .24),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.page-scroll-toggle.is-scrolling::before {
  opacity: 1;
  animation: scrollLiquidPulse .82s ease-in-out infinite;
}

.page-scroll-toggle.is-scrolling.is-down svg {
  animation: scrollArrowSpinDown .68s linear infinite;
}

.page-scroll-toggle.is-scrolling.is-up svg {
  animation: scrollArrowSpinUp .68s linear infinite;
}

@keyframes scrollArrowSpinDown {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollArrowSpinUp {
  from { transform: rotate(180deg); }
  to { transform: rotate(540deg); }
}

@keyframes scrollLiquidPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    border-radius: inherit;
  }
  50% {
    transform: translateY(-5%) scale(1.12, .90);
    border-radius: 999px 999px 40px 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::before,
  .btn:focus-visible::before,
  .page-scroll-toggle.is-scrolling::before,
  .page-scroll-toggle.is-scrolling.is-down svg,
  .page-scroll-toggle.is-scrolling.is-up svg {
    animation: none !important;
  }
}


/* ==============================
   23) V4 polish: luxury scroll ease + arrow-to-ring morph
   ============================== */

/* Stop the old whole-SVG rotation. The arrow now rotates inside the SVG. */
.page-scroll-toggle .scroll-toggle-icon,
.page-scroll-toggle.is-up .scroll-toggle-icon,
.page-scroll-toggle.is-scrolling.is-down .scroll-toggle-icon,
.page-scroll-toggle.is-scrolling.is-up .scroll-toggle-icon {
  transform: none !important;
  animation: none !important;
}

.page-scroll-toggle .scroll-toggle-icon {
  overflow: visible;
  filter: drop-shadow(0 0 0 rgba(155, 247, 224, 0));
  transition:
    stroke .28s ease,
    filter .34s ease;
}

.page-scroll-toggle:hover .scroll-toggle-icon,
.page-scroll-toggle:focus-visible .scroll-toggle-icon,
.page-scroll-toggle.is-scrolling .scroll-toggle-icon {
  filter: drop-shadow(0 0 8px rgba(155, 247, 224, .30));
}

.page-scroll-toggle .scroll-arrow {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition:
    opacity .34s ease,
    transform .52s cubic-bezier(.16, 1, .3, 1);
}

.page-scroll-toggle.is-up .scroll-arrow {
  transform: rotate(180deg) scale(1);
}

/* During travel, the arrow finishes its motion forward while dissolving into a ring. */
.page-scroll-toggle.is-scrolling.is-down .scroll-arrow {
  opacity: 0;
  transform: rotate(360deg) scale(.30);
}

.page-scroll-toggle.is-scrolling.is-up .scroll-arrow {
  opacity: 0;
  transform: rotate(540deg) scale(.30);
}

/* Prevent the visible reverse snap when the final direction is restored. */
.page-scroll-toggle.is-settling .scroll-arrow {
  transition:
    opacity .36s ease,
    transform 0s linear !important;
}

.page-scroll-toggle .scroll-ring {
  opacity: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 20 22;
  transform-origin: center;
  transform-box: fill-box;
  transform: rotate(-90deg) scale(.66);
  transition:
    opacity .28s ease,
    transform .46s cubic-bezier(.16, 1, .3, 1),
    stroke-dasharray .34s ease;
}

.page-scroll-toggle.is-scrolling .scroll-ring {
  opacity: 1;
  stroke-dasharray: 23 18;
  transform: rotate(-90deg) scale(1);
  animation: scrollRingLuxurySpin .92s linear infinite;
}

.page-scroll-toggle.is-settling .scroll-ring {
  opacity: 0;
  transition:
    opacity .22s ease,
    transform .22s ease;
}

@keyframes scrollRingLuxurySpin {
  from {
    transform: rotate(-90deg) scale(1);
  }
  to {
    transform: rotate(270deg) scale(1);
  }
}

/* A slightly more liquid travel state while keeping the button in its fixed place. */
.page-scroll-toggle.is-scrolling::before {
  animation: scrollLiquidPulse 1.05s cubic-bezier(.45, 0, .25, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .page-scroll-toggle .scroll-arrow,
  .page-scroll-toggle .scroll-ring,
  .page-scroll-toggle.is-scrolling .scroll-ring {
    transition: none !important;
    animation: none !important;
  }
}


/* ==============================
   24) V5 update: promo guide + clearer liquid hover
   ============================== */

.promo-guide {
  width: min(100%, 340px);
  margin: 16px auto 18px;
  display: grid;
  gap: 12px;
}

.promo-guide-item {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 238, 119, .30);
  background: rgba(7, 12, 18, .62);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .34),
    0 0 28px rgba(0, 238, 119, .08),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

.promo-guide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.promo-guide-item img {
  display: block;
  width: 100%;
  height: auto;
}

.btn:hover,
.btn:focus-visible {
  transform: translateZ(0) scale(1.035);
  filter: saturate(1.24) brightness(1.12);
  border-color: rgba(218, 255, 243, 1);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, .42),
    0 0 34px rgba(0, 238, 119, .42),
    0 0 72px rgba(0, 238, 119, .18),
    inset 0 1px 0 rgba(255, 255, 255, .56);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: translateX(-18%) scale(1.18, .90);
  animation: liquidButtonSweep 1.18s cubic-bezier(.45, 0, .2, 1) infinite;
}

.hero-shortcut:hover,
.hero-shortcut:focus-visible {
  color: #ffffff;
  background: rgba(0, 238, 119, .12);
  transform: translateZ(0) scale(1.035);
  border-color: rgba(155, 247, 224, .42);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, .38),
    0 0 28px rgba(0, 238, 119, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.hero-shortcut:hover::before,
.hero-shortcut:focus-visible::before {
  opacity: .92;
  transform: translateX(-16%) scale(1.24, .92);
  background:
    radial-gradient(75% 90% at 22% 20%, rgba(255, 255, 255, .22), transparent 58%),
    linear-gradient(120deg, transparent 0%, rgba(0, 238, 119, .10) 35%, rgba(255, 255, 255, .16) 50%, rgba(0, 238, 119, .08) 65%, transparent 100%);
}

.hero-shortcut:hover .hero-shortcut-icon,
.hero-shortcut:focus-visible .hero-shortcut-icon {
  filter: drop-shadow(0 0 8px rgba(0, 238, 119, .58));
  transform: scale(1.07);
}

@media (max-width: 520.98px) {
  .promo-guide {
    width: min(100%, 360px);
    gap: 10px;
  }

  .promo-guide-item {
    border-radius: 14px;
  }
}
