@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;
}

.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;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  background: rgba(255, 23, 68, 0.22) !important;
  border: 1.5px solid #ff1744 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.18rem;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.9);
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.5), inset 0 0 10px rgba(255, 23, 68, 0.3);
  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;
}

.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;
  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: 10px;
  padding: 0.7rem 1.1rem;
  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: #f5d76e;
  border: 0;
  border-radius: 22px;
  padding: 0.55rem 0.55rem 0.7rem;
  cursor: default;
  color: #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  box-shadow: 0 0 22px rgba(245, 215, 110, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s 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;
}

.room-tile-body {
  padding: 0.55rem 0.35rem 0.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}

.room-tile::before {
  display: none;
}

.room-tile:hover,
.room-tile.is-hot {
  box-shadow: 0 0 34px rgba(255, 229, 102, 0.55);
}

.room-tile h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1rem;
  color: #111;
  text-shadow: none;
  font-weight: 800;
}

.home-page .rooms-grid .room-tile h3 {
  color: #111;
  text-shadow: none;
}

.home-page .rooms-grid .room-tile .badge {
  display: none;
}

.home-page .rooms-grid .room-tile .specs {
  color: #222;
  font-size: 0.78rem;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.home-page .rooms-grid .room-tile .specs strong {
  color: #111;
}

.home-page .rooms-grid .room-tile .room-price {
  margin: 0.45rem 0 0.15rem;
  text-align: center;
  color: #e53935;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.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 Red Button & Search Page */
.btn-customer-db {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #ffffff !important;
  border: 1px solid #ff5252;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4), 0 0 10px rgba(229, 57, 53, 0.2);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-customer-db:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6), 0 0 15px rgba(255, 82, 82, 0.4);
}

.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,
.admin-page .admin-room-card h3,
.admin-page .admin-room-card .specs,
.admin-page .admin-room-card .specs strong {
  color: #111 !important;
  text-shadow: none !important;
}

.admin-page .admin-room-card .specs {
  text-align: right;
  font-size: 0.82rem;
}

.btn-delete-room {
  width: 100%;
  margin-top: 0.7rem;
  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.65rem 0.95rem;
  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 {
  order: 1;
}

html[dir="ltr"] .main-nav {
  order: 2;
}

html[dir="ltr"] .header-lang-side {
  order: 3;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 215, 110, 0.25));
}

.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);
  }
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  white-space: nowrap;
  margin-inline-start: auto;
  margin-inline-end: 0.6rem;
}

.nav-link {
  position: relative;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: #e2e8f0;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 0.42rem 0.68rem;
  cursor: pointer;
  border-radius: 8px;
  letter-spacing: 0.3px;
  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);
  overflow: hidden;
  transform: none !important;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 75%;
  height: 2.5px;
  background: var(--yellow-hot);
  box-shadow: 0 0 10px var(--yellow-hot), 0 0 18px var(--yellow-hot);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(245, 215, 110, 0.08);
  border-color: rgba(245, 215, 110, 0.25);
  text-shadow: 0 0 10px rgba(245, 215, 110, 0.4);
  transform: none !important;
}

.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--yellow-hot);
  font-weight: 700;
  background: radial-gradient(ellipse at bottom, rgba(245, 215, 110, 0.18) 0%, rgba(20, 22, 26, 0.6) 100%);
  border-color: rgba(245, 215, 110, 0.5);
  text-shadow: 0 0 14px rgba(245, 215, 110, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: none !important;
}

.nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
  height: 2.5px;
}

.lang-switch {
  display: inline-flex;
  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;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.35);
}

.btn-login,
.btn-panel {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.user-menu-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-width: 0;
}

.user-menu-wrap .btn-panel {
  white-space: nowrap;
  order: 1;
}

.user-menu-wrap .user-chip {
  order: 2;
  text-align: center;
  max-width: 12rem;
  font-size: 0.84rem;
  line-height: 1.25;
  margin-top: 0.12rem;
  opacity: 0.95;
}

.user-menu-wrap .user-flyout {
  order: 3;
  inset-inline-start: 50%;
  margin-inline-start: -105px;
  /* center under button (min-width 210) */
}

.user-flyout {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-start: 0;
  min-width: 210px;
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 215, 110, 0.35);
  background: rgba(22, 25, 30, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 215, 110, 0.12);
  z-index: 60;
  animation: pop 0.18s ease;
}

.user-flyout button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.user-flyout button:hover {
  background: rgba(245, 215, 110, 0.12);
  color: var(--yellow);
}

.user-flyout .flyout-danger:hover {
  background: rgba(229, 57, 53, 0.18);
  color: #ff8a80;
}

.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%;
  height: clamp(320px, calc(100vw * 9 / 21), 720px);
  overflow: hidden;
  border-bottom: 2px solid transparent;
  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), 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;
  opacity: 0;
  transform: scale(1.02);
  filter: brightness(1.25) contrast(1.05);
  z-index: 0;
  will-change: transform, opacity, filter;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  animation: heroSlideActive 6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
  animation: fastLensBlurSlideExit 0.28s cubic-bezier(0.15, 0.85, 0.35, 1.2) forwards;
}

@keyframes heroSlideActive {
  0% {
    opacity: 0;
    transform: translateX(18%) translateY(-6%) scale(1.02);
    filter: blur(16px) brightness(1.25) contrast(1.05);
  }

  5% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1.02);
    filter: blur(0px) brightness(1.25) contrast(1.05);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1.15);
    filter: blur(0px) brightness(1.25) contrast(1.05);
  }
}

@keyframes fastLensBlurSlideExit {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1.15);
    filter: blur(0px) brightness(1.25) contrast(1.05);
  }

  100% {
    opacity: 0;
    transform: translateX(-25%) scale(0.96);
    filter: blur(20px) brightness(1.8) contrast(1.4);
  }
}

#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);
}

/* ==========================================================================
   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(4, minmax(0, 1fr));
  max-width: 1260px;
  margin-inline: auto;
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}

.install-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.15rem;
  background: #141018;

  /* Luxury Gold/Amber Gaming Border & Controlled Neon Glow */
  border: 1.5px solid rgba(245, 215, 110, 0.35);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(245, 215, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  isolation: isolate;
}

.install-card:hover {
  transform: translateY(-8px) 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);
}

.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;
}

.install-card-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.install-card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 16, 0.15) 0%, rgba(12, 10, 16, 0.35) 45%, rgba(12, 10, 16, 0.95) 100%);
}

.install-card:hover .install-card-poster {
  transform: scale(1.06);
}

/* 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: 38%;
  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);
}

/* Top Badge */
.install-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.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);
}

/* Glassmorphic Container Box for text overlay */
.install-card-glass {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(18, 14, 24, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 20px;
  padding: 1.15rem 1rem 0.95rem;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.install-card:hover .install-card-glass {
  background: rgba(24, 18, 32, 0.88);
  border-color: rgba(245, 215, 110, 0.45);
}

/* Main Title Word Fade-In Animation */
.install-card-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  direction: rtl;
}

@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.4rem 0 0.8rem;
  color: rgba(235, 240, 250, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.install-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #f5d76e;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(245, 215, 110, 0.1);
  border: 1px solid rgba(245, 215, 110, 0.22);
  width: 100%;
  transition: all 0.25s ease;
}

.install-card:hover .install-card-action {
  background: #f5d76e;
  color: #0d0a12;
  box-shadow: 0 4px 15px rgba(245, 215, 110, 0.4);
}

#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;
  }
}

@media (max-width: 640px) {
  #view-accounts .catalog-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 330px;
    margin-inline: auto;
    padding: 0.5rem 0.75rem;
  }

  .install-card {
    /* Contained crisp neon on mobile to prevent overlapping */
    border-width: 1.2px;
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.7),
      0 0 14px rgba(245, 215, 110, 0.15);
  }
}

.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);
}

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: 19 / 6;
}

.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: 19 / 6;
}

.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: 190px;
  text-align: center;
  border-radius: 14px;
  padding: 0.35rem 0.25rem 0.35rem;
  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: 88px;
  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: 175px;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px rgba(245, 215, 110, 0.18));
  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 14px rgba(245, 215, 110, 0.55)) brightness(1.15) !important;
  transform: none !important;
}

.marquee-item .marquee-name {
  display: block;
  margin-top: 0.3rem;
  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: 115px;
    padding: 0.25rem 0.15rem 0.3rem;
  }

  .marquee-item .marquee-icon {
    height: 56px;
  }

  .marquee-item .marquee-icon img,
  .marquee-item img {
    max-width: 105px;
    max-height: 54px;
  }

  .marquee-item .marquee-name {
    margin-top: 0.2rem;
    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 */
.home-video-feature {
  width: 100%;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.video-feature-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 3.5rem;
  background: rgba(18, 22, 30, 0.6);
  border: 1px solid rgba(245, 215, 110, 0.14);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.video-feature-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #f5d76e;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.02em;
}

.video-feature-desc {
  font-size: 1.05rem;
  color: #cfd5e0;
  line-height: 1.85;
  margin: 0;
}

.video-feature-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .home-video-feature {
    padding: 1.5rem 1rem 2.5rem;
  }

  .video-feature-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .video-feature-media {
    order: 1;
  }

  .video-feature-text {
    order: 2;
    text-align: center;
    gap: 0.8rem;
  }

  .video-feature-title {
    font-size: 1.35rem;
  }

  .video-feature-desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   Home Live Gaming Stats Section (Circular Cyber Gauges & Animated Counters)
   ========================================================================== */
.home-stats-section {
  width: 100%;
  padding: 3.5rem 1.5rem 5.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stats-container {
  max-width: 1240px;
  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: translateY(35px);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.stats-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.35);
  color: #ff7e5f;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(255, 107, 74, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6348;
  box-shadow: 0 0 8px #ff6348;
  animation: liveBadgePulse 1.6s ease-in-out infinite;
}

@keyframes liveBadgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}

.stats-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.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.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.stat-gauge-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(38, 22, 28, 0.7) 0%, rgba(14, 11, 14, 0.95) 80%), linear-gradient(145deg, rgba(24, 18, 22, 0.8) 0%, rgba(12, 10, 14, 0.92) 100%);
  background-size: 140% 140%;
  border: 1.5px solid rgba(255, 126, 95, 0.15);
  border-radius: 28px;
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform, opacity, filter;
}

.stat-gauge-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: cardSubtleFloat 8s ease-in-out infinite alternate, cardBgGlowShift 10s ease-in-out infinite alternate;
}

@keyframes cardSubtleFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.006);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes cardBgGlowShift {
  0% {
    background-position: 50% 0%;
    border-color: rgba(255, 126, 95, 0.15);
  }
  50% {
    background-position: 50% 25%;
    border-color: rgba(255, 126, 95, 0.28);
  }
  100% {
    background-position: 50% 0%;
    border-color: rgba(255, 126, 95, 0.15);
  }
}

.stat-gauge-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.28;
  filter: blur(45px);
  transition: opacity 0.4s ease;
}

.stat-gauge-card.is-visible::before {
  animation: auraSubtleBreathing 6s ease-in-out infinite alternate;
}

@keyframes auraSubtleBreathing {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.25;
    filter: blur(45px);
  }
  50% {
    transform: translateX(-50%) scale(1.15);
    opacity: 0.38;
    filter: blur(55px);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.25;
    filter: blur(45px);
  }
}

.stat-gauge-card.stat-pc::before {
  background: #ff6348;
}

.stat-gauge-card.stat-console::before {
  background: #ff4757;
}

.stat-gauge-card.is-visible:hover {
  transform: translateY(-8px) scale(1.015);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-gauge-card.stat-pc:hover {
  border-color: rgba(255, 126, 95, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 99, 72, 0.3);
}

.stat-gauge-card.stat-console:hover {
  border-color: rgba(255, 71, 87, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 71, 87, 0.3);
}

/* Circular Gauge Visual */
.gauge-circle-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.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.04);
  stroke-width: 14;
}

.gauge-track-ring {
  fill: none;
  stroke: rgba(255, 126, 95, 0.1);
  stroke-width: 10;
  stroke-dasharray: 4 6;
}

.gauge-progress-ring {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-progress-ring.pc-ring {
  stroke: url(#pcGrad);
  filter: drop-shadow(0 0 10px rgba(255, 99, 72, 0.75));
}

.gauge-progress-ring.console-ring {
  stroke: url(#consoleGrad);
  filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.75));
}

.stat-gauge-card.is-visible .gauge-progress-ring.pc-ring {
  stroke-dashoffset: 65; /* ~88% filled */
}

.stat-gauge-card.is-visible .gauge-progress-ring.console-ring {
  stroke-dashoffset: 130; /* ~75% filled */
}

/* Radar Rotating Scanner */
.gauge-radar-scanner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 126, 95, 0.16);
  pointer-events: none;
  animation: gaugeRadarSpin 12s linear infinite;
}

@keyframes gaugeRadarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gauge-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gauge-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.stat-pc .gauge-icon-large {
  color: #ff7e5f;
  filter: drop-shadow(0 0 18px rgba(255, 126, 95, 0.75)) drop-shadow(0 0 35px rgba(255, 71, 87, 0.35));
}

.stat-console .gauge-icon-large {
  color: #ff6b81;
  filter: drop-shadow(0 0 18px rgba(255, 107, 129, 0.75)) drop-shadow(0 0 35px rgba(255, 71, 87, 0.35));
}

.stat-gauge-card:hover .gauge-icon-large {
  transform: scale(1.08);
}

/* Digital Counter Display Badge / Box with Saber Neon Laser Effect */
.stat-digital-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 0.65rem 2.2rem;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  background: rgba(18, 12, 16, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 99, 72, 0.35), 0 0 50px rgba(255, 71, 87, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

/* Saber Laser Energy Border (Rotating Neon Plasma Beam) */
.stat-digital-box::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 60deg,
    rgba(255, 126, 95, 0.15) 120deg,
    #ff7e5f 180deg,
    #ffffff 225deg,
    #ff3366 265deg,
    transparent 320deg,
    transparent 360deg
  );
  animation: saberLaserSpin 2.8s linear infinite;
  z-index: 0;
}

/* Inner Cyber Core Mask */
.stat-digital-box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(180deg, #1c1318 0%, #0c090c 100%);
  border-radius: 16px;
  z-index: 1;
  box-shadow: inset 0 0 14px rgba(255, 126, 95, 0.15);
}

@keyframes saberLaserSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.stat-gauge-card:hover .stat-digital-box {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 99, 72, 0.6), 0 0 70px rgba(255, 71, 87, 0.35);
}

.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-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: inherit;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 35px rgba(255, 126, 95, 0.8), 0 0 55px rgba(255, 71, 87, 0.5);
}

.stat-gauge-card.stat-pc .gauge-counter {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 35px rgba(255, 99, 72, 0.85), 0 0 55px rgba(255, 71, 87, 0.5);
}

.stat-gauge-card.stat-console .gauge-counter {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 35px rgba(255, 107, 129, 0.85), 0 0 55px rgba(255, 51, 102, 0.5);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.stat-desc {
  font-size: 0.95rem;
  color: #cfd5e0;
  margin: 0;
  line-height: 1.65;
  max-width: 380px;
}

/* Responsive */
@media (max-width: 860px) {
  .home-stats-section {
    padding: 2rem 1rem 3.5rem;
  }

  .stats-header {
    margin-bottom: 2rem;
  }

  .stats-gauges-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .stat-gauge-card {
    padding: 2.2rem 1.4rem 1.8rem;
    border-radius: 22px;
  }

  .gauge-circle-wrap {
    width: 190px;
    height: 190px;
    margin-bottom: 1.4rem;
  }

  .gauge-counter {
    font-size: 2.8rem;
  }

  .gauge-plus {
    font-size: 1.8rem;
  }

  .stat-name {
    font-size: 1.3rem;
  }

  .stat-desc {
    font-size: 0.88rem;
  }
}


@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";
  }

  .header-brand-side {
    grid-area: brand;
  }

  .header-lang-side {
    grid-area: lang;
  }

  .main-nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  .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;
  }

  /* Logged-in header: button centered, name neatly under it (FA + EN) */
  .header-brand-side {
    gap: 0.45rem;
    min-width: 0;
    align-items: center;
  }

  .auth-area {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.25rem;
  }

  .user-menu-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 0;
  }

  .user-menu-wrap .btn-panel {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.42rem 0.75rem;
    line-height: 1.15;
    border-radius: 9px;
    white-space: nowrap;
  }

  html[dir="ltr"] .user-menu-wrap .btn-panel {
    font-size: 0.8rem;
    padding: 0.44rem 0.7rem;
    letter-spacing: 0.01em;
  }

  .user-menu-wrap .user-chip {
    font-size: 0.74rem;
    font-weight: 700;
    max-width: 8.5rem;
    line-height: 1.2;
    margin-top: 0.1rem;
    letter-spacing: 0;
  }

  .header-lang-side {
    align-self: center;
  }
}

@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: 40px;
  }

  .hero-logo {
    width: min(300px, 82vw);
  }

  .hero-slider {
    height: clamp(240px, 56vw, 520px);
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
  }

  .marquee-item {
    width: 108px;
  }

  

  .games-marquee.is-blend 
}

@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;
}

/* 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));
}

@media (max-width: 600px) {
  .footer-logos {
    gap: 1.3rem;
  }

  .footer-logo-btn {
    width: 50px;
    height: 50px;
  }

  .footer-logo-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* 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;
}

/* 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;
}