@font-face {
  font-family: "Kalameh";
  src: url("/static/fonts/Kalameh-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg0: #1a1d21;
  --bg1: #2a2f36;
  --ink: #f2f2f2;
  --muted: #a8aeb6;
  --line: rgba(242, 242, 242, 0.12);
  --accent: #f0c040;
  --yellow: #f5d76e;
  --yellow-hot: #ffe566;
  --gray: #6b7280;
  --gray-2: #3a4048;
  --danger: #e53935;
  --ok: #2fd4a0;
  --card: rgba(42, 47, 54, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-fa: "Kalameh", "Vazirmatn", sans-serif;
  --font-display: "Kalameh", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-fa);
  color: var(--ink);
  background: #1a1d21;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ===================================================
   ELEGANT GREY PRELOADER (GAME LUCKY ANIMATION)
   =================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #14171c;
  background: radial-gradient(circle at 50% 45%, #242b35 0%, #111418 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease-out,
    transform 0.55s ease-out,
    visibility 0.55s;
  pointer-events: all;
  contain: strict;
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.site-preloader.is-loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(1.03) translateZ(0) !important;
}

.preloader-art-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  margin-top: -20px;
  margin-bottom: 1.2rem;
  will-change: transform;
}

.preloader-svg-anim {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transform: translateZ(0);
}

.preloader-overlay-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
  transform: translateZ(0);
}

.preloader-glow-text {
  font-family: var(--font-fa), 'Kalameh', 'Vazirmatn', sans-serif;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #f5f7fb;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

.preloader-sub-text {
  font-family: 'Orbitron', 'Kalameh', 'Vazirmatn', sans-serif;
  font-size: clamp(0.68rem, 2.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a0abbd;
  opacity: 0.9;
  margin-bottom: 1.1rem;
}

.preloader-cyber-bar {
  position: relative;
  width: 200px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateZ(0);
}

.preloader-cyber-bar .cyber-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, #e11d48 0%, #f59e0b 50%, #ffe566 100%);
  box-shadow: 0 0 10px rgba(255, 229, 102, 0.7);
  border-radius: 4px;
}

.preloader-percent {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: clamp(0.75rem, 3vw, 0.88rem);
  font-weight: 800;
  color: #ffe566;
  text-shadow: 0 0 10px rgba(255, 229, 102, 0.6);
  margin-top: 0.65rem;
  letter-spacing: 0.06em;
  min-width: 48px;
  text-align: center;
}

/* ===================================================
   INTERACTIVE LIQUID NEBULA SHADER BACKGROUND (21st.dev)
   =================================================== */
.liquid-shader-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0d0f13;
  opacity: 0.85;
}

.liquid-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.liquid-shader-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.45) 0%, rgba(14, 16, 20, 0.78) 100%),
    radial-gradient(circle at center, transparent 35%, rgba(10, 12, 16, 0.65) 100%);
  pointer-events: none;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05) brightness(0.45);
  opacity: 0.85;
}

.neon-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 215, 110, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 229, 102, 0.12), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(107, 114, 128, 0.35), transparent 45%),
    linear-gradient(145deg, #15181c, #242930 50%, #12151a);
  background-size: 200% 200%;
  animation: neonDrift 14s ease-in-out infinite;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 24, 0.55), rgba(18, 20, 24, 0.78)),
    radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 215, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 215, 110, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.cursor-halo {
  display: none !important;
}

/* Custom Aim Cursor (Gaming Crosshair) & Soft Trailing Halo */
.aim-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  color: #f5d76e;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, color 0.18s ease;
  will-change: transform;
}

/* Hide standard cursor when aim cursor is enabled */
body.has-aim-cursor,
body.has-aim-cursor * {
  cursor: none !important;
}

/* Maintain cursor: text for inputs so user can still type easily */
body.has-aim-cursor input,
body.has-aim-cursor textarea,
body.has-aim-cursor select {
  cursor: text !important;
}

/* Explicitly enforce clear mouse cursors on Admin page */
body.admin-page,
body.admin-page * {
  cursor: auto !important;
}

body.admin-page button,
body.admin-page a,
body.admin-page [role="button"],
body.admin-page .btn,
body.admin-page .admin-tab,
body.admin-page tr[data-customer-id] {
  cursor: pointer !important;
}

body.admin-page input,
body.admin-page textarea,
body.admin-page select {
  cursor: text !important;
}

/* Red morph state on interactive elements (links, buttons) */
.aim-cursor.is-link {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  color: #ff3b30;
}

/* Aim Crosshair Components */
.aim-ring {
  position: absolute;
  inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  opacity: 0.9;
  transition: inset 0.18s ease, border-width 0.18s ease, box-shadow 0.18s ease;
}

.aim-cursor.is-link .aim-ring {
  inset: 2px;
  border-width: 2px;
  box-shadow: 0 0 16px #ff3b30;
}

.aim-h,
.aim-v {
  position: absolute;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  transition: background 0.18s ease;
}

.aim-h {
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
}

.aim-v {
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
}

.aim-h::before {
  content: "";
  position: absolute;
  left: 40%;
  right: 40%;
  top: 0;
  bottom: 0;
  background: #111;
}

.aim-v::before {
  content: "";
  position: absolute;
  top: 40%;
  bottom: 40%;
  left: 0;
  right: 0;
  background: #111;
}

.aim-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.aim-cursor.is-link .aim-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #ff3b30;
  box-shadow: 0 0 12px #ff3b30;
}

.aim-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: currentColor;
  border-style: solid;
  opacity: 0.85;
  transition: width 0.18s ease, height 0.18s ease;
}

.aim-corner.tl {
  left: 0;
  top: 0;
  border-width: 1.5px 0 0 1.5px;
}

.aim-corner.tr {
  right: 0;
  top: 0;
  border-width: 1.5px 1.5px 0 0;
}

.aim-corner.bl {
  left: 0;
  bottom: 0;
  border-width: 0 0 1.5px 1.5px;
}

.aim-corner.br {
  right: 0;
  bottom: 0;
  border-width: 0 1.5px 1.5px 0;
}

.aim-cursor.is-link .aim-corner {
  width: 9px;
  height: 9px;
}

.aim-cursor.is-link .aim-corner.tl {
  border-width: 2px 0 0 2px;
}

.aim-cursor.is-link .aim-corner.tr {
  border-width: 2px 2px 0 0;
}

.aim-cursor.is-link .aim-corner.bl {
  border-width: 0 0 2px 2px;
}

.aim-cursor.is-link .aim-corner.br {
  border-width: 0 2px 2px 0;
}

/* Trailing Soft Glow/Blur Halo */
.site-cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999998 !important;
  opacity: 0.85 !important;
  background: radial-gradient(circle, rgba(245, 215, 110, 0.35) 0%, rgba(245, 215, 110, 0.12) 50%, transparent 80%);
  filter: blur(4px);
  box-shadow: 0 0 20px rgba(245, 215, 110, 0.3);
  transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.site-cursor-trail.is-on {
  opacity: 0.85 !important;
}

.site-cursor-trail.is-link {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.45) 0%, rgba(255, 59, 48, 0.15) 50%, transparent 80%);
  box-shadow: 0 0 26px rgba(255, 59, 48, 0.4);
}

.home-page.in-games-marquee .site-cursor-trail {
  opacity: 0 !important;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(26, 29, 33, 0.55);
}

/* Navigation Soft Pleasant Neon Breathing Indicator for Tournaments */
.nav-link.nav-link-tournament {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 0.85rem !important;
  border-radius: 999px !important;
  background: rgba(255, 23, 68, 0.22) !important;
  border: 1.2px solid #ff1744 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.9);
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.45), inset 0 0 8px rgba(255, 23, 68, 0.2);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
  animation: softNeonBreathing 2.2s ease-in-out infinite !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.nav-link.nav-link-tournament:hover,
.nav-link.nav-link-tournament.active {
  background: rgba(255, 23, 68, 0.85) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 0 14px #ffffff, 0 0 24px #ff1744;
  box-shadow: 0 0 30px #ff1744, 0 0 50px rgba(255, 23, 68, 0.8), inset 0 0 14px rgba(255, 255, 255, 0.6);
  transform: none !important;
}

@keyframes softNeonBreathing {

  0%,
  100% {
    opacity: 0.85;
    background: rgba(255, 23, 68, 0.18) !important;
    border-color: rgba(255, 23, 68, 0.75) !important;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.35), inset 0 0 6px rgba(255, 23, 68, 0.2) !important;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.7) !important;
  }

  50% {
    opacity: 1;
    background: rgba(255, 23, 68, 0.45) !important;
    border-color: #ff5252 !important;
    box-shadow: 0 0 26px rgba(255, 23, 68, 0.85), 0 0 42px rgba(255, 23, 68, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 0 14px #ffffff, 0 0 24px #ff1744 !important;
  }
}

/* Smooth Laser Scan Line Underneath / Back-and-Forth Motion */
.nav-scan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, #ff1744, #ffffff, transparent);
  box-shadow: 0 0 12px #ff1744, 0 0 6px #ffffff;
  pointer-events: none;
  border-radius: 999px;
  animation: laserScanMotion 1.5s ease-in-out infinite alternate;
}

@keyframes laserScanMotion {
  0% {
    left: -10%;
    opacity: 0.4;
  }

  100% {
    left: 60%;
    opacity: 1;
  }
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(245, 215, 110, 0.35);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.top-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.auth-area {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.user-chip {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
  padding-bottom: 2px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.ghost-link:hover {
  color: var(--yellow);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f5d76e, #e6b800);
  color: #111;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(245, 215, 110, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-room-login {
  width: 100%;
  margin-top: 0.55rem;
  background: #e53935;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-fa);
  font-size: 0.82rem;
  box-shadow:
    0 3px 0 rgba(183, 28, 28, 0.55),
    0 8px 16px rgba(183, 28, 28, 0.38),
    0 3px 8px rgba(0, 0, 0, 0.18);
}

.btn-room-enter {
  width: 100%;
  margin-top: 0.65rem;
  background: #e69500;
  color: #0d0d0d;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-fa);
  font-size: 1.05rem;
  box-shadow:
    0 4px 0 #b37400,
    0 8px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.18s ease;
}

.btn-room-enter:hover {
  background: #f5a623;
  color: #000000;
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #b37400,
    0 12px 24px rgba(0, 0, 0, 0.45);
}

.hero {
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.4rem 1.5rem 1.4rem;
  animation: rise 0.8s ease both;
}

.hero-logo {
  width: min(460px, 72vw);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 0 22px rgba(245, 215, 110, 0.25));
}

.hero-kicker {
  color: var(--yellow);
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #f7f7f7;
  text-shadow: 0 0 28px rgba(245, 215, 110, 0.28);
  animation: brandPulse 3.5s ease-in-out infinite;
}

.hero-copy {
  max-width: 34rem;
  color: var(--muted);
  margin: 1rem auto 0;
  font-size: 1.05rem;
  text-align: center;
}

.section {
  padding: 1rem 1.5rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 0.4rem;
}

.section-head p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  transition: filter 0.25s ease;
  width: 100%;
  margin: 0 auto;
}

.rooms-grid.is-dimming .room-tile {
  opacity: 0.28;
  filter: grayscale(0.55) brightness(0.7);
  transform: scale(0.98);
}

.rooms-grid.is-dimming .room-tile:hover,
.rooms-grid.is-dimming .room-tile.is-hot {
  opacity: 1;
  filter: none;
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}

.room-tile {
  text-align: center;
  background: rgba(22, 27, 34, 0.68) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(245, 215, 110, 0.32) !important;
  border-radius: 22px !important;
  padding: 0.7rem 0.7rem 0.9rem !important;
  cursor: default;
  color: #fff !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  box-shadow: 
    0 16px 36px -8px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 0 22px rgba(245, 215, 110, 0.12) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              opacity 0.25s ease, 
              filter 0.25s ease;
  animation: fadeUp 0.55s ease both;
  position: relative;
  isolation: isolate;
}

.room-tile-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #111;
  border-radius: 16px;
  box-shadow: 
    0 14px 28px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.5) !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.room-tile:hover .room-tile-media,
.room-tile.is-hot .room-tile-media {
  transform: scale(1.02);
  box-shadow: 
    0 18px 36px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(245, 215, 110, 0.25) !important;
  border-color: rgba(245, 215, 110, 0.4) !important;
}

.room-tile-body {
  padding: 0.65rem 0.35rem 0.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.room-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 215, 110, 0.55), transparent);
  pointer-events: none;
}

.room-tile:hover,
.room-tile.is-hot {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(245, 215, 110, 0.75) !important;
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 38px rgba(245, 215, 110, 0.35) !important;
}

.room-tile h3,
.home-page .rooms-grid .room-tile h3 {
  margin: 0.4rem 0 0.2rem !important;
  font-size: 1.55rem !important;
  color: var(--room-neon, #ffffff) !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-shadow:
    0 0 6px var(--room-neon, rgba(255, 255, 255, 0.8)),
    0 0 14px var(--room-neon, rgba(245, 215, 110, 0.6)),
    0 0 28px var(--room-neon, rgba(245, 215, 110, 0.4)),
    0 0 45px var(--room-neon, rgba(245, 215, 110, 0.25)),
    0 2px 10px rgba(0, 0, 0, 0.8) !important;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.room-tile:hover h3,
.room-tile.is-hot h3 {
  text-shadow:
    0 0 8px var(--room-neon, #ffffff),
    0 0 18px var(--room-neon, rgba(255, 255, 255, 0.9)),
    0 0 35px var(--room-neon, rgba(245, 215, 110, 0.7)),
    0 0 60px var(--room-neon, rgba(245, 215, 110, 0.5)),
    0 2px 12px rgba(0, 0, 0, 0.95) !important;
}

.home-page .rooms-grid .room-tile .badge {
  display: none;
}

.home-page .rooms-grid .room-tile .specs {
  color: #d1d5db !important;
  font-size: 0.84rem;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  background: rgba(10, 14, 20, 0.6) !important;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.home-page .rooms-grid .room-tile .specs strong {
  color: var(--yellow, #f5d76e) !important;
  font-weight: 700;
}

.home-page .rooms-grid .room-tile .room-price {
  margin: 0.45rem 0 0.15rem;
  text-align: center;
  color: #ff5a5a !important;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(255, 90, 90, 0.4) !important;
}

.specs {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.specs strong {
  color: var(--ink);
  font-weight: 600;
}

.badge {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--yellow);
  font-size: 0.86rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 14, 0.78);
  padding: 1rem;
  z-index: 1000;
  cursor: pointer;
}

.modal-alert {
  z-index: 1100;
}

.modal.hidden,
.hidden {
  display: none !important;
}

.modal-card {
  width: min(440px, 100%);
  background: #2a2f36;
  border: 1px solid rgba(245, 215, 110, 0.28);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  animation: pop 0.25s ease;
  cursor: default;
  pointer-events: auto;
}

.modal-card-alert {
  background: #fff;
  border: 2px solid #d32f2f;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -2px 0 rgba(0, 0, 0, 0.08) inset,
    0 4px 0 #9a1c1c,
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(211, 47, 47, 0.25);
  color: #111;
}

.modal-card-alert h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: #111;
  font-size: 1.45rem;
  font-weight: 800;
}

.modal-card-alert p {
  margin: 0;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-card-alert .btn-alert {
  background: #d32f2f;
  color: #fff;
  border: 1px solid #b71c1c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 3px 0 #8e1a1a;
  font-weight: 700;
}

.modal-card-alert .btn-alert:hover {
  background: #c62828;
  border-color: #9a1c1c;
}

/* Customer Database Distinct Premium Red Action Button */
.btn-customer-db {
  background: linear-gradient(135deg, #ff2a44 0%, #d31830 50%, #a80c20 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 107, 129, 0.65);
  box-shadow: 0 4px 20px rgba(229, 30, 55, 0.45), 0 0 15px rgba(255, 42, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-customer-db svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  transition: transform 0.25s ease;
}

.btn-customer-db:hover {
  background: linear-gradient(135deg, #ff4158 0%, #e61d36 50%, #b80f25 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 30, 55, 0.65), 0 0 20px rgba(255, 65, 88, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 160, 175, 0.85);
}

.btn-customer-db:hover svg {
  transform: scale(1.1);
}

.btn-customer-db:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(229, 30, 55, 0.5);
}

.btn-customer-db.active {
  background: linear-gradient(135deg, #ff1744 0%, #c62828 100%);
  border: 1.5px solid #ff80ab;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.75), 0 0 12px rgba(255, 82, 82, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  outline: 2px solid rgba(255, 128, 171, 0.4);
  outline-offset: 2px;
}

.customer-search-field {
  width: 100%;
  max-width: 480px;
  padding: 0.8rem 1.1rem;
  background: rgba(18, 22, 28, 0.95);
  border: 1px solid rgba(245, 215, 110, 0.4);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.98rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.customer-search-field:focus {
  outline: none;
  border-color: #f5d76e;
  box-shadow: 0 0 12px rgba(245, 215, 110, 0.35);
}

.customer-row-click {
  cursor: pointer;
  transition: background 0.2s ease;
}

.customer-row-click:hover {
  background: rgba(245, 215, 110, 0.12) !important;
}

.customer-details-box {
  background: rgba(18, 22, 28, 0.95);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.customer-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 215, 110, 0.12);
  border: 1px solid rgba(245, 215, 110, 0.3);
  color: var(--yellow, #f5d76e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-title-text {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.customer-sub-text {
  margin: 4px 0 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.close-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.close-details-btn:hover {
  border-color: #ff5252;
  color: #ff5252;
}

/* Summary Stats */
.customer-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-card.gold {
  background: rgba(245, 215, 110, 0.06);
  border-color: rgba(245, 215, 110, 0.25);
}

.summary-card .card-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.summary-card .card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.summary-card.gold .card-value {
  color: var(--yellow, #f5d76e);
}

.customer-orders-tables {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.order-block-card {
  background: rgba(12, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.2rem;
}

.block-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.block-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--yellow, #f5d76e);
}

.block-icon {
  font-size: 1.2rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.status-confirmed,
.status-badge.status-ok {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-pending,
.status-badge.status-wait {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.status-rejected,
.status-badge.status-cancelled,
.status-badge.status-no {
  background: rgba(244, 67, 54, 0.15);
  color: #e57373;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.wide-card {
  width: min(560px, 100%);
}

.modal-card h3 {
  margin-top: 0;
  color: var(--yellow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a1d21;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(245, 215, 110, 0.55);
  border-color: rgba(245, 215, 110, 0.55);
}

.slide-select {
  appearance: none;
  background-image: linear-gradient(90deg, transparent, rgba(245, 215, 110, 0.08), transparent);
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(245, 215, 110, 0.35);
  background: #1a1d21;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.chip.active,
.chip:hover {
  background: rgba(245, 215, 110, 0.18);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.25);
}

.error {
  color: var(--danger);
  margin: 0;
}

.hint {
  color: var(--yellow);
  margin: 0;
  font-size: 0.86rem;
}

.invoice-card,
.scroll-card {
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0.9rem;
}

.invoice-card>h3,
.scroll-card>h3 {
  flex: 0 0 auto;
  margin-bottom: 0.55rem;
}

.invoice-scroll,
.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0.2rem 0.4rem;
  margin-inline-end: -0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 215, 110, 0.55) rgba(26, 29, 33, 0.8);
}

.invoice-scroll::-webkit-scrollbar,
.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.invoice-scroll::-webkit-scrollbar-track,
.modal-scroll::-webkit-scrollbar-track {
  background: rgba(26, 29, 33, 0.8);
  border-radius: 999px;
}

.invoice-scroll::-webkit-scrollbar-thumb,
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 215, 110, 0.55);
  border-radius: 999px;
}

.reserve-card .specs {
  margin-bottom: 0.9rem;
}

.invoice-body {
  display: grid;
  gap: 0.45rem;
  margin: 0.2rem 0 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 215, 110, 0.22);
  background: rgba(26, 29, 33, 0.7);
}

.invoice-body div {
  color: var(--muted);
}

.invoice-body strong {
  color: var(--ink);
}

.time-in {
  color: #42a5f5;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.time-out {
  color: #ff9800;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.upload-box {
  border: 1px dashed rgba(245, 215, 110, 0.45);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: var(--yellow);
  background: rgba(26, 29, 33, 0.55);
}

.upload-box input {
  margin-top: 0.6rem;
}

.admin-main {
  padding: 2rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.admin-gate {
  max-width: 380px;
  margin: 3rem auto;
  padding: 1.4rem;
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 16px;
  background: var(--card);
  text-align: center;
}

.admin-gate h1,
.admin-gate h2 {
  margin-top: 0;
}

.admin-login-form {
  margin-top: 1rem;
  text-align: right;
}

.admin-rooms-grid {
  max-width: none;
  margin: 0;
}

.admin-page .admin-room-card h3 {
  color: var(--room-neon, #fff) !important;
  font-size: 1.4rem;
  text-shadow: 0 0 8px var(--room-neon, rgba(255, 255, 255, 0.8)), 0 0 18px var(--room-neon, rgba(245, 215, 110, 0.5));
}

.admin-page .admin-room-card .specs {
  color: #d1d5db !important;
  text-align: right;
  font-size: 0.82rem;
  background: rgba(10, 14, 20, 0.55);
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-page .admin-room-card .specs strong {
  color: var(--yellow, #f5d76e) !important;
}

.btn-delete-room {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  background: #e53935;
  color: #fff !important;
  font-family: var(--font-fa);
  font-weight: 700;
  cursor: pointer;
}

.btn-delete-room:disabled {
  opacity: 0.7;
  cursor: wait;
}

.room-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid rgba(245, 215, 110, 0.22);
  border-radius: 16px;
  background: var(--card);
}

.room-form .full {
  grid-column: 1 / -1;
}

.room-form .btn {
  justify-self: start;
}

.field-with-color {
  display: grid;
  gap: 0.4rem;
}

.field-with-color-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.field-with-color-head input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid rgba(245, 215, 110, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(245, 215, 110, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.field-with-color-head input[type="color"]:hover {
  transform: scale(1.08);
  border-color: #f5d76e;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(245, 215, 110, 0.35);
}

.field-with-color-head input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.field-with-color-head input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.field-with-color-head input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(245, 215, 110, 0.22);
  border-radius: 14px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.status-tag {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.table-wrap td .status-tag.status-ok,
.status-tag.status-ok {
  color: #39ff88 !important;
  -webkit-text-fill-color: #39ff88;
  text-shadow:
    0 0 6px rgba(57, 255, 136, 0.95),
    0 0 14px rgba(57, 255, 136, 0.65),
    0 0 28px rgba(57, 255, 136, 0.4) !important;
  animation: statusNeonPulseGreen 1.6s ease-in-out infinite;
}

.table-wrap td .status-tag.status-no,
.status-tag.status-no {
  color: #ff4d4d !important;
  -webkit-text-fill-color: #ff4d4d;
  text-shadow:
    0 0 6px rgba(255, 77, 77, 0.85),
    0 0 14px rgba(255, 77, 77, 0.5) !important;
}

.table-wrap td .status-tag.status-wait,
.status-tag.status-wait {
  color: #ffe566 !important;
  -webkit-text-fill-color: #ffe566;
  text-shadow:
    0 0 6px rgba(255, 229, 102, 1),
    0 0 14px rgba(245, 215, 110, 0.8),
    0 0 26px rgba(245, 215, 110, 0.5) !important;
  animation: statusNeonPulseYellow 1.8s ease-in-out infinite;
}

@keyframes statusNeonPulseGreen {

  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 0 5px rgba(57, 255, 136, 0.75),
      0 0 12px rgba(57, 255, 136, 0.45),
      0 0 22px rgba(57, 255, 136, 0.28);
  }

  50% {
    filter: brightness(1.28);
    text-shadow:
      0 0 8px rgba(57, 255, 136, 1),
      0 0 18px rgba(57, 255, 136, 0.8),
      0 0 34px rgba(57, 255, 136, 0.55);
  }
}

@keyframes statusNeonPulseYellow {

  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 0 5px rgba(255, 229, 102, 0.85),
      0 0 12px rgba(245, 215, 110, 0.6);
  }

  50% {
    filter: brightness(1.22);
    text-shadow:
      0 0 9px rgba(255, 240, 150, 1),
      0 0 18px rgba(245, 215, 110, 0.85),
      0 0 30px rgba(245, 215, 110, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {

  .status-tag.status-ok,
  .status-tag.status-wait {
    animation: none !important;
  }
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes brandPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(245, 215, 110, 0.4));
  }
}

@keyframes neonDrift {

  0%,
  100% {
    background-position: 0% 40%;
  }

  50% {
    background-position: 100% 60%;
  }
}

/* ===== Site shell (Oxin-like / yellow neon) ===== */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 0.8rem;
  padding: 0.95rem 0.95rem 0.75rem;
  background: rgba(12, 14, 18, 0.85);
  border-bottom: 1px solid rgba(245, 215, 110, 0.18);
  backdrop-filter: blur(14px);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-brand-side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 0;
}

.header-lang-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-shrink: 0;
}

html[dir="ltr"] .header-brand-side,
html[lang="en"] .header-brand-side {
  order: 1;
}

html[dir="ltr"] .cyber-nav-wrapper,
html[dir="ltr"] .main-nav,
html[lang="en"] .cyber-nav-wrapper,
html[lang="en"] .main-nav {
  order: 2;
}

html[dir="ltr"] .header-lang-side,
html[lang="en"] .header-lang-side {
  order: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 34px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 215, 110, 0.25));
}

.auth-area {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}

.header-slogan {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  margin-inline-start: 0.65rem;
  margin-inline-end: 0.35rem;
  width: 320px;
  min-width: 320px;
  flex: 0 0 320px;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  filter: none;
}

html[dir="ltr"] .header-slogan {
  transform: none;
}

.header-slogan .slogan-regular {
  display: inline;
  color: #fff;
  background: none;
  box-shadow: none;
  filter: none;
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  transition: color 0.45s ease, text-shadow 0.45s ease, -webkit-text-stroke 0.45s ease;
}

.header-slogan .slogan-brand {
  display: inline;
  color: #ffd54f;
  font-weight: 900;
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 8px rgba(245, 215, 110, 0.25);
  transition: color 0.45s ease, text-shadow 0.45s ease, -webkit-text-stroke 0.45s ease;
}

.header-slogan .slogan-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 0.12em;
  vertical-align: -0.1em;
  background: #fff;
  border-radius: 1px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
}

.header-slogan.is-typing .slogan-caret {
  opacity: 1;
  visibility: visible;
  animation: sloganCaretBlink 0.85s steps(1) infinite;
}

.header-slogan.is-glow .slogan-regular {
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 24px rgba(255, 255, 255, 0.45),
    0 0 40px rgba(255, 255, 255, 0.2);
  animation: sloganTextGlow 2.6s ease-in-out forwards;
  filter: none;
  background: none;
  box-shadow: none;
}

.header-slogan.is-glow .slogan-brand {
  color: #ffd54f;
  text-shadow:
    0 0 4px #ffd54f,
    0 0 12px rgba(255, 213, 79, 0.95),
    0 0 24px rgba(255, 213, 79, 0.55),
    0 0 40px rgba(255, 213, 79, 0.2);
  animation: sloganBrandGlow 2.6s ease-in-out forwards;
}

.header-slogan.is-fade {
  opacity: 0;
  transition: opacity 0.55s ease;
}

@keyframes sloganCaretBlink {

  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes sloganTextGlow {
  0% {
    text-shadow:
      0 0 2px #fff,
      0 0 6px #fff,
      0 0 12px rgba(255, 255, 255, 0.8);
  }

  15% {
    /* Glow Strike (Intense Flash) */
    text-shadow:
      0 0 4px #fff,
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 35px #00d2ff,
      0 0 55px #00d2ff,
      0 0 85px #00d2ff,
      0 0 120px rgba(0, 210, 255, 0.6);
  }

  35%,
  100% {
    /* Stable Neon State */
    text-shadow:
      0 0 3px #fff,
      0 0 8px #fff,
      0 0 15px #00d2ff,
      0 0 30px #00d2ff,
      0 0 50px rgba(0, 210, 255, 0.4);
  }

  65% {
    /* Subtle pulse */
    text-shadow:
      0 0 4px #fff,
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 40px #00d2ff,
      0 0 65px #00d2ff,
      0 0 95px rgba(0, 210, 255, 0.5);
  }
}

@keyframes sloganBrandGlow {
  0% {
    text-shadow:
      0 0 2px #ffd54f,
      0 0 6px #ffd54f,
      0 0 12px rgba(255, 213, 79, 0.8);
  }

  15% {
    /* Glow Strike (Intense Flash) */
    text-shadow:
      0 0 4px #ffd54f,
      0 0 10px #ffd54f,
      0 0 20px #ffd54f,
      0 0 35px #ffb300,
      0 0 55px #ffb300,
      0 0 85px #ffb300,
      0 0 120px rgba(255, 179, 0, 0.6);
  }

  35%,
  100% {
    /* Stable Neon State */
    text-shadow:
      0 0 3px #ffd54f,
      0 0 8px #ffd54f,
      0 0 15px #ffb300,
      0 0 30px #ffb300,
      0 0 50px rgba(255, 179, 0, 0.4);
  }

  65% {
    /* Subtle pulse */
    text-shadow:
      0 0 4px #ffd54f,
      0 0 10px #ffd54f,
      0 0 20px #ffd54f,
      0 0 40px #ffb300,
      0 0 65px #ffb300,
      0 0 95px rgba(255, 179, 0, 0.5);
  }
}

.nav-link[data-nav="home"] { order: 1; }
.nav-link[data-nav="reserve"] { order: 2; }
.nav-link[data-nav="accounts"] { order: 3; }
.nav-link[data-nav="gear"] { order: 4; }
.nav-link[data-nav="tournament"] { order: 5; }
.nav-link[data-nav="academy"] { order: 6; }
.nav-link[data-nav="about"] { order: 7; }

.nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  border: 1.2px solid transparent !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #e2e8f0 !important;
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 0.85rem !important;
  cursor: pointer !important;
  border-radius: 999px !important;
  letter-spacing: 0.3px !important;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.nav-link::before {
  display: none !important;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(245, 215, 110, 0.1) !important;
  border-color: rgba(245, 215, 110, 0.35) !important;
  text-shadow: 0 0 10px rgba(245, 215, 110, 0.4) !important;
  border-radius: 999px !important;
  transform: none !important;
}

.nav-link.active {
  color: var(--yellow-hot) !important;
  font-weight: 700 !important;
  background: radial-gradient(ellipse at bottom, rgba(245, 215, 110, 0.22) 0%, rgba(20, 22, 26, 0.7) 100%) !important;
  border: 1.2px solid rgba(245, 215, 110, 0.75) !important;
  border-radius: 999px !important;
  text-shadow: 0 0 14px rgba(245, 215, 110, 0.6) !important;
  box-shadow: 0 0 14px rgba(245, 215, 110, 0.4), inset 0 0 8px rgba(245, 215, 110, 0.2) !important;
  transform: none !important;
}

@media (min-width: 1101px) {
  .site-header {
    padding: 0.6rem 1.25rem;
    min-height: 68px;
    height: auto;
    align-items: center;
    gap: 0.75rem 1.2rem;
  }

  .cyber-nav-wrapper {
    display: contents;
  }

  .cyber-nav-track {
    display: none !important;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    white-space: nowrap;
    margin: 0 auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-row {
    display: contents;
  }

  .nav-link,
  .nav-link.nav-link-tournament {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: clamp(0.98rem, 0.75vw + 0.2rem, 1.18rem) !important;
    padding: 0 clamp(0.75rem, 0.65vw, 1.15rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    letter-spacing: 0.2px !important;
    flex-shrink: 0;
  }

  .nav-link.nav-link-tournament {
    font-weight: 800 !important;
  }
}

/* English / LTR Header Layout Precision */
html[dir="ltr"] .site-header,
html[lang="en"] .site-header {
  direction: ltr !important;
}

@media (min-width: 1101px) and (max-width: 1480px) {
  html[dir="ltr"] .header-slogan,
  html[lang="en"] .header-slogan {
    display: none !important;
  }
}

@media (min-width: 1481px) {
  html[dir="ltr"] .header-slogan,
  html[lang="en"] .header-slogan {
    width: auto !important;
    min-width: 0 !important;
    max-width: 270px !important;
    font-size: 0.95rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
  }
}

@media (min-width: 1101px) {
  html[dir="ltr"] .main-nav .nav-link,
  html[lang="en"] .main-nav .nav-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: clamp(0.86rem, 0.55vw + 0.28rem, 0.98rem) !important;
    padding: 0 clamp(0.65rem, 0.55vw, 0.95rem) !important;
    letter-spacing: 0.02em !important;
  }

  html[dir="ltr"] .main-nav,
  html[lang="en"] .main-nav {
    gap: 0.35rem 0.5rem !important;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(245, 215, 110, 0.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 22, 26, 0.9);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #c9ced6;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--yellow);
  color: #111;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(245, 215, 110, 0.35);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 1.1rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffd54f 0%, #e6b800 100%);
  color: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(245, 215, 110, 0.25);
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, filter 0.16s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #ffe082 0%, #ffc107 100%);
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.45);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: scale(0.97);
}

.btn-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 1.05rem;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px !important;
  white-space: nowrap;
  vertical-align: middle;
}

.user-menu-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 3px;
  padding: 4px 0 2px;
}

.user-menu-wrap .btn-panel {
  position: relative;
  white-space: nowrap;
  order: 1;
  z-index: 2;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-wrap .btn-panel .panel-caret {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-wrap .btn-panel.is-active {
  box-shadow: 0 0 18px rgba(245, 215, 110, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
  filter: brightness(1.06);
}

.user-menu-wrap .btn-panel.is-active .panel-caret {
  transform: rotate(180deg);
}

.user-menu-wrap .user-chip {
  order: 2;
  position: static;
  transform: none;
  display: block;
  text-align: center;
  white-space: nowrap;
  max-width: 220px;
  overflow: visible;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 1px;
  padding: 1px 6px 2px;
  color: #ffe066;
  text-shadow: 0 0 10px rgba(255, 224, 102, 0.65), 0 0 20px rgba(245, 215, 110, 0.35);
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.01em;
}

.user-menu-wrap .user-flyout {
  order: 3;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
  transform-origin: top center;
  margin-inline-start: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease;
  will-change: transform, opacity;
}

.user-menu-wrap .user-flyout.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.user-flyout {
  position: absolute;
  width: 240px;
  min-width: 240px;
  max-width: min(250px, calc(100vw - 20px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 8px;
  border-radius: 16px;
  border: 1px solid rgba(245, 215, 110, 0.26);
  background: linear-gradient(170deg, rgba(25, 29, 36, 0.96) 0%, rgba(14, 16, 21, 0.98) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(245, 215, 110, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.14),
              inset 0 0 0 1px rgba(245, 215, 110, 0.06);
  z-index: 100;
}

/* Callout Arrow Pointer */
.user-flyout::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: rgba(25, 29, 36, 0.98);
  border-top: 1px solid rgba(245, 215, 110, 0.35);
  border-left: 1px solid rgba(245, 215, 110, 0.35);
  pointer-events: none;
  z-index: 1;
}

.user-flyout button {
  position: relative;
  border: 0;
  background: transparent;
  color: #e2e7f0;
  text-align: start;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.68rem 0.85rem;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-flyout.is-open button {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entry animation */
.user-flyout.is-open button:nth-of-type(1) { transition-delay: 0.03s; }
.user-flyout.is-open button:nth-of-type(2) { transition-delay: 0.06s; }
.user-flyout.is-open button:nth-of-type(3) { transition-delay: 0.09s; }
.user-flyout.is-open button:nth-of-type(4) { transition-delay: 0.12s; }
.user-flyout.is-open button:nth-of-type(5) { transition-delay: 0.15s; }
.user-flyout.is-open button:nth-of-type(6) { transition-delay: 0.18s; }

.user-flyout:not(.is-open) button {
  transition-delay: 0s !important;
}

.user-flyout button .flyout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #a4acb9;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.user-flyout button .flyout-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.user-flyout button .flyout-text {
  flex: 1;
  white-space: nowrap;
  line-height: 1.3;
}

/* Accent Indicator Bar on hover */
.user-flyout button::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--yellow, #ffd54f);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .user-flyout button::after {
  border-radius: 4px 0 0 4px;
}

.user-flyout button:hover {
  background: linear-gradient(90deg, rgba(245, 215, 110, 0.13) 0%, rgba(245, 215, 110, 0.03) 100%);
  color: #ffe082;
  transform: translateX(-3px);
}

html[dir="ltr"] .user-flyout button:hover {
  transform: translateX(3px);
}

.user-flyout button:hover .flyout-icon {
  background: rgba(245, 215, 110, 0.2);
  color: #ffd54f;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(245, 215, 110, 0.25);
}

.user-flyout button:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.user-flyout button:active {
  transform: scale(0.98);
}

.user-flyout .flyout-divider {
  height: 1px;
  margin: 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.user-flyout .flyout-danger {
  color: #fca5a5;
}

.user-flyout .flyout-danger .flyout-icon {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.user-flyout .flyout-danger:hover {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.04) 100%);
  color: #ff5252;
}

.user-flyout .flyout-danger:hover .flyout-icon {
  background: rgba(239, 68, 68, 0.22);
  color: #ff5252;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.user-flyout .flyout-danger::after {
  background: #ff5252;
}

.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: rise 0.45s ease both;
}

.page-pad {
  padding: 1.4rem 1.5rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.empty-page {
  min-height: 48vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.6rem;
}

.empty-page h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(245, 215, 110, 0.3);
}

.empty-page p {
  color: var(--muted);
  margin: 0;
}

.home-stage {
  position: relative;
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: none;
  border-right: none;
  border-image: linear-gradient(90deg, rgba(245, 215, 110, 0), rgba(245, 215, 110, 0.8), rgba(245, 215, 110, 0.9), rgba(245, 215, 110, 0.8), rgba(245, 215, 110, 0)) 1;
  box-shadow: inset 0 2px 20px rgba(245, 215, 110, 0.15), inset 0 -2px 20px rgba(245, 215, 110, 0.15), 0 8px 30px rgba(0, 0, 0, 0.9);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: none;
  filter: none;
  z-index: 0;
  will-change: opacity;
  transition: opacity 0.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transform: none;
  animation: heroSlideFadeIn 0.4s ease-out forwards;
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
  transform: none;
  animation: heroSlideFadeOut 0.35s ease-in forwards;
}

@keyframes heroSlideFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroSlideFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#heroSlider.cyber-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 215, 110, 0.45) 45%, rgba(245, 215, 110, 0.6) 50%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  animation: shutterFlash 0.25s ease-out forwards;
}

@keyframes shutterFlash {
  0% {
    transform: translateX(-100%);
    opacity: 0.9;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(245, 215, 110, 0.22), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 229, 102, 0.12), transparent 45%),
    linear-gradient(135deg, #101216, #1d2229 55%, #0c0e12);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(1.4rem, 4vw, 4rem) clamp(1.2rem, 5vw, 4rem) clamp(4.5rem, 10vw, 6rem);
  background: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Positional variants for hero-overlay */
.hero-overlay.pos-top-right {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: right;
}

.hero-overlay.pos-top-center {
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.hero-overlay.pos-top-left {
  justify-content: flex-start;
  align-items: flex-end;
  text-align: left;
}

.hero-overlay.pos-center-right {
  justify-content: center;
  align-items: flex-start;
  text-align: right;
}

.hero-overlay.pos-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay.pos-center-left {
  justify-content: center;
  align-items: flex-end;
  text-align: left;
}

.hero-overlay.pos-bottom-right {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: right;
  padding-bottom: 5.5rem;
}

.hero-overlay.pos-bottom-center {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 5.5rem;
}

.hero-overlay.pos-bottom-left {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: left;
  padding-bottom: 5.5rem;
}

/* Slide position picker UI in Admin */
.slide-position-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.slide-position-picker .picker-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--yellow, #f5d76e);
}

.pos-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  align-items: center;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .pos-grid-container {
    grid-template-columns: 1fr;
  }
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pos-btn {
  background: #1e232d;
  color: #a0a7b4;
  border: 1px solid #2d3442;
  border-radius: 6px;
  padding: 0.55rem 0.2rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pos-btn:hover {
  background: #2b3240;
  color: #fff;
  border-color: var(--yellow, #f5d76e);
}

.pos-btn.active {
  background: var(--yellow, #f5d76e);
  color: #101216;
  font-weight: 700;
  border-color: var(--yellow, #f5d76e);
  box-shadow: 0 0 10px rgba(245, 215, 110, 0.3);
}

.pos-preview-box {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: #0f1217;
  border-radius: 8px;
  border: 1px dashed rgba(245, 215, 110, 0.35);
  overflow: hidden;
  position: relative;
}

.pos-preview-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

.pos-preview-placeholder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 65%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 215, 110, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.pos-preview-placeholder span#prevTextTitle {
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-preview-placeholder span#prevTextSubtitle {
  font-size: 0.65rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-preview-placeholder.pos-top-right {
  margin-right: 0;
  margin-left: auto;
  margin-bottom: auto;
  margin-top: 0;
  text-align: right;
}

.pos-preview-placeholder.pos-top-center {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: auto;
  margin-top: 0;
  text-align: center;
}

.pos-preview-placeholder.pos-top-left {
  margin-right: auto;
  margin-left: 0;
  margin-bottom: auto;
  margin-top: 0;
  text-align: left;
}

.pos-preview-placeholder.pos-center-right {
  margin-right: 0;
  margin-left: auto;
  margin-bottom: auto;
  margin-top: auto;
  text-align: right;
}

.pos-preview-placeholder.pos-center {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: auto;
  margin-top: auto;
  text-align: center;
}

.pos-preview-placeholder.pos-center-left {
  margin-right: auto;
  margin-left: 0;
  margin-bottom: auto;
  margin-top: auto;
  text-align: left;
}

.pos-preview-placeholder.pos-bottom-right {
  margin-right: 0;
  margin-left: auto;
  margin-bottom: 0;
  margin-top: auto;
  text-align: right;
}

.pos-preview-placeholder.pos-bottom-center {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
  margin-top: auto;
  text-align: center;
}

.pos-preview-placeholder.pos-bottom-left {
  margin-right: auto;
  margin-left: 0;
  margin-bottom: 0;
  margin-top: auto;
  text-align: left;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  color: #f5d76e;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 215, 110, 0.6), 0 0 20px rgba(245, 215, 110, 0.35);
  will-change: transform, opacity, filter;
}

.hero-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 0 28px rgba(245, 215, 110, 0.45);
  will-change: transform, opacity, filter;
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity, filter;
}

.hero-title .word-fade,
.hero-subtitle .word-fade {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  filter: blur(8px);
  animation: wordFadeInSingle 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordFadeInSingle {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100% - 2rem);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.hero-dot {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hero-dot.active {
  background: #f5d76e;
  width: 34px;
  box-shadow: 0 0 12px #f5d76e, 0 0 6px rgba(245, 215, 110, 0.8);
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
}

.hero-arrows button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(245, 215, 110, 0.5);
  background: rgba(12, 14, 18, 0.85);
  color: #f5d76e;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 215, 110, 0.3);
  transition: all 0.2s ease;
}

.hero-arrows button:hover {
  background: rgba(245, 215, 110, 0.2);
  color: #fff;
  border-color: var(--yellow);
  box-shadow: 0 0 15px rgba(245, 215, 110, 0.6);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.tournament-filter-select {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 320px);
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.tournament-filter-select select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(245, 215, 110, 0.35);
  border-radius: 10px;
  background: rgba(18, 20, 24, 0.88);
  color: var(--text);
  font: inherit;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.tournament-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 18px;
  background: rgba(26, 29, 33, 0.88);
  box-shadow: 0 0 22px rgba(245, 215, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(245, 215, 110, 0.2);
}

.tournament-card-media {
  aspect-ratio: 3 / 4;
  background: #111 center / cover no-repeat;
  border-bottom: 1px solid rgba(245, 215, 110, 0.18);
}

.tournament-card-body {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  height: 100%;
  text-align: center;
  justify-items: center;
}

.tournament-card-body h3 {
  margin: 0;
}

.tournament-title {
  color: var(--yellow) !important;
  font-size: 1.3rem;
  font-weight: 900;
}

.tournament-game-name {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.tournament-schedule {
  display: grid;
  gap: 0.12rem;
  color: #f5d76e;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.tournament-schedule strong {
  color: #ffe998;
  font-size: 1.18rem;
  font-weight: 900;
}

.tournament-entry-fee {
  display: grid;
  gap: 0.12rem;
  color: #ff5b5b;
}

.tournament-entry-fee span {
  font-size: 0.82rem;
  font-weight: 700;
}

.tournament-entry-fee strong {
  color: #ff4545;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.tournament-team-format {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.38rem;
  color: #f5d76e;
  font-size: 0.9rem;
  font-weight: 800;
}

.tournament-stick-players {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.tournament-stick-players svg {
  width: 1rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tournament-stick-players img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  vertical-align: middle;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  justify-content: center;
}

.tournament-platform {
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-weight: 800;
}

.tournament-card-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
  width: 100%;
  justify-self: stretch;
}

.tournament-card-actions .btn {
  flex: 1;
  padding: 0.58rem 0.7rem;
  font-size: 0.88rem;
}

.tournament-card-actions .tournament-details-btn {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}

.tournament-card-actions .tournament-register-btn {
  background: #bfe8c9;
  border-color: #bfe8c9;
  color: #111;
}

.tournament-card-actions .btn:hover {
  filter: brightness(1.08);
}

.tournament-details {
  display: grid;
  gap: 0.55rem;
  margin: 0.2rem 0 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(245, 215, 110, 0.22);
  border-radius: 12px;
  background: rgba(26, 29, 33, 0.72);
}

.tournament-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.tournament-details strong {
  color: var(--ink);
}

.tournament-roster-fields {
  display: grid;
  gap: 0.75rem;
}

.tournament-player-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(245, 215, 110, 0.16);
  border-radius: 12px;
  background: rgba(26, 29, 33, 0.42);
}

.tournament-player-fields h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--yellow);
  font-size: 0.94rem;
}

.payment-details {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 12px;
  background: rgba(26, 29, 33, 0.72);
}

.payment-details strong {
  color: var(--yellow);
}

.payment-details div {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.catalog-card {
  background: rgba(26, 29, 33, 0.82);
  border: 1px solid rgba(245, 215, 110, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(245, 215, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(245, 215, 110, 0.22);
}

.catalog-media {
  width: 100%;
  aspect-ratio: 19 / 6;
  background: #111 center/cover no-repeat;
  border-bottom: 1px solid rgba(245, 215, 110, 0.16);
}

.catalog-body {
  padding: 0.95rem 1rem 1.1rem;
}

.catalog-body h3 {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font-size: 1.15rem;
}

.catalog-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.catalog-desc {
  color: #d7dbe2;
  font-size: 0.9rem;
  margin: 0 0 0.55rem;
  line-height: 1.55;
}

.catalog-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-telegram-buy {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(229, 57, 53, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-telegram-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ==========================================================================
   Gaming Gear Section (Uniform Two-Square Cards 1:1 + 1:1, 4 per row)
   ========================================================================== */
#view-gear .catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media (max-width: 1280px) {
  #view-gear .catalog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.1rem !important;
  }
}

@media (max-width: 900px) {
  #view-gear .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 540px) {
  #view-gear .catalog-grid {
    grid-template-columns: 1fr !important;
    max-width: 320px;
    margin: 0 auto;
  }
}

.gear-square-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #14171d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gear-square-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 215, 110, 0.45);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55), 0 0 22px rgba(245, 215, 110, 0.18);
}

/* Top Square: 1:1 Media Container */
.gear-square-media-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e232d 0%, #0d0f13 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gear-square-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gear-square-card:hover .gear-square-img {
  transform: scale(1.06);
}

.gear-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.gear-floating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 20, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 215, 110, 0.4);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 2;
}

/* Bottom Square: 1:1 Proportioned Content Container */
.gear-square-content {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(24, 27, 33, 0.95) 0%, rgba(15, 17, 21, 0.99) 100%);
  box-sizing: border-box;
}

.gear-content-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gear-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.gear-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.gear-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

.gear-chip-cond.chip-new {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gear-chip-cond.chip-stock {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gear-chip-jailbreak {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.25);
}

.gear-chip-spec {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gear-chip-spec.chip-gold {
  background: rgba(245, 215, 110, 0.15);
  color: #f5d76e;
  border: 1px solid rgba(245, 215, 110, 0.35);
}

.gear-chip-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.gear-color-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 5px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.gear-color-dot:hover {
  transform: scale(1.15);
}

.gear-card-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gear-content-bottom {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gear-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.4rem;
}

.gear-price-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.gear-price-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.gear-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gear-buy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.5);
}

.gear-btn-svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Game Accounts Section Special Styling (Vertical Cards, Glassmorphism, Lighter BG)
   ========================================================================== */
/* ==========================================================================
   Game Installation Section Special Styling ("نصب بازی" Luxury Gold/Amber Theme)
   ========================================================================== */
#view-accounts {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0 3.5rem;
  margin: 0 auto;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
}

#view-accounts .section-head {
  text-align: center;
  margin-bottom: 2.8rem;
  position: relative;
}

#view-accounts .section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #ffeaa7 50%, #f5d76e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(245, 215, 110, 0.35);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

#view-accounts .section-head p {
  font-size: 1.05rem;
  color: rgba(220, 225, 235, 0.8);
  max-width: 500px;
  margin: 0 auto;
}

#view-accounts .catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 295px));
  justify-content: center;
  max-width: 1300px;
  margin-inline: auto;
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}

.install-card {
  position: relative;
  width: 100%;
  max-width: 310px;
  margin-inline: auto;
  aspect-ratio: unset;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  background: #14101b;

  /* Luxury Gold/Amber Gaming Border & Controlled Neon Glow */
  border: 1.5px solid rgba(245, 215, 110, 0.32);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(245, 215, 110, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  isolation: isolate;

  /* Fast Motion-Blur Deep Slide-Up Reveal Animation */
  opacity: 0;
  transform: translate3d(0, 95px, 0) scale(0.91);
  filter: blur(10px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.38s cubic-bezier(0.12, 0.88, 0.2, 1),
    transform 0.38s cubic-bezier(0.12, 0.88, 0.2, 1),
    filter 0.32s ease-out,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: calc(var(--card-idx, 0) * 0.07s);
}

.install-card.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.install-card.is-revealed:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  border-color: #ffe566;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(245, 215, 110, 0.35),
    inset 0 0 15px rgba(245, 215, 110, 0.15);
}
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(245, 215, 110, 0.35),
    inset 0 0 15px rgba(245, 215, 110, 0.15);
}

.install-card-glow-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(245, 215, 110, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Desktop Top Photo Frame - Full 9:16 vertical ratio without cut-off */
.install-card-poster {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: unset;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(245, 215, 110, 0.2);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 16, 0.02) 0%, rgba(12, 10, 16, 0.1) 75%, rgba(18, 14, 24, 0.85) 100%);
  pointer-events: none;
}

.install-card:hover .install-card-poster {
  transform: scale(1.04);
}

/* Tag Badge inside Desktop Poster */
.install-card-poster .install-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 14, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffe566;
  border: 1px solid rgba(245, 215, 110, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* Fallback placeholder when no poster image is provided */
.install-card.has-placeholder .install-card-poster {
  background: radial-gradient(circle at 50% 35%, #2a1f33 0%, #120e17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-placeholder-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(245, 215, 110, 0.55);
}

.install-placeholder-graphic span {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(245, 215, 110, 0.75);
  text-shadow: 0 0 10px rgba(245, 215, 110, 0.4);
}

/* Body container for install card content */
.install-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 1.15rem 1.15rem 1.35rem;
  gap: 0.55rem;
  text-align: right;
  direction: rtl;
  pointer-events: auto;
}

/* Mobile top banner hidden on desktop */
.install-card-mobile-banner {
  display: none;
}

.install-tag-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 215, 110, 0.15);
  color: #ffe566;
  border: 1px solid rgba(245, 215, 110, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Container Box for text */
.install-card-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  width: 100%;
}

/* Main Title Word Fade-In Animation */
.install-card-title {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem;
  direction: rtl;
  text-align: right;
}

@keyframes wordFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.animated-word {
  display: inline-block;
  opacity: 0;
  animation: wordFadeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  white-space: nowrap;
}

.install-card-subtitle {
  margin: 0 0 0.85rem;
  color: rgba(235, 240, 250, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

/* Action Buttons Container */
.install-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
}

/* Option 1: Call for Consultation (Gaming Emerald Green) */
.btn-install-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #00e676;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.16) 0%, rgba(0, 200, 83, 0.08) 100%);
  border: 1.2px solid rgba(0, 230, 118, 0.45);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.15);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-install-consult:hover {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #051a0d;
  border-color: #b9f6ca;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.5), 0 0 15px rgba(0, 230, 118, 0.35);
  transform: translateY(-1px);
}

/* Option 2: Game Install Advisor Bot (Red Neon) */
.btn-install-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1744 0%, #c62828 100%);
  border: 1.2px solid #ff5252;
  width: 100%;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-install-bot:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d50000 100%);
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 23, 68, 0.6), 0 0 14px #ff1744;
}

#view-accounts .hint {
  background: rgba(245, 215, 110, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px dashed rgba(245, 215, 110, 0.35);
  border-radius: 20px;
  padding: 3rem 1.8rem;
  text-align: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  #view-accounts .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

/* Mobile & Tablet Portrait: Glass Cards with Horizontal Header Image (کارت‌های شیشه‌ای با عکس افقی در بالا و نوشته‌ها در پایین) */
@media (max-width: 768px) {
  #view-accounts {
    padding: 1rem 0 2.5rem;
  }

  #view-accounts .catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
    padding: 0.35rem 0.75rem;
  }

  .install-card {
    position: relative;
    width: 100%;
    aspect-ratio: unset;
    height: auto;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    background: #14101b;
    border: 1.5px solid rgba(245, 215, 110, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);

    /* Fast Motion-Blur Deep Slide-Up Reveal Animation */
    opacity: 0;
    transform: translate3d(0, 90px, 0) scale(0.92);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition:
      opacity 0.36s cubic-bezier(0.12, 0.88, 0.2, 1),
      transform 0.36s cubic-bezier(0.12, 0.88, 0.2, 1),
      filter 0.3s ease-out;
    transition-delay: calc(var(--card-idx, 0) * 0.06s);
  }

  .install-card.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  .install-card:active {
    transform: scale(0.985) !important;
    border-color: rgba(245, 215, 110, 0.6);
  }

  .install-card-glow-layer {
    opacity: 0.35;
  }

  /* Hide Desktop Vertical Background on Mobile */
  .install-card-poster.desktop-poster {
    display: none !important;
  }

  /* Show Mobile Horizontal Top Banner (16:9) */
  .install-card-mobile-banner {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(245, 215, 110, 0.2);
    overflow: hidden;
  }

  .install-card-mobile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 16, 0.05) 0%, rgba(12, 10, 16, 0.25) 55%, rgba(18, 14, 24, 0.95) 100%);
    pointer-events: none;
  }

  .install-card-mobile-banner .install-tag-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(18, 14, 24, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffe566;
    border: 1px solid rgba(245, 215, 110, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  }

  .install-card-mobile-banner .install-placeholder-graphic {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(245, 215, 110, 0.55);
    z-index: 2;
  }

  /* Body & Texts Underneath Header Banner */
  .install-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 1.1rem 1.15rem 1.3rem;
    gap: 0.55rem;
    text-align: right;
    direction: rtl;
    pointer-events: auto;
  }

  .install-card-top.desktop-only {
    display: none !important;
  }

  .install-card-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .install-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.4;
    justify-content: flex-start;
    text-align: right;
    color: #ffffff;
    margin: 0 0 0.35rem;
    gap: 0.25rem;
  }

  .install-card-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(225, 230, 245, 0.85);
    text-align: right;
  }

  .install-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.4rem;
  }

  .btn-install-consult,
  .btn-install-bot {
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Install Bot Modal Styling */
.install-bot-modal-card {
  max-width: 380px;
  width: 90%;
  text-align: center;
  background: rgba(20, 14, 24, 0.96) !important;
  border: 1.5px solid rgba(255, 23, 68, 0.45) !important;
  box-shadow:
    0 0 35px rgba(255, 23, 68, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.85) !important;
  border-radius: 24px;
  padding: 2.2rem 1.6rem 1.6rem;
}

.bot-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.15);
  border: 1.5px solid rgba(255, 23, 68, 0.5);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.35);
  animation: softNeonBreathing 2.2s ease-in-out infinite;
}

.install-bot-modal-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 23, 68, 0.45);
}

.install-bot-modal-card p {
  font-size: 1.1rem;
  color: #ff5252;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.install-bot-modal-card .btn-alert {
  width: 100%;
  background: linear-gradient(135deg, #ff1744, #c62828);
  border: 1px solid #ff5252;
  color: #ffffff;
  font-weight: 800;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-bot-modal-card .btn-alert:hover {
  background: linear-gradient(135deg, #ff5252, #d50000);
  box-shadow: 0 6px 24px rgba(255, 23, 68, 0.6);
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid rgba(245, 215, 110, 0.2);
  background: rgba(10, 12, 14, 0.92);
  padding: 1.4rem 1.5rem 1.8rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.footer-grid strong {
  color: var(--yellow);
  display: block;
  margin-bottom: 0.35rem;
}

.footer-grid p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.footer-grid a {
  color: var(--yellow-hot);
  text-decoration: none;
}

.footer-fx {
  display: inline-block;
  max-width: 100%;
  font-size: 1.08rem;
  transform-origin: center;
  unicode-bidi: isolate;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease;
  will-change: transform;
}

.footer-fx.is-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-fx.is-arabic,
.footer-fx:not(.is-ltr) {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
}

.footer-fx .footer-char {
  display: inline-block;
  white-space: pre;
  opacity: 0.78;
  transform: translateY(0);
  filter: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27), filter 0.3s ease, color 0.3s ease;
}

.footer-fx .footer-word {
  white-space: pre-wrap;
}

.footer-fx.is-in .footer-char {
  animation: footerCharFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * var(--char-step, 0.028s));
}

.footer-fx:hover,
.footer-fx:focus-visible {
  transform: scale(1.05) translateY(-2px);
  filter: brightness(1.2);
  text-decoration: none;
  outline: none;
}

.footer-fx:hover .footer-char,
.footer-fx:focus-visible .footer-char {
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 0 6px rgba(245, 215, 110, 0.6));
  color: var(--yellow-hot, #ffe566);
  transition-delay: calc(var(--i, 0) * 0.015s);
}

@keyframes footerCharFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.45em) scale(0.9);
    filter: blur(3px);
  }

  to {
    opacity: 0.78;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-fx .footer-char {
    opacity: 0.78;
    transform: none;
    filter: none;
    animation: none !important;
  }

  .footer-fx:hover,
  .footer-fx:focus-visible {
    transform: none;
  }

  .footer-fx:hover .footer-char,
  .footer-fx:focus-visible .footer-char {
    opacity: 1;
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}

.admin-tab {
  border: 1px solid rgba(245, 215, 110, 0.28);
  background: rgba(26, 29, 33, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.admin-tab.active {
  background: rgba(245, 215, 110, 0.18);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 14px rgba(245, 215, 110, 0.2);
}

.admin-block {
  display: none;
}

.admin-block.active {
  display: block;
}

.admin-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 215, 110, 0.2);
  background: rgba(26, 29, 33, 0.75);
}

.admin-room-actions {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-top: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-room-actions .btn-edit-room,
.admin-room-actions .btn-delete-room {
  margin: 0 !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  gap: 0.4rem !important;
  border-radius: 10px !important;
  padding: 0 0.5rem !important;
  font-family: var(--font-fa) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-room-actions .btn-edit-room {
  background: linear-gradient(135deg, #f5d76e 0%, #e6b800 100%) !important;
  color: #0b0d10 !important;
  border: 1px solid rgba(245, 215, 110, 0.6) !important;
  box-shadow: 0 3px 12px rgba(245, 215, 110, 0.25) !important;
}

.admin-room-actions .btn-edit-room:hover {
  background: linear-gradient(135deg, #ffe58f 0%, #f5d76e 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(245, 215, 110, 0.42) !important;
}

.admin-room-actions .btn-delete-room {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.28) 100%) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.18) !important;
}

.admin-room-actions .btn-delete-room:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.38) 0%, rgba(220, 38, 38, 0.45) 100%) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.38) !important;
}

html[dir="ltr"] th,
html[dir="ltr"] td {
  text-align: left;
}

.crop-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.crop-preview {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.crop-preview-card {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, 0.28);
  background: rgba(12, 14, 18, 0.9);
}

.crop-preview-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
}

.crop-preview-card.holder-room img {
  aspect-ratio: 3 / 4;
}

.crop-preview-card.holder-account img {
  aspect-ratio: 9 / 16;
}

.crop-preview-card.holder-slide img {
  aspect-ratio: 21 / 9;
}

.crop-preview-card.holder-gear img {
  aspect-ratio: 1 / 1;
}

.crop-preview-card.holder-about img {
  aspect-ratio: 16 / 9;
}

.crop-preview-info {
  display: grid;
  gap: 0.35rem;
}

.crop-preview-info strong {
  color: var(--yellow);
  font-size: 0.92rem;
}

.crop-preview-info span {
  color: var(--muted);
  font-size: 0.84rem;
}

.crop-recrop-btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.crop-modal-card {
  width: min(1100px, 96vw);
  max-height: min(94vh, 900px);
  overflow: auto;
}

.crop-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.crop-studio-main {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.cropper-wrap {
  width: 100%;
  max-height: min(58vh, 520px);
  background: #0b0d10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 215, 110, 0.18);
}

.cropper-wrap img {
  display: block;
  max-width: 100%;
}

.crop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crop-tools .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
}

.crop-holder-preview {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 34, 40, 0.95), rgba(14, 16, 20, 0.98));
}

.crop-holder-label {
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 700;
}

.crop-live-holder {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 215, 110, 0.35);
  background: #090b0e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.crop-live-holder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
  min-height: 80px;
}

.crop-live-holder.holder-room {
  aspect-ratio: 3 / 4;
  max-width: 220px;
  margin-inline: auto;
}

.crop-live-holder.holder-account {
  aspect-ratio: 9 / 16;
  max-width: 220px;
  margin-inline: auto;
}

.crop-live-holder.holder-slide {
  aspect-ratio: 21 / 9;
}

.crop-live-holder.holder-gear {
  aspect-ratio: 1 / 1;
  max-width: 220px;
  margin-inline: auto;
}

.crop-live-holder.holder-about {
  aspect-ratio: 16 / 9;
}

.crop-live-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.78rem;
}

.crop-live-meta strong {
  color: #ffe082;
}

.crop-holder-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .crop-studio {
    grid-template-columns: 1fr;
  }

  .crop-preview-card {
    grid-template-columns: 1fr;
  }

  .crop-live-holder.holder-room {
    max-width: 180px;
  }
}

/* Clean Games Marquee Section */
.games-marquee {
  position: relative;
  padding: 1.25rem 0 1.5rem;
  overflow: hidden;
  direction: ltr;
  background: #07090c;
  border-top: 1px solid rgba(245, 215, 110, 0.12);
  border-bottom: 1px solid rgba(245, 215, 110, 0.08);
  contain: layout paint style;
}

.marquee-track-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  direction: ltr;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.95rem;
}

.marquee-row {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  gap: 2.4rem;
  padding: 0.25rem 0;
  will-change: transform;
  direction: ltr;
  margin-inline: auto;
}

.games-marquee.is-paused .marquee-row {
  animation-play-state: paused !important;
}

.marquee-item {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
  border-radius: 14px;
  padding: 0.4rem 0.35rem 0.4rem;
  overflow: visible;
  position: relative;
  cursor: pointer;
  transform: none !important;
  transition: opacity 0.2s ease !important;
  animation: none !important;
}

.marquee-item:hover {
  opacity: 1 !important;
  transform: none !important;
}

.marquee-item .marquee-icon {
  position: relative;
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: visible;
}

.marquee-item .marquee-icon img,
.marquee-item img {
  position: relative;
  z-index: 1;
  max-width: 220px;
  max-height: 125px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 8px rgba(245, 215, 110, 0.2));
  opacity: 0.94;
  transform: none !important;
  animation: none !important;
  transition: opacity 0.2s ease, filter 0.2s ease !important;
}

.marquee-item:hover .marquee-icon img {
  opacity: 1 !important;
  filter: drop-shadow(0 0 16px rgba(245, 215, 110, 0.6)) brightness(1.15) !important;
  transform: none !important;
}

.marquee-item .marquee-name {
  display: block;
  margin-top: 0.4rem;
  color: #c8ceda;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  opacity: 0.85;
}

.marquee-item:hover .marquee-name {
  color: #fff;
  opacity: 1;
}

/* Neon Scan Square on Tap / Click */
.neon-scan-box {
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  border: 1.5px solid transparent;
  transition: opacity 0.15s ease;
  overflow: hidden;
}

.marquee-item.is-scanned .neon-scan-box {
  opacity: 1;
  border-color: rgba(245, 215, 110, 0.65);
  box-shadow:
    0 0 16px rgba(245, 215, 110, 0.4),
    inset 0 0 12px rgba(245, 215, 110, 0.2);
}

.neon-scan-box .scan-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #fff;
  border-style: solid;
}

.neon-scan-box .scan-corner.tl {
  top: 0;
  left: 0;
  border-width: 2.5px 0 0 2.5px;
}

.neon-scan-box .scan-corner.tr {
  top: 0;
  right: 0;
  border-width: 2.5px 2.5px 0 0;
}

.neon-scan-box .scan-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2.5px 2.5px;
}

.neon-scan-box .scan-corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 2.5px 2.5px 0;
}

.neon-scan-box .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  top: -10%;
  background: linear-gradient(90deg, transparent, #fff 25%, #f5d76e 50%, #fff 75%, transparent);
  box-shadow: 0 0 10px #f5d76e, 0 0 18px #fff;
  opacity: 0;
}

.marquee-item.is-scanned .scan-line {
  animation: neonScanSweep 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes neonScanSweep {
  0% {
    top: 0%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .games-marquee {
    padding: 0.8rem 0 1rem;
  }

  .marquee-track-wrap {
    gap: 0.6rem;
  }

  .marquee-row {
    gap: 1.2rem;
  }

  .marquee-item {
    width: 145px;
    padding: 0.25rem 0.15rem 0.3rem;
  }

  .marquee-item .marquee-icon {
    height: 82px;
  }

  .marquee-item .marquee-icon img,
  .marquee-item img {
    max-width: 135px;
    max-height: 78px;
  }

  .marquee-item .marquee-name {
    margin-top: 0.25rem;
    font-size: 0.62rem;
  }

  .neon-scan-box {
    inset: -4px;
    border-radius: 10px;
  }

  .neon-scan-box .scan-corner {
    width: 7px;
    height: 7px;
  }
}

/* Home Video Feature Section (Borderless 2/3 Left Video + Large Animated Text Right) */
.home-video-feature {
  width: 100%;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.video-feature-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 3rem;
  min-height: 480px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.video-feature-media {
  flex: 0 0 65%;
  width: 65%;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 215, 110, 0.08);
  border: none;
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
}

.video-feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  direction: rtl;
  text-align: right;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-feature-text.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.video-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 215, 110, 0.1);
  border: 1px solid rgba(245, 215, 110, 0.3);
  color: #f5d76e;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 0 15px rgba(245, 215, 110, 0.15);
}

.video-feature-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #20e89e;
  border-radius: 50%;
  box-shadow: 0 0 8px #20e89e;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.video-feature-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 40%, #f5d76e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.video-feature-desc {
  font-size: 1.18rem;
  color: #d5d9e0;
  line-height: 1.9;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .video-feature-container {
    flex-direction: column;
    min-height: auto;
    gap: 2rem;
  }

  .video-feature-media {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .video-feature-title {
    font-size: 1.85rem;
  }

  .video-feature-desc {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .home-video-feature {
    padding: 1.5rem 1rem 2.5rem;
  }

  .video-feature-container {
    gap: 1.5rem;
  }

  .video-feature-text {
    text-align: center;
    align-items: center;
    padding: 0.5rem 0 1rem;
    gap: 0.9rem;
  }

  .video-feature-title {
    font-size: 1.45rem;
    text-align: center;
  }

  .video-feature-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Home Live Gaming Stats Section (Circular Cyber Gauges & Animated Counters)
   ========================================================================== */
.home-stats-section {
  width: 100%;
  padding: 4.5rem 1.5rem 6rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.stats-container {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.stats-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.stats-header.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.stats-main-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.3);
  animation: textReactBreathing 4s ease-in-out infinite alternate;
}

@keyframes textReactBreathing {
  0% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 230, 0, 0.2);
  }

  100% {
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.9), 0 0 65px rgba(255, 230, 0, 0.45);
  }
}

/* React Reactor Loop Indicator */
.live-reactor-loop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.live-reactor-loop .core-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20e89e;
  box-shadow: 0 0 12px #20e89e, 0 0 24px #20e89e;
  z-index: 2;
}

.live-reactor-loop .ring-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #20e89e;
  opacity: 0;
  animation: reactorRippleLoop 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.live-reactor-loop .ring-wave.wave-2 {
  animation-delay: 1.2s;
}

@keyframes reactorRippleLoop {
  0% {
    transform: scale(0.3);
    opacity: 1;
    border-color: #20e89e;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
    border-color: #ffe600;
  }
}

.stats-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: #a2abbd;
  margin: 0;
  max-width: 650px;
  line-height: 1.6;
}

.stats-gauges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem;
  max-width: 1060px;
  margin: 0 auto;
  perspective: 1200px;
}

.stat-gauge-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(35, 30, 15, 0.8) 0%, rgba(15, 14, 12, 0.95) 85%),
    linear-gradient(150deg, rgba(26, 22, 14, 0.88) 0%, rgba(12, 11, 8, 0.96) 100%);
  border: 1.5px solid rgba(255, 230, 0, 0.22);
  border-radius: 28px;
  padding: 2.8rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.stat-gauge-card.stat-pc {
  transition-delay: 0.1s;
}

.stat-gauge-card.stat-console {
  transition-delay: 0.26s;
}

.stat-gauge-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.stat-gauge-card:hover {
  border-color: rgba(255, 230, 0, 0.55);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 230, 0, 0.25);
}

.card-glass-sheen {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.stat-status-pill {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.2);
  font-family: var(--font-fa);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffe600;
  letter-spacing: 0.02em;
}

.stat-status-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20e89e;
  box-shadow: 0 0 8px #20e89e;
  animation: pillPulse 1.8s ease-in-out infinite;
}

@keyframes pillPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.7;
  }
}

/* Circular Gauge Visual */
.gauge-circle-wrap {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
}

.gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.gauge-bg-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 14;
}

.gauge-track-ring {
  fill: none;
  stroke: rgba(255, 230, 0, 0.15);
  stroke-width: 10;
  stroke-dasharray: 4 6;
}

.gauge-progress-ring {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 515.2;
  stroke-dashoffset: 515.2;
  transition: stroke-dashoffset 0.05s linear;
}

.gauge-progress-ring.pc-ring {
  stroke: url(#pcGrad);
  filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.85));
}

.gauge-progress-ring.console-ring {
  stroke: url(#consoleGrad);
  filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.85));
}

/* Radar Rotating Scanner */
.gauge-radar-scanner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 230, 0, 0.18);
  pointer-events: none;
  animation: gaugeRadarSpin 14s linear infinite;
}

@keyframes gaugeRadarSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.gauge-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.gauge-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  margin-top: -4px;
}

.stat-pc .gauge-icon-large,
.stat-console .gauge-icon-large {
  color: #ffe600;
  filter: drop-shadow(0 0 18px rgba(255, 230, 0, 0.85)) drop-shadow(0 0 35px rgba(255, 200, 0, 0.35));
}

.stat-gauge-card:hover .gauge-icon-large {
  transform: scale(1.08);
}

.gauge-controller-icon-img,
.gauge-pc-case-icon-img,
.gauge-gpu-icon-img {
  width: 82px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 230, 0, 0.85)) drop-shadow(0 0 28px rgba(255, 200, 0, 0.4));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.stat-gauge-card:hover .gauge-controller-icon-img,
.stat-gauge-card:hover .gauge-pc-case-icon-img,
.stat-gauge-card:hover .gauge-gpu-icon-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px rgba(255, 230, 0, 1)) drop-shadow(0 0 35px rgba(255, 200, 0, 0.6));
}

/* Digital Counter Display Badge (Borderless, Inside Gauge Core Under Vector) */
.stat-digital-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 2;
}

.stat-digital-box::before {
  display: none;
}

.digital-counter-val {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
  text-align: center;
}

.stat-digital-box .gauge-counter {
  font-family: var(--font-en, "Inter", sans-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 230, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-active-badge {
  display: inline-block;
  font-family: var(--font-en, "Inter", sans-serif);
  font-size: 0.82rem;
  font-weight: 900;
  color: #10ff96;
  text-shadow: 0 0 10px rgba(16, 255, 150, 0.75), 0 0 20px rgba(16, 255, 150, 0.35);
  line-height: 1;
  margin-top: 0px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.stat-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.stat-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
}

/* Responsive */
@media (max-width: 860px) {
  .home-stats-section {
    padding: 1.8rem 0.75rem 0.1rem;
  }

  .stats-header {
    margin-bottom: 1.3rem;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .stats-header.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stats-main-title {
    font-size: 1.45rem;
    animation: none !important;
    text-shadow: none !important;
    gap: 0.5rem;
  }

  .live-reactor-loop {
    width: 18px;
    height: 18px;
  }

  .live-reactor-loop .core-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 6px #20e89e;
  }

  .live-reactor-loop .ring-wave {
    display: none !important;
  }

  .stats-subtitle {
    display: none !important;
  }

  .stats-gauges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    perspective: none !important;
    max-width: 460px;
  }

  .stat-gauge-card {
    padding: 1rem 0.5rem 0.9rem;
    border-radius: 18px;
    background: #14120e !important;
    border: 1px solid rgba(255, 230, 0, 0.22) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform-style: flat !important;
    will-change: opacity, transform;
  }

  .stat-gauge-card.stat-pc,
  .stat-gauge-card.stat-console {
    transition-delay: 0s;
  }

  .stat-gauge-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .card-glass-sheen,
  .gauge-radar-scanner,
  .stat-status-pill,
  .stat-info {
    display: none !important;
  }

  .gauge-circle-wrap {
    width: 145px;
    height: 145px;
    margin: 0 auto;
  }

  .gauge-core {
    gap: 2px;
  }

  .gauge-progress-ring.pc-ring,
  .gauge-progress-ring.console-ring {
    filter: none !important;
  }

  .stat-pc .gauge-icon-large,
  .stat-console .gauge-icon-large {
    filter: none !important;
  }

  .gauge-icon-large svg,
  .gauge-controller-icon-img,
  .gauge-pc-case-icon-img,
  .gauge-gpu-icon-img {
    width: 52px;
    height: auto;
    filter: none !important;
    margin-top: -2px;
  }

  .stat-digital-box {
    min-width: 0;
    width: auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .stat-digital-box::before {
    display: none !important;
  }

  .stat-digital-box .gauge-counter {
    font-size: 1.85rem;
    text-shadow: none !important;
  }

  .stat-active-badge {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #10ff96;
    text-shadow: 0 0 8px rgba(16, 255, 150, 0.7);
    margin-top: 0px;
  }
}

@media (max-width: 420px) {
  .home-stats-section {
    padding: 1.3rem 0.4rem 0;
  }

  .stats-gauges-grid {
    gap: 0.5rem;
    max-width: 370px;
  }

  .stat-gauge-card {
    padding: 0.85rem 0.35rem 0.75rem;
    border-radius: 14px;
  }

  .gauge-circle-wrap {
    width: 125px;
    height: 125px;
    margin: 0 auto;
  }

  .gauge-core {
    gap: 1px;
  }

  .gauge-icon-large svg,
  .gauge-controller-icon-img,
  .gauge-pc-case-icon-img,
  .gauge-gpu-icon-img {
    width: 44px;
  }

  .stat-digital-box .gauge-counter {
    font-size: 1.6rem;
  }

  .stat-active-badge {
    font-size: 0.65rem;
  }
}


@media (prefers-reduced-motion: reduce) {

  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.is-leaving {
    animation: none !important;
    transition: opacity 0.35s ease !important;
    transform: none !important;
    filter: none !important;
  }

  .marquee-item img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .header-slogan .slogan-caret,
  .header-slogan.is-glow .slogan-regular,
  .header-slogan.is-glow .slogan-brand {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: start;
    padding: 0.65rem 0.75rem 0.55rem;
    row-gap: 0.45rem;
  }

  .header-brand-side {
    grid-area: brand;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .header-lang-side {
    grid-area: lang;
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
  }

  .cyber-nav-wrapper {
    grid-area: nav;
    position: relative;
    width: 100%;
    margin: 0.25rem auto 0.1rem;
  }

  .main-nav {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.3rem;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav::before {
    display: none !important;
  }

  .cyber-nav-track {
    position: absolute;
    top: 0;
    left: -0.75rem;
    right: -0.75rem;
    width: calc(100% + 1.5rem);
    height: 2px;
    pointer-events: none;
    z-index: 15;
    display: flex;
    align-items: center;
  }

  .cyber-track-glow {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 230, 0, 0.35);
    filter: blur(6px);
    opacity: 0.75;
    border-radius: 999px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cyber-track-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, 
      rgba(255, 230, 0, 0.8) 0%, 
      #ffffff 50%, 
      rgba(255, 230, 0, 0.8) 100%
    );
    box-shadow:
      0 0 3px #ffffff,
      0 0 7px #ffe600,
      0 0 16px rgba(255, 230, 0, 0.7),
      0 0 28px rgba(255, 230, 0, 0.3);
    border-radius: 999px;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cyber-track-beam {
    position: absolute;
    top: -0.75px;
    left: 0;
    width: 28%;
    height: 3px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 255, 255, 0.95) 45%, 
      #ffe600 75%, 
      transparent 100%
    );
    box-shadow: 
      0 0 6px #ffffff,
      0 0 14px #ffe600,
      0 0 28px rgba(255, 230, 0, 0.7);
    border-radius: 999px;
    animation: cyberBeamPulse 3.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    opacity: 0.9;
    will-change: transform, left, opacity;
  }

  .cyber-track-node {
    position: absolute;
    top: -4px;
    font-size: 8px;
    color: #ffe600;
    text-shadow: 0 0 6px #ffe600, 0 0 12px rgba(255, 230, 0, 0.8);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 16;
  }

  .cyber-track-node.node-start {
    right: 0px;
  }

  .cyber-track-node.node-end {
    left: 0px;
  }

  .cyber-nav-track.is-scrolling .cyber-track-glow {
    opacity: 1;
    filter: blur(8px);
    background: rgba(255, 230, 0, 0.6);
  }

  .cyber-nav-track.is-scrolling .cyber-track-line {
    box-shadow:
      0 0 5px #ffffff,
      0 0 12px #ffe600,
      0 0 26px rgba(255, 230, 0, 0.9),
      0 0 42px rgba(255, 230, 0, 0.5);
  }

  .cyber-nav-track.is-scrolling .cyber-track-beam {
    animation-duration: 1.8s;
  }

@keyframes cyberTrackScan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes cyberBeamPulse {
  0% {
    left: 0%;
    opacity: 0.2;
    transform: scaleX(0.8);
  }
  35% {
    opacity: 0.95;
    transform: scaleX(1.1);
  }
  65% {
    opacity: 0.95;
    transform: scaleX(1.1);
  }
  100% {
    left: 72%;
    opacity: 0.2;
    transform: scaleX(0.8);
  }
}

  .nav-row {
    display: contents !important;
  }

  .nav-link,
  .nav-link.nav-link-tournament {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 1 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0 0.7rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-slogan {
    width: auto;
    min-width: 0;
    max-width: min(360px, 55vw);
    font-size: clamp(0.92rem, 2.4vw, 1.2rem);
  }
}

@media (max-width: 720px) {
  .header-slogan {
    display: none;
  }

  /* Top row 3 items: Logo, User Panel/Login button, and Lang Switch perfectly aligned in one horizontal line */
  .header-brand-side {
    gap: 0.7rem;
    min-width: 0;
    display: flex;
    align-items: flex-start;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    align-self: flex-start;
  }

  .brand-logo {
    height: 34px;
    max-height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .auth-area {
    min-width: 0;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    align-self: flex-start;
    min-height: 34px;
    height: auto;
  }

  .btn-login {
    height: 34px;
    min-height: 34px;
    padding: 0 0.85rem;
    font-size: 0.86rem;
    border-radius: 7px;
  }

  .user-menu-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    min-width: 0;
    height: auto;
    min-height: 34px;
    gap: 3px;
    padding: 2px 0;
  }

  .user-menu-wrap .btn-panel {
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0 0.85rem;
    height: 32px;
    min-height: 32px;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    align-self: center;
  }

  html[dir="ltr"] .user-menu-wrap .btn-panel {
    font-size: 0.84rem;
    padding: 0 0.75rem;
    letter-spacing: 0.01em;
  }

  .user-menu-wrap .user-chip {
    font-size: 0.92rem;
    font-weight: 800;
    max-width: 180px;
    line-height: 1.35;
    position: static;
    transform: none;
    display: block;
    overflow: visible;
    margin-top: 1px;
    padding: 1px 4px 2px;
    white-space: nowrap;
    color: #ffe066;
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.65), 0 0 20px rgba(245, 215, 110, 0.35);
    letter-spacing: 0.01em;
  }

  .header-lang-side {
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    height: 34px;
  }

  .lang-switch {
    height: 34px;
    min-height: 34px;
    align-self: flex-start;
  }

  .lang-btn {
    height: 34px;
    font-size: 0.82rem;
    padding: 0 0.75rem;
  }
}

@media (max-width: 900px) {
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .tournaments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .room-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 28vh;
    padding-top: 2rem;
  }

  .cursor-halo {
    display: none;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .tournaments-grid {
    grid-template-columns: 1fr;
  }

  .tournament-player-fields {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 34px;
  }

  .hero-logo {
    width: min(300px, 82vw);
  }

  .hero-slider {
    aspect-ratio: 21 / 9;
    min-height: 220px;
    height: auto;
  }

  .hero-overlay {
    padding: clamp(0.8rem, 2.5vw, 1.5rem) 0.8rem clamp(3.2rem, 7vw, 4.2rem);
  }

  .hero-kicker {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .hero-title {
    font-size: clamp(1.2rem, 4.8vw, 1.75rem);
    max-width: 92%;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    margin: 0.4rem 0 0;
    max-width: 90%;
    line-height: 1.55;
  }

  .hero-controls {
    bottom: 0.75rem;
  }

  .hero-arrows button {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .hero-arrows span {
    font-size: 0.78rem;
    padding: 0 0.4rem;
  }

  .nav-row {
    display: contents !important;
  }

  .nav-link,
  .nav-link.nav-link-tournament {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 1 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0 0.7rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .marquee-item {
    width: 108px;
  }
}

@media (hover: none),
(pointer: coarse) {
  .cursor-halo {
    display: none;
  }

  .marquee-item:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .marquee-item:hover .marquee-icon img {
    animation: none !important;
    transform: none !important;
    filter: drop-shadow(0 0 8px rgba(245, 215, 110, 0.22)) !important;
    opacity: 1 !important;
  }

  .marquee-item:hover .marquee-name {
    color: #e8ebf0 !important;
    text-shadow: none !important;
  }
}

/* Mobile / lite marquee: no particles, lighter CSS animations */








@media (max-width: 900px) {

  .games-marquee::before,
  .games-marquee::after {
    animation: none !important;
  }



  .marquee-item img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== MOBILE ULTRA-LITE (no frame drops) ========== */
html.mobile-lite .video-bg video {
  display: none !important;
}

html.mobile-lite .neon-fallback {
  animation: none !important;
  background-size: 100% 100% !important;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 215, 110, 0.14), transparent 40%),
    linear-gradient(145deg, #12151a, #1a1e24 55%, #0e1115) !important;
}

html.mobile-lite .bg-grid {
  display: none !important;
}

html.mobile-lite .site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(12, 14, 18, 0.96);
}

html.mobile-lite .hero-slide {
  transform: none !important;
  filter: none !important;
  will-change: opacity !important;
  transition: opacity 0.45s ease !important;
  animation: none !important;
}

html.mobile-lite .hero-slide.is-active {
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

html.mobile-lite .hero-slide.is-leaving {
  transform: none !important;
  filter: none !important;
  transition: opacity 0.4s ease !important;
}

html.mobile-lite .brand-logo {
  filter: none !important;
}

html.mobile-lite .room-tile,
html.mobile-lite .catalog-card,
html.mobile-lite .view.active {
  animation: none !important;
  transition: none !important;
  filter: none !important;
  will-change: auto !important;
}

html.mobile-lite .room-tile:hover,
html.mobile-lite .rooms-grid.is-dimming .room-tile {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

html.mobile-lite .games-marquee {
  contain: layout paint style;
  content-visibility: auto;
  background: #07090c !important;
}

html.mobile-lite .marquee-row {
  backface-visibility: hidden;
  transform: translateZ(0);
}

html.mobile-lite .marquee-item {
  transform: none !important;
  transition: background 0.2s ease !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible;
}

html.mobile-lite .marquee-item:hover,
html.mobile-lite .marquee-item:active {
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}







html.mobile-lite .marquee-item img {
  content-visibility: auto;
}

html.mobile-lite .footer-char {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.mobile-lite .aim-cursor,
html.mobile-lite .site-cursor-trail,
html.mobile-lite .cursor-halo {
  display: none !important;
}

html.mobile-lite .page-pad,
html.mobile-lite .view[data-view="accounts"],
html.mobile-lite .view[data-view="gear"],
html.mobile-lite .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

@media (max-width: 900px) {
  .video-bg video {
    display: none !important;
  }

  .neon-fallback {
    animation: none !important;
    background-size: 100% 100% !important;
  }

  .bg-grid {
    display: none !important;
  }

  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 14, 18, 0.96);
  }

  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.is-leaving {
    transform: none !important;
    filter: none !important;
    animation: none !important;
    will-change: opacity !important;
    transition: opacity 0.45s ease !important;
  }
}

/* ==========================================================================
   Admin Customers Panel & Category Filters
   ========================================================================== */
.customer-search-field {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  background: rgba(16, 19, 24, 0.85);
  border: 1px solid rgba(245, 215, 110, 0.3);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-search-field:focus {
  outline: none;
  border-color: var(--yellow, #f5d76e);
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.25);
}

.customer-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
  padding: 0.6rem;
  background: rgba(16, 19, 24, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9ced6;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip:hover {
  background: rgba(245, 215, 110, 0.1);
  border-color: rgba(245, 215, 110, 0.35);
  color: #fff;
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.25), rgba(245, 215, 110, 0.1));
  border-color: var(--yellow, #f5d76e);
  color: var(--yellow, #f5d76e);
  box-shadow: 0 0 14px rgba(245, 215, 110, 0.2);
}

.filter-chip span {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.status-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-tag.status-ok {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-tag.status-no {
  background: rgba(244, 67, 54, 0.18);
  color: #e57373;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-tag.status-wait {
  background: rgba(255, 152, 0, 0.18);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

/* ==========================================================================
   DISCOUNT PACKAGES STYLES
   ========================================================================== */
.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.discount-card {
  background: rgba(16, 19, 26, 0.85);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 215, 110, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.discount-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--yellow, #f5d76e);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 215, 110, 0.25);
}

.discount-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #080a0f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-media-box img,
.discount-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discount-media-box img.clickable-media {
  cursor: pointer;
  transition: transform 0.4s ease;
}

.discount-media-box img.clickable-media:hover {
  transform: scale(1.04);
}

.discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ff3b30, #ff9500);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.5);
  letter-spacing: 0.5px;
  z-index: 2;
}

.discount-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.95), rgba(12, 14, 20, 0.98));
}

.discount-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow, #f5d76e);
  margin: 0;
  line-height: 1.4;
}

.discount-description {
  font-size: 0.92rem;
  color: #cfd5e1;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Image Preview Modal */
.image-preview-card {
  max-width: 90vw;
  max-height: 90vh;
  padding: 8px;
  background: rgba(10, 12, 16, 0.95);
  border: 1px solid var(--yellow, #f5d76e);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px rgba(245, 215, 110, 0.3);
}

.image-preview-card img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}

.modal-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow, #f5d76e);
  color: #000;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: transform 0.2s ease;
}

.modal-close-btn:hover {
  transform: scale(1.1);
}

/* Vibrant High-Contrast Tournament Card Buttons */
.tournament-card-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 1rem !important;
  width: 100% !important;
}

.tournament-card-actions .btn {
  flex: 1 !important;
  padding: 0.65rem 0.6rem !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  text-align: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
}

/* 'ثبت‌نام در تورنومنت' button - Neon Mint Emerald */
.tournament-card-actions .tournament-register-btn {
  background: #20e89e !important;
  color: #032415 !important;
  border: 1.5px solid #00ff9d !important;
  box-shadow:
    0 4px 0 #0f9b67,
    0 6px 18px rgba(32, 232, 158, 0.45) !important;
}

.tournament-card-actions .tournament-register-btn:hover {
  background: #00ff9d !important;
  color: #000000 !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow:
    0 6px 0 #0f9b67,
    0 10px 24px rgba(0, 255, 157, 0.65) !important;
}

/* 'جزئیات و قوانین' button - Canary Amber Gold */
.tournament-card-actions .tournament-details-btn {
  background: #ffd633 !important;
  color: #1a1400 !important;
  border: 1.5px solid #ffe566 !important;
  box-shadow:
    0 4px 0 #cc9900,
    0 6px 18px rgba(255, 214, 51, 0.45) !important;
}

.tournament-card-actions .tournament-details-btn:hover {
  background: #ffe566 !important;
  color: #000000 !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow:
    0 6px 0 #cc9900,
    0 10px 24px rgba(255, 229, 102, 0.65) !important;
}

/* Site Footer Enhancements & Logos */
.site-footer {
  padding: 1.8rem 1.5rem;
  background: rgba(10, 12, 14, 0.95);
  border-top: 1px solid rgba(245, 215, 110, 0.2);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  min-width: 180px;
}

.footer-col-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.footer-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(245, 215, 110, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-col:hover .footer-icon,
.footer-social-link:hover .footer-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 14px rgba(245, 215, 110, 0.8));
}

.footer-col-socials {
  justify-content: center;
  min-width: 120px;
}

.social-logos-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.footer-social-link {
  display: inline-block;
  text-decoration: none;
}

.footer-character-wrap {
  display: none;
}

.phone-role {
  color: var(--yellow, #f5d76e);
  font-weight: 700;
  margin-inline-end: 0.35rem;
  font-size: 0.9rem;
}

/* Mobile View Customizations */
@media (max-width: 768px) {
  .site-footer {
    padding: 3.5rem 1.5rem 3rem;
    background:
      linear-gradient(to bottom, rgba(10, 12, 14, 0.95) 0%, rgba(10, 12, 14, 0.7) 35%, rgba(10, 12, 14, 0.2) 65%, rgba(10, 12, 14, 0.95) 100%),
      url('/static/uploads/pacman.jpg') no-repeat center bottom;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 72vh;
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.6rem;
    margin: 0;
  }

  .footer-col {
    align-items: flex-start;
    text-align: right;
    min-width: unset;
    width: 100%;
    gap: 0.3rem;

    /* Scroll animation styles */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .footer-col-header {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0.2rem;
  }

  /* Ensure text is right-aligned for address and phone numbers */
  .footer-col p {
    text-align: right;
    margin: 0.2rem 0;
    width: 100%;
    font-size: 1.05rem;
    color: var(--muted);
  }

  /* Staggered animation triggers */
  .site-footer.animate-in .footer-col:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }

  .site-footer.animate-in .footer-col:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
  }

  /* Pac-Man eating dots separator */
  .pacman-separator-wrap {
    width: 100%;
    margin: 1.5rem 0 1rem;
    position: relative;
    height: 24px;
    display: block;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.5s;
  }

  .site-footer.animate-in .pacman-separator-wrap {
    opacity: 1;
    transform: scaleX(1);
  }

  .pacman-track {
    width: 80%;
    margin: 0 auto;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
  }

  .pacman-chomper {
    width: 28px;
    height: 28px;
    background: #ffe566;
    border-radius: 50%;
    position: absolute;
    left: 0;
    z-index: 5;
    box-shadow: 0 0 16px #ffe566;
    margin-top: -5px;
    /* Offset alignment for the larger size */
    animation: chomperMouth 0.3s infinite ease-in-out, chomperMove 6s infinite linear;
  }

  @keyframes chomperMouth {

    0%,
    100% {
      clip-path: polygon(100% 74%, 50% 50%, 100% 26%, 100% 0, 0 0, 0 100%, 100% 100%);
    }

    50% {
      clip-path: polygon(100% 50%, 50% 50%, 100% 50%, 100% 0, 0 0, 0 100%, 100% 100%);
    }
  }

  @keyframes chomperMove {
    0% {
      left: 0%;
      transform: scaleX(1);
    }

    49% {
      left: 95%;
      transform: scaleX(1);
    }

    50% {
      left: 95%;
      transform: scaleX(-1);
    }

    99% {
      left: 0%;
      transform: scaleX(-1);
    }

    100% {
      left: 0%;
      transform: scaleX(1);
    }
  }

  .pacman-dots {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 5px;
  }

  .pacman-dots .dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 229, 102, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 229, 102, 0.8);
    opacity: 1;
    transition: opacity 1s ease;
  }

  /* Neon Flicker Effect for mobile headers */
  .footer-col-header strong {
    text-shadow:
      0 0 4px #fff,
      0 0 10px var(--yellow),
      0 0 16px var(--yellow-hot);
    animation: neonFlicker 5s infinite alternate;
  }

  @keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
      text-shadow:
        0 0 4px #fff,
        0 0 10px var(--yellow),
        0 0 16px var(--yellow-hot);
      opacity: 1;
    }

    20%,
    24%,
    55% {
      text-shadow: none;
      opacity: 0.65;
    }
  }

  .footer-col-socials {
    margin-top: auto;
    padding-top: 15vh;
    /* Large gap to clear the neon icons in the middle of pacman.jpg */
    align-items: center;
    width: 100%;
    transform: translateY(-40px);
    /* Start above to slide down */
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-footer.animate-in .footer-col-socials {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.75s;
  }

  .social-logos-wrap {
    justify-content: center;
    margin-top: 0.3rem;
    gap: 2rem;
    width: 100%;
  }

  .social-logos-wrap .footer-icon {
    width: 68px;
    height: 68px;
  }

  /* Brand Neon Pulsing Glows for Instagram and Telegram */
  .footer-social-link[href*="instagram"] .footer-icon {
    filter: drop-shadow(0 0 6px rgba(225, 48, 108, 0.6));
    animation: instaGlow 2.5s infinite ease-in-out;
  }

  .footer-social-link[href*="t.me"] .footer-icon {
    filter: drop-shadow(0 0 6px rgba(0, 136, 204, 0.6));
    animation: teleGlow 2.5s infinite ease-in-out;
  }

  @keyframes teleGlow {

    0%,
    100% {
      filter: drop-shadow(0 0 4px rgba(0, 136, 204, 0.5));
      transform: scale(1);
    }

    50% {
      filter: drop-shadow(0 0 14px rgba(0, 136, 204, 0.9)) drop-shadow(0 0 22px rgba(245, 215, 110, 0.4));
      transform: scale(1.06);
    }
  }
}


/* ==========================================================================
   ACADEMY SECTION STYLES (آکادمی سپنتا)
   ========================================================================== */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.academy-card {
  background: rgba(18, 22, 28, 0.85);
  border: 1px solid rgba(245, 215, 110, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.academy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 215, 110, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 215, 110, 0.15);
}

.academy-card-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
}

.academy-media-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #090b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Media orientation rules for Desktop vs Mobile */
.desktop-media {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.mobile-media {
  display: none;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: 520px;
}

@media (max-width: 768px) {
  .desktop-media {
    display: none !important;
  }

  .mobile-media {
    display: block !important;
  }

  .academy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.academy-video,
.academy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.academy-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 215, 110, 0.6);
  font-size: 0.9rem;
  background: radial-gradient(circle at center, rgba(245, 215, 110, 0.1), transparent 70%);
}

/* Small caption under video */
.academy-caption {
  margin-top: 0.75rem;
  padding: 0.4rem 0.2rem;
  text-align: center;
}

.academy-caption-text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.95;
  font-weight: 500;
  text-align: center;
}


/* ==========================================================================
   ABOUT SECTION STYLES (درباره ما)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  background: #090b0e;
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text inside styled box underneath image */
.about-content-box {
  background: rgba(18, 22, 28, 0.92);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 0 0 16px 16px;
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(12px);
  flex: 1;
}

.about-box-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow, #f5d76e);
  text-shadow: 0 0 12px rgba(245, 215, 110, 0.2);
}

.about-box-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--ink-dim, #d5d9e0);
  white-space: pre-wrap;
}


/* ==========================================================================
   FOOTER STYLES (4 Logos Only)
   ========================================================================== */
.site-footer {
  width: 100%;
  padding: 2.2rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 16, 0.95) 100%);
  border-top: 1px solid rgba(245, 215, 110, 0.18);
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer-pacman-wrap {
  display: none;
}

@media (max-width: 768px) {
  .site-footer {
    width: 100%;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-container {
    width: 100%;
    max-width: 100%;
    min-height: unset;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: url('/static/gamepad-neon.png?v=7') no-repeat center top / contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }

  .footer-logos {
    position: relative;
    z-index: 2;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: clamp(310px, 80vw, 365px);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer-logo-btn {
    width: 54px;
    height: 54px;
    background: rgba(10, 14, 20, 0.85);
    border: 1.8px solid rgba(245, 215, 110, 0.75);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 215, 110, 0.35);
  }

  .footer-logo-btn svg {
    width: 25px;
    height: 25px;
  }

  .footer-address-text {
    position: relative;
    z-index: 2;
    margin-top: 0.95rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    color: rgba(255, 255, 255, 0.9);
    padding: 0 0.85rem;
    text-align: center;
  }

  .footer-copyright {
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 45%, #f5b000 100%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow:
      0 -2px 14px rgba(245, 215, 110, 0.28),
      inset 0 1px 1px rgba(255, 255, 255, 0.65);
    text-shadow: none;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-copyright p {
    color: #0c0e12 !important;
    font-size: clamp(0.74rem, 2.7vw, 0.84rem);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0.01em;
    text-shadow: none !important;
    margin: 0;
  }

  .footer-pacman-wrap {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 14px 0 12px 0;
    padding: 0;
    z-index: 2;
    pointer-events: none;
  }

  .footer-pacman-anim {
    width: 120px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .footer-pacman-anim svg {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px;
    min-height: 120px;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 0 12px rgba(245, 215, 110, 0.55));
  }
}

/* 4 Logos only container */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-logo-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 215, 110, 0.35);
  color: var(--yellow, #f5d76e);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-logo-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.footer-logo-btn:hover {
  transform: translateY(-5px) scale(1.12);
  background: rgba(245, 215, 110, 0.18);
  border-color: var(--yellow, #f5d76e);
  box-shadow: 0 0 24px rgba(245, 215, 110, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.footer-logo-btn:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--yellow, #f5d76e));
}

/* Footer address under logos */
.footer-address-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.6;
}

.footer-address-text p {
  margin: 0;
}

/* Corporate Footer Copyright */
.footer-copyright {
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  width: 100%;
  max-width: 580px;
}

.footer-copyright p {
  margin: 0;
}

/* Contact phone numbers popup modal */
.contact-modal-card {
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, 0.25);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-phone-item:hover {
  border-color: rgba(245, 215, 110, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.contact-phone-item .phone-role {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-phone-item .phone-link {
  color: var(--yellow, #f5d76e);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  direction: ltr;
  font-family: inherit;
  transition: color 0.2s ease;
}

.contact-phone-item .phone-link:hover {
  color: #ffffff;
}

contact-phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, 0.25);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-phone-item:hover {
  border-color: rgba(245, 215, 110, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.contact-phone-item .phone-role {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-phone-item .phone-link {
  color: var(--yellow, #f5d76e);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  direction: ltr;
  font-family: inherit;
  transition: color 0.2s ease;
}

.contact-phone-item .phone-link:hover {
  color: #ffffff;
}

.option-detail {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffe600;
  letter-spacing: 0.02em;
}

.inquiry-option-card.option-telegram .option-detail {
  color: #38bdf8;
}

.option-action-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(32, 232, 158, 0.15);
  color: #20e89e;
  border: 1px solid rgba(32, 232, 158, 0.3);
  white-space: nowrap;
}

.option-action-tag.tg-tag {
  background: rgba(0, 180, 255, 0.15);
  color: #38bdf8;
  border-color: rgba(0, 180, 255, 0.3);
}

.contact-phone-item .phone-link:hover {
  color: #ffffff;
}

/* ===================================================
   ADMIN AUTH, 2FA, AND SECURITY STYLES
   =================================================== */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(229, 57, 53, 0.12);
  color: #ff5252;
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(229, 57, 53, 0.25);
  border-color: rgba(229, 57, 53, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.admin-gate-step {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gate-icon-shield {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(240, 192, 64, 0.3));
}

.gate-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.3rem;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-left: 2.8rem;
}

.btn-toggle-password {
  position: absolute;
  left: 8px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--muted);
  transition: opacity 0.2s ease;
  user-select: none;
}

.btn-toggle-password:hover {
  opacity: 0.8;
}

.captcha-wrapper {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.totp-setup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.totp-qr-wrap {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.totp-qr-wrap:hover {
  transform: scale(1.02);
}

.totp-qr-img {
  width: 170px;
  height: 170px;
  display: block;
}

.totp-key-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.totp-key-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.totp-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 22, 28, 0.85);
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-family: monospace;
}

.totp-key-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  user-select: all;
}

.btn-copy-key {
  background: rgba(240, 192, 64, 0.15);
  color: var(--accent);
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-key:hover {
  background: rgba(240, 192, 64, 0.3);
  color: #ffffff;
}

.btn-copy-key.copied {
  background: rgba(47, 212, 160, 0.25);
  color: #2fd4a0;
  border-color: rgba(47, 212, 160, 0.5);
}

.totp-digit-input {
  text-align: center !important;
  font-size: 1.4rem !important;
  letter-spacing: 0.35em !important;
  font-weight: 700 !important;
  font-family: monospace, sans-serif !important;
  direction: ltr !important;
}

.btn-gate-submit {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.8rem;
  font-size: 1rem;
}

.btn-gate-cancel {
  width: 100%;
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.88rem;
}

/* Session Timeout Warning Modal */
.session-timeout-card {
  max-width: 440px !important;
  text-align: center;
  padding: 2rem 1.5rem !important;
  background: rgba(26, 29, 33, 0.95) !important;
  border: 1px solid rgba(240, 192, 64, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(240, 192, 64, 0.15) !important;
}

.session-modal-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.session-modal-text {
  font-size: 0.95rem;
  color: #d5d9e0;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.countdown-highlight {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0 4px;
}

/* ===================================================
   DEVICE / SERVICE RECEIPT SECTION (نصب بازی)
   =================================================== */
.receipt-cta-section {
  position: relative !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 3.8rem auto 2.8rem !important;
  padding: 0 1rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  border-radius: 30px !important;
}

.receipt-bg-art {
  position: absolute !important;
  inset: -12px -8px !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
}

.receipt-bg-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.58 !important;
  transform: scale(1.03) !important;
  filter: saturate(145%) contrast(120%) blur(1px) !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease !important;
}

.receipt-cta-section:hover .receipt-bg-img {
  transform: scale(1.07) !important;
  opacity: 0.72 !important;
}

.receipt-bg-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at center, rgba(20, 24, 32, 0.25) 0%, rgba(12, 14, 18, 0.82) 72%, rgba(6, 8, 11, 0.98) 100%) !important;
  border: 1px solid rgba(255, 23, 68, 0.3) !important;
  border-radius: 32px !important;
}

.receipt-cta-card {
  position: relative !important;
  width: 100% !important;
  max-width: 860px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, rgba(24, 28, 36, 0.5) 0%, rgba(13, 16, 21, 0.68) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  border-radius: 26px !important;
  padding: 3.4rem 2.4rem !important;
  text-align: center !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  box-shadow: 
    0 26px 70px rgba(0, 0, 0, 0.75), 
    0 0 50px rgba(255, 23, 68, 0.25), 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.4),
    inset 0 0 35px rgba(255, 23, 68, 0.09) !important;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease, border-color 0.38s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

.receipt-cta-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 70, 100, 0.65) !important;
  border-top-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    0 32px 85px rgba(0, 0, 0, 0.85), 
    0 0 75px rgba(255, 23, 68, 0.4), 
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 0 45px rgba(255, 23, 68, 0.16) !important;
}

.receipt-cta-glow {
  position: absolute !important;
  top: -30% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80% !important;
  height: 150% !important;
  background: radial-gradient(ellipse at center, rgba(255, 23, 68, 0.25) 0%, rgba(255, 82, 82, 0.08) 45%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.receipt-cta-mesh-orbs {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

.mesh-orb {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(40px) !important;
  opacity: 0.45 !important;
  animation: floatOrb 6s ease-in-out infinite alternate !important;
}

.mesh-orb.orb-red {
  width: 190px !important;
  height: 190px !important;
  top: -40px !important;
  right: -30px !important;
  background: rgba(255, 23, 68, 0.55) !important;
}

.mesh-orb.orb-amber {
  width: 170px !important;
  height: 170px !important;
  bottom: -40px !important;
  left: -20px !important;
  background: rgba(255, 179, 0, 0.4) !important;
  animation-delay: -3s !important;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, 20px) scale(1.2); }
}

.receipt-cta-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.15rem !important;
  max-width: 620px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.receipt-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  padding: 0.48rem 1.35rem !important;
  background: rgba(255, 23, 68, 0.22) !important;
  border: 1.2px solid rgba(255, 100, 120, 0.6) !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ff5252 !important;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.5) !important;
  letter-spacing: 0.02em !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.receipt-pulse-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #ff1744 !important;
  box-shadow: 0 0 12px #ff1744 !important;
  animation: receiptPulse 1.8s infinite ease-in-out !important;
  flex-shrink: 0 !important;
}

@keyframes receiptPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.55;
  }
}

.receipt-cta-title {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0.2rem 0 !important;
  text-shadow: 0 0 35px rgba(255, 23, 68, 0.6), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.receipt-cta-desc {
  font-size: clamp(0.92rem, 2vw, 1.15rem) !important;
  color: #e2e8f0 !important;
  line-height: 1.7 !important;
  margin: 0 0 1.5rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
  max-width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Red Glassmorphism Button */
.btn-receipt-red-glass {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.95rem !important;
  min-width: min(280px, 100%) !important;
  max-width: 100% !important;
  padding: 1.15rem 2.8rem !important;
  font-family: var(--font-fa), system-ui, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.9) 0%, rgba(213, 0, 0, 0.8) 50%, rgba(255, 61, 0, 0.88) 100%) !important;
  border: 2px solid rgba(255, 160, 160, 0.95) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 0 35px rgba(255, 23, 68, 0.6), 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1.5px 2px rgba(255, 255, 255, 0.85) !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  animation: redGlassPulse 2.8s infinite ease-in-out !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

@keyframes redGlassPulse {
  0%, 100% {
    box-shadow: 0 0 35px rgba(255, 23, 68, 0.6), 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1.5px 2px rgba(255, 255, 255, 0.85);
  }
  50% {
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.95), 0 18px 50px rgba(0, 0, 0, 0.7), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  }
}

.btn-receipt-red-glass:hover {
  transform: translateY(-4px) scale(1.04) !important;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 50%, #ff3d00 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 70px rgba(255, 23, 68, 0.98), 0 20px 55px rgba(0, 0, 0, 0.75), inset 0 2px 4px #ffffff !important;
}

.btn-receipt-red-glass:active {
  transform: translateY(1px) scale(0.98) !important;
}

.btn-red-glass-glow {
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent) !important;
  transition: left 0.65s ease !important;
  pointer-events: none !important;
}

.btn-receipt-red-glass:hover .btn-red-glass-glow {
  left: 100% !important;
}

.receipt-btn-icon {
  width: 28px !important;
  height: 28px !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) !important;
  flex-shrink: 0 !important;
}

/* Responsive adjustments for Receipt Section & CTA on Mobile / Tablet */
@media (max-width: 768px) {
  .receipt-cta-section {
    margin: 2rem auto 1.5rem !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .receipt-bg-art {
    inset: -6px -4px !important;
    border-radius: 22px !important;
  }

  .receipt-bg-overlay {
    border-radius: 22px !important;
  }

  .receipt-cta-card {
    padding: 1.85rem 1.15rem !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .receipt-cta-content {
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .receipt-badge {
    padding: 0.38rem 0.95rem !important;
    font-size: 0.84rem !important;
    gap: 0.45rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .receipt-pulse-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .receipt-cta-title {
    font-size: 1.55rem !important;
    line-height: 1.35 !important;
    margin: 0.2rem 0 !important;
  }

  .receipt-cta-desc {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1rem !important;
    padding: 0 0.35rem !important;
  }

  .btn-receipt-red-glass {
    min-width: unset !important;
    width: 100% !important;
    max-width: 320px !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 1.12rem !important;
    gap: 0.7rem !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .receipt-btn-icon {
    width: 24px !important;
    height: 24px !important;
  }
}

@media (max-width: 480px) {
  .receipt-cta-section {
    margin: 1.5rem auto 1rem !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .receipt-bg-art {
    inset: -4px -2px !important;
    border-radius: 18px !important;
  }

  .receipt-bg-overlay {
    border-radius: 18px !important;
  }

  .receipt-cta-card {
    padding: 1.4rem 0.85rem !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
  }

  .receipt-cta-content {
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .receipt-badge {
    padding: 0.32rem 0.75rem !important;
    font-size: 0.78rem !important;
    gap: 0.4rem !important;
    line-height: 1.4 !important;
  }

  .receipt-pulse-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .receipt-cta-title {
    font-size: 1.3rem !important;
    line-height: 1.35 !important;
  }

  .receipt-cta-desc {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
    margin: 0 0 0.8rem !important;
    padding: 0 0.2rem !important;
  }

  .btn-receipt-red-glass {
    min-width: unset !important;
    width: 100% !important;
    max-width: 280px !important;
    padding: 0.82rem 1.1rem !important;
    font-size: 1.02rem !important;
    gap: 0.55rem !important;
    border-radius: 999px !important;
  }

  .receipt-btn-icon {
    width: 21px !important;
    height: 21px !important;
  }

  /* Modal responsive adjustments on small mobile */
  .device-receipt-card {
    padding: 1.1rem 0.85rem !important;
    border-radius: 16px !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .service-type-toggle {
    gap: 0.5rem !important;
  }

  .service-type-btn {
    padding: 0.75rem 0.4rem !important;
    font-size: 0.84rem !important;
    gap: 0.35rem !important;
  }

  .service-type-btn svg {
    width: 17px !important;
    height: 17px !important;
  }
}

@media (max-width: 360px) {
  .receipt-cta-card {
    padding: 1.2rem 0.65rem !important;
  }

  .receipt-badge {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.6rem !important;
  }

  .receipt-cta-title {
    font-size: 1.18rem !important;
  }

  .receipt-cta-desc {
    font-size: 0.8rem !important;
  }

  .btn-receipt-red-glass {
    font-size: 0.95rem !important;
    padding: 0.75rem 0.9rem !important;
  }
}

/* Service Type Toggle in Modal */
.service-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.service-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(36, 42, 50, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #cfd8dc;
  font-family: var(--font-fa);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.service-type-btn:hover {
  border-color: rgba(255, 23, 68, 0.4);
  color: #ffffff;
  background: rgba(45, 52, 62, 0.85);
}

.service-type-btn.active {
  border-color: #ff1744;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.25) 0%, rgba(255, 23, 68, 0.1) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.3), inset 0 0 10px rgba(255, 23, 68, 0.15);
}

.service-type-btn.active svg {
  stroke: #ff5252;
  filter: drop-shadow(0 0 6px rgba(255, 23, 68, 0.6));
}

/* Device Receipt Modal Form */
.device-receipt-card {
  max-width: 580px !important;
}

.device-receipt-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.device-receipt-form textarea {
  width: 100%;
  padding: 0.85rem;
  background: rgba(18, 21, 26, 0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-fa);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}

.device-receipt-form textarea:focus {
  outline: none;
  border-color: #ff1744;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.25);
}

.receipt-image-preview {
  margin-top: 0.8rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.receipt-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-submit-receipt {
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%) !important;
  border: 1px solid rgba(255, 82, 82, 0.6) !important;
  box-shadow: 0 4px 20px rgba(255, 23, 68, 0.4) !important;
}

.btn-submit-receipt:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%) !important;
  box-shadow: 0 6px 28px rgba(255, 23, 68, 0.6) !important;
}

/* ===================================================
   RECEIPT STATUS TAGS (Colors Specified by User)
   =================================================== */
.status-tag.status-receipt-pending {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

/* Approved (مرحله ۱: سبز) */
.status-tag.status-receipt-approved {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

/* Rejected (مرحله ۱: نارنجی / قرمز) */
.status-tag.status-receipt-rejected {
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.5);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

/* Completed (مرحله ۲: زرد) */
.status-tag.status-receipt-completed {
  background: rgba(255, 214, 0, 0.15);
  color: #ffd600;
  border: 1px solid rgba(255, 214, 0, 0.5);
  box-shadow: 0 0 12px rgba(255, 214, 0, 0.25);
}

/* Returned (مرحله ۲: سفید) */
.status-tag.status-receipt-returned {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.receipt-thumb-wrap {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.receipt-thumb-wrap:hover {
  transform: scale(1.15);
  border-color: #ff1744;
}

.receipt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================
   RESPONSIVE ORDERS: DESKTOP TABLE VS MOBILE CARDS
/* Responsive visibility controllers & wrapper resets */
#myReservationsWrap,
#myTournamentsWrap,
#myReceiptsWrap,
#ordersWrap,
#receiptsWrap,
.orders-wrap-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .desktop-table-view {
    display: none !important;
  }
  .mobile-card-view,
  .orders-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 0.25rem 0 !important;
  }
}

@media (min-width: 901px) {
  .desktop-table-view {
    display: block !important;
    width: 100% !important;
  }
  .mobile-card-view,
  .orders-cards-container {
    display: none !important;
  }
}

/* --- Ultra-Modern Mobile Booking & Service Cards --- */
.m-booking-card,
.order-review-card {
  position: relative !important;
  background: linear-gradient(160deg, #181b24 0%, #101217 100%) !important;
  border: 1px solid rgba(245, 215, 110, 0.22) !important;
  border-radius: 18px !important;
  padding: 1.1rem 1.1rem 1.0rem !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.m-booking-card::before,
.order-review-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 20px !important;
  right: 20px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #f5d76e, transparent) !important;
  opacity: 0.85 !important;
}

.m-booking-card:hover,
.m-booking-card:active,
.order-review-card:hover {
  border-color: rgba(245, 215, 110, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 215, 110, 0.18) !important;
}

/* Header */
.m-booking-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.6rem !important;
  width: 100% !important;
  padding-bottom: 0.1rem !important;
}

.m-booking-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.m-booking-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(245, 215, 110, 0.12) !important;
  border: 1px solid rgba(245, 215, 110, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f5d76e !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 12px rgba(245, 215, 110, 0.15) !important;
}

.m-booking-icon-badge svg {
  width: 20px !important;
  height: 20px !important;
}

.m-trophy-badge {
  background: rgba(255, 184, 0, 0.14) !important;
  border-color: rgba(255, 184, 0, 0.45) !important;
  color: #ffb800 !important;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.18) !important;
}

.m-service-badge {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18) !important;
}

.m-booking-title-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
}

.m-booking-room-name {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.m-booking-subtitle {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Status Pill */
.m-booking-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.32rem 0.75rem !important;
  border-radius: 999px !important;
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

.m-booking-status-badge.status-wait {
  background: rgba(245, 215, 110, 0.12) !important;
  border: 1px solid rgba(245, 215, 110, 0.45) !important;
  color: #ffe566 !important;
  box-shadow: 0 0 12px rgba(245, 215, 110, 0.2) !important;
}

.m-booking-status-badge.status-ok {
  background: rgba(0, 210, 106, 0.12) !important;
  border: 1px solid rgba(0, 210, 106, 0.45) !important;
  color: #39ff88 !important;
  box-shadow: 0 0 12px rgba(0, 210, 106, 0.22) !important;
}

.m-booking-status-badge.status-no {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #ff5e5e !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.22) !important;
}

.m-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  box-shadow: 0 0 6px currentColor !important;
  animation: mStatusPulse 1.8s ease-in-out infinite !important;
}

@keyframes mStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Tracking Code Row */
.m-booking-code-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.55rem 0.85rem !important;
  background: rgba(0, 0, 0, 0.42) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.m-code-label {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-weight: 500 !important;
}

.m-code-label svg {
  display: none !important;
}

.m-price-label svg {
  display: none !important;
}

.m-code-badge {
  font-family: "Kalameh", monospace !important;
  font-weight: 800 !important;
  font-size: 0.96rem !important;
  color: #ffe566 !important;
  letter-spacing: 0.05em !important;
  direction: ltr !important;
  background: rgba(245, 215, 110, 0.08) !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: 8px !important;
  border: 1.5px solid rgba(245, 215, 110, 0.38) !important;
}

.m-player-badge {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  color: #ffffff !important;
}

/* Specs / Details Grid */
.m-booking-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.55rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.m-grid-item {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 0.65rem 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  text-align: right !important;
}

.m-grid-item.m-grid-full {
  grid-column: span 2 !important;
}

.m-grid-icon {
  display: none !important;
}

.m-grid-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.22rem !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: right !important;
}

.m-grid-label {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.m-grid-val {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: right !important;
  line-height: 1.35 !important;
}

.m-grid-datetime {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-family: "Kalameh", var(--font-fa), sans-serif !important;
  direction: rtl !important;
  justify-content: flex-start !important;
}

.m-dt-time {
  color: #ffe566 !important;
  font-weight: 800 !important;
  font-size: 0.96rem !important;
}

.m-dt-divider {
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.85rem !important;
}

.m-dt-date {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.m-desc-val {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.45 !important;
}

/* Footer / Price Bar */
.m-booking-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.65rem 0.85rem !important;
  background: rgba(0, 0, 0, 0.42) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(245, 215, 110, 0.28) !important;
  margin-top: 0.1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.m-price-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

.m-price-label svg {
  height: 16px !important;
}

.m-price-val {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.3rem !important;
  direction: ltr !important;
  text-align: left !important;
}

.m-price-val strong {
  font-family: "Kalameh", var(--font-fa), sans-serif !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  color: #ffe566 !important;
  text-shadow: 0 0 12px rgba(255, 229, 102, 0.4) !important;
}

.m-currency {
  font-family: var(--font-fa), "Vazirmatn", sans-serif !important;
  font-size: 0.80rem !important;
  color: #f5d76e !important;
  font-weight: 600 !important;
}


/* General table styling on desktop */
.desktop-table-view {
  width: 100% !important;
  box-sizing: border-box !important;
}

.desktop-table-view.table-wrap {
  overflow-x: auto !important;
  border: 1px solid rgba(245, 215, 110, 0.22) !important;
  border-radius: 14px !important;
  background: var(--card, #121418) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
  margin: 0 auto !important;
}

.desktop-table-view table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.94rem !important;
  text-align: right !important;
}

.desktop-table-view th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted, #94a3b8) !important;
  font-weight: 700 !important;
  padding: 1rem 1.15rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.desktop-table-view td {
  padding: 1rem 1.15rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  color: #f1f5f9 !important;
  text-align: right !important;
}

.desktop-table-view tbody tr {
  transition: background 0.15s ease !important;
}

.desktop-table-view tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.cell-code strong {
  font-family: "Kalameh", monospace;
  color: #f5d76e;
  background: rgba(35, 38, 33, 0.85);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1.2px solid rgba(245, 215, 110, 0.35);
  letter-spacing: 0.04em;
  display: inline-block;
}

.cell-amount {
  color: var(--yellow-hot, #ffe566);
  font-weight: 700;
}

.cell-room,
.cell-tournament {
  font-weight: 700;
  color: #ffffff;
}

/* ===================================================
   HOME VIDEO FEATURE SECTION (STRICT 16:9 RATIO & CROP)
   =================================================== */
.home-video-feature {
  width: 100%;
  padding: 3.5rem 1.25rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.video-feature-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(22, 26, 32, 0.82);
  border: 1px solid rgba(245, 215, 110, 0.24);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
  overflow: hidden;
}

.video-feature-media {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #0b0d10 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  contain: paint layout !important;
}

.video-feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}

.feature-video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
  display: block !important;
  background: #000000 !important;
  z-index: 1 !important;
}

.video-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.video-feature-title {
  font-family: "Kalameh", var(--font-fa), sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 45%, #f5d76e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-feature-desc {
  font-family: var(--font-fa), "Vazirmatn", sans-serif;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  color: #cbd5e1;
  margin: 0;
}

/* Global Video Containment Rule to never allow any video tag to blow up UI */
video {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .video-feature-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .home-video-feature {
    padding: 1.75rem 0.75rem;
  }

  .video-feature-container {
    padding: 1rem;
    border-radius: 18px;
  }

  .video-feature-media {
    border-radius: 14px !important;
  }

  .feature-video {
    border-radius: 14px !important;
  }
}

/* Tournament Details & Rules Modal */
.tournament-details-info {
  margin-top: 0.5rem;
}

.tournament-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 0.82rem;
  color: #94a3b8;
}

.spec-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f8fafc;
}

.tournament-rules-box {
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.93rem;
  max-height: 380px;
  overflow-y: auto;
  user-select: text;
}

.tournament-rules-box::-webkit-scrollbar {
  width: 6px;
}

.tournament-rules-box::-webkit-scrollbar-thumb {
  background: rgba(245, 215, 110, 0.4);
  border-radius: 6px;
}

/* ─── Math Captcha UI ────────────────────────────────────────────────────────── */
.captcha-box {
  margin-top: 0.95rem;
}

.captcha-label {
  display: block;
  font-size: 0.88rem;
  color: #d5d9e0;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.captcha-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  direction: ltr;
}

.captcha-badge {
  background: #181c22;
  border: 1.5px solid rgba(245, 215, 110, 0.45);
  color: #ffd859;
  font-family: Consolas, monospace, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  letter-spacing: 1.5px;
  user-select: none;
  min-width: 120px;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 215, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  box-sizing: border-box;
}

.captcha-refresh-btn {
  background: #252a32;
  border: 1px solid rgba(245, 215, 110, 0.25);
  color: #ffd859;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.captcha-refresh-btn:hover {
  background: #323842;
  border-color: rgba(245, 215, 110, 0.6);
  color: #fff;
  transform: rotate(60deg);
}

.captcha-refresh-btn svg {
  display: block;
}

.captcha-input-row input {
  flex: 1;
  height: 44px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  background: #eef2f7;
  color: #111;
  border: 2px solid transparent;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.captcha-input-row input:focus {
  border-color: #ffd859;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIQUID GLASS RESERVATION MODE DOCK & TABS (رزرو عادی / بسته‌های جشنواره)
   ══════════════════════════════════════════════════════════════════════════════ */

.reserve-mode-dock-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 12;
  width: 100%;
}

.reserve-mode-dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9999px;
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 45px -10px rgba(0, 0, 0, 0.75),
    0 2px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock-liquid-glow {
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  background: radial-gradient(circle at 75% 50%, rgba(255, 45, 85, 0.22) 0%, rgba(0, 240, 255, 0.12) 60%, transparent 80%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
  transition: all 0.5s ease;
  animation: dockAmbientBreathe 6s ease-in-out infinite alternate;
}

@keyframes dockAmbientBreathe {
  0% {
    opacity: 0.65;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Liquid Glass Tab Base */
.liquid-glass-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(225, 235, 250, 0.75);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  user-select: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.liquid-glass-tab .tab-content-wrap {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.liquid-glass-tab .tab-icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Curvature Specular Highlight (Liquid Glass Reflection) */
.tab-glass-specular {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 48%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease, height 0.3s ease;
}

/* ─── TAB 1: NORMAL RESERVE (LIQUID FROST & CYBER ICE) ─────────────────────── */

.liquid-glass-tab.tab-normal:hover:not(.active) {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px -4px rgba(0, 240, 255, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.28);
}

.liquid-glass-tab.tab-normal:hover:not(.active) .tab-icon {
  transform: scale(1.1);
  color: #00f0ff;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
}

.liquid-glass-tab.tab-normal.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.32) 0%, rgba(0, 180, 240, 0.2) 50%, rgba(0, 120, 210, 0.26) 100%);
  border-color: rgba(0, 240, 255, 0.8);
  color: #00f0ff;
  transform: scale(1.02);
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.4),
    0 8px 24px -4px rgba(0, 0, 0, 0.55),
    inset 0 1px 3px rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(0, 240, 255, 0.35);
}

.liquid-glass-tab.tab-normal.active .tab-glass-specular {
  opacity: 0.75;
}

.liquid-glass-tab.tab-normal.active .tab-icon {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.95));
}

.liquid-glass-tab.tab-normal.active .tab-label {
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.8);
}

/* ─── TAB 2: FESTIVAL PACKAGES (CREATIVE LIQUID MAGMA & ENERGY FLAME) ──────── */

.liquid-glass-tab.tab-festival {
  color: #ff6e88;
  border-color: rgba(255, 75, 105, 0.32);
  background: rgba(255, 45, 85, 0.08);
}

/* Pulsing Liquid Flame Aura */
.tab-liquid-aura {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: conic-gradient(from 0deg at 50% 50%, #ff1744, #ff5252, #ff9100, #ff1744);
  filter: blur(14px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: liquidAuraRotate 5s linear infinite;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

@keyframes liquidAuraRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Refractive Light Beam Sweep */
.tab-shimmer-sweep {
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 2;
  animation: liquidSheenSweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes liquidSheenSweep {
  0%, 40% {
    left: -80%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80%, 100% {
    left: 140%;
    opacity: 0;
  }
}

/* Animated Burning Flame Emoji & Sparkles */
.festival-fire-icon {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 1.15rem;
  animation: flameBounce 1.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(255, 120, 0, 0.8));
}

@keyframes flameBounce {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 90, 0, 0.7));
  }
  50% {
    transform: translateY(-2px) scale(1.12) rotate(4deg);
    filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.95)) drop-shadow(0 0 16px rgba(255, 145, 0, 0.8));
  }
  100% {
    transform: translateY(-1px) scale(1.05) rotate(-3deg);
    filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.85));
  }
}

.fire-sparkle-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 0 6px #fff, 0 0 12px #ff9800;
  animation: sparkleTwinkle 1.2s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Hover on Festival Tab */
.liquid-glass-tab.tab-festival:hover:not(.active) {
  background: rgba(255, 45, 85, 0.16);
  border-color: rgba(255, 80, 110, 0.65);
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 28px -4px rgba(255, 30, 70, 0.35),
    0 0 20px rgba(255, 120, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.liquid-glass-tab.tab-festival:hover:not(.active) .tab-liquid-aura {
  opacity: 0.65;
  filter: blur(18px);
}

/* Festival Tab Active State (Liquid Magma) */
.liquid-glass-tab.tab-festival.active {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.48) 0%, rgba(255, 65, 80, 0.32) 45%, rgba(255, 130, 20, 0.36) 100%);
  border-color: rgba(255, 90, 110, 0.9);
  color: #ffffff;
  transform: scale(1.02);
  box-shadow:
    0 0 32px rgba(255, 25, 70, 0.55),
    0 10px 24px -4px rgba(0, 0, 0, 0.6),
    inset 0 1px 3px rgba(255, 240, 240, 0.85),
    inset 0 -2px 8px rgba(255, 23, 68, 0.4);
}

.liquid-glass-tab.tab-festival.active .tab-liquid-aura {
  opacity: 0.75;
  filter: blur(20px);
}

.liquid-glass-tab.tab-festival.active .tab-glass-specular {
  opacity: 0.85;
}

.liquid-glass-tab.tab-festival.active .festival-text-glow {
  text-shadow: 0 0 16px rgba(255, 80, 110, 0.9), 0 0 28px rgba(255, 140, 0, 0.6);
}

/* ─── LIQUID PILL BADGE ─────────────────────────────────────────────────────── */

.liquid-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 50%, #ff9100 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 14px rgba(255, 23, 68, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

.badge-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 60, 90, 0.75);
  pointer-events: none;
  animation: badgeRingPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes badgeRingPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.liquid-badge .badge-sub {
  font-size: 0.62rem;
  opacity: 0.92;
  font-weight: 700;
}

@media (max-width: 600px) {
  .reserve-mode-dock {
    width: 95%;
    max-width: 380px;
    justify-content: center;
    padding: 5px;
    gap: 6px;
  }
  .liquid-glass-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FESTIVAL TILES — 3:4 VERTICAL STANDARD (مطابق با ابعاد کراپ و کارت اتاق)
   ══════════════════════════════════════════════════════════════════════════════ */

.festival-tile {
  background: rgba(24, 18, 28, 0.72) !important;
  border: 1px solid rgba(255, 60, 90, 0.4) !important;
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 0 24px rgba(255, 30, 70, 0.16) !important;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease !important;
}

.festival-tile:hover {
  transform: translateY(-6px) scale(1.025) !important;
  border-color: rgba(255, 80, 110, 0.8) !important;
  box-shadow:
    0 22px 48px -8px rgba(0, 0, 0, 0.9),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 35px rgba(255, 30, 70, 0.4) !important;
}

.festival-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4 !important;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.festival-media-box .room-tile-media,
.festival-tile-media {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 16px !important;
  transition: transform 0.4s ease !important;
}

.festival-tile:hover .festival-tile-media {
  transform: scale(1.04) !important;
}

.festival-tile-discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 50%, #ff9100 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 14px rgba(255, 23, 68, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.festival-tile-title {
  color: #fff !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  margin: 0.2rem 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.festival-fire-glow {
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(255, 100, 0, 0.9));
}

.festival-tile-room-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  margin: 0 auto 0.4rem;
}

.festival-tile-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.35rem;
}

.festival-tile-old-price {
  opacity: 0.55;
  font-size: 0.82rem;
  text-decoration: line-through;
  color: #fff;
}

.festival-tile-final-price {
  color: #00ff88 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.btn-festival-tile-action {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 50%, #ff9100 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.45) !important;
  transition: all 0.25s ease !important;
}

.btn-festival-tile-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 23, 68, 0.7) !important;
  filter: brightness(1.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FESTIVAL PROMO POPUP LIGHTBOX (تبلیغ پاپ‌آپ جشنواره برای کاربران با آی‌پی جدید)
   ══════════════════════════════════════════════════════════════════════════════ */

.festival-promo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 4, 8, 0.9);
  backdrop-filter: blur(28px) brightness(0.6) saturate(190%);
  -webkit-backdrop-filter: blur(28px) brightness(0.6) saturate(190%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.festival-promo-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.festival-promo-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.festival-promo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: promoPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes promoPopIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(28px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.festival-promo-close {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(22, 27, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.festival-promo-close:hover {
  transform: scale(1.15) rotate(90deg);
  background: #ff1744;
  border-color: #ff1744;
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.85);
}

.festival-promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  width: auto;
  max-width: 92vw;
  height: min(84vh, 680px);
  border: 2px solid rgba(255, 75, 110, 0.75);
  box-shadow:
    0 32px 80px -10px rgba(0, 0, 0, 0.95),
    0 0 55px rgba(255, 23, 68, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.festival-promo-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: rgba(255, 100, 130, 0.98);
  box-shadow:
    0 40px 90px -8px rgba(0, 0, 0, 0.98),
    0 0 75px rgba(255, 23, 68, 0.65),
    inset 0 1px 3px rgba(255, 255, 255, 0.75);
}

.festival-promo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 30, 80, 0.55) 0%, rgba(255, 100, 0, 0.25) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
  animation: promoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes promoGlowPulse {
  0% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.festival-promo-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
}

.festival-promo-cta-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px 20px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.85) 50%, rgba(10, 12, 18, 0.98) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.9);
  transition: background 0.3s ease;
}

.festival-promo-card:hover .festival-promo-cta-hint {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 23, 68, 0.8) 60%, rgba(255, 23, 68, 0.98) 100%);
}

/* ─── NEON SIGN WITH REALISTIC FLICKER EFFECT (زیر تصویر) ─────────────────── */

.festival-promo-neon-wrap {
  margin-top: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
}

.festival-promo-neon-wrap:hover {
  transform: scale(1.04);
}

.neon-flicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 26px;
  border-radius: 9999px;
  background: rgba(18, 12, 24, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.8px solid rgba(255, 30, 80, 0.7);
  box-shadow:
    0 0 20px rgba(255, 23, 68, 0.45),
    inset 0 0 14px rgba(255, 23, 68, 0.3);
  animation: neonBorderPulse 3s ease-in-out infinite alternate;
}

@keyframes neonBorderPulse {
  0% {
    border-color: rgba(255, 30, 80, 0.55);
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.35), inset 0 0 8px rgba(255, 23, 68, 0.2);
  }
  100% {
    border-color: rgba(255, 60, 120, 0.98);
    box-shadow: 0 0 32px rgba(255, 23, 68, 0.75), inset 0 0 18px rgba(255, 23, 68, 0.45);
  }
}

.neon-text-main {
  font-family: inherit;
  font-size: 1.48rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow:
    0 0 4px #ffffff,
    0 0 10px #ff2a5f,
    0 0 20px #ff0844,
    0 0 40px #ff0844,
    0 0 70px #ff0844,
    0 0 90px #ff0844;
  animation: neonElectricFlicker 3.8s infinite;
}

@keyframes neonElectricFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px #ffffff,
      0 0 10px #ff2a5f,
      0 0 20px #ff0844,
      0 0 40px #ff0844,
      0 0 70px #ff0844,
      0 0 90px #ff0844;
  }
  20%, 24%, 55% {
    opacity: 0.38;
    text-shadow:
      0 0 2px #ffffff,
      0 0 5px #ff2a5f;
  }
  21% {
    opacity: 0.12;
    text-shadow: none;
  }
  54% {
    opacity: 0.45;
    text-shadow: 0 0 6px #ff2a5f;
  }
}

.neon-dot-spark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow:
    0 0 8px #ffffff,
    0 0 16px #ff9800,
    0 0 24px #ff1744;
  animation: neonSparkPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonSparkPulse {
  0% {
    transform: scale(0.75);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.neon-text-sub {
  color: rgba(255, 230, 240, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.8);
  animation: neonSubFloat 2s ease-in-out infinite alternate;
}

@keyframes neonSubFloat {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .festival-promo-card {
    height: auto;
    width: min(90vw, 360px);
    max-height: 68vh;
    border-radius: 20px;
  }
  .festival-promo-close {
    top: -14px;
    left: -12px;
    width: 40px;
    height: 40px;
  }
  .neon-text-main {
    font-size: 1.25rem;
  }
  .neon-flicker-badge {
    padding: 6px 18px;
    gap: 8px;
  }
}




