/* CU Tools — sci-fi game lobby visual refresh.
   This file is intentionally separate from the imported stylesheet so the
   original project files remain intact and the new look can be removed cleanly. */

:root {
  --topbar-h: 64px;
  --ticker-h: 28px;
  --world-bg: #070a13;
  --world-panel: rgba(12, 18, 33, 0.86);
  --world-panel-strong: rgba(11, 16, 30, 0.96);
  --world-cyan: #67f3ff;
  --world-violet: #9a79ff;
  --world-pink: #f46de8;
  --world-edge: rgba(103, 243, 255, 0.18);
  --world-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(103, 243, 255, 0.35) #080b14;
}

body {
  min-height: 100vh;
  background-color: var(--world-bg);
  background-image:
    radial-gradient(ellipse at 13% 13%, rgba(28, 111, 164, 0.2), transparent 30%),
    radial-gradient(ellipse at 86% 24%, rgba(111, 61, 190, 0.17), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #070a13 48%, #090914 100%);
  background-attachment: fixed;
}

body::before {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(91, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 49.8%, rgba(147, 113, 255, 0.035) 50%, transparent 50.2%);
  background-size: 46px 46px, 46px 46px, 180px 180px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

body::after {
  opacity: 0.75;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(66, 194, 255, 0.11), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(128, 70, 255, 0.08), transparent 38%);
}

#particles-canvas {
  opacity: 0.25;
}

::selection {
  color: #071018;
  background: rgba(103, 243, 255, 0.72);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--world-cyan);
  outline-offset: 3px;
}

.main-container {
  background: transparent;
}

.page-container-wide {
  width: min(100%, 1380px);
  max-width: 1380px;
  padding-right: clamp(14px, 2.5vw, 30px);
  padding-left: clamp(14px, 2.5vw, 30px);
}

/* Shared guest and logged-in home: a quiet, responsive 3D game-world backdrop */
.home-3d-home {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.home-3d-home > .page-container-wide,
.home-3d-home > .ajax-content-wrapper {
  position: relative;
  z-index: 1;
}

.home-3d-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.home-3d-backdrop::before,
.home-3d-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.home-3d-backdrop::before {
  background:
    radial-gradient(ellipse at 82% 74%, rgba(25, 104, 255, 0.25), transparent 30%),
    radial-gradient(ellipse at 12% 81%, rgba(83, 39, 194, 0.25), transparent 31%),
    radial-gradient(ellipse at 50% 95%, rgba(12, 118, 176, 0.16), transparent 42%),
    radial-gradient(ellipse at 43% 22%, rgba(52, 73, 162, 0.12), transparent 35%);
  opacity: 1;
}

.home-3d-backdrop::after {
  background-image:
    radial-gradient(2px 2px at 22px 28px, rgba(234, 249, 255, 0.95) 55%, transparent 70%),
    radial-gradient(1.5px 1.5px at 104px 83px, rgba(95, 222, 255, 0.9) 55%, transparent 70%),
    radial-gradient(2px 2px at 164px 148px, rgba(198, 160, 255, 0.85) 55%, transparent 70%),
    radial-gradient(1px 1px at 245px 37px, rgba(255, 255, 255, 0.8) 55%, transparent 70%);
  background-size: 290px 230px, 360px 310px, 440px 360px, 520px 410px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), #000 45%, rgba(0, 0, 0, 0.66));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), #000 45%, rgba(0, 0, 0, 0.66));
  opacity: 0.78;
}

.home-3d-starfield {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 10%, rgba(5, 7, 19, 0.54) 100%),
    repeating-linear-gradient(0deg, transparent 0 71px, rgba(112, 173, 255, 0.025) 72px, transparent 73px);
}

.home-3d-orbit {
  position: absolute;
  top: auto;
  bottom: -5vh;
  right: max(-240px, calc((100vw - 1440px) / 2 - 130px));
  width: clamp(680px, 78vw, 1120px);
  aspect-ratio: 1;
  border: 2px solid rgba(86, 208, 255, 0.3);
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow:
    0 0 38px rgba(38, 199, 255, 0.15),
    inset 0 0 36px rgba(76, 135, 255, 0.1);
  animation: homeWorldOrbit 90s linear infinite;
}

.home-3d-orbit--outer {
  transform: rotateX(69deg) rotateZ(-24deg);
}

.home-3d-orbit--inner {
  bottom: -1vh;
  right: max(-190px, calc((100vw - 1440px) / 2 - 42px));
  width: clamp(500px, 62vw, 900px);
  border-width: 1px;
  border-color: rgba(182, 119, 255, 0.4);
  box-shadow: 0 0 36px rgba(157, 83, 255, 0.16), inset 0 0 28px rgba(157, 83, 255, 0.08);
  animation-duration: 112s;
  animation-direction: reverse;
}

.home-3d-planet {
  position: absolute;
  top: auto;
  width: clamp(170px, 25vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(191, 235, 255, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(245, 255, 255, 0.98), rgba(107, 224, 255, 0.72) 4%, transparent 17%),
    radial-gradient(ellipse at 27% 28%, rgba(53, 218, 255, 0.98), transparent 40%),
    radial-gradient(ellipse at 76% 73%, rgba(169, 62, 255, 0.9), transparent 48%),
    radial-gradient(circle at 39% 35%, #347de2 0%, #203f9a 43%, #111a50 73%, #080c25 92%);
  box-shadow:
    inset -34px -24px 48px rgba(2, 4, 18, 0.82),
    inset 16px 12px 32px rgba(120, 232, 255, 0.3),
    0 0 64px rgba(38, 192, 255, 0.34);
  opacity: 0.98;
  animation: homePlanetFloat 14s ease-in-out infinite;
}

.home-3d-planet::before {
  position: absolute;
  z-index: 2;
  inset: 13% -22%;
  border: 3px solid rgba(156, 237, 255, 0.75);
  border-radius: 50%;
  content: "";
  transform: rotate(-22deg) rotateX(72deg);
  box-shadow: 0 0 24px rgba(81, 220, 255, 0.34), inset 0 0 14px rgba(160, 127, 255, 0.28);
}

.home-3d-planet::after {
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(165deg, transparent 0 17px, rgba(185, 243, 255, 0.18) 18px 21px, transparent 22px 38px),
    radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.15), transparent 42%);
  content: "";
  opacity: 0.78;
  mask-image: radial-gradient(ellipse, #000 42%, transparent 78%);
}

.home-3d-planet--ringed {
  position: absolute;
  right: clamp(18px, 8vw, 140px);
  bottom: max(74px, 9vh);
  width: clamp(230px, 31vw, 410px);
  background:
    radial-gradient(ellipse at 31% 28%, rgba(255, 249, 221, 0.95), transparent 19%),
    radial-gradient(ellipse at 29% 37%, rgba(255, 196, 117, 0.96), transparent 42%),
    radial-gradient(ellipse at 70% 66%, rgba(223, 82, 202, 0.8), transparent 49%),
    radial-gradient(circle at 38% 38%, #e58a50 0%, #9d3c99 42%, #412878 68%, #10102f 91%);
  box-shadow:
    inset -40px -26px 58px rgba(13, 3, 28, 0.82),
    inset 18px 10px 30px rgba(255, 205, 133, 0.28),
    0 0 80px rgba(224, 82, 202, 0.32);
}

.home-3d-planet--ocean {
  left: clamp(-38px, 5vw, 92px);
  bottom: clamp(94px, 18vh, 210px);
  width: clamp(165px, 23vw, 300px);
  background:
    radial-gradient(ellipse at 28% 25%, rgba(206, 255, 255, 0.98), transparent 16%),
    radial-gradient(ellipse at 28% 31%, rgba(48, 235, 255, 0.98), transparent 37%),
    radial-gradient(ellipse at 73% 73%, rgba(67, 102, 255, 0.93), transparent 52%),
    radial-gradient(circle at 38% 34%, #23c1e9 0%, #126dba 42%, #12346e 69%, #07112e 92%);
  box-shadow:
    inset -29px -23px 48px rgba(2, 7, 25, 0.84),
    inset 14px 9px 28px rgba(147, 255, 255, 0.26),
    0 0 62px rgba(36, 172, 255, 0.38);
  animation-delay: -6s;
}

.home-3d-planet--ocean::before {
  display: none;
}

.home-3d-moon {
  position: absolute;
  left: 46%;
  bottom: 37vh;
  width: clamp(92px, 12vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(223, 197, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 28%, rgba(255, 255, 255, 0.32) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 25%, rgba(9, 12, 41, 0.3) 0 7%, transparent 8%),
    radial-gradient(circle at 44% 58%, rgba(11, 10, 41, 0.28) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.22) 0 5%, transparent 6%),
    radial-gradient(circle at 36% 34%, #f2c7ff 0%, #9b68dc 35%, #49317f 70%, #151136 100%);
  box-shadow:
    inset -18px -14px 24px rgba(8, 5, 30, 0.75),
    inset 8px 6px 16px rgba(238, 214, 255, 0.22),
    0 0 44px rgba(168, 94, 255, 0.38);
  animation: homePlanetFloat 17s ease-in-out infinite reverse;
}

@keyframes homeWorldOrbit {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes homePlanetFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

@media (max-width: 760px) {
  .home-3d-orbit {
    bottom: 1vh;
    right: -310px;
    width: 650px;
    opacity: 0.85;
  }

  .home-3d-orbit--inner {
    bottom: 5vh;
    right: -240px;
    width: 510px;
    opacity: 0.76;
  }

  .home-3d-planet--ringed {
    right: -32px;
    bottom: max(70px, 8vh);
    width: clamp(200px, 58vw, 270px);
  }

  .home-3d-planet--ocean {
    left: -38px;
    bottom: max(96px, 15vh);
    width: clamp(150px, 42vw, 205px);
  }

  .home-3d-moon {
    left: auto;
    right: 15%;
    bottom: 36vh;
    width: clamp(82px, 23vw, 108px);
  }
}

@media (max-width: 380px) {
  .home-3d-orbit { right: -360px; }
  .home-3d-orbit--inner { right: -280px; }
  .home-3d-planet--ringed { right: -52px; width: 205px; }
  .home-3d-planet--ocean { left: -52px; width: 150px; }
}

/* Floating HUD header and ticker */
.header-bar {
  height: var(--topbar-h);
  background: linear-gradient(180deg, rgba(13, 19, 35, 0.97), rgba(8, 12, 24, 0.92));
  border-bottom-color: rgba(103, 243, 255, 0.16);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.045);
}

.header-bar::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--world-cyan) 24%, var(--primary) 55%, var(--world-violet) 78%, transparent);
  opacity: 0.72;
}

.header-logo-img {
  max-height: 46px;
  filter: brightness(1.3) saturate(1.35) drop-shadow(0 0 12px rgba(103, 243, 255, 0.56)) drop-shadow(0 0 24px rgba(137, 102, 255, 0.4));
}

.icon-btn {
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 34, 55, 0.92), rgba(10, 15, 28, 0.94));
  border-color: rgba(150, 194, 230, 0.16);
  color: #c5d9ed;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.icon-btn:hover {
  color: #fff;
  border-color: rgba(103, 243, 255, 0.55);
  background: linear-gradient(145deg, rgba(30, 85, 110, 0.58), rgba(20, 26, 48, 0.95));
  box-shadow: 0 0 18px rgba(103, 243, 255, 0.14), inset 0 1px rgba(255, 255, 255, 0.12);
}

.header-ticker {
  height: var(--ticker-h);
  background: linear-gradient(90deg, rgba(7, 12, 23, 0.98), rgba(12, 17, 34, 0.96), rgba(7, 12, 23, 0.98));
  border-bottom-color: rgba(103, 243, 255, 0.12);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.header-ticker::before {
  background: linear-gradient(90deg, rgba(7, 12, 23, 1), transparent);
}

.header-ticker::after {
  background: linear-gradient(-90deg, rgba(7, 12, 23, 1), transparent);
}

.ticker-segment {
  color: #9bb2cc;
  font-size: 0.68rem;
  letter-spacing: 0.15px;
}

.ticker-segment .ti {
  color: var(--world-cyan);
}

.ticker-sep {
  color: rgba(103, 243, 255, 0.42);
}

.guest-menu-panel {
  background: linear-gradient(155deg, rgba(16, 23, 42, 0.98), rgba(7, 11, 22, 0.99));
  border-bottom-color: var(--world-edge);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48);
}

.guest-menu-link {
  border-radius: 12px;
}

.guest-menu-link:hover {
  background: rgba(103, 243, 255, 0.07);
  border-color: rgba(103, 243, 255, 0.18);
}

/* Side navigation and mobile console bar */
.sidebar {
  background: linear-gradient(165deg, rgba(13, 20, 38, 0.98), rgba(7, 10, 20, 0.99));
  border-right-color: rgba(103, 243, 255, 0.17);
  box-shadow: 22px 0 55px rgba(0, 0, 0, 0.48);
}

.sidebar-menu-item {
  margin: 2px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
  color: #e8fbff;
  background: linear-gradient(90deg, rgba(39, 158, 190, 0.15), rgba(104, 79, 190, 0.1));
  border-color: rgba(103, 243, 255, 0.16);
}

.sidebar-menu-item.active::before {
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--world-cyan), var(--world-violet));
  box-shadow: 0 0 12px rgba(103, 243, 255, 0.5);
}

.bottom-nav {
  background: linear-gradient(180deg, rgba(14, 21, 39, 0.96), rgba(7, 10, 19, 0.99));
  border-top: 1px solid rgba(103, 243, 255, 0.18);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-nav::before {
  background: linear-gradient(90deg, transparent, rgba(103, 243, 255, 0.16), rgba(154, 121, 255, 0.18), transparent);
}

.nav-center-pill {
  border: 1px solid rgba(103, 243, 255, 0.4);
  background: linear-gradient(155deg, rgba(30, 73, 100, 0.96), rgba(37, 31, 80, 0.98));
  box-shadow: 0 0 22px rgba(103, 243, 255, 0.18), inset 0 1px rgba(255, 255, 255, 0.16);
}

/* Mobile bottom navigation: three distinct, raised game buttons */
.bottom-nav {
  height: 72px;
  gap: 7px;
  padding: 7px 9px max(7px, env(safe-area-inset-bottom));
  overflow: visible;
}

.bottom-nav .nav-item,
.bottom-nav .nav-center {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(157, 193, 225, 0.2);
  border-bottom-width: 4px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(1, 5, 13, 0.78), 0 8px 16px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.bottom-nav .nav-item {
  flex: 1;
  border-right: 1px solid rgba(157, 193, 225, 0.2);
  border-left: 1px solid rgba(157, 193, 225, 0.2);
}

.bottom-nav .nav-center {
  flex: 1.08;
  border-left: 1px solid rgba(157, 193, 225, 0.2);
  border-right: 1px solid rgba(157, 193, 225, 0.2);
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-center:hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-center:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(1, 5, 13, 0.78), inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.bottom-nav .nav-register {
  color: #efe7ff;
  background: linear-gradient(155deg, rgba(119, 72, 194, 0.76), rgba(51, 29, 92, 0.97));
  border-color: rgba(193, 151, 255, 0.42);
  border-bottom-color: #7c4db9;
}

.bottom-nav .nav-support {
  color: #dcfff1;
  background: linear-gradient(155deg, rgba(27, 116, 91, 0.78), rgba(12, 51, 48, 0.98));
  border-color: rgba(81, 232, 176, 0.4);
  border-bottom-color: #18825e;
  box-shadow: 0 4px 0 rgba(1, 5, 13, 0.78), 0 0 20px rgba(49, 220, 157, 0.12), inset 0 1px rgba(255, 255, 255, 0.16);
}

.bottom-nav .nav-support .nav-center-pill {
  padding: 5px 10px;
  color: #dcfff1;
  background: linear-gradient(180deg, rgba(55, 184, 132, 0.46), rgba(22, 97, 76, 0.72));
  border-color: rgba(112, 255, 198, 0.48);
  box-shadow: 0 3px 0 rgba(4, 37, 33, 0.75), inset 0 1px rgba(255, 255, 255, 0.18);
}

.bottom-nav .nav-support .nav-center-label {
  color: rgba(209, 255, 236, 0.78);
}

.bottom-nav .nav-login {
  color: #dff4ff;
  background: linear-gradient(155deg, rgba(32, 116, 176, 0.76), rgba(16, 45, 86, 0.98));
  border-color: rgba(108, 205, 255, 0.42);
  border-bottom-color: #236ca8;
}

.bottom-nav .nav-deposit {
  color: #fff1c7;
  background: linear-gradient(155deg, rgba(166, 112, 24, 0.76), rgba(75, 48, 14, 0.98));
  border-color: rgba(255, 209, 93, 0.42);
  border-bottom-color: #a66c17;
}

.bottom-nav .nav-package {
  background: linear-gradient(155deg, rgba(43, 63, 100, 0.92), rgba(27, 30, 67, 0.98));
}

.bottom-nav .nav-buykey {
  color: #ffe1f2;
  background: linear-gradient(155deg, rgba(164, 56, 126, 0.72), rgba(75, 26, 74, 0.98));
  border-color: rgba(255, 130, 207, 0.38);
  border-bottom-color: #a43d83;
}

@media (max-width: 1024px) {
  .main-container {
    padding-bottom: 90px;
  }
}

@media (max-width: 380px) {
  .bottom-nav {
    gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .bottom-nav .nav-item {
    font-size: 0.52rem;
    letter-spacing: 0.3px;
  }

  .bottom-nav .nav-center-pill {
    font-size: 0.64rem;
    letter-spacing: 1px;
  }
}

.game-search-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(103, 243, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(103, 243, 255, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(16, 29, 48, 0.92), rgba(8, 14, 27, 0.96));
  box-shadow: 0 5px 0 rgba(2, 6, 14, 0.58), 0 14px 30px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.07);
}

.game-search-label {
  color: #94adca;
  font: 800 0.66rem/1.2 var(--font-heading);
  letter-spacing: 1.4px;
}

.game-search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(117, 188, 222, 0.22);
  border-radius: 11px;
  background: rgba(4, 10, 21, 0.78);
  color: var(--world-cyan);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.3), 0 2px 0 rgba(2, 6, 14, 0.55);
}

.game-search-control:focus-within {
  border-color: rgba(103, 243, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(103, 243, 255, 0.1), inset 0 2px 7px rgba(0, 0, 0, 0.3);
}

.game-search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8f4ff;
  font: 600 0.88rem var(--font-body);
}

.game-search-control input::placeholder {
  color: #70839d;
}

.game-search-control input:focus-visible {
  outline: 0;
}

.game-search-empty {
  margin: 14px 0 20px;
  padding: 18px;
  border: 1px dashed rgba(103, 243, 255, 0.26);
  border-radius: 14px;
  color: #a8bed3;
  text-align: center;
  background: rgba(12, 20, 36, 0.68);
}

.game-search-empty[hidden] {
  display: none;
}


/* Deep layered surfaces for account panels and common content cards */
.card,
.support-card,
.key-status-card,
.user-profile-card-v2,
.auth-card,
.shop-item {
  background: linear-gradient(145deg, rgba(18, 27, 47, 0.92), rgba(9, 14, 27, 0.96));
  border-color: rgba(134, 182, 219, 0.16);
  box-shadow: var(--world-shadow), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card:hover,
.support-card:hover {
  border-color: rgba(103, 243, 255, 0.34);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46), 0 0 22px rgba(103, 243, 255, 0.07), inset 0 1px rgba(255, 255, 255, 0.06);
}

.user-profile-card-v2 {
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(110, 80, 255, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(19, 29, 50, 0.96), rgba(8, 13, 26, 0.98));
}

.user-stat-item {
  background: linear-gradient(145deg, rgba(27, 39, 61, 0.86), rgba(11, 17, 31, 0.92));
  border-color: rgba(137, 188, 223, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 5px 12px rgba(0, 0, 0, 0.16);
}

.user-stat-item:hover {
  background: linear-gradient(145deg, rgba(32, 68, 87, 0.72), rgba(15, 24, 43, 0.94));
  border-color: rgba(103, 243, 255, 0.34);
}

.action-btn {
  background: linear-gradient(150deg, rgba(24, 36, 58, 0.94), rgba(9, 14, 27, 0.98));
  border: 1px solid rgba(137, 188, 223, 0.16);
  border-bottom: 2px solid rgba(103, 243, 255, 0.25);
  border-radius: 15px;
  color: #b7cbe0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
}

.action-btn:hover {
  color: #dffcff;
  border-color: rgba(103, 243, 255, 0.42);
  background: linear-gradient(150deg, rgba(24, 71, 87, 0.84), rgba(16, 24, 44, 0.98));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.32), 0 0 18px rgba(103, 243, 255, 0.12), inset 0 1px rgba(255, 255, 255, 0.11);
}

.section-title {
  font-size: 0.9rem;
  letter-spacing: 2.3px;
  color: #e5f3ff;
  text-shadow: 0 0 18px rgba(103, 243, 255, 0.14);
}

.section-title::before {
  width: 4px;
  height: 21px;
  background: linear-gradient(180deg, var(--world-cyan), var(--world-violet));
  box-shadow: 0 0 12px rgba(103, 243, 255, 0.4);
}

.live-banner {
  background: linear-gradient(100deg, rgba(23, 74, 93, 0.34), rgba(58, 41, 101, 0.36), rgba(17, 47, 70, 0.32));
  border-color: rgba(103, 243, 255, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 9px 24px rgba(0, 0, 0, 0.2);
}

.live-banner-text {
  background-image: linear-gradient(90deg, #8ff7ff, #bd9aff 72%, #f6a4e9);
}

/* 3D showcase banner */
.banner-carousel {
  height: clamp(250px, 29vw, 360px);
  margin-bottom: 18px;
  border: 1px solid rgba(110, 222, 255, 0.22);
  border-radius: 23px;
  background: linear-gradient(130deg, rgba(14, 25, 47, 0.98), rgba(9, 11, 26, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), 0 0 28px rgba(67, 175, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.1);
  isolation: isolate;
  perspective: 1200px;
}

.banner-carousel::before,
.banner-carousel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.banner-carousel::before {
  inset: 0;
  background:
    linear-gradient(112deg, rgba(4, 8, 18, 0.78) 0%, rgba(6, 11, 23, 0.58) 47%, rgba(8, 10, 25, 0.08) 100%),
    radial-gradient(ellipse at 78% 48%, rgba(83, 233, 255, 0.12), transparent 36%);
}

.banner-carousel::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 44px;
  background: linear-gradient(0deg, rgba(6, 9, 18, 0.68), transparent);
}

.banner-slide {
  padding: clamp(22px, 4vw, 50px);
}

.banner-slide-bg {
  filter: saturate(0.92) contrast(1.06);
  transform: scale(1.04);
}

.banner-slide-overlay {
  background: linear-gradient(90deg, rgba(5, 8, 18, 0.7), rgba(5, 8, 18, 0.2) 60%, rgba(5, 8, 18, 0.04)) !important;
}

.banner-slide-content {
  width: min(64%, 620px);
  z-index: 3;
  transform: translateZ(28px);
}

.banner-slide-label {
  padding: 6px 11px;
  margin-bottom: 12px;
  border: 1px solid rgba(103, 243, 255, 0.28);
  border-radius: 7px;
  background: rgba(10, 24, 39, 0.72);
  color: #a8f8ff;
  font-size: 0.64rem;
  letter-spacing: 2.2px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.banner-slide-title {
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  letter-spacing: clamp(1px, 0.25vw, 3px);
  line-height: 1.08;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.54);
}

.banner-slide-sub {
  max-width: 480px;
  color: rgba(225, 237, 255, 0.78);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
}

.banner-slide-btn {
  min-height: 38px;
  padding: 9px 21px;
  border: 1px solid rgba(170, 250, 255, 0.38);
  border-bottom: 3px solid rgba(58, 165, 201, 0.76);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(69, 197, 221, 0.9), rgba(27, 100, 151, 0.96));
  box-shadow: 0 8px 20px rgba(12, 105, 149, 0.32), inset 0 1px rgba(255, 255, 255, 0.3);
  color: #06131e;
}

.banner-slide-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(57, 218, 242, 0.26), inset 0 1px rgba(255, 255, 255, 0.38);
}

.banner-indicators {
  bottom: 13px;
  z-index: 4;
}

.banner-indicator {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(200, 224, 244, 0.44);
  transition: width 0.25s ease, background 0.25s ease;
}

.banner-indicator.active {
  width: 24px;
  background: var(--world-cyan);
  box-shadow: 0 0 12px rgba(103, 243, 255, 0.7);
}

/* CSS-built floating 3D game-world core */
.game-world-art {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 3.5%;
  width: min(38%, 430px);
  height: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  perspective: 1000px;
  opacity: 0.98;
}

.game-world-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 243, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-24deg);
  box-shadow: 0 0 18px rgba(103, 243, 255, 0.12), inset 0 0 18px rgba(103, 243, 255, 0.08);
}

.game-world-orbit::before,
.game-world-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--world-cyan);
  box-shadow: 0 0 13px 4px rgba(103, 243, 255, 0.52);
}

.game-world-orbit::before {
  top: 12%;
  left: 18%;
  width: 7px;
  height: 7px;
}

.game-world-orbit::after {
  right: 12%;
  bottom: 18%;
  width: 5px;
  height: 5px;
  background: #cb9dff;
  box-shadow: 0 0 13px 4px rgba(184, 126, 255, 0.55);
}

.game-world-orbit--inner {
  width: 64%;
  border-color: rgba(196, 135, 255, 0.3);
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(58deg);
}

.game-world-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, rgba(224, 255, 255, 0.82), rgba(103, 243, 255, 0.22) 18%, rgba(73, 113, 255, 0.12) 45%, transparent 72%);
  filter: blur(1px);
  box-shadow: 0 0 52px rgba(64, 210, 255, 0.24);
  animation: world-core-pulse 4s ease-in-out infinite;
}

.game-world-prism {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(82px, 10vw, 124px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-25deg) rotateY(28deg);
  animation: world-prism-spin 18s linear infinite;
}

.game-world-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(174, 250, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(146, 245, 255, 0.32), rgba(52, 128, 195, 0.08) 45%, rgba(167, 112, 255, 0.22)),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(184, 250, 255, 0.12) 18px, transparent 19px);
  box-shadow: inset 0 0 20px rgba(103, 243, 255, 0.18), 0 0 19px rgba(103, 243, 255, 0.1);
  backface-visibility: visible;
}

.game-world-face--front { transform: translateZ(clamp(41px, 5vw, 62px)); }
.game-world-face--back { transform: rotateY(180deg) translateZ(clamp(41px, 5vw, 62px)); }
.game-world-face--right { transform: rotateY(90deg) translateZ(clamp(41px, 5vw, 62px)); }
.game-world-face--left { transform: rotateY(-90deg) translateZ(clamp(41px, 5vw, 62px)); }
.game-world-face--top { transform: rotateX(90deg) translateZ(clamp(41px, 5vw, 62px)); }
.game-world-face--bottom { transform: rotateX(-90deg) translateZ(clamp(41px, 5vw, 62px)); }

.game-world-face--front::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e2ffff;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  text-shadow: 0 0 18px var(--world-cyan), 0 0 36px rgba(154, 121, 255, 0.82);
}

.game-world-chip {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(143, 220, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 22, 38, 0.82), rgba(12, 14, 31, 0.88));
  color: #d6faff;
  font-family: var(--font-heading);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.game-world-chip span {
  margin-left: 5px;
  color: #6affbf;
  font-size: 0.48rem;
}

.game-world-chip--top {
  top: 20%;
  right: 3%;
  animation: world-chip-float 5s ease-in-out infinite;
}

.game-world-chip--bottom {
  bottom: 20%;
  left: 0;
  color: #b8cce7;
  animation: world-chip-float 5.8s ease-in-out infinite reverse;
}

.game-world-chip--bottom b {
  color: var(--world-cyan);
  font-size: 0.72rem;
}

@keyframes world-prism-spin {
  0% { transform: translate(-50%, -50%) rotateX(-25deg) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(335deg) rotateY(360deg); }
}

@keyframes world-core-pulse {
  0%, 100% { opacity: 0.74; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes world-chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Game tiles: raised, beveled cards with real 3D tilt on desktop */
.games-grid {
  gap: clamp(10px, 1.5vw, 17px);
  perspective: 1300px;
}

.game-card {
  border-radius: 17px !important;
  border: 1px solid rgba(137, 210, 239, 0.25) !important;
  background: linear-gradient(145deg, #17233a, #080d19) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.13) !important;
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease, border-color 0.32s ease !important;
}

.game-card::before {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(103, 243, 255, 0.85), rgba(154, 121, 255, 0.76), transparent) !important;
  opacity: 0.62;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 24%, transparent 72%, rgba(103, 243, 255, 0.08));
}

.game-logo-wrap img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.04);
}

.game-info {
  padding: 38px 10px 10px;
  gap: 6px;
  background: linear-gradient(0deg, rgba(4, 8, 16, 0.99), rgba(5, 9, 18, 0.85) 62%, transparent);
  transform: translateZ(12px);
}

.game-name {
  color: #f0faff;
  font-size: 0.74rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 12px rgba(103, 243, 255, 0.2) !important;
}

.game-ai-badge {
  background: linear-gradient(135deg, rgba(26, 107, 132, 0.56), rgba(95, 57, 152, 0.55)) !important;
  border-color: rgba(115, 233, 255, 0.42) !important;
  color: #baf8ff !important;
}

.game-access-btn {
  border-color: rgba(103, 243, 255, 0.45) !important;
  border-bottom-color: rgba(58, 165, 201, 0.82) !important;
  background: linear-gradient(180deg, rgba(49, 153, 181, 0.52), rgba(20, 75, 115, 0.72)) !important;
  color: #c4faff !important;
  box-shadow: 0 5px 14px rgba(39, 173, 204, 0.16), inset 0 1px rgba(255, 255, 255, 0.15) !important;
}

.game-access-btn:hover {
  border-color: rgba(149, 250, 255, 0.8) !important;
  border-bottom-color: rgba(87, 214, 240, 0.95) !important;
  background: linear-gradient(180deg, rgba(52, 190, 209, 0.68), rgba(28, 94, 142, 0.85)) !important;
  color: #fff !important;
  box-shadow: 0 7px 20px rgba(57, 218, 242, 0.24), inset 0 1px rgba(255, 255, 255, 0.22) !important;
}

.game-cat {
  padding: 8px 16px;
  border-radius: 9px;
  background: linear-gradient(155deg, rgba(22, 34, 54, 0.92), rgba(9, 15, 28, 0.96));
  border-color: rgba(140, 190, 223, 0.18);
  color: #a8bed4;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.game-cat.active {
  background: linear-gradient(155deg, rgba(31, 127, 147, 0.42), rgba(43, 51, 112, 0.46)) !important;
  border-color: rgba(103, 243, 255, 0.55) !important;
  color: #c9fbff !important;
  box-shadow: 0 5px 16px rgba(36, 184, 210, 0.12), inset 0 1px rgba(255, 255, 255, 0.1) !important;
}

@media (hover: hover) and (pointer: fine) {
  .game-card:hover {
    transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-8px) scale(1.018) !important;
    border-color: rgba(116, 245, 255, 0.62) !important;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.54), 0 0 30px rgba(54, 201, 231, 0.2), inset 0 1px rgba(255, 255, 255, 0.18) !important;
  }

  .game-card:hover .game-logo-wrap img {
    transform: scale(1.12);
  }
}

/* Buttons, forms, tables, and sign-in modal */
.btn {
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.15);
}

.btn-primary,
.btn-secondary,
.btn-gold {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 3px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.input-field,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(7, 13, 25, 0.94), rgba(14, 23, 40, 0.9));
  border-color: rgba(143, 187, 219, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.025);
}

.input-field:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(103, 243, 255, 0.6);
  background: rgba(10, 22, 36, 0.98);
  box-shadow: 0 0 0 3px rgba(103, 243, 255, 0.1), 0 0 18px rgba(103, 243, 255, 0.08);
}

.data-table-wrap {
  border: 1px solid rgba(134, 182, 219, 0.16);
  background: rgba(9, 14, 26, 0.76);
  box-shadow: var(--world-shadow);
}

.data-table thead th {
  color: #bdeaf2;
  background: linear-gradient(180deg, rgba(22, 46, 65, 0.8), rgba(13, 25, 42, 0.92));
  border-bottom-color: rgba(103, 243, 255, 0.18);
}

.data-table tbody tr:hover td {
  background: rgba(103, 243, 255, 0.045);
}

.modal-box,
.auth-card {
  background: linear-gradient(150deg, rgba(18, 29, 51, 0.98), rgba(7, 11, 23, 0.99));
  border-color: rgba(103, 243, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68), 0 0 32px rgba(103, 243, 255, 0.08);
}

.auth-modal-overlay {
  background: rgba(2, 5, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-modal-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(73, 182, 220, 0.12), transparent 45%),
    linear-gradient(150deg, rgba(18, 29, 51, 0.99), rgba(7, 11, 23, 0.99));
  border: 1px solid rgba(103, 243, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(103, 243, 255, 0.06), 0 0 48px rgba(59, 173, 214, 0.14), 0 48px 100px rgba(0, 0, 0, 0.8);
}

.auth-modal-inner {
  padding: 32px 24px 28px;
}

.am-tabs {
  border-color: rgba(134, 182, 219, 0.18);
  border-radius: 10px;
  background: rgba(5, 10, 20, 0.55);
}

.am-tab.active {
  background: linear-gradient(145deg, rgba(36, 121, 145, 0.35), rgba(76, 59, 139, 0.3));
  color: #bcf8ff;
  box-shadow: inset 0 -2px 0 var(--world-cyan);
}

.am-close {
  border-radius: 9px;
  background: rgba(15, 25, 42, 0.76);
  border-color: rgba(143, 187, 219, 0.18);
}

.am-close:hover {
  color: #ffd0d0;
}

.am-footer a {
  color: var(--world-cyan);
}

/* Give conventional page headings and inner-page surfaces the same game HUD */
.page-title {
  color: #e6f5ff;
  text-shadow: 0 0 22px rgba(103, 243, 255, 0.1);
}

.page-title-icon {
  filter: drop-shadow(0 0 10px rgba(103, 243, 255, 0.25));
}

.shop-item,
.profile-game-hero,
.profile-stats-row > *,
.support-channels-grid > * {
  border-color: rgba(134, 182, 219, 0.17);
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 59px;
    --ticker-h: 25px;
  }

  .banner-carousel {
    height: clamp(225px, 60vw, 280px);
    border-radius: 18px;
  }

  .banner-slide {
    padding: 20px 18px 25px;
  }

  .banner-slide-content {
    width: 72%;
  }

  .banner-slide-label {
    margin-bottom: 9px;
    font-size: 0.56rem;
  }

  .banner-slide-title {
    font-size: clamp(1.28rem, 5.2vw, 1.9rem);
    letter-spacing: 1px;
  }

  .banner-slide-sub {
    max-width: 310px;
    font-size: 0.72rem;
  }

  .game-world-art {
    right: -6%;
    width: 42%;
    opacity: 0.72;
  }

  .game-world-chip {
    padding: 5px 7px;
    font-size: 0.42rem;
  }

  .game-world-chip--top {
    top: 16%;
    right: 12%;
  }

  .game-world-chip--bottom {
    bottom: 18%;
    left: 1%;
  }

  .game-card {
    border-radius: 14px !important;
  }
}

@media (max-width: 430px) {
  .page-container-wide {
    padding-right: 12px;
    padding-left: 12px;
  }

  .banner-carousel {
    height: 225px;
  }

  .banner-slide-content {
    width: 79%;
  }

  .banner-slide-sub {
    max-width: 245px;
  }

  .game-world-art {
    right: -14%;
    width: 49%;
    opacity: 0.5;
  }

  .game-world-chip {
    display: none;
  }

  .games-grid {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Logged-in topbar controls and navigation share the raised game-button feel */
.header-actions {
  gap: 10px;
  position: relative;
  z-index: 2;
}

.header-bar .topbar-menu-button,
.header-bar .topbar-notification-button {
  width: 44px;
  height: 42px;
  border-width: 1px;
  border-bottom-width: 4px;
  border-radius: 13px;
  transition: transform 0.17s ease, filter 0.17s ease, box-shadow 0.17s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-bar .topbar-menu-button {
  color: #fff;
  background: linear-gradient(125deg, #0fc8e8, #5169ff 36%, #a348ed 69%, #f04ea9);
  background-size: 220% 220%;
  border-color: rgba(153, 235, 255, 0.62);
  border-bottom-color: #45337f;
  box-shadow: 0 4px 0 #2e2a6e, 0 8px 17px rgba(78, 102, 255, 0.32), 0 0 16px rgba(231, 76, 185, 0.16), inset 0 1px rgba(255, 255, 255, 0.35);
  animation: menu-spectrum 7s ease-in-out infinite;
}

@keyframes menu-spectrum {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.topbar-menu-button svg line:nth-of-type(1) { stroke: #8af8ff; }
.topbar-menu-button svg line:nth-of-type(2) { stroke: #e5c4ff; }
.topbar-menu-button svg line:nth-of-type(3) { stroke: #ffd0ec; }

.topbar-menu-button svg line {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

.header-bar .topbar-notification-button {
  color: #fff4cf;
  background: linear-gradient(155deg, #e8a22c, #8d4f12);
  border-color: rgba(255, 220, 133, 0.64);
  border-bottom-color: #6b390b;
  overflow: visible;
  box-shadow: 0 4px 0 #502b08, 0 8px 17px rgba(201, 121, 20, 0.3), inset 0 1px rgba(255, 255, 255, 0.3);
}

.header-bar .topbar-menu-button:hover,
.header-bar .topbar-notification-button:hover {
  color: #fff;
  filter: brightness(1.13) saturate(1.08);
  transform: translateY(-2px);
}

.header-bar .topbar-menu-button:hover {
  box-shadow: 0 6px 0 #2e2a6e, 0 13px 22px rgba(80, 202, 255, 0.34), 0 0 22px rgba(224, 70, 191, 0.3), inset 0 1px rgba(255, 255, 255, 0.42);
}

.header-bar .topbar-notification-button:hover {
  box-shadow: 0 6px 0 #502b08, 0 13px 22px rgba(229, 148, 35, 0.4), inset 0 1px rgba(255, 255, 255, 0.36);
}

.header-bar .topbar-menu-button:active,
.header-bar .topbar-notification-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(1, 5, 13, 0.78), inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-bar .topbar-menu-button:focus-visible,
.header-bar .topbar-notification-button:focus-visible,
.bottom-nav .nav-item:focus-visible,
.bottom-nav .nav-center:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.topbar-menu-button svg,
.topbar-notification-button svg {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.topbar-menu-button:hover svg {
  filter: drop-shadow(0 0 7px rgba(232, 211, 255, 0.85));
  transform: scale(1.08);
}

.topbar-notification-button:hover svg {
  animation: notification-bell-rock 0.55s ease;
  filter: drop-shadow(0 0 7px rgba(255, 230, 155, 0.8));
}

@keyframes notification-bell-rock {
  0%, 100% { transform: rotate(0); }
  22% { transform: rotate(13deg); }
  48% { transform: rotate(-11deg); }
  72% { transform: rotate(7deg); }
}

.topbar-notification-button .notification-badge {
  top: -5px;
  right: -5px;
  border: 2px solid #101629;
  box-shadow: 0 0 10px rgba(255, 80, 110, 0.55);
}

/* Color-coded sidebar rows and readable account summary */
.sidebar-vip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 204, 89, 0.3);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(151, 100, 25, 0.2), rgba(37, 27, 52, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-menu-item[class*="menu-"] {
  position: relative;
  overflow: hidden;
  color: #dce8f6;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-menu-item[class*="menu-"] svg {
  flex: 0 0 18px;
  color: var(--menu-accent, #77dfff);
  filter: drop-shadow(0 0 5px var(--menu-glow, rgba(103, 220, 255, 0.3)));
}

.menu-home { --menu-accent: #66d9ff; --menu-glow: rgba(77, 200, 255, 0.4); }
.menu-deposit { --menu-accent: #ffd166; --menu-glow: rgba(255, 190, 64, 0.38); }
.menu-buykey { --menu-accent: #ff7ac8; --menu-glow: rgba(255, 95, 188, 0.36); }
.menu-history { --menu-accent: #b19aff; --menu-glow: rgba(155, 119, 255, 0.38); }
.menu-notifications { --menu-accent: #63e1cf; --menu-glow: rgba(63, 212, 190, 0.38); }
.menu-profile { --menu-accent: #80aaff; --menu-glow: rgba(91, 143, 255, 0.38); }
.menu-support { --menu-accent: #68e8a5; --menu-glow: rgba(65, 224, 145, 0.36); }
.menu-logout { --menu-accent: #ff8585; --menu-glow: rgba(255, 101, 101, 0.34); }

.sidebar-menu-item[class*="menu-"]:hover,
.sidebar-menu-item[class*="menu-"].active {
  color: #fff;
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--menu-accent) 48%, transparent);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--menu-accent) 18%, transparent), rgba(65, 82, 128, 0.16)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.24), 0 0 15px var(--menu-glow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-menu-divider {
  border-color: rgba(133, 170, 221, 0.18);
}

/* Bottom controls lift, shine, and settle like tactile 3D buttons */
.bottom-nav .nav-item,
.bottom-nav .nav-center {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item::before,
.bottom-nav .nav-center::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, 0.22) 48%, transparent 77%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-130%);
}

.bottom-nav .nav-item:hover::before,
.bottom-nav .nav-center:hover::before {
  opacity: 1;
  animation: nav-button-sheen 0.72s ease-out;
}

.bottom-nav .nav-item > *,
.bottom-nav .nav-center > * {
  position: relative;
  z-index: 1;
}

.bottom-nav .nav-item:hover svg,
.bottom-nav .nav-center:hover svg {
  filter: drop-shadow(0 0 7px currentColor);
  transform: translateY(-1px) scale(1.08);
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-center.active {
  border-color: color-mix(in srgb, var(--primary) 65%, #fff);
  box-shadow:
    0 4px 0 rgba(1, 5, 13, 0.78),
    0 0 19px var(--primary-glow),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-center:active {
  filter: brightness(0.98);
}

.sidebar-menu-divider {
  height: 1px;
  margin: 7px 14px;
  background: linear-gradient(90deg, transparent, rgba(119, 169, 228, 0.32), transparent);
}

@keyframes nav-button-sheen {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-menu-button svg,
  .topbar-notification-button svg,
  .bottom-nav .nav-item,
  .bottom-nav .nav-center,
  .sidebar-menu-item[class*="menu-"] {
    animation: none !important;
    transition: none !important;
  }
}

/* Colorful account screens inspired by the supplied login/register references */
body:has(.auth-page) {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(24, 91, 206, 0.22), transparent 38%),
    radial-gradient(ellipse at 15% 18%, rgba(19, 108, 196, 0.13), transparent 36%),
    radial-gradient(ellipse at 88% 78%, rgba(92, 48, 181, 0.13), transparent 34%),
    linear-gradient(180deg, #07142c 0%, #030914 100%);
}

body:has(.auth-page) .main-container {
  background: transparent;
}

.auth-page {
  min-height: calc(100svh - var(--topbar-h));
  padding: 26px 16px 52px;
  position: relative;
  isolation: isolate;
}

.auth-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(22, 102, 236, 0.1), transparent 54%),
    radial-gradient(circle at 82% 20%, rgba(113, 68, 214, 0.09), transparent 22%);
}

.auth-card {
  width: min(100%, 460px);
  padding: 0 22px 23px;
  border: 1px solid rgba(108, 204, 255, 0.88);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(75, 188, 255, 0.19), transparent 45%),
    linear-gradient(145deg, #1757bf 0%, #123c9e 50%, #142a75 100%);
  box-shadow:
    0 0 0 2px rgba(54, 142, 255, 0.16),
    0 0 34px rgba(34, 151, 255, 0.45),
    0 28px 74px rgba(0, 0, 0, 0.62),
    inset 0 1px rgba(255, 255, 255, 0.24);
}

.auth-card::before,
.auth-card::after {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  margin: 0 -22px 21px;
  border-bottom: 1px solid rgba(125, 203, 255, 0.42);
  background: rgba(5, 22, 75, 0.78);
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 8px;
  color: #85a8df;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.2s ease, color 0.2s ease;
}

.auth-tab:hover {
  color: #fff;
  filter: brightness(1.14);
}

.auth-tab-register {
  padding-right: 46px;
}

.auth-tab-login.auth-tab-active {
  color: #fff;
  background: linear-gradient(180deg, #37e875 0%, #06a844 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38), inset 0 -3px rgba(0, 91, 47, 0.3);
  text-shadow: 0 1px 8px rgba(0, 75, 33, 0.42);
}

.auth-tab-register.auth-tab-active {
  color: #fff;
  background: linear-gradient(180deg, #4dc3ff 0%, #1675ef 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), inset 0 -3px rgba(15, 65, 164, 0.35);
  text-shadow: 0 1px 8px rgba(0, 49, 132, 0.5);
}

.auth-logo {
  display: none;
}

.auth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-card .auth-close-btn {
  top: 10px;
  right: 11px;
  z-index: 30;
  width: 38px;
  height: 38px;
  pointer-events: auto;
  touch-action: manipulation;
  border: 2px solid rgba(255, 154, 154, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7373, #d91e3b);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 91, 0.52), inset 0 1px rgba(255, 255, 255, 0.38);
}

.auth-card .auth-close-btn:hover {
  color: #fff;
  border-color: #ffd2d2;
  background: linear-gradient(145deg, #ff9090, #e52848);
  transform: scale(1.06);
}

.auth-page .form-group {
  margin-bottom: 14px;
}

.auth-page .form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-page .input-field {
  min-height: 52px;
  padding-left: 48px;
  border: 1px solid rgba(135, 206, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(3, 19, 67, 0.97), rgba(10, 33, 94, 0.96));
  color: #f4faff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(131, 203, 255, 0.08);
}

.auth-page .input-field::placeholder {
  color: #8daedc;
  opacity: 1;
}

.auth-page .input-field:focus {
  border-color: #89eaff;
  background: rgba(4, 24, 78, 0.98);
  box-shadow: 0 0 0 3px rgba(89, 205, 255, 0.16), 0 0 18px rgba(62, 194, 255, 0.2);
}

.auth-page .input-icon {
  left: 17px;
  color: #72dfff;
  filter: drop-shadow(0 0 7px rgba(91, 214, 255, 0.42));
}

.auth-page .password-toggle {
  right: 15px;
  color: #9abce9;
}

.auth-page .password-toggle:hover {
  color: #8cecff;
}

.auth-card .auth-submit {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-shadow: 0 1px 3px rgba(87, 44, 0, 0.38);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.auth-card-login .auth-submit {
  background: linear-gradient(180deg, #ffdf48 0%, #ffad13 54%, #e66b05 100%);
  border-color: rgba(255, 238, 140, 0.95);
  box-shadow: 0 5px 0 #a64c08, 0 10px 25px rgba(255, 164, 20, 0.38), inset 0 1px rgba(255, 255, 255, 0.6);
}

.auth-card-register .auth-submit {
  background: linear-gradient(180deg, #35d9f0 0%, #168fe1 54%, #1264bd 100%);
  border-color: rgba(154, 241, 255, 0.9);
  box-shadow: 0 5px 0 #124581, 0 10px 25px rgba(20, 187, 232, 0.33), inset 0 1px rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 55, 101, 0.5);
}

.auth-card .auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.auth-card-login .auth-submit:hover {
  box-shadow: 0 7px 0 #a64c08, 0 15px 30px rgba(255, 164, 20, 0.45), inset 0 1px rgba(255, 255, 255, 0.65);
}

.auth-card-register .auth-submit:hover {
  box-shadow: 0 7px 0 #124581, 0 15px 30px rgba(20, 187, 232, 0.4), inset 0 1px rgba(255, 255, 255, 0.62);
}

.auth-card .auth-footer {
  color: #b7ccef;
}

.auth-card .auth-footer a {
  color: #67e5ff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(83, 211, 255, 0.32);
}

.auth-card .auth-error {
  border-color: rgba(255, 146, 146, 0.5);
  background: rgba(97, 9, 31, 0.46);
  color: #ffe2e7;
}

/* The homepage's quick auth popup uses the same two-tone account design */
.auth-modal-card {
  border: 1px solid rgba(108, 204, 255, 0.88);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(75, 188, 255, 0.19), transparent 45%),
    linear-gradient(145deg, #1757bf 0%, #123c9e 50%, #142a75 100%);
  box-shadow:
    0 0 0 2px rgba(54, 142, 255, 0.16),
    0 0 34px rgba(34, 151, 255, 0.45),
    0 40px 90px rgba(0, 0, 0, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.24);
}

.auth-modal-card::before {
  display: none;
}

.auth-modal-inner {
  padding: 0 22px 25px;
}

.auth-modal-card .am-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  margin: 0 -22px 21px;
  border: 0;
  border-bottom: 1px solid rgba(125, 203, 255, 0.42);
  border-radius: 24px 24px 0 0;
  background: rgba(5, 22, 75, 0.78);
}

.auth-modal-card .am-tab {
  min-width: 0;
  padding: 10px 8px;
  color: #85a8df;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-align: center;
  text-shadow: none;
  transition: filter 0.2s ease, color 0.2s ease;
}

.auth-modal-card .am-tab:nth-child(2) {
  padding-right: 46px;
}

.auth-modal-card .am-tab:hover {
  color: #fff;
  filter: brightness(1.14);
}

.auth-modal-card .am-tab.active,
.auth-modal-card .am-tab.active:hover {
  color: #fff;
  box-shadow: inset 0 -3px rgba(0, 70, 120, 0.34);
}

.auth-modal-card #am-tab-login.active {
  background: linear-gradient(180deg, #37e875 0%, #06a844 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38), inset 0 -3px rgba(0, 91, 47, 0.3);
  text-shadow: 0 1px 8px rgba(0, 75, 33, 0.42);
}

.auth-modal-card #am-tab-register.active {
  background: linear-gradient(180deg, #4dc3ff 0%, #1675ef 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), inset 0 -3px rgba(15, 65, 164, 0.35);
  text-shadow: 0 1px 8px rgba(0, 49, 132, 0.5);
}

.auth-modal-card .am-close {
  top: 10px;
  right: 11px;
  z-index: 30;
  width: 38px;
  height: 38px;
  pointer-events: auto;
  touch-action: manipulation;
  border: 2px solid rgba(255, 154, 154, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7373, #d91e3b);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 91, 0.52), inset 0 1px rgba(255, 255, 255, 0.38);
}

.auth-modal-card .am-close:hover {
  color: #fff;
  border-color: #ffd2d2;
  background: linear-gradient(145deg, #ff9090, #e52848);
  transform: scale(1.06);
}

.auth-modal-card .form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-modal-card .input-field {
  min-height: 52px;
  padding-left: 48px;
  border: 1px solid rgba(135, 206, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(3, 19, 67, 0.97), rgba(10, 33, 94, 0.96));
  color: #f4faff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(131, 203, 255, 0.08);
}

.auth-modal-card .input-field::placeholder {
  color: #8daedc;
  opacity: 1;
}

.auth-modal-card .input-field:focus {
  border-color: #89eaff;
  background: rgba(4, 24, 78, 0.98);
  box-shadow: 0 0 0 3px rgba(89, 205, 255, 0.16), 0 0 18px rgba(62, 194, 255, 0.2);
}

.auth-modal-card .input-icon {
  left: 17px;
  color: #72dfff;
  filter: drop-shadow(0 0 7px rgba(91, 214, 255, 0.42));
}

.auth-modal-card .password-toggle {
  right: 15px;
  color: #9abce9;
}

.auth-modal-card .password-toggle:hover {
  color: #8cecff;
}

.auth-modal-card #am-btn-login,
.auth-modal-card #am-btn-register {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-shadow: 0 1px 3px rgba(0, 55, 101, 0.5);
}

.auth-modal-card #am-btn-login {
  background: linear-gradient(180deg, #ffdf48 0%, #ffad13 54%, #e66b05 100%);
  border-color: rgba(255, 238, 140, 0.95);
  box-shadow: 0 5px 0 #a64c08, 0 10px 25px rgba(255, 164, 20, 0.38), inset 0 1px rgba(255, 255, 255, 0.6);
}

.auth-modal-card #am-btn-register {
  background: linear-gradient(180deg, #35d9f0 0%, #168fe1 54%, #1264bd 100%);
  border-color: rgba(154, 241, 255, 0.9);
  box-shadow: 0 5px 0 #124581, 0 10px 25px rgba(20, 187, 232, 0.33), inset 0 1px rgba(255, 255, 255, 0.55);
}

.auth-modal-card #am-btn-login:hover,
.auth-modal-card #am-btn-register:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.auth-modal-card .am-footer {
  color: #b7ccef;
}

.auth-modal-card .am-footer a {
  color: #67e5ff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(83, 211, 255, 0.32);
}

.auth-modal-card .am-error {
  border-color: rgba(255, 146, 146, 0.5);
  background: rgba(97, 9, 31, 0.46);
  color: #ffe2e7;
}

@media (max-width: 480px) {
  .auth-page {
    min-height: calc(100svh - var(--topbar-h));
    padding: 20px 12px 42px;
  }

  .auth-card {
    padding: 0 17px 21px;
    border-radius: 23px;
  }

  .auth-tabs {
    margin-right: -17px;
    margin-left: -17px;
    min-height: 56px;
    margin-bottom: 19px;
  }

  .auth-tab {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }

  .auth-modal-inner {
    padding: 0 17px 22px;
  }

  .auth-modal-card .am-tabs {
    margin-right: -17px;
    margin-left: -17px;
    min-height: 56px;
    margin-bottom: 19px;
  }

  .auth-modal-card .am-tab {
    font-size: 0.7rem;
    letter-spacing: 1.4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tab,
  .auth-card .auth-submit {
    transition: none;
  }
}

/* A consistent raised, beveled game surface across the full application */
button,
[role="button"],
a.btn,
a[class*="-btn"],
a[class*="-button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border-radius: 10px;
  border-bottom-width: 3px;
  border-bottom-color: rgba(103, 243, 255, 0.38);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 58%);
  box-shadow:
    0 4px 0 rgba(2, 6, 14, 0.82),
    0 9px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

button:not(:disabled):hover,
[role="button"]:hover,
a.btn:hover,
a[class*="-btn"]:hover,
a[class*="-button"]:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(2, 6, 14, 0.82),
    0 13px 25px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(103, 243, 255, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.25);
}

button:not(:disabled):active,
[role="button"]:active,
a.btn:active,
a[class*="-btn"]:active,
a[class*="-button"]:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  filter: brightness(0.98);
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(2, 6, 14, 0.82),
    0 3px 8px rgba(0, 0, 0, 0.28),
    inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
}

/* Repeated content tiles now share the same dimensional treatment */
.card,
.feature-card,
.stat-card,
.stat-card-modern,
.info-card,
.prediction-card,
.history-item,
.session-row,
.ratio-row,
.detail-row,
.setting-row,
.widget-row,
.support-card,
.support-channel-card,
.key-status-card,
.shop-item,
.profile-game-hero,
.data-table-container,
.table-responsive,
.data-table-wrap,
.modal-box,
.auth-card {
  border-color: rgba(126, 206, 235, 0.2);
  box-shadow:
    0 6px 0 rgba(3, 7, 16, 0.52),
    0 17px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.075);
  transform-style: preserve-3d;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .stat-card:hover,
  .stat-card-modern:hover,
  .info-card:hover,
  .prediction-card:hover,
  .history-item:hover,
  .session-row:hover,
  .support-channel-card:hover,
  .shop-item:hover,
  .profile-game-hero:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 243, 255, 0.42);
    box-shadow:
      0 9px 0 rgba(3, 7, 16, 0.5),
      0 24px 44px rgba(0, 0, 0, 0.38),
      0 0 22px rgba(103, 243, 255, 0.08),
      inset 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* Filters, tabs, and compact status chips feel like game controls */
.game-cat,
.category-btn,
.method-tab,
.am-tab,
.filter-chip,
.nav-center-pill,
.badge,
.game-ai-badge,
.prediction-badge,
.history-status {
  border: 1px solid rgba(126, 206, 235, 0.2);
  box-shadow:
    0 3px 0 rgba(3, 7, 16, 0.62),
    0 7px 13px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.11);
  transform: translateZ(0);
}

.game-cat.active,
.category-btn.active,
.method-tab.active,
.am-tab.active {
  border-color: rgba(103, 243, 255, 0.56);
  box-shadow:
    0 4px 0 rgba(4, 23, 35, 0.72),
    0 0 18px rgba(103, 243, 255, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

/* Inline SVGs get a subtle beveled edge without changing their colors */
svg {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.1))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 7px rgba(103, 243, 255, 0.12));
  transition: filter 0.2s ease, transform 0.2s ease;
}

button:hover svg,
a:hover svg,
.sidebar-menu-item:hover svg,
.menu-item:hover svg {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 3px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 10px rgba(103, 243, 255, 0.42));
  transform: translateY(-1px);
}

.stat-icon,
.page-title-icon,
.shop-item-icon,
.game-stat,
.user-card-avatar,
.logo-icon,
.icon-btn {
  border: 1px solid rgba(145, 222, 244, 0.2);
  box-shadow:
    0 4px 0 rgba(2, 6, 14, 0.58),
    0 9px 17px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
}

.data-table thead th,
.data-table tbody td,
.table-responsive th,
.table-responsive td {
  border-color: rgba(126, 206, 235, 0.12);
}

.data-table tbody tr:hover td,
.table-responsive tbody tr:hover td {
  background-color: rgba(103, 243, 255, 0.055);
  box-shadow: inset 0 1px rgba(103, 243, 255, 0.1), inset 0 -1px rgba(103, 243, 255, 0.1);
}

.sidebar-menu-item,
.menu-item,
.guest-menu-link {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-menu-item:hover,
.menu-item:hover,
.guest-menu-link:hover {
  transform: translateX(3px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 14px rgba(0, 0, 0, 0.18);
}

/* Extend the game HUD to the separately-rendered admin pages as well */
.admin-body {
  background-color: var(--world-bg);
  background-image:
    radial-gradient(ellipse at 13% 13%, rgba(28, 111, 164, 0.2), transparent 30%),
    radial-gradient(ellipse at 86% 24%, rgba(111, 61, 190, 0.17), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #070a13 48%, #090914 100%);
  color: #e5f1ff;
}

.admin-body .admin-sidebar {
  background: linear-gradient(165deg, rgba(13, 20, 38, 0.99), rgba(7, 10, 20, 0.99));
  border-right-color: rgba(103, 243, 255, 0.18);
  box-shadow: 16px 0 44px rgba(0, 0, 0, 0.36);
}

.admin-body .sidebar-header,
.admin-body .admin-topbar,
.admin-body .data-table-container,
.admin-body .stat-card,
.admin-body .stat-card-modern,
.admin-body .content-card,
.admin-body .form-card {
  border-color: rgba(126, 206, 235, 0.18);
  background-color: rgba(13, 20, 37, 0.9);
  box-shadow:
    0 6px 0 rgba(3, 7, 16, 0.48),
    0 17px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.admin-body .menu-item:hover,
.admin-body .menu-item.active {
  color: #e8fbff;
  background: linear-gradient(90deg, rgba(39, 158, 190, 0.18), rgba(104, 79, 190, 0.13));
  border-color: rgba(103, 243, 255, 0.22);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-body .stat-icon {
  background-image: linear-gradient(145deg, rgba(103, 243, 255, 0.18), rgba(154, 121, 255, 0.12));
}

.admin-body .search-box,
.admin-body input,
.admin-body select,
.admin-body textarea {
  background: linear-gradient(145deg, rgba(7, 13, 25, 0.96), rgba(14, 23, 40, 0.94));
  border-color: rgba(143, 187, 219, 0.22);
  color: #e5f1ff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.24), 0 1px rgba(255, 255, 255, 0.03);
}

.admin-body .table-header {
  background: linear-gradient(180deg, rgba(22, 46, 65, 0.48), rgba(13, 25, 42, 0.3));
  border-bottom-color: rgba(103, 243, 255, 0.16);
}

.admin-body .badge,
.admin-body .status-badge {
  border: 1px solid rgba(147, 202, 233, 0.2);
  box-shadow: 0 3px 0 rgba(3, 7, 16, 0.52), inset 0 1px rgba(255, 255, 255, 0.1);
}

/* Blend legacy white-backed game logos into the dark launcher tiles */
.game-logo-wrap {
  background: #0a1020;
}

.game-logo-wrap img {
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.03);
}

/* White logo canvases for the four landscape game marks. */
.game-card[data-game-key="haywin"] .game-logo-wrap,
.game-card[data-game-key="iwin"] .game-logo-wrap,
.game-card[data-game-key="hot789"] .game-logo-wrap,
.game-card[data-game-key="son789"] .game-logo-wrap,
.game-card[data-game-key="haywin"] .game-logo-wrapper,
.game-card[data-game-key="iwin"] .game-logo-wrapper,
.game-card[data-game-key="hot789"] .game-logo-wrapper,
.game-card[data-game-key="son789"] .game-logo-wrapper {
  background: #fff;
}

.game-card[data-game-key="haywin"] .game-logo-wrapper .game-logo,
.game-card[data-game-key="iwin"] .game-logo-wrapper .game-logo,
.game-card[data-game-key="hot789"] .game-logo-wrapper .game-logo,
.game-card[data-game-key="son789"] .game-logo-wrapper .game-logo {
  object-fit: contain;
}

.game-card[data-game-key="haywin"] .game-logo-wrapper .game-logo-overlay,
.game-card[data-game-key="iwin"] .game-logo-wrapper .game-logo-overlay,
.game-card[data-game-key="hot789"] .game-logo-wrapper .game-logo-overlay,
.game-card[data-game-key="son789"] .game-logo-wrapper .game-logo-overlay {
  display: none;
}

/* Standalone landing and admin sign-in screens use the same game world */
body.dark-theme .landing-page {
  color: #e5f1ff;
  background:
    radial-gradient(ellipse at 13% 12%, rgba(28, 111, 164, 0.2), transparent 30%),
    radial-gradient(ellipse at 88% 24%, rgba(111, 61, 190, 0.17), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #070a13 54%, #090914 100%) !important;
}

body.dark-theme .landing-hero {
  perspective: 1400px;
}

body.dark-theme .hero-overlay {
  background:
    linear-gradient(100deg, rgba(5, 9, 20, 0.82), rgba(6, 12, 25, 0.45) 58%, rgba(8, 10, 25, 0.2)),
    radial-gradient(ellipse at 78% 46%, rgba(103, 243, 255, 0.13), transparent 38%) !important;
}

body.dark-theme .landing-page .feature-card,
body.dark-theme .landing-page .stat-card {
  background: linear-gradient(145deg, rgba(18, 27, 47, 0.94), rgba(8, 13, 26, 0.97)) !important;
  border: 1px solid rgba(126, 206, 235, 0.2);
  box-shadow:
    0 6px 0 rgba(3, 7, 16, 0.52),
    0 17px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.075);
}

body.dark-theme .landing-page .feature-icon,
body.dark-theme .landing-page .stat-icon {
  border: 1px solid rgba(145, 222, 244, 0.24);
  box-shadow:
    0 4px 0 rgba(2, 6, 14, 0.55),
    0 10px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

body.dark-theme .landing-page .hero-title,
body.dark-theme .landing-page .section-title {
  text-shadow: 0 0 20px rgba(103, 243, 255, 0.17);
}

.login-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(73, 182, 220, 0.12), transparent 45%),
    linear-gradient(150deg, rgba(18, 29, 51, 0.98), rgba(7, 11, 23, 0.99));
  border: 1px solid rgba(103, 243, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(103, 243, 255, 0.06),
    0 0 48px rgba(59, 173, 214, 0.14),
    0 30px 75px rgba(0, 0, 0, 0.72);
  transform-style: preserve-3d;
}

.login-card .logo-icon {
  background: linear-gradient(145deg, #46e7f5, #2879ba 56%, #8053d6);
  border: 1px solid rgba(178, 250, 255, 0.42);
  box-shadow:
    0 6px 0 rgba(3, 7, 16, 0.55),
    0 15px 32px rgba(48, 199, 228, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.34);
}

.login-card .admin-badge {
  background: linear-gradient(145deg, rgba(36, 121, 145, 0.35), rgba(76, 59, 139, 0.3));
  border-color: rgba(103, 243, 255, 0.28);
  color: #bcf8ff;
}

.login-card .login-title {
  background-image: linear-gradient(110deg, #e9fbff, #94f3ff 54%, #c2a4ff);
  -webkit-text-fill-color: transparent;
}

.login-card .form-input {
  background: linear-gradient(145deg, rgba(7, 13, 25, 0.96), rgba(14, 23, 40, 0.94));
  border-color: rgba(143, 187, 219, 0.22);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.24), 0 1px rgba(255, 255, 255, 0.03);
}

.login-card .form-input:focus {
  border-color: rgba(103, 243, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(103, 243, 255, 0.11), 0 0 20px rgba(103, 243, 255, 0.1);
}

.login-card .submit-btn {
  background: linear-gradient(180deg, #62eaf5, #258abf 56%, #3155a8);
  border: 1px solid rgba(183, 250, 255, 0.44);
  border-bottom-color: rgba(32, 89, 139, 0.9);
  color: #06131e;
  font-weight: 800;
  box-shadow:
    0 5px 0 rgba(4, 23, 35, 0.78),
    0 13px 25px rgba(39, 173, 204, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.login-card .submit-btn:hover {
  box-shadow:
    0 7px 0 rgba(4, 23, 35, 0.78),
    0 17px 30px rgba(57, 218, 242, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.38);
}

.login-card .back-link:hover {
  color: var(--world-cyan);
}

body:has(.login-card) .bg-animation::before {
  background:
    radial-gradient(circle at 20% 80%, rgba(31, 177, 210, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 82, 223, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

body:has(.login-card) .grid-overlay {
  background-image:
    linear-gradient(rgba(91, 194, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 194, 255, 0.035) 1px, transparent 1px);
}

body:has(.login-card) svg {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.1))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 7px rgba(103, 243, 255, 0.12));
}

@media (max-width: 760px) {
  button,
  [role="button"],
  a.btn,
  a[class*="-btn"],
  a[class*="-button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    box-shadow:
      0 3px 0 rgba(2, 6, 14, 0.76),
      0 6px 13px rgba(0, 0, 0, 0.24),
      inset 0 1px rgba(255, 255, 255, 0.17);
  }

  .sidebar-menu-item:hover,
  .menu-item:hover,
  .guest-menu-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  [role="button"],
  a.btn,
  a[class*="-btn"],
  a[class*="-button"],
  .feature-card,
  .stat-card,
  .stat-card-modern,
  .info-card,
  .prediction-card,
  .history-item,
  .session-row,
  .support-channel-card,
  .shop-item,
  .profile-game-hero,
  svg {
    transition: none !important;
  }
}

/* Game identity panels: animated avatar rims, account badge and coin balance */
.avatar-frame {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 3px;
  border-radius: 50%;
  isolation: isolate;
  filter: drop-shadow(0 0 10px rgba(55, 191, 255, 0.32));
}

.avatar-frame::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #43e4ff, #7467ff, #ff70cb, #ffd44f, #57f0a8, #43e4ff);
  content: "";
  animation: avatar-ring-spin 5.5s linear infinite;
}

.avatar-frame::after {
  position: absolute;
  z-index: 0;
  inset: 3px;
  border: 1px solid rgba(225, 247, 255, 0.42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.sidebar-avatar-frame {
  width: 48px;
  height: 48px;
}

.user-card-avatar-frame {
  width: 72px;
  height: 72px;
}

.avatar-frame .sidebar-avatar,
.avatar-frame .user-card-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 2px solid #10172b;
  background: linear-gradient(145deg, #19254a, #0c1022);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 3px 8px rgba(0, 0, 0, 0.44);
}

.sidebar-user-inner {
  position: relative;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(111, 195, 255, 0.28);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(173, 83, 255, 0.2), transparent 52%),
    linear-gradient(145deg, rgba(25, 58, 107, 0.92), rgba(20, 25, 58, 0.96) 57%, rgba(13, 37, 56, 0.98));
  box-shadow: 0 5px 0 rgba(3, 7, 17, 0.64), 0 11px 22px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-user-inner:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 218, 255, 0.55);
  box-shadow: 0 7px 0 rgba(3, 7, 17, 0.64), 0 15px 25px rgba(35, 139, 205, 0.24), inset 0 1px rgba(255, 255, 255, 0.16);
}

.sidebar-user-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.sidebar-user-name,
.user-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.user-name-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  flex: 0 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-badge {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 247, 255, 0.76);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #53e1ff, #2483ff 58%, #674cff);
  box-shadow: 0 0 8px rgba(73, 202, 255, 0.72), 0 2px 5px rgba(10, 43, 107, 0.65), inset 0 1px rgba(255, 255, 255, 0.5);
  animation: verified-badge-glow 2.4s ease-in-out infinite;
}

.verified-badge svg {
  display: block;
  width: 15px;
  height: 15px;
  overflow: visible;
  filter: none;
}

.verified-badge svg > path:first-child {
  fill: #238ef5;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 0.55;
}

.verified-badge .verified-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-coin-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 9px 4px 7px;
  border: 1px solid rgba(255, 214, 103, 0.34);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 205, 69, 0.2), rgba(133, 73, 15, 0.3));
  box-shadow: 0 2px 0 rgba(82, 43, 7, 0.72), inset 0 1px rgba(255, 255, 255, 0.14);
}

.sidebar-coin-display svg {
  width: 14px;
  height: 14px;
  color: #ffe18a;
  filter: drop-shadow(0 0 5px rgba(255, 202, 73, 0.58));
}

.sidebar-xu-value {
  color: #fff1bd;
  font-size: 0.73rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.sidebar-xu-unit {
  color: #ffd668;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.user-card-name .user-name-text {
  overflow: hidden;
  flex: 0 1 auto;
}

.user-card-avatar-frame {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.user-profile-card-v2:hover .user-card-avatar-frame {
  filter: drop-shadow(0 0 14px rgba(70, 205, 255, 0.52));
  transform: scale(1.035);
}

.user-stat-item {
  position: relative;
  overflow: hidden;
  border-bottom-width: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(12, 18, 34, 0.68));
  box-shadow: 0 3px 0 rgba(2, 6, 14, 0.48), inset 0 1px rgba(255, 255, 255, 0.07);
}

.user-stat-xu { border-bottom-color: rgba(255, 206, 75, 0.72); }
.user-stat-pkg { border-bottom-color: rgba(175, 128, 255, 0.72); }
.user-stat-exp { border-bottom-color: rgba(77, 215, 255, 0.72); }

.user-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(2, 6, 14, 0.48), 0 9px 17px rgba(24, 93, 166, 0.18), inset 0 1px rgba(255, 255, 255, 0.1);
}

.user-profile-card-v2 {
  border-color: rgba(109, 183, 255, 0.25);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(150, 74, 255, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(18, 28, 55, 0.98), rgba(10, 13, 25, 0.99));
}

.user-profile-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 210, 255, 0.48);
  box-shadow: 0 11px 35px rgba(0, 0, 0, 0.38), 0 0 22px rgba(62, 153, 232, 0.13);
}

/* Richer game HUD for the deposit balance, methods, and payment actions */
.dep-header-game {
  border-color: rgba(103, 193, 255, 0.3);
  background:
    radial-gradient(ellipse at 88% 0%, rgba(191, 84, 255, 0.18), transparent 47%),
    linear-gradient(145deg, #15234a 0%, #11142e 52%, #0b182b 100%);
  box-shadow: 0 7px 0 rgba(2, 6, 18, 0.68), 0 17px 34px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
}

.dep-header-game::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 30%, rgba(54, 207, 255, 0.16), transparent 48%),
    radial-gradient(ellipse at 92% 75%, rgba(255, 180, 53, 0.1), transparent 42%);
}

.dep-header-game::after {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #50ddff, #ba7cff, #ffd265, transparent);
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

.dep-header-game > * {
  position: relative;
  z-index: 1;
}

.dep-balance-showcase {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(107, 207, 255, 0.26);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(135, 89, 255, 0.24), transparent 54%),
    linear-gradient(135deg, rgba(22, 97, 160, 0.48), rgba(29, 39, 94, 0.74) 56%, rgba(34, 27, 66, 0.68));
  box-shadow: 0 5px 0 rgba(3, 8, 25, 0.6), 0 10px 20px rgba(0, 0, 0, 0.19), inset 0 1px rgba(255, 255, 255, 0.13);
}

.dep-balance-icon-game {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 225, 136, 0.65);
  border-radius: 15px;
  color: #fff2bf;
  background: linear-gradient(145deg, #ffe08a 0%, #e69b2e 47%, #8f4a23 100%);
  box-shadow: 0 4px 0 #663313, 0 8px 18px rgba(248, 167, 49, 0.28), inset 0 2px rgba(255, 255, 255, 0.44);
}

.dep-balance-icon-game svg {
  filter: drop-shadow(0 2px 2px rgba(73, 36, 7, 0.55));
}

.dep-balance-copy {
  min-width: 0;
}

.dep-header-game .dep-balance-label {
  color: #b5d8ff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.dep-header-game .dep-balance-value {
  color: #fff3bd;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  text-shadow: 0 2px 12px rgba(255, 192, 72, 0.35);
}

.dep-header-game .dep-balance-value span {
  color: #77e6ff;
  font-size: 0.64em;
}

.dep-header-game .dep-balance-fiat {
  margin-top: 5px;
  color: #a8c4e7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.dep-header-game .dep-rates-label {
  color: #b6cdf0;
  letter-spacing: 1.1px;
}

.dep-header-game .dep-rate-tag {
  border-radius: 10px;
  border-bottom-width: 3px;
  border-bottom-color: rgba(17, 69, 127, 0.8);
  background: linear-gradient(145deg, rgba(56, 153, 233, 0.2), rgba(49, 60, 137, 0.34));
  box-shadow: 0 3px 0 rgba(5, 17, 43, 0.48), inset 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.dep-header-game .dep-rate-tag:nth-child(2) {
  border-color: rgba(165, 119, 255, 0.42);
  color: #d8c4ff;
}

.dep-header-game .dep-rate-tag:nth-child(3) {
  border-color: rgba(73, 221, 180, 0.42);
  color: #9af3d2;
}

.dep-header-game .dep-rate-tag:nth-child(4) {
  border-color: rgba(255, 189, 77, 0.45);
  color: #ffe2a2;
}

.dep-header-game .dep-rate-tag:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.dep-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.dep-method-card {
  border-bottom-width: 4px;
  border-bottom-color: color-mix(in srgb, var(--dm-color, #4b8cff) 58%, #080d20);
  background: linear-gradient(145deg, rgba(29, 37, 68, 0.96), rgba(13, 17, 34, 0.98));
  box-shadow: 0 4px 0 rgba(2, 6, 17, 0.72), 0 9px 17px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.08);
}

.dep-method-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 7px 0 rgba(2, 6, 17, 0.72), 0 13px 22px rgba(0, 0, 0, 0.28), 0 0 16px color-mix(in srgb, var(--dm-color, #4b8cff) 28%, transparent);
}

.dep-method-card.active {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--dm-color, #4b8cff) 22%, #151b35), rgba(11, 16, 33, 0.98));
  box-shadow: 0 5px 0 rgba(2, 6, 17, 0.72), 0 0 20px color-mix(in srgb, var(--dm-color, #4b8cff) 28%, transparent), inset 0 1px rgba(255, 255, 255, 0.17);
}

.dep-method-card.active .dep-method-icon {
  box-shadow: 0 4px 0 rgba(2, 6, 17, 0.42), 0 0 14px color-mix(in srgb, var(--dm-color, #4b8cff) 36%, transparent), inset 0 1px rgba(255, 255, 255, 0.16);
}

.dep-launcher-card,
.dep-qr-section,
.dep-qr-card {
  border-color: rgba(111, 187, 255, 0.28);
  box-shadow: 0 7px 0 rgba(2, 6, 17, 0.6), 0 15px 30px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.07);
}

.dep-amount-btn {
  border-bottom-width: 3px;
  border-bottom-color: rgba(64, 99, 168, 0.54);
  background: linear-gradient(145deg, rgba(35, 47, 82, 0.8), rgba(13, 17, 34, 0.92));
  box-shadow: 0 3px 0 rgba(2, 6, 17, 0.52), inset 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.dep-amount-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 5px 0 rgba(2, 6, 17, 0.52), 0 9px 16px rgba(32, 134, 221, 0.2);
}

.dep-amount-btn.selected {
  border-bottom-color: #164d9f;
  background: linear-gradient(145deg, rgba(65, 161, 255, 0.32), rgba(78, 79, 202, 0.26));
  box-shadow: 0 4px 0 rgba(7, 28, 71, 0.65), 0 0 18px rgba(57, 156, 255, 0.27), inset 0 1px rgba(255, 255, 255, 0.18);
}

.dep-launcher-btn,
.dep-qr-generate-btn {
  border-bottom: 4px solid #174392;
  background: linear-gradient(110deg, #32c9f2 0%, #388dff 48%, #7658eb 100%);
  box-shadow: 0 5px 0 #12316f, 0 12px 26px rgba(48, 147, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.dep-launcher-btn:hover,
.dep-qr-generate-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 8px 0 #12316f, 0 17px 30px rgba(48, 147, 255, 0.42), inset 0 1px rgba(255, 255, 255, 0.38);
}

.dep-launcher-btn:active,
.dep-qr-generate-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #12316f, inset 0 2px 5px rgba(0, 0, 0, 0.22);
}

@keyframes avatar-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes verified-badge-glow {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.2); transform: scale(1.08); }
}

@media (max-width: 440px) {
  .dep-method-grid { gap: 7px; }
  .dep-method-card { padding: 12px 6px; }
  .dep-method-name { font-size: 0.62rem; }
  .dep-header-game { padding: 13px; }
  .dep-balance-showcase { gap: 11px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-frame::before,
  .verified-badge,
  .sidebar-user-inner,
  .user-profile-card-v2,
  .user-stat-item,
  .user-card-avatar-frame,
  .dep-rate-tag,
  .dep-method-card,
  .dep-amount-btn,
  .dep-launcher-btn,
  .dep-qr-generate-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Login / register page: one colour scheme (blue frame, gold action) shared with the site */
.auth-card {
  border: 1.5px solid rgba(96,165,250,.65);
  background: radial-gradient(120% 70% at 50% 0, rgba(20,70,160,.65), rgba(5,12,34,.96) 80%);
  box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 26px rgba(96,165,250,.2), inset 0 1px 0 rgba(255,255,255,.16);
}
.auth-tabs { background: rgba(4,12,40,.7); border-bottom: 1px solid rgba(96,165,250,.3); }
.auth-tab { color: #8fb0e6; }
.auth-tab-login.auth-tab-active, .auth-tab-register.auth-tab-active {
  background: linear-gradient(180deg, rgba(96,165,250,.55), rgba(37,99,235,.35));
  box-shadow: inset 0 1px rgba(255,255,255,.35), inset 0 -3px #fbbf24;
  color: #fff; text-shadow: none;
}
.auth-page .input-field { background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.25)); border: 1.5px solid rgba(96,165,250,.45); color: #fff; }
.auth-page .input-field:focus { border-color: #fbbf24; background: rgba(0,0,0,.45); box-shadow: 0 0 0 3px rgba(251,191,36,.15); }
.auth-page .input-icon { color: #fbbf24; filter: none; }
.auth-page .password-toggle, .auth-page .password-toggle:hover { color: #fbbf24; }
.auth-card-login .auth-submit, .auth-card-register .auth-submit {
  background: linear-gradient(180deg, #fde047, #f59e0b 55%, #c2410c);
  border-color: rgba(255,238,140,.9); color: #2a1403; text-shadow: none;
  box-shadow: 0 5px 0 #8a3d07, 0 10px 24px rgba(245,158,11,.3), inset 0 1px rgba(255,255,255,.6);
}
.auth-card-login .auth-submit:hover, .auth-card-register .auth-submit:hover {
  box-shadow: 0 7px 0 #8a3d07, 0 14px 28px rgba(245,158,11,.4), inset 0 1px rgba(255,255,255,.65);
}
.auth-card .auth-footer a { color: #fcd34d; text-shadow: none; }

/* Sun.Hot: nền tối cho logo trong suốt (không để lộ nền trắng) */
.game-card[data-game-key="sunhot"] .game-logo-wrap,
.game-card[data-game-key="sicbo_sunhot"] .game-logo-wrap {
  background: radial-gradient(circle at 50% 38%, #7c2d12 0%, #2a0f08 55%, #120806 100%);
}
