* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input,
select,
textarea,
button {
  font-size: 16px !important;
}

body {
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

html,
body {
  touch-action: manipulation; /* ✅ Blocks pinch & double-tap zoom */
  overscroll-behavior: none; /* ✅ Stops bounce/scroll zoom */
}



@keyframes backgroundFlow {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  33% {
    transform: translateX(-10px) translateY(-5px) rotate(1deg);
  }

  66% {
    transform: translateX(5px) translateY(10px) rotate(-1deg);
  }
}

.betting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 91%;
  backdrop-filter: blur(20px) saturate(1.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: radial-gradient(
      1200px 560px at 50% -20%,
      rgba(255, 255, 255, 0.06),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.02) 14%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(180deg, #0b0e14 0%, #080a10 100%);
}

@keyframes meshFlow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes orbitingOrbs {
  0% {
    transform: translateX(0px) translateY(0px);
  }

  100% {
    transform: translateX(-200px) translateY(-100px);
  }
}

@keyframes luxuriousFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
}

@keyframes headerShine {
  0% {
    left: -100%;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 50px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(32, 32, 32, 0.96);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
}

.balance-info {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(to right, #ffbf00, #fae7b5, #ffbf00);
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.25),
    inset 0 1px 0 rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(20px) saturate(1.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(255, 193, 7, 0.8) 0%,
    #ffffff 50%,
    #ffffff 50%,
    rgba(255, 193, 7, 0.8) 100%
  );
  color: black;
}

.balance-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.8s ease;
  color: black;
}

.balance-info:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 215, 0, 0.4);
}

.balance-info:hover::before {
  left: 100%;
}

.balance-label {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700 0%, #fff59d 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.balance-amount {
  font-family: noto-sans, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: black;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
  position: relative;
  user-select: none;
  color: black;
}

.title-section {
  text-align: center;
  flex: 1;
  padding: 0 30px;
  position: relative;
}

.main-title {
  font-family: Noto Sans, sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.7));
  }
}

@keyframes titleAura {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes underlineGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 1);
  }
}

.subtitle {
  font-size: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.9) 0%,
    rgba(255, 193, 7, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  padding-top: 8px;
}

.close-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans";
  background-image: url("../../panel/images/close.png");
}

.tabs-section {
  padding-top: 20px;
  max-width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  width: 100%;
  transition: all 0.3s ease;
}

.tabs-container {
  display: flex;
  gap: 8px;
  border: 1px solid #242324;
  border-radius: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px) saturate(1.5);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.tabs-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

@keyframes tabShine {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.tab-button {
  flex: 1;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255, 215, 0, 0.8);
  color: #ffffff85;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #fffffff2;
}

.tab-button small {
  display: block;
  font-size: 16px;
  opacity: 0.9;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.tab-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 18px;
}

.tab-button.active {
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
 background: /* top glow */ radial-gradient(220px 58px at 50% 0%, rgba(242, 213, 154, 0.28), transparent 70%) padding-box, /* surface */ linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) padding-box, /* gold border */ linear-gradient(180deg, rgba(242, 213, 154, 0.78), rgba(183, 139, 68, 0.28)) border-box;
  border: 2px solid #8b6a2f;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  filter: blur(2px);
  opacity: 0.9;
}

.content-section {
  flex: 1;
  max-width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.table-container {
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  flex: 1;
  backdrop-filter: blur(25px) saturate(1.5);
  position: relative;
}

.table-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 25px;
  padding: 26px 35px;
  font-weight: 800;
  font-size: clamp(12px, 1.5vw, 14px);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: #fffffff2;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 25px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-width: 1px;
}

.table-header > div:first-child {
  justify-self: start;
  text-align: center;
}

.table-body {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.bet-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr  auto;
  gap: 25px;
  padding: 14px 35px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: #292929;
  backdrop-filter: blur(10px);
}

.game-column {
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateZ(0);
}

.game-icon::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  transition: all 0.6s ease;
  z-index: -1;
}

.game-icon:hover {
  transform: scale(1.1) rotate(5deg) translateZ(0);
}

.game-icon:hover::before {
  transform: rotate(360deg);
}

.game-details {
  min-width: 0;
  flex: 1;
}

.game-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.8px;
  -webkit-background-clip: text;
  color: #ffffffc4;
  background-clip: text;
  max-width: 100%;
}

.game-time {
  -webkit-background-clip: text;
  color: #ffffffa3;
  background-clip: text;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bet-type {
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-badge {
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.type-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
}

.type-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.type-badge:hover::before {
  left: 100%;
}

.type-bet {
  color: #1a1a1a;
  border: 2px solid rgba(255, 215, 0, 0.6);
}

.type-bb {
  color: #1a1a1a;
  border: 2px solid rgba(255, 245, 157, 0.6);
}

.amount-column {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-feature-settings: "tnum";
  letter-spacing: 0.8px;
}

.bet-amount {
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffffc4;
}

.win-amount.positive {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

@keyframes winGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.7));
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.win-amount.zero {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.8) 0%,
    rgba(220, 38, 38, 0.6) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.round-id {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 12px;
}

.status-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-indicator {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.status-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.5s ease;
}

.status-indicator:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.status-indicator:hover::before {
  left: 100%;
}

.status-win {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.9) 0%,
    rgba(34, 197, 94, 0.8) 100%
  );
  color: #1a1a1a;
  border: 2px solid rgba(74, 222, 128, 0.6);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.status-loss {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.9) 0%,
    rgba(220, 38, 38, 0.8) 100%
  );
  color: #ffffff;
  border: 2px solid rgba(239, 68, 68, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.actions-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-button {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px) saturate(1.5);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  color: white;
  border: none;
  background: /* surface */ linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) padding-box, /* border */ linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.22)) border-box;
}

.table-body::-webkit-scrollbar {
  width: 5px;
}

.table-body::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.table-body::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
}

.table-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.1);
}


@keyframes luxuriousSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px) translateX(-20px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
    filter: blur(0);
  }
}

.mobile-info-grid {
  display: none;
}

.mobile-info-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.mobile-info-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 215, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.mobile-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: block;
}

.glow-gold {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.gold-particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(255, 193, 7, 0.6) 50%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: luxuriousFloat 20s infinite linear;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes luxuriousFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg) scale(0);
    opacity: 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.4),
    transparent
  );
  background-size: 200% 100%;
}

::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(255, 215, 0, 0.3);
  color: #ffffff;
}

.betting-overlay,
.bet-row,
.game-icon,
.tab-button,
.action-button {
  will-change: transform;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

.game-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* border-radius: 18px; */
}

.game-icon span {
  font-weight: 900;
  font-size: 20px;
  color: #1a1a1a;
}

.status-win {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.9) 0%,
    rgba(34, 197, 94, 0.8) 100%
  );
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
}

.status-loss {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.9) 0%,
    rgba(220, 38, 38, 0.8) 100%
  );
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
}

.type-badge {
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 75px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.type-bet,
.type-bb {
  color: #1a1a1a;
  border: 2px solid rgba(255, 215, 0, 0.6);
  /* text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3); */
}

.type-bb {
  border: 2px solid rgba(255, 245, 157, 0.6);
}

@media (max-width: 600px) and (max-height: 600px) and (orientation: landscape) {
  .table-header {
    display: none;
  }

  .bet-row {
    display: block;
    padding: 16px;
    margin: 15px;
    border-radius: 16px;
    border: 1.5px solid rgba(242, 242, 242, 0.3);
  }

  .game-column {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  }

  .mobile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    margin-bottom: 16px;
  }

  .actions-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin-top: 16px;
  }

  .bet-type,
  .amount-column,
  .round-id,
  .status-column {
    display: none;
  }
}

.type-badge,
.type-bet,
.type-bb {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: none;
  box-shadow: none;
  font-weight: 500;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffffc4;
}

@media (max-width: 768px) {
  .header-content {
    padding: 20px 20px 25px;
    flex-direction: column;
    gap: 5px;
    position: relative;
    align-items: stretch;
  }

  .balance-info {
    order: 2;
    align-self: center;
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
  }

  .balance-amount {
    font-size: 16px !important;
  }

  .title-section {
    order: 1;
    padding: 0 60px 0 20px;
    text-align: center;
  }

  .main-title {
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .close-button {
    position: absolute !important;
    top: 10px;
    right: 20px;
    order: 3;
    z-index: 20;
  }

  .tabs-container {
    flex-direction: row;
  }

  .tab-button small {
    font-size: 16px;
    margin-top: 4px;
  }

  .table-container {
    border-radius: 20px;
    overflow: visible;
  }

  .table-header {
    display: none;
  }

  .table-body::-webkit-scrollbar {
    display: none;
  }

  .bet-row {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 18px;
    border: 1.5px solid rgba(225, 225, 225, 0.3);
    position: relative;
    overflow: hidden;
  }


  .game-column {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  }

  .game-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
    border-radius: 15px;
    flex-shrink: 0;
  }

  .game-details {
    flex: 1;
    min-width: 0;
  }

  .game-name {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
  }

  .game-time {
    font-size: 16px;
    opacity: 0.9;
  }

  .mobile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-bottom: 16px;
  }

  .bet-type,
  .amount-column,
  .round-id,
  .status-column {
    display: none;
  }

  .actions-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin-top: 16px;
  }

  .action-button {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 16px 16px 20px;
  }

  .title-section {
    padding: 0 50px 0 16px;
  }

  .main-title {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .subtitle {
    font-size: 16px;
  }

  .balance-info {
    padding: 14px 20px;
  }

  .tabs-section,
  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bet-row {
    padding: 16px;
    border-radius: 16px;
  }

  .game-column {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .game-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .mobile-info-grid {
    gap: 12px 8px;
  }

  .mobile-info-item {
    padding: 10px;
  }

  .mobile-info-value {
    font-size: 16px;
  }

  .tabs-container {
    flex-direction: row;
    gap: 10px;
    padding: 10px;
  }

  .tab-button {
    border-radius: 15px;
    padding: 16px 20px;
  }
}

@media (min-width: 1400px) {
  .tabs-section,
  .content-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .bet-row {
    padding: 18px 40px;
    gap: 30px;
  }

  .game-icon {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}

@media (max-width: 1400px) {
  .main-title {
    font-size: 38px;
    letter-spacing: 5px;
  }
}

@media (max-width: 1200px) {
  .main-title {
    font-size: 38px;
    letter-spacing: 4px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-title {
    font-size: 34px;
    letter-spacing: 4px;
  }

  .bet-row {
    grid-template-columns: 2.5fr 1fr 1fr 1fr auto;
    gap: 20px;
    padding: 16px 30px;
  }

  .game-icon {
    width: 52px;
    height: 52px;
  }

  .type-badge,
  .status-indicator {
    padding: 10px 16px;
    padding: 10px 16px 10px 10px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 20px 20px 25px;
    flex-direction: column;
    gap: 5px;
    position: relative;
    align-items: stretch;
  }

  .balance-info {
    order: 2;
    align-self: center;
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
  }

  .title-section {
    order: 1;
    padding: 0 60px 0 20px;
    text-align: center;
  }

  .main-title {
    font-size: 30px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .tabs-container {
    flex-direction: row;
    gap: 8px;
  }

  .tab-button {
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 16px !important;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
  }

  .tab-button small {
    font-size: 16px;
    margin-top: 4px;
  }

  .table-container {
    border-radius: 20px;
    overflow: visible;
  }

  .table-header {
    display: none;
  }

  .table-body::-webkit-scrollbar {
    display: none;
  }

  .bet-row {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 18px;
    border: 1.5px solid rgba(203, 203, 203, 0.3);
    position: relative;
    overflow: hidden;
  }


  .game-column {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  }

  .game-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
    border-radius: 15px;
    flex-shrink: 0;
  }

  .game-details {
    flex: 1;
    min-width: 0;
  }

  .game-name {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
  }

  .game-time {
    font-size: 16px;
    opacity: 0.9;
  }

  .mobile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-bottom: 16px;
  }

  .bet-type,
  .amount-column,
  .round-id,
  .status-column {
    display: none;
  }

  .actions-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin-top: 16px;
  }

  .action-button {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 16px 16px 20px;
  }

  .title-section {
    padding: 0 50px 0 16px;
  }

  .main-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }

  .subtitle {
    font-size: 16px;
  }

  .balance-info {
    padding: 14px 20px;
  }

  .balance-amount {
    font-size: 24px;
  }

  .close-button {
    top: 5px;
    right: 5px;
  }

  .tabs-section,
  .content-section {
    padding-left: 0px;
    padding-right: 0px;
  }

  .bet-row {
    padding: 16px;
    border-radius: 16px;
  }

  .game-column {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .game-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .mobile-info-grid {
    gap: 12px 8px;
  }

  .mobile-info-item {
    padding: 10px;
  }

  .mobile-info-value {
    font-size: 18px;
  }

  .tabs-container {
    flex-direction: row;
    gap: 10px;
    padding: 10px;
  }

  .tab-button {
    border-radius: 15px;
    padding: 16px 10px;
    font-size: 16px !important;
  }
}

@media (max-width: 340px) {
  .tab-button {
    font-size: 16px !important;
  }
}
@media (min-width: 1920px) {
  .tabs-section,
  .content-section {
    max-width: 1800px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .game-icon,
  .action-button,
  .close-button {
    transform: translateZ(0);
  }
}

@media (prefers-contrast: high) {
  .bet-row {
    border-width: 2px;
    border-color: rgba(169, 169, 168, 0.9);
  }

  .mobile-info-item {
    border-color: rgba(161, 161, 158, 0.6);
  }

  .game-name,
  .balance-amount,
  .main-title {
    -webkit-text-fill-color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bet-row,
  .tab-button,
  .action-button,
  .close-button {
    transition: none !important;
    animation: none !important;
  }

  .bet-row::before {
    display: none;
  }
}

@media print {
  .betting-overlay {
    background: white !important;
    color: black !important;
  }

  .close-button,
  .actions-column {
    display: none !important;
  }
}

.game-name,
.game-time {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.round-id {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

.type-badge {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .table-header {
    display: grid;
    padding: 14px 35px;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
  }

  .bet-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 25px;
    padding: 14px 23px 14px 35px;
  }

  .mobile-info-grid {
    display: none !important;
  }

  .game-column,
  .bet-type,
  .amount-column,
  .status-column,
  .actions-column {
    display: flex !important;
    align-items: center;
  }

  .game-column {
    min-width: 0;
  }

  .amount-column {
    justify-content: center;
    text-align: center;
  }

  .actions-column {
    justify-content: center;
  }
}

@media (orientation: landscape) and (max-height: 375px) {
  .table-body {
    padding-bottom: 10px;
    max-height: 100vh;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .table-header {
    padding: 16px 35px;
  }
}

.game-icon {
  border-radius: 30% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  overflow: hidden;
  background: black;
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

@media (orientation: portrait) {
  .betting-overlay {
    height: 94%;
  }
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 25px 10px;
}

.balance-info {
  z-index: 1;
}

.close-button {
  margin-left: auto;
  z-index: 1;
  cursor: pointer;
}

.title-section {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

@media (max-width: 800px) {
  .header-content {
    position: static;
    flex-wrap: wrap;
    padding: 5px 10px;
  }

  .title-section {
    order: 0;
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
    padding: 10px;
  }

  .close-button {
    order: 1;
    margin-left: auto;
    align-self: center;
  }

  .balance-info {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }
}

@media (max-width: 925px) and (min-width: 725px) {
  .balance-amount {
    font-size: 10px !important;
  }
}

#nextAppFrameWrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: end;
  justify-content: center;
  padding-top: 20px;
  background: transparent;
}

.modal-card {
  width: 80%;
  height: 80%;
  overflow: hidden;
  background: transparent;
}

.modal-card iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid rgb(255, 230, 0);
}

.tab-content-section {
  height: 81%;
  height: 76%;
}

@media (orientation: landscape) and (max-height: 500px) {
  .header-section {
    padding: 5px;
  }
  .header-content {
    padding: 5px;
  }
  .betting-overlay {
    height: 88%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .tabs-section {
    padding-top: 10px !important;
  }
}

@media (orientation: portrait) {
  .tab-content-section {
    width: 100%;
    height: 75%;
    flex: 1;
  }
}

@media (orientation: portrait) and (max-height: 500px) {
  .tab-content-section {
    width: 100%;
    height: 60%;
    flex: 1;
  }
}

@media (max-height: 550px) and (orientation: landscape) {
  .tab-content-section {
    height: 80%;
    overflow-y: auto;
    flex: 1;
  }

  .table-body {
    max-height: 100%;
    padding-bottom: 0px;
  }
}

@media (height: 540px) {
  .tab-content-section {
    height: 72%;
    overflow-y: auto;
  }
}

@media (max-height: 600px) and (max-width: 768px) and (orientation: landscape) {
  .tab-content-section {
    height: 72%;
    overflow-y: auto;
    flex: 1;
  }
}

@media (max-height: 540px) and (max-width: 720px) and (orientation: landscape) {
  .tab-content-section {
    height: 72%;
    overflow-y: auto;
  }
}

@media (max-height: 400px) and (orientation: landscape) {
  .tab-content-section {
    height: 79%;
    overflow-y: auto;
  }
}

@media (max-height: 376px) and (orientation: landscape) {
  .tab-content-section {
    height: 58%;
  }
}

@media (max-height: 360px) and (orientation: landscape) {
  .tab-content-section {
    height: 58%;
  }
}

@media (max-height: 360px) and (orientation: landscape) {
  .tab-content-section {
    height: 57%;
  }
}

@media (max-height: 344px) and (orientation: landscape) {
  .tab-content-section {
    height: 76%;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .header-section {
    padding: 5px;
  }
  .header-content {
    padding: 5px;
  }
  .betting-overlay {
    height: 88%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .tabs-section {
    padding-top: 10px !important;
  }
}

/* iphone- hover*/

@media (hover: none) and (pointer: coarse) {
  /* .tab-button:hover,
    .tab-button:hover::before,
    .tab-button:hover::after {
      transform: none !important;
      background: transparent !important;
      box-shadow: none !important;
    } */

  .tab-button:active,
  .tab-button:active::before {
    transform: translateY(1px) !important;
  }

  /* .tab-button.active,
  .tab-button.active:hover,
  .tab-button.active:active {
    color: #1a1a1a !important;
    transform: translateY(-2px) !important;
  } */
}
/* Add this to your existing CSS */

/* Reduce animation intensity for tabs */
.tab-button {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease !important;
}

.tab-button::before {
  transition: opacity 0.2s ease !important;
}

.tab-button.active {
  transition: all 0.2s ease !important;
}

/* Disable expensive effects on low-performance devices */
@media (max-width: 1024px) {
  .tab-button::before,
  .tab-button::after,
  .tab-button:hover::before {
    display: none !important;
  }
}

/* Hardware acceleration for smoother transitions */
.tab-button {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimize for Safari specifically */
@supports (-webkit-touch-callout: none) {
  .tab-button {
    -webkit-tap-highlight-color: transparent;
  }

  .tabs-container {
    -webkit-overflow-scrolling: touch;
  }
}

.bet-row {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}




/*  TOUCH-DEVICE GOLD ACTIVE COLOURS
-------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
                              */
  .action-button:active,
  .close-button:active {
    color: #000 !important;
    transform: scale(0.98) !important;
  }
}

/*  SAFARI-iOS SPECIFIC
-------------------------------------------------- */
@supports (-webkit-touch-callout: none) {
  .tab-button,
  .bet-row,
  .action-button,
  .close-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}


.action-button:hover::before {
  left: 100% !important;
}

@media (hover: none) and (pointer: coarse) {

  .action-button:active {
    transform: scale(0.98) !important;
  }
}

.action-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 2;
  position: relative;
}

.bet-row {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}


.main-title {
  letter-spacing: 0;
}

.glowing-line {
  height: 3px;
  border: none;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 215, 100, 0.6) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 215, 100, 0.6) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  margin: 5px 0;
}
