/*
 * 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
   (used for Christmas bullets)
   ============================== */

#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;
  }
}
