/* Sol Scratch Game Styles */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Poetsen One", sans-serif;
  overflow-x: hidden;
  color: #ffffff;
  background: url(/all/background.png) no-repeat center center fixed;
  background-size: cover;
  user-select: none;
}

.imagetemp {
  width: 250px;
  transition: transform 0.4s ease-in-out;
  animation: pulse 2s infinite ease-in-out;
}

.imagetemp1 {
  transition: transform 0.4s ease-in-out;
  animation: glow 2s infinite ease-in-out;
}

.jackpot-tag {
  background: linear-gradient(135deg, #8f21e2, #a855f7);
  color: white;
  padding: 8px 15px;
  font-weight: bold;
  border-radius: 25px;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(143, 33, 226, 0.3);
  animation: jackpotBounce 2s infinite ease-in-out;
}

@keyframes jackpotBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.price-tag {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  cursor: default;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  animation: priceBounce 2.5s infinite ease-in-out;
}

@keyframes priceBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.footer-logo {
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: logoSway 3s infinite ease-in-out;
}

@keyframes logoSway {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  33% {
    transform: scale(1.05) rotate(2deg);
  }
  66% {
    transform: scale(1.05) rotate(-2deg);
  }
}

.boxxx {
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid #8f21e2;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.boxxx:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(143, 33, 226, 0.4);
  border-color: #a855f7;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px #8f21e2);
  }
  50% {
    filter: drop-shadow(0 0 15px #a855f7);
  }
}

.main-layout {
  padding-inline: 20px;
  padding-top: 10px;
}

.box {
  border: 2px solid #8f21e2;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-purple {
  border: 2px solid #8f21e2;
  border-radius: 15px;
  margin: 3px;
  background: linear-gradient(135deg, #8f21e2, #a855f7);
  color: white;
  font-weight: bold;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(143, 33, 226, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}

.btn-purple::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: left 0.8s ease;
  z-index: 1;
}

.btn-purple::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.btn-purple:hover {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  transform: translateY(-5px) scale(1.05) rotateX(10deg);
  box-shadow: 0 12px 30px rgba(143, 33, 226, 0.6), 0 0 25px rgba(168, 85, 247, 0.4);
  border-color: #a855f7;
}

.btn-purple:hover::before {
  left: 100%;
}

.btn-purple:hover::after {
  opacity: 1;
  transform: rotate(180deg) scale(1.2);
}

.btn-purple.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24;
  color: #000;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.5);
  transform: translateY(-3px) scale(1.08) rotateX(5deg);
  animation: activeCardPulse 2s ease-in-out infinite;
}

.btn-purple.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.btn-purple.active::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 1;
}

@keyframes activeCardPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.8), 0 0 40px rgba(251, 191, 36, 0.7);
    transform: translateY(-3px) scale(1.1) rotateX(5deg);
  }
}

.btn-purple:active {
  transform: translateY(-1px) scale(1.02) rotateX(2deg);
  transition: all 0.1s ease;
}

/* Enhanced card button effects for desktop */
@media (min-width: 992px) {
  .buttons-wrap .btn-purple {
    flex: 0 0 calc(20% - 12px);
    text-align: center;
    min-width: 60px;
    position: relative;
    overflow: hidden;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
  }

  .buttons-wrap .btn-purple:nth-child(odd) {
    animation: cardFloat1 3s ease-in-out infinite;
  }

  .buttons-wrap .btn-purple:nth-child(even) {
    animation: cardFloat2 3s ease-in-out infinite 0.5s;
  }

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

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

  .buttons-wrap .btn-purple:hover {
    animation: none;
    transform: translateY(-8px) scale(1.1) rotateX(15deg);
    box-shadow: 0 15px 35px rgba(143, 33, 226, 0.7), 0 0 30px rgba(168, 85, 247, 0.5);
    z-index: 10;
  }

  .buttons-wrap .btn-purple.active:hover {
    transform: translateY(-8px) scale(1.15) rotateX(15deg);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.8), 0 0 35px rgba(251, 191, 36, 0.6);
  }
}

/* Mobile card button effects */
@media (max-width: 768px) {
  .buttons-wrap .btn-purple {
    flex: 0 0 calc(20% - 8px);
    margin: 4px;
    height: 32px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    position: relative;
  }

  .buttons-wrap .btn-purple:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(143, 33, 226, 0.5);
  }

  .buttons-wrap .btn-purple.active {
    transform: translateY(-2px) scale(1.08);
    animation: mobileCardPulse 2s ease-in-out infinite;
  }

  @keyframes mobileCardPulse {
    0%, 100% {
      box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }
    50% {
      box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
      transform: translateY(-2px) scale(1.1);
    }
  }
}

.card-box {
  position: relative;
  max-width: 420px;
  min-height: 520px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  padding: 15px;
  color: #333;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  z-index: 0;
  border: 3px solid #8f21e2;
}

.card-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
  animation: hueShift 12s linear infinite, pulse 2s ease-in-out infinite;
  will-change: filter;
  display: block;
}

.card-box::before {
  background-image: var(--overlay-image);
}

@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.card-section {
  display: none;
}

.card-section.active {
  display: block;
  animation: slideIn 0.3s ease-out;
  position: relative;
  z-index: 2;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.logo-tag {
  height: 35px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.title-section {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 3;
}

.title-section h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #8f21e2, #a855f7, #fbbf24, #10b981, #ef4444);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowGlow 3s ease-in-out infinite, backgroundShift 4s ease-in-out infinite;
  text-shadow: none;
  position: relative;
  filter: brightness(1.2) contrast(1.1);
}

.title-section h1::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b35, #f7931e, #ffd700, #00ff88, #00bfff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lightingEffect 2s ease-in-out infinite alternate;
  opacity: 0.8;
  z-index: -1;
}

@keyframes rainbowGlow {
  0%, 100% {
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 10px rgba(143, 33, 226, 0.6));
  }
  25% {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 15px rgba(168, 85, 247, 0.8));
  }
  50% {
    filter: brightness(1.4) contrast(1.3) drop-shadow(0 0 20px rgba(251, 191, 36, 1));
  }
  75% {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 15px rgba(16, 185, 129, 0.8));
  }
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes lightingEffect {
  0% {
    background-position: 0% 0%;
    opacity: 0.4;
  }
  50% {
    background-position: 50% 50%;
    opacity: 0.8;
  }
  100% {
    background-position: 100% 100%;
    opacity: 0.6;
  }
}

.title-section h3 {
  margin: 5px 0;
  font-size: 26px;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0,0,0,0.5);
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0,0,0,0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 2px 4px rgba(0,0,0,0.5);
  }
}

.title-section p {
  margin: 3px 0;
  font-size: 14px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-weight: 500;
}

.scratch-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  justify-content: center;
  margin: 15px auto;
  max-width: 320px;
  z-index: 3;
  position: relative;
}

.scratch-area img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  cursor: pointer;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
}

.action-buttons button {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-reveal {
  background: linear-gradient(135deg, #8f21e2, #a855f7);
  color: white;
  box-shadow: 0 4px 15px rgba(143, 33, 226, 0.3);
}

.btn-reveal:hover:not(:disabled) {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(143, 33, 226, 0.5);
}

.btn-reveal:disabled {
  background: #6b7280;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-buy:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.info-text {
  text-align: center;
  font-size: 11px;
  color: #000;
  margin: 12px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-weight: bold;
}

.card-footer {
  display: flex;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.footer-info {
  flex-grow: 1;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.footer-logo {
  height: 35px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: logoSway 3s infinite ease-in-out;
}

@media (max-width: 480px) {
  .card-box {
    padding: 5px;
    max-width: 100%;
  }

  .scratch-area {
    max-width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .scratch-area img {
    width: 50px;
    height: 50px;
  }

  .btn-purple {
    padding: 4px 8px;
    font-size: 14px;
  }

  .action-buttons button {
    font-size: 14px;
    padding: 8px 0;
  }

  .title-section h1 {
    font-size: 20px;
  }

  .title-section h3 {
    font-size: 18px;
  }
}

@media (min-width: 992px) {
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
  }

  .left-col,
  .right-col {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }

  .left-col {
    margin-top: 60px;
    margin-left: 20px;
  }

  .right-col {
    margin-top: 10px;
    margin-right: 20px;
  }

  .buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 5px;
  }

  .buttons-wrap .btn-purple {
    flex: 0 0 calc(20% - 12px);
    text-align: center;
    min-width: 60px;
    position: relative;
    overflow: hidden;
  }

  .buttons-wrap .btn-purple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .buttons-wrap .btn-purple:hover::after {
    opacity: 1;
  }

  .latest-box {
    margin-top: -8px;
  }
}

@media (max-width: 991px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    padding-inline: 5px;
    padding-top: 15px;
  }

  .card-box {
    width: 100%;
  }

  .right-col {
    order: 4;
  }

  .buttons-wrap {
    order: 2;
  }

  .card-box {
    order: 3;
  }

  .left-col {
    order: 4;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .buttons-wrap {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    max-width: 320px;
    margin-inline: auto;
  }

  .buttons-wrap .btn-purple {
    flex: 0 0 calc(20% - 8px);
    margin: 4px;
    height: 36px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.scratch-box {
  position: relative;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  touch-action: none;
  border-radius: 8px;
}

.scratch-box canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: url('/all/eraser.png') 16 16, grab;
  border-radius: 8px;
}

.scratch-box canvas:active {
  cursor: url('/all/eraser.png') 16 16, grabbing;
}

.scratch-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  justify-content: center;
  margin: 12px auto;
  max-width: 280px;
  z-index: 3;
}

.prize-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #ffffff;
}

.prize-list div::before {
  content: "🎁 ";
  margin-right: 4px;
}

@media (max-width: 480px) {
  .prize-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 6px;
    font-size: 11px;
  }
  
  .prize-list div::before {
    margin-right: 2px;
  }
}

.win-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  backdrop-filter: blur(15px);
  padding: 30px 25px;
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  color: white;
  z-index: 10000;
  animation: winPopupAnimation 0.8s ease-out;
  text-align: center;
  border: 4px solid #fbbf24;
  max-width: 320px;
  min-width: 280px;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.win-popup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: winShimmer 2s ease-in-out infinite;
}

.mega-jackpot-popup {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.98), rgba(255, 140, 0, 0.95));
  border: 5px solid #ff6b35;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: megaJackpotPulse 0.8s ease-out, megaGlow 2s ease-in-out infinite 0.8s;
  max-width: 360px;
  min-width: 320px;
  padding: 35px 30px;
}

.mega-jackpot-popup::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

@keyframes winPopupAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes megaJackpotPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 80px rgba(255, 215, 0, 1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  }
}

@keyframes megaGlow {
  0%, 100% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), 0 30px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 80px rgba(255, 215, 0, 1), 0 30px 60px rgba(0, 0, 0, 0.5);
  }
}

@keyframes winShimmer {
  0%, 100% { 
    transform: rotate(0deg) scale(1);
    opacity: 0.1;
  }
  50% { 
    transform: rotate(180deg) scale(1.1);
    opacity: 0.3;
  }
}

.win-popup-title {
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.mega-jackpot-title {
  font-size: 32px;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
  animation: titleGlow 2s ease-in-out infinite alternate;
  margin-bottom: 18px;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
  }
  to {
    filter: drop-shadow(3px 3px 15px rgba(255, 107, 53, 0.8));
  }
}

.win-popup-amount {
  font-size: 24px;
  color: #fbbf24;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

.mega-jackpot-amount {
  font-size: 28px;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  animation: amountPulse 1.5s ease-in-out infinite;
  margin-bottom: 22px;
}

@keyframes amountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.win-popup-footer {
  font-size: 16px;
  margin-top: 15px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mega-jackpot-footer {
  font-size: 18px;
  background: linear-gradient(45deg, #ff6b35, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  margin-top: 18px;
}

.win-gif {
  width: 150px;
  height: auto;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mega-win-gif {
  width: 250px;
  height: auto;
  margin: 25px 0;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.scratch-box.revealed .value-text {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.9), rgba(107, 114, 128, 0.9));
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 14px;
  color: white;
  font-weight: bold;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scratch-box.win .value-text {
  background: linear-gradient(135deg, #8f21e2, #a855f7) !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  line-height: 60px !important;
  font-size: 16px !important;
  border-radius: 50%;
  border: 3px solid #fbbf24 !important;
  box-shadow: 0 0 20px rgba(143, 33, 226, 0.8) !important;
  z-index: 10;
  animation: winGlow 1s ease-in-out infinite alternate;
  top: 5px !important;
  left: 5px !important;
}

@keyframes winGlow {
  from {
    box-shadow: 0 0 20px rgba(143, 33, 226, 0.8);
  }
  to {
    box-shadow: 0 0 30px rgba(168, 85, 247, 1);
  }
}

.value-text {
  background: linear-gradient(135deg, rgba(200, 200, 200, 0.9), rgba(156, 163, 175, 0.9));
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  pointer-events: none;
  transition: all 0.3s ease;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.win-match {
  background: linear-gradient(135deg, #8f21e2, #a855f7) !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  line-height: 60px !important;
  font-size: 16px !important;
  border-radius: 50%;
  border: 3px solid #fbbf24 !important;
  box-shadow: 0 0 20px rgba(143, 33, 226, 0.8) !important;
  z-index: 10;
  animation: zoomPrize 0.8s ease-in-out, winGlow 1s ease-in-out infinite alternate 0.8s;
  top: 5px !important;
  left: 5px !important;
}

@keyframes zoomPrize {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Floating particles effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  animation: float 3s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Latest transactions styling */
.transaction-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin: 8px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  border-radius: 15px;
  border-left: 4px solid #10b981;
  transition: all 0.4s ease;
  animation: slideInRight 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.transaction-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.transaction-item:hover::before {
  left: 100%;
}

.transaction-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
  transform: translateX(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.transaction-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.transaction-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.transaction-message {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 14px;
}

.transaction-time {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

.transaction-amount {
  font-weight: bold;
  font-size: 13px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.transaction-win {
  border-left-color: #10b981;
}

.transaction-win .transaction-amount {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.transaction-lose {
  border-left-color: #ef4444;
}

.transaction-lose .transaction-amount {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.transaction-buy {
  border-left-color: #fbbf24;
}

.transaction-buy .transaction-amount {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.latest-box {
  position: relative;
  overflow: hidden;
}

.latest-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8f21e2, #a855f7, #fbbf24, #10b981);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced How to Play Styling */
.how-to-play-box {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.15), rgba(160, 82, 45, 0.1));
  border: 2px solid #8B4513;
  border-radius: 15px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.how-to-play-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #CD853F, #DEB887);
  animation: playShimmer 2s ease-in-out infinite;
}

@keyframes playShimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.how-to-play-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #DEB887;
}

.how-to-play-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: playIconBounce 2s ease-in-out infinite;
}

@keyframes playIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.how-to-play-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-to-play-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
  transition: all 0.3s ease;
}

.how-to-play-item:hover {
  background: rgba(139, 69, 19, 0.1);
  padding-left: 5px;
  border-radius: 8px;
}

.how-to-play-number {
  background: linear-gradient(135deg, #8B4513, #CD853F);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.how-to-play-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
}

/* Mobile optimization for How to Play */
@media (max-width: 480px) {
  .how-to-play-item {
    align-items: flex-start;
  }
  
  .how-to-play-number {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .how-to-play-text {
    font-size: 11px;
  }
}

/* Enhanced Prize Table Styling */
.prize-table-box {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
  border: 2px solid #FFD700;
  border-radius: 15px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.prize-table-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500, #FF8C00);
  animation: prizeShimmer 3s ease-in-out infinite;
}

@keyframes prizeShimmer {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.1); }
}

.prize-table-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #FFD700;
}

.prize-table-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: prizeIconSpin 4s linear infinite;
}

@keyframes prizeIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prize-rules {
  margin-bottom: 12px;
}

.prize-rule {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 8px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  border-left: 3px solid #FFD700;
  transition: all 0.3s ease;
}

.prize-rule:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateX(5px);
}

.prize-rule-icon {
  margin-right: 6px;
  font-size: 14px;
}

.prize-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 11px;
  color: #ffffff;
}

.prize-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.prize-item::before {
  content: "💎 ";
  margin-right: 4px;
  animation: prizeGem 2s ease-in-out infinite;
}

@keyframes prizeGem {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* Music Box Styling */
.music-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border: 2px solid #10b981;
  border-radius: 15px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.music-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
  animation: musicShimmer 2s ease-in-out infinite;
}

@keyframes musicShimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.music-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #10b981;
}

.music-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: musicIconDance 2s ease-in-out infinite;
}

@keyframes musicIconDance {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.music-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.music-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  min-width: 50px;
}

.music-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.music-btn:active {
  transform: translateY(0);
}

.music-btn.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}

.song-selector {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.song-selector:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #059669;
}

.song-selector option {
  background: #1f2937;
  color: #ffffff;
}

.current-song {
  text-align: center;
  font-size: 11px;
  color: #10b981;
  margin-top: 8px;
  padding: 6px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.music-playing {
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Mobile music controls optimization */
@media (max-width: 480px) {
  .music-controls {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .music-btn {
    font-size: 10px;
    padding: 4px 6px;
    min-width: auto;
  }
  
  .song-selector {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .current-song {
    font-size: 9px;
    padding: 4px;
  }
}

/* Loading improvements */
.loading-text {
  color: #8f21e2;
  font-size: 18px;
  margin-top: 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Balance display improvements */
.balance-display {
  color: #fbbf24;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Referral Box Styling */
.referral-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  border: 2px solid #3b82f6;
  border-radius: 15px;
  padding: 15px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.referral-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
  animation: referralShimmer 2s ease-in-out infinite;
}

@keyframes referralShimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.referral-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #60a5fa;
}

.referral-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: referralIconBounce 2s ease-in-out infinite;
}

@keyframes referralIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.referral-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-description {
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
}

.referral-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.referral-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  font-family: monospace;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.referral-input:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #60a5fa;
}

.referral-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.referral-copy-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.referral-copy-btn::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: left 0.6s ease;
}

.referral-copy-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.referral-copy-btn:hover::before {
  left: 100%;
}

.referral-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.referral-copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.referral-copy-btn.copied::after {
  content: '✓ Copied!';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  animation: copySuccess 0.3s ease-out;
}

@keyframes copySuccess {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile optimization for Referral */
@media (max-width: 480px) {
  .referral-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .referral-input {
    width: 100%;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .referral-copy-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .referral-description {
    font-size: 11px;
  }
}

/* History Transaction Section */
.history-section {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-container {
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid #8f21e2;
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.history-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #8f21e2, #a855f7, #fbbf24, #10b981);
  animation: historyShimmer 3s ease-in-out infinite;
}

@keyframes historyShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.history-header {
  text-align: center;
  margin-bottom: 30px;
}

.history-title {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(135deg, #8f21e2, #a855f7, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.history-icon {
  font-size: 36px;
  animation: historyIconPulse 2s ease-in-out infinite;
}

@keyframes historyIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.history-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.history-tab {
  background: linear-gradient(135deg, rgba(143, 33, 226, 0.3), rgba(168, 85, 247, 0.2));
  border: 2px solid #8f21e2;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.history-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.history-tab:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(196, 132, 252, 0.3));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(143, 33, 226, 0.4);
}

.history-tab:hover::before {
  left: 100%;
}

.history-tab.active {
  background: linear-gradient(135deg, #8f21e2, #a855f7);
  border-color: #a855f7;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(143, 33, 226, 0.6);
}

.tab-icon {
  font-size: 18px;
  animation: tabIconBounce 2s ease-in-out infinite;
}

@keyframes tabIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.history-content {
  position: relative;
}

.history-table {
  display: none;
  animation: fadeInSlide 0.5s ease-out;
}

.history-table.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1.5fr;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(143, 33, 226, 0.4), rgba(168, 85, 247, 0.3));
  border-radius: 12px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
  font-size: 14px;
  border: 1px solid rgba(143, 33, 226, 0.5);
}

.table-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1.5fr;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.table-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.table-row:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.table-row:hover::before {
  left: 100%;
}

.jackpot-row {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.jackpot-row:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.15));
}

.col-date {
  font-family: monospace;
  opacity: 0.9;
}

.col-amount {
  font-weight: bold;
  font-family: monospace;
}

.win-amount {
  color: #10b981;
  animation: winAmountGlow 2s ease-in-out infinite;
}

.jackpot-amount {
  color: #ffd700;
  font-size: 14px;
  animation: jackpotAmountGlow 2s ease-in-out infinite;
}

@keyframes winAmountGlow {
  0%, 100% { 
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  }
  50% { 
    color: #34d399;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
  }
}

@keyframes jackpotAmountGlow {
  0%, 100% { 
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  50% { 
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  }
}

.col-player {
  font-family: monospace;
  color: #a855f7;
  font-weight: 600;
}

.col-method {
  opacity: 0.8;
}

.col-status {
  font-weight: bold;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-processing {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Mobile Responsiveness for History */
@media (max-width: 768px) {
  .history-section {
    padding: 20px 10px;
  }

  .history-container {
    padding: 20px 15px;
  }

  .history-title {
    font-size: 24px;
  }

  .history-tabs {
    gap: 8px;
  }

  .history-tab {
    padding: 8px 15px;
    font-size: 12px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 15px;
  }

  .table-header > div,
  .table-row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .table-header > div::before {
    content: attr(data-label);
    font-weight: bold;
    color: #a855f7;
  }

  .col-date::before { content: "Date: "; }
  .col-amount::before { content: "Amount: "; }
  .col-method::before { content: "Method: "; }
  .col-status::before { content: "Status: "; }
  .col-player::before { content: "Player: "; }
  .col-card::before { content: "Card: "; }

  .table-header > div::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .history-title {
    font-size: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .history-icon {
    font-size: 28px;
  }

  .history-tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  .tab-icon {
    font-size: 14px;
  }
}

/* Footer Section - Sol Pump Style */
.site-footer {
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 40px 0 20px;
  color: #999;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #8f21e2, #a855f7, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact:hover {
  color: #a855f7;
}

.footer-sections {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-column-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #999;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.social-link.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: white;
}

.social-link.discord:hover {
  background: #7289da;
  border-color: #7289da;
  color: white;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.footer-copyright {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-sections {
    width: 100%;
    justify-content: space-between;
    gap: 40px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-description {
    text-align: center;
    max-width: 100%;
  }

  .footer-contact {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-sections {
    flex-direction: column;
    gap: 25px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
}


.referral-claim-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.referral-claim-btn::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: left 0.6s ease;
}

.referral-claim-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.referral-claim-btn:hover::before {
  left: 100%;
}

.referral-claim-btn:disabled {
  background: grey;
}


.referral-claim-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.referral-claim-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.referral-claim-btn.copied::after {
  content: '✓ Copied!';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  animation: copySuccess 0.3s ease-out;
}

.commission-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #ffffff;
}



@media (max-width: 480px) {
  .commission-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 6px;
    font-size: 11px;
  }
  
  .commission-list div::before {
    margin-right: 2px;
  }
}


.commission-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 11px;
  color: #ffffff;
}

.commission-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.1));
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}


.referral-earnings {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  font-family: monospace;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.referral-earnings:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #60a5fa;
}

.referral-earnings:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
