/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap");

/*=====   FONTS  =====*/
/* Using Google Fonts only - removing local font files that don't exist */


/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --first-color: #59005c;
  --first-color-alt: #371f50;
  --title-color: #393939;
  --text-color: #e6e6e6;
  --text-color-light: #A6A6A6;
  --text-color2: #f2db56;
  --text-color3: #d5a423;
  --body-color: #e1b22c;
  --container-color: #FFFFFF;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --h4-font-size: 4rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: bold;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
}

/* Prevent horizontal scroll on all containers */
.bd-container,
.lottery-carousel,
.carousel-cards,
.balotin-container,
.nav,
.section {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent vertical scroll in navigation menu - desktop only */
@media screen and (min-width: 769px) {
  .l-header {
    overflow: visible;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/*========== BALOTIN SECTION ==========*/
.balotin-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 320px) {
  .balotin-container {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
}

/* Additional responsive fixes for small screens */
@media (max-width: 480px) {
  .balotin-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lottery-carousel {
    padding: 0 0.5rem;
  }

  .carousel-cards {
    gap: 0.5rem;
  }
}

.balotin-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(20px);
  min-height: 480px;
}

.balotin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  z-index: 1;
}

.balotin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.usdt-card {
  border: 1px solid rgba(38, 161, 123, 0.3);
  box-shadow: 0 8px 32px rgba(38, 161, 123, 0.1);
}

.usdt-card:hover {
  box-shadow: 0 15px 40px rgba(38, 161, 123, 0.2);
}

.sps-card {
  border: 1px solid rgba(244, 162, 97, 0.3);
  box-shadow: 0 8px 32px rgba(244, 162, 97, 0.1);
}

.sps-card:hover {
  box-shadow: 0 15px 40px rgba(244, 162, 97, 0.2);
}

.balotin-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  z-index: 2;
  height: 120px;
}

.balotin-content {
  background: transparent;
  border-radius: 0 0 20px 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ticket-header-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  filter: brightness(0.9);
}

.crypto-symbols {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crypto-ball {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.usdt-ball {
  background: linear-gradient(135deg, #26a17b, #50e3c2);
}

.sps-ball {
  background: linear-gradient(135deg, #f4a261, #f2cc8f);
}

.ticket-info {
  flex: 1;
  text-align: center;
  color: white;
}

.ticket-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.balotin-logo {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem 0;
  color: #333;
}

.balotin-text {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #f4a261, #e76f51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.balotin-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
}

.ticket-number {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.ticket-side {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  color: white;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ticket-value {
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.crypto-name {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.balotin-footer {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  position: relative;
}

.balotin-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.balotin-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.crypto-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ticket-amount {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.balotin-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.ticket-input {
  flex: 1;
  padding: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ticket-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ticket-input:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.balotin-button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.balotin-button::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.5s ease;
}

.balotin-button:hover::before {
  left: 100%;
}

.usdt-button {
  background: linear-gradient(135deg, #26a17b, #50e3c2);
  border: 1px solid rgba(38, 161, 123, 0.3);
}

.usdt-button:hover {
  background: linear-gradient(135deg, #50e3c2, #26a17b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 161, 123, 0.4);
}

.sps-button {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  border: 1px solid rgba(244, 162, 97, 0.3);
}

.sps-button:hover {
  background: linear-gradient(135deg, #e76f51, #f4a261);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.balotin-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

.history-button {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.history-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/*========== MODAL STYLES ==========*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border-radius: 15px;
  color: white !important;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  color: white;
}

.lottery-type-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.lottery-type-header.usdt {
  background: linear-gradient(135deg, #26a17b, #50e3c2);
}

.lottery-type-header.sps {
  background: linear-gradient(135deg, #f4a261, #e76f51);
}

.lottery-type-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.my-numbers-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.number-entry {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.number-entry:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.number-display {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
  letter-spacing: 3px;
}

.number-info {
  text-align: right;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.number-date {
  display: block;
  margin-bottom: 0.2rem;
}

.number-status {
  display: block;
  font-weight: bold;
}

.status-active {
  color: #4caf50;
}

.status-drawn {
  color: #ff9800;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #ff6b6b;
  text-align: center;
  display: none;
}

.success-message {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #4caf50;
  text-align: center;
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/*========== TICKET CONFIRMATION MODAL ==========*/
.ticket-confirmation {
  text-align: center;
  padding: 1rem;
}

.ticket-success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.ticket-confirmation h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ticket-confirmation p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.ticket-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticket-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.detail-value {
  color: white;
  font-weight: bold;
}

.ticket-number {
  color: #ffd700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.sps-amount {
  color: #4caf50;
  font-size: 1.1rem;
}

.ticket-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.primary-button {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.secondary-button {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

@media screen and (max-width: 768px) {
  .ticket-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

/*========== INTERNATIONAL LOTTERIES ==========*/
.international-lotteries {
  padding: 2rem 0;
}

.international-lotteries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.international-lottery-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  backdrop-filter: blur(20px);
}

.international-lottery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
  border-radius: 15px 15px 0 0;
}

.international-lottery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

.lottery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lottery-logo {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.lottery-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lottery-type h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.lottery-country {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.jackpot-section {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.jackpot-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.jackpot-amount {
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.drawing-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.drawing-time .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  display: block;
}

.drawing-time .value {
  color: white;
  font-weight: bold;
}

.countdown-timer {
  text-align: right;
}

.countdown-display {
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: monospace;
}

.cutoff-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
}

.cutoff-label {
  color: rgba(255, 255, 255, 0.7);
}

.cutoff-time {
  color: #ffd700;
  font-weight: bold;
}

.pricing-info {
  margin-bottom: 1.5rem;
}

.price-line,
.convenience-fee {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.price-label,
.fee-label {
  color: rgba(255, 255, 255, 0.7);
}

.price-value,
.fee-value {
  color: white;
  font-weight: bold;
}

.game-rules {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.rules-title {
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.rules-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

.lottery-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.play-now-btn,
.quick-pick-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.play-now-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.terms-conditions {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.lottery-timing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.5rem 0 0 0;
  font-size: 0.6rem;
  line-height: 1.2;
}

.timing-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  white-space: nowrap;
}

.timing-item i {
  font-size: 0.9rem;
  color: rgba(255, 215, 0, 0.8);
  flex-shrink: 0;
}

.timing-text {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
}

.timing-text strong {
  font-weight: 600;
  color: white;
}

/*========== LOTTERY OFFICIAL RESOURCES ==========*/
.lottery-official-resources {
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.resources-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.06));
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resources-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ff4500, #ffd700);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.resources-banner:hover {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

.resources-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.resources-icon i {
  font-size: 2rem;
  color: white;
}

.resources-content {
  flex: 1;
}

.resources-title {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.3rem 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.resources-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.resources-cta-btn {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  flex-shrink: 0;
}

.resources-cta-btn:hover {
  background: linear-gradient(135deg, #FF1a1a, #DD0000);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}

.resources-cta-btn i {
  font-size: 1.3rem;
}

/*========== YOUTUBE MODAL ==========*/
.youtube-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.youtube-modal.active {
  display: flex;
}

.youtube-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.youtube-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.youtube-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.youtube-modal-header h3 {
  color: #ffd700;
  margin: 0;
  font-size: 1.3rem;
  font-weight: bold;
}

.youtube-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.youtube-close-btn:hover {
  background: rgba(255, 0, 0, 0.8);
  border-color: rgba(255, 0, 0, 1);
  transform: rotate(90deg);
}

.youtube-modal-body {
  padding: 3rem 2rem;
}

.youtube-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.youtube-icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.youtube-icon-wrapper i {
  font-size: 4rem;
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
  }
}

.youtube-content-wrapper h4 {
  color: #ffd700;
  font-size: 1.8rem;
  margin: 0;
  font-weight: bold;
}

.youtube-content-wrapper p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

.youtube-visit-btn {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
  border: 2px solid rgba(255, 215, 0, 0.4);
  padding: 1rem 2.5rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.youtube-visit-btn:hover {
  background: linear-gradient(135deg, #FF3333, #FF0000);
  border-color: rgba(255, 215, 0, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
}

.youtube-visit-btn i {
  font-size: 1.5rem;
}

/*========== LOTTERY MODALS ==========*/
.lottery-play-interface {
  max-width: 600px;
  margin: 0 auto;
}

.jackpot-display {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.jackpot-display .jackpot-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.jackpot-display .jackpot-amount {
  color: #ffd700;
  font-size: 1.8rem;
  font-weight: bold;
}

.number-selection {
  margin-bottom: 2rem;
}

.number-selection h3 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.main-numbers,
.special-numbers {
  margin-bottom: 2rem;
}

.main-numbers label,
.special-numbers label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-weight: bold;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}

.number-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.number-btn:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.number-btn.selected {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-color: #ffd700;
}

.cost-summary {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.cost-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}

.purchase-ticket-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.purchase-ticket-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/*========== QUICK PICK MODAL ==========*/
.quick-pick-result {
  text-align: center;
}

.quick-pick-result h3 {
  color: white;
  margin-bottom: 2rem;
}

.selected-numbers {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.main-numbers-display,
.special-number-display {
  margin-bottom: 1.5rem;
}

.main-numbers-display label,
.special-number-display label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-weight: bold;
}

.numbers-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.number-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.number-ball.main {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
}

.number-ball.special {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.quick-pick-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.generate-again-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.generate-again-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/*========== PURCHASE CONFIRMATION ==========*/
.purchase-confirmation {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.purchase-confirmation h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.purchase-confirmation p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.ticket-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.ticket-numbers {
  margin-bottom: 2rem;
}

.ticket-numbers h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.purchase-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.info-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.info-line:last-child {
  margin-bottom: 0;
}

.info-line span:last-child {
  color: white;
  font-weight: bold;
}

.confirmation-actions {
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .international-lotteries-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 1rem auto 0;
  }

  .international-lottery-card {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .lottery-actions {
    flex-direction: column;
  }

  .jackpot-amount {
    font-size: 1.2rem;
  }

  .lottery-logo {
    width: 50px;
    height: 35px;
  }

  .lottery-type h3 {
    font-size: 1rem;
  }

  .lottery-timing {
    font-size: 0.65rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0 0 0;
    justify-content: space-between;
    flex-direction: row;
  }

  .timing-item {
    font-size: 0.65rem;
    gap: 0.15rem;
    flex: 1;
    justify-content: flex-start;
  }

  .timing-item:last-child {
    justify-content: flex-end;
  }

  .timing-item i {
    font-size: 0.7rem;
  }

  .timing-text {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .resources-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.2rem;
  }

  .resources-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.2rem;
  }

  .youtube-modal-content {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 15px;
  }

  .youtube-modal-header {
    padding: 1rem;
  }

  .youtube-modal-header h3 {
    font-size: 1.1rem;
  }

  .youtube-modal-body {
    padding: 2rem 1.5rem;
  }

  .youtube-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .youtube-icon-wrapper i {
    font-size: 3rem;
  }

  .youtube-content-wrapper h4 {
    font-size: 1.4rem;
  }

  .youtube-content-wrapper p {
    font-size: 1rem;
  }

  .youtube-visit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }
}

/*========== LOTTERY MODAL SYSTEM ==========*/
.lottery-modal,
.review-screen,
.checkout-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 10000;
  color: white !important;
  display: none;
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.lottery-modal.open,
.review-screen.open,
.checkout-screen.open {
  display: block;
}

.lottery-modal .modal-header,
.review-screen .modal-header,
.checkout-screen .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.back-button svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.lottery-title {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
  flex: 1;
}

.balance-display {
  min-width: 80px;
  text-align: right;
}

.balance-value {
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
}

.play-tabs {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block !important;
  visibility: visible !important;
}

.tabs-container {
  display: flex !important;
  gap: 1rem;
  justify-content: center;
  visibility: visible !important;
}

.tab-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
}

.tab-button.active {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.tab-button.completed {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-color: #4CAF50;
  color: white;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.tab-button.completed::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
}

.tab-button:not(.completed):not(.active) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
}

.tab-button:not(.completed):not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
}

.done-message {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(76, 175, 80, 0.1);
  border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.done-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.done-check span {
  color: white;
  font-weight: bold;
}

.quick-pick-btn {
  background: linear-gradient(135deg, #9C27B0, #673AB7);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.quick-pick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.quick-pick-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.number-selection-container {
  padding: 2rem;
}

.main-numbers {
  margin-bottom: 2rem;
}

.main-numbers .number-btn {
  width: 60px;
  height: 60px;
  margin: 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-numbers .number-btn:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.main-numbers .number-btn.selected {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-color: #ffd700;
}

.special-numbers {
  margin-top: 2rem;
}

.special-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: bold;
}

.special-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.special-name {
  color: #ffd700;
}

.special-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.5rem;
  max-width: 400px;
}

.special-numbers-grid .number-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.special-numbers-grid .number-btn:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.special-numbers-grid .number-btn.selected {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  border-color: #ff6b6b;
}

.review-order-container {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-order-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.review-order-btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.review-order-btn.disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.review-order-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.price {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.1rem;
}

.price-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.price-details-panel {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  display: none;
}

.price-details-panel.open {
  display: block;
}

.price-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: white;
}

.price-detail-row:last-child {
  margin-bottom: 0;
}

.price-detail-label {
  color: rgba(255, 255, 255, 0.8);
}

.price-detail-value {
  color: #ffd700;
  font-weight: bold;
}

.cutoff-banner {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff9800;
  font-weight: bold;
}

.cutoff-banner .icon {
  width: 20px;
  height: 20px;
  stroke: #ff9800;
  stroke-width: 2;
  fill: none;
}

.selected-lines-container {
  padding: 2rem;
  min-height: 200px;
}

.selected-line {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-line:last-child {
  margin-bottom: 0;
}

.line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.line-number {
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
}

.delete-line {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.delete-line:hover {
  background: rgba(255, 107, 107, 0.3);
  transform: scale(1.1);
}

.line-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-numbers-display {
  display: flex;
  gap: 0.5rem;
}

.number-display {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.special-number-display {
  position: relative;
  padding-left: 1rem;
}

.special-number-display::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.special-number-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.no-lines {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 2rem;
}

/*========== LOTTERY TICKET CONFIRMATION MODAL ==========*/
.lottery-ticket-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  backdrop-filter: blur(5px);
}

.lottery-ticket-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.lottery-ticket-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.lottery-ticket-header h2 {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
}

.lottery-ticket-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.lottery-ticket-logo img {
  max-height: 50px;
  width: auto;
}

.lottery-ticket-body {
  margin-bottom: 2rem;
}

.lottery-ticket-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lottery-info-row:last-child {
  margin-bottom: 0;
}

.lottery-info-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.lottery-info-value {
  color: #ffd700;
  font-weight: bold;
}

.lottery-ticket-numbers {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-ticket-numbers h3 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  text-align: center;
}

.ticket-line-info {
  color: white;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid #ffd700;
}

.ticket-line-info:last-child {
  margin-bottom: 0;
}

.ticket-line-info strong {
  color: #ffd700;
}

.lottery-ticket-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-price-breakdown {
  color: white;
}

.lottery-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lottery-price-row:last-child {
  margin-bottom: 0;
}

.lottery-price-row.lottery-total {
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  font-size: 1.1rem;
}

.lottery-price-row span:last-child {
  color: #ffd700;
  font-weight: bold;
}

.lottery-ticket-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lottery-ticket-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 140px;
}

.lottery-btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
}

.lottery-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.lottery-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lottery-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .lottery-ticket-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .lottery-ticket-header h2 {
    font-size: 1.3rem;
  }

  .lottery-ticket-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .lottery-ticket-btn {
    width: 100%;
    min-width: auto;
  }
}

/*========== USER TICKETS SECTION ==========*/
.user-tickets {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  margin-top: 2rem;
}

.user-tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-tickets-header .section-title-small {
  color: #ffd700;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}

.user-address-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.address-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.user-address {
  color: #ffd700;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: bold;
}

.tickets-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-color: #ffd700;
}

.tickets-container {
  min-height: 100%;
  position: relative;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 1rem;
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 2rem;
}

.tickets-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
  border-radius: 15px 15px 0 0;
}

.tickets-table th {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.tickets-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.tickets-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.table-lottery-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-lottery-logo {
  width: 35px;
  height: 25px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-lottery-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.table-lottery-name {
  color: #ffd700;
  font-weight: bold;
  font-size: 0.85rem;
}

.table-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.table-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.table-number-ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.7rem;
}

.table-number-ball.main {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
}

.table-number-ball.special {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.table-number-separator {
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  margin: 0 0.2rem;
}

.table-total {
  color: #ffd700;
  font-weight: bold;
  font-size: 0.9rem;
}

.table-status {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.table-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.table-status.active {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.table-status.completed {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.4);
}

.view-details-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-details-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/*========== TICKET DETAIL MODAL ==========*/
.ticket-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.ticket-detail-modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.modal-content {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  border-radius: 20px;
  max-width: 800px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 215, 0, 0.1);
}

.modal-header h3 {
  color: #ffd700;
  margin: 0;
  font-size: 1.3rem;
}

.close-modal-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd700;
}

.modal-body {
  padding: 2rem;
}

.modal-ticket-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.modal-lottery-logo {
  width: 80px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-lottery-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-lottery-details h3 {
  color: #ffd700;
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.modal-lottery-details p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
}

.modal-numbers-section {
  margin-bottom: 2rem;
}

.modal-numbers-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.modal-ticket-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #ffd700;
}

.modal-line-label {
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
  min-width: 70px;
}

.modal-line-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-main-numbers {
  display: flex;
  gap: 0.3rem;
}

.modal-number-ball {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.modal-number-ball.main {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
}

.modal-number-ball.special {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.modal-number-separator {
  color: white;
  font-weight: bold;
  font-size: 1.4rem;
  margin: 0 0.5rem;
}

.modal-ticket-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.modal-summary-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.modal-summary-value {
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
}

.modal-summary-item.total {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.modal-summary-item.total .modal-summary-value {
  font-size: 1.2rem;
}

.no-tickets {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 300px;
  gap: 1rem;
}

.no-tickets-icon {
  font-size: 4rem;
  opacity: 0.7;
}

.no-tickets h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 0;
}

.no-tickets p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .user-tickets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-address-display {
    align-self: stretch;
    justify-content: center;
  }

  .user-address {
    font-size: 0.8rem;
  }

  .tickets-filter {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .tickets-table {
    font-size: 0.8rem;
  }

  .tickets-table th,
  .tickets-table td {
    padding: 0.8rem 0.5rem;
  }

  .table-lottery-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .table-lottery-logo {
    width: 30px;
    height: 20px;
  }

  .table-lottery-name {
    font-size: 0.75rem;
  }

  .table-date {
    font-size: 0.7rem;
  }

  .table-numbers {
    gap: 0.2rem;
  }

  .table-number-ball {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .table-total {
    font-size: 0.8rem;
  }

  .table-status {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  .view-details-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-ticket-info {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .modal-lottery-logo {
    width: 60px;
    height: 40px;
    margin: 0 auto;
  }

  .modal-ticket-line {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .modal-line-numbers {
    width: 100%;
    justify-content: center;
  }

  .modal-number-ball {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .modal-ticket-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.checkout-container {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.checkout-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.checkout-content {
  padding: 2rem;
}

.checkout-content h2 {
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.cutoff-info {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff9800;
  font-weight: bold;
}

.cutoff-info .icon {
  width: 20px;
  height: 20px;
  stroke: #ff9800;
  stroke-width: 2;
  fill: none;
}

.ticket-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.ticket-details h3 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: white;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.total-row {
  font-weight: bold;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-button-container {
  margin-bottom: 2rem;
}

.payment-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.payment-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(51, 51, 51, 0.3);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.legal-notice {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
}

.legal-notice a {
  color: #ffd700;
  text-decoration: none;
}

.legal-notice a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .lottery-modal .modal-header,
  .review-screen .modal-header,
  .checkout-screen .modal-header {
    padding: 1rem;
  }

  .lottery-title {
    font-size: 1.1rem;
  }

  .number-selection-container {
    padding: 1rem;
  }

  .main-numbers .number-btn {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }

  .special-numbers-grid {
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
  }

  .special-numbers-grid .number-btn {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }

  .tabs-container {
    gap: 0.5rem;
  }

  .tab-button {
    width: 45px;
    height: 45px;
  }

  .checkout-content {
    padding: 1rem;
  }

  .ticket-details {
    padding: 1.5rem;
  }
}

/*========== BALOTIN STATS ==========*/
.balotin-stats {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  z-index: 1;
}

.stat-box:nth-child(1)::before {
  content: '👥';
  background: transparent;
  font-size: 0.8rem;
}

.stat-box:nth-child(2)::before {
  content: '🎯';
  background: transparent;
  font-size: 0.8rem;
}

.stat-box:nth-child(3)::before {
  content: '🏆';
  background: transparent;
  font-size: 0.8rem;
}

.stat-box:nth-child(4)::before {
  content: '💰';
  background: transparent;
  font-size: 0.8rem;
}

.stat-box h6 {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
  margin-top: 1rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-box p {
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-box small {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
}

/*========== WINNER SECTION ==========*/
.winner-section {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.winner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.03), rgba(255, 215, 0, 0.08));
  border-radius: 0;
}

.winner-title {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 1;
}

.winner-balls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.winner-ball {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.winner-ball:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/*========== HISTORY BUTTON ==========*/
.history-button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.history-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/*========== BALOTIN ACTIVE STATE ==========*/
.balotin-active {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.balotin-active .ticket-input {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

@media screen and (max-width: 768px) {
  .balotin-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .balotin-card {
    margin: 0 0.5rem;
    min-height: 420px;
  }

  .balotin-header {
    height: 100px;
  }

  .ticket-header-image {
    height: 100px;
  }

  .balotin-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .ticket-input {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stat-box {
    padding: 0.6rem;
  }

  .stat-box h6 {
    font-size: 0.9rem;
  }

  .stat-box p {
    font-size: 0.7rem;
  }

  .winner-balls {
    gap: 0.4rem;
  }

  .winner-ball {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .balotin-button {
    width: 100%;
    padding: 0.7rem;
  }
}

/*========== MIS NUMEROS MODAL STYLES ==========*/
.lottery-type-header.usdt {
  background: linear-gradient(135deg, rgba(38, 161, 123, 0.2), rgba(38, 161, 123, 0.1));
  border-color: rgba(38, 161, 123, 0.3);
}

.lottery-type-header.sps {
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.2), rgba(244, 162, 97, 0.1));
  border-color: rgba(244, 162, 97, 0.3);
}

.lottery-type-title {
  margin: 0;
  font-size: 1.2rem;
  color: #ffd700;
  font-weight: bold;
}

.number-entry {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.number-entry:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.number-display-container {
  display: flex;
  align-items: center;
}

.number-balls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.number-ball-display {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.number-ball-display.usdt-ball {
  background: linear-gradient(135deg, #26a17b, #50e3c2);
  border-color: rgba(38, 161, 123, 0.8);
}

.number-ball-display.sps-ball {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  border-color: rgba(244, 162, 97, 0.8);
}

.number-ball-display:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.number-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.number-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.number-status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-active {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-completed {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.4);
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/*========== RESPONSIVE FOR MODAL ==========*/
@media screen and (max-width: 768px) {
  .modal-content {
    width: 98%;
    max-width: 95vw;
  }

  .number-ball-display {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .number-balls {
    gap: 0.6rem;
  }

  .number-entry {
    padding: 1.2rem;
    margin-bottom: 0.8rem;
  }
}

  .number-status {
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
  }
}

/*========== SLOT GAME MODAL ==========*/
.slot-game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
  z-index: 10000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease;
}

.slot-game-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slot-machine-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-radius: 0;
  border: none;
  box-shadow: 
    0 0 50px rgba(255, 215, 0, 0.3),
    inset 0 0 50px rgba(255, 215, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.slot-machine-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700);
  z-index: -1;
  border-radius: 30px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  to {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

.slot-machine-header {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 3px solid #333;
  position: relative;
}

.slot-machine-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffd700);
  animation: rainbow 3s linear infinite;
}

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

.slot-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #333;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slot-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slot-game-title {
  display: none;
}

.slot-machine-body {
  height: calc(100% - 80px);
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  position: relative;
  overflow: hidden;
}

.slot-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #001122, #000000);
  border: 4px solid #333;
  border-radius: 15px;
  margin: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slot-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
  animation: screenGlow 4s ease-in-out infinite;
}

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

.loading-container {
  text-align: center;
  color: #ffd700;
  z-index: 10;
}

.slot-logo {
  margin-bottom: 2rem;
}

.spinning-coin {
  font-size: 4rem;
  animation: spin 2s linear infinite;
  display: inline-block;
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.slot-logo h3 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

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

.loading-bar-container {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loading-bar {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ffd700;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
  border-radius: 8px;
  transition: width 0.3s ease;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.loading-percentage {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd700;
  min-width: 50px;
}

.loading-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.game-container {
  text-align: center;
  color: #ffd700;
}

.game-ready h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.game-ready p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.reel {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: reelGlow 2s ease-in-out infinite alternate;
}

@keyframes reelGlow {
  from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

.spin-button {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.spin-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.slot-machine-footer {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  padding: 1rem 2rem;
  border-top: 3px solid #ffd700;
}

.slot-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #ffd700;
  font-weight: bold;
}

.bet-display {
  display: none;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.balance-amount {
  background: rgba(255, 215, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 2px solid #ffd700;
  font-size: 1.1rem;
}

/*========== RESPONSIVE SLOT MODAL ==========*/
@media screen and (max-width: 768px) {
  .slot-machine-frame {
    width: 100%;
    height: 100%;
    border-width: 0;
  }

  .slot-machine-header {
    padding: 0.8rem 1rem;
  }

  .slot-close-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .spinning-coin {
    font-size: 3rem;
  }

  .slot-logo h3 {
    font-size: 1.5rem;
  }

  .reel {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .spin-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }

  .slot-controls {
    justify-content: center;
  }
}

/*========== BONUS SYSTEM ==========*/
.bonus-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.bonus-card .bonuses__detail {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  margin: 1rem 0;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bonus-card .bonuses__name {
  color: #ffd700;
  font-size: 1.3rem;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bonus-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.bonus-btn:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/*========== NEW BONUS CARDS DESIGN ==========*/
.bonuses-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bonuses-header .section-description {
  max-width: 600px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/*========== BONUSES CAROUSEL ==========*/
.bonuses-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.bonuses-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.bonuses-grid {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
  padding: 1rem 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn i {
  font-size: 1.6rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-btn:disabled,
.carousel-btn[style*="opacity: 0.5"] {
  opacity: 0.3 !important;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.carousel-btn:disabled:hover,
.carousel-btn[style*="pointer-events: none"]:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-50%) scale(0.9);
}

/* Desktop: mostrar 3 cards */
@media screen and (min-width: 1024px) {
  .bonuses-carousel-container {
    padding: 0 70px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .bonuses-carousel-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .bonuses-grid {
    gap: 2rem;
    padding: 0.5rem 0 2rem 0;
    align-items: stretch;
  }

  .bonus-card-new {
    min-width: calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    flex-shrink: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .carousel-btn {
    width: 60px;
    height: 60px;
  }

  .carousel-btn i {
    font-size: 1.8rem;
  }

  .carousel-btn-prev {
    left: 5px;
  }

  .carousel-btn-next {
    right: 5px;
  }

  /* Desktop Hero Section Optimization */
  .home__container {
    height: calc(100vh - var(--header-height) - 40px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: visible !important;
  }

  .home__title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }

  .home__subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    max-width: 800px;
  }

  /* Desktop Benefits Grid - Ensure flex layout for metaverso style */
  .benefits-grid {
    display: flex !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 3rem auto !important;
    max-width: 1200px !important;
  }

  .benefit-item {
    min-width: 200px !important;
    padding: 2rem 1.5rem !important;
    justify-content: center !important;
  }
  
  /* Ensure promo-grid also follows desktop layout if used */
  .promo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 3rem auto !important;
    height: auto !important;
  }

  .benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
  }

  .benefit-item span {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Desktop CTA Section */
  .home_contact {
    margin-top: 3rem;
    gap: 1.5rem;
  }

  .primary-cta {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    min-width: 280px;
  }

  .cta-micro-copy {
    font-size: 1rem;
    margin-top: 0.8rem;
  }

  /* Desktop CTA Button Optimization */
  .home_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    z-index: 10;
    position: relative;
  }

  .primary-cta {
    font-size: 1.1rem !important;
    padding: 1rem 2.5rem !important;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    transform: translateZ(0);
    transition: all 0.3s ease;
  }

  .primary-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6) !important;
  }

  /* Desktop Authenticated State Optimizations */
  .user-card-main {
    max-width: 500px;
    margin: 2rem auto;
  }

  .user-card-header {
    margin-bottom: 2rem;
  }

  .user-name {
    font-size: 2rem;
  }

  .balance-amount-main {
    font-size: 3.2rem;
  }

  .balance-usd-equivalent {
    font-size: 1.4rem;
  }

  /* Desktop Floating Indicators */
  .hero-right-indicators {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    gap: 1.5rem;
  }

  .floating-indicator {
    min-width: 200px;
    padding: 1.2rem 1.5rem;
  }

  .indicator-number {
    font-size: 1.8rem;
  }

  .indicator-label {
    font-size: 1rem;
  }

  /* Ocultar botones de navegación si todas las cards caben en pantalla */
  .bonuses-carousel-container:has(.bonuses-grid[data-total-cards="3"]) .carousel-btn {
    display: none;
  }
}

/* Tablet: mostrar 2 cards */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .bonus-card-new {
    min-width: calc(50% - 1rem);
    flex-shrink: 0;
  }

  .bonuses-carousel-container {
    padding: 0 55px;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
  }

  .carousel-btn i {
    font-size: 1.4rem;
  }
}

/* Mobile: mostrar 1 card */
@media screen and (max-width: 767px) {
  .bonuses-carousel-container {
    padding: 0 7px;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .bonuses-carousel-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .bonuses-grid {
    gap: 20px;
    padding: 0.5rem 0 2rem 0;
    align-items: center;
  }

  .bonus-card-new {
    width: calc(100vw - 100px);
    min-width: calc(100vw - 100px);
    max-width: calc(100vw - 100px);
    flex-shrink: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    z-index: 1000;
  }

  .carousel-btn i {
    font-size: 1.3rem;
  }

  .carousel-btn-prev {
    left: -11px;
  }

  .carousel-btn-next {
    right: 36px;
  }
}

/* Indicadores de carrusel para mobile */
@media screen and (max-width: 767px) {
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .carousel-indicator.active {
    background: #ffd700;
    transform: scale(1.2);
  }
}

/* Promo Carousel - Solo Mobile */
@media screen and (max-width: 767px) {
  .promo-carousel-mobile {
    position: relative;
    overflow: hidden;
    padding: 0 7px;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .promo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .promo-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    padding: 0.5rem 0 2rem 0;
  }

  .promo-carousel-mobile .space-card {
    width: calc(100vw - 100px);
    min-width: calc(100vw - 100px);
    max-width: calc(100vw - 100px);
    flex-shrink: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .promo-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .promo-carousel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
  }

  .promo-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
  }

  .promo-carousel-btn i {
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .promo-carousel-btn-prev {
    left: 5px;
  }

  .promo-carousel-btn-next {
    right: 36px;
  }

  .promo-carousel-btn:disabled,
  .promo-carousel-btn[style*="opacity: 0.3"] {
    opacity: 0.3 !important;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
  }

  .promo-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .promo-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .promo-carousel-indicator.active {
    background: #ffd700;
    transform: scale(1.2);
  }

  /* Asegurar que el grid original no interfiera en mobile */
  .promo-carousel-mobile.spaces-grid {
    display: block;
    grid-template-columns: none;
    gap: 0;
  }
}

/* Contact Section - Redesigned */
.contact-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-featured {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.contact-icon i {
  font-size: 2rem;
  color: #1a1a2e;
}

.contact-card-title {
  font-size: 1.4rem;
  color: #ffd700;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.contact-info {
  margin-top: 1rem;
}

.contact-detail {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-email {
  color: #ffd700;
  font-weight: 600;
  margin: 0.5rem 0;
  font-size: 1rem;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.contact-brands {
  position: relative;
  z-index: 2;
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.brand-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.brand-item img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.brand-item:hover img {
  filter: brightness(1.3);
  transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  .brands-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .brand-item {
    padding: 1rem;
  }

  .brand-item img {
    width: 100px;
    height: 70px;
  }
}

@media screen and (max-width: 480px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .brands-container {
    grid-template-columns: 1fr;
  }
}

/* Streaming Modals */
.streaming-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.streaming-modal.show {
  opacity: 1;
  visibility: visible;
}

.streaming-modal-content {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Message Modal */
.message-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.streaming-message-text {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Iframe Modal */
.iframe-modal-content {
  width: 95vw;
  height: 90vh;
  background: #000;
  border: 3px solid rgba(255, 215, 0, 0.5);
}

.streaming-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0.7));
  border: none;
  border-radius: 50%;
  color: #1a1a2e;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.streaming-close-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.streaming-close-btn:active {
  transform: scale(0.95);
}

#streaming-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 10px 10px;
}

/* Responsive adjustments for streaming modals */
@media screen and (max-width: 768px) {
  .iframe-modal-content {
    width: 98vw;
    height: 95vh;
  }

  .message-modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .streaming-message-text {
    font-size: 1rem;
  }

  .streaming-close-btn {
    width: 45px;
    height: 45px;
    top: 10px;
    right: 10px;
    font-size: 1.3rem;
  }
}

.bonus-card-new {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bonus-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #4ecdc4, #ff6b6b, #ffd700);
  background-size: 200% 100%;
  animation: rainbow-border 3s linear infinite;
}

@keyframes rainbow-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.bonus-card-new:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 215, 0, 0.1);
}

.bonus-card-new.starter:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(78, 205, 196, 0.2);
}

.bonus-card-new.standard:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 107, 107, 0.2);
}

.bonus-card-new.premium:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(138, 43, 226, 0.2);
}

.bonus-card-new.elite:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 215, 0, 0.3);
}

.bonus-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.bonus-badge.featured {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  animation: pulse-badge 2s ease-in-out infinite;
}

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

.bonus-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.bonus-icon i {
  font-size: 1.8rem;
  color: #ffd700;
}

.bonus-amount {
  margin-bottom: 1rem;
  text-align: left;
}

.amount-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  line-height: 1;
}

.amount-currency {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-left: 0.5rem;
}

.bonus-title {
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 0.8rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bonus-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.bonus-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.feature-item i {
  color: #4ecdc4;
  font-size: 1rem;
  flex-shrink: 0;
}

.bonus-btn-new {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.bonus-btn-new.primary {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.bonus-btn-new.primary:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.bonus-btn-new i {
  transition: transform 0.3s ease;
}

.bonus-btn-new:hover i {
  transform: translateX(4px);
}

/* Variant colors for different bonus types */
.bonus-card-new.starter .bonus-icon {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
  border-color: rgba(78, 205, 196, 0.3);
}

.bonus-card-new.starter .bonus-icon i {
  color: #4ecdc4;
}

.bonus-card-new.standard .bonus-icon {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  border-color: rgba(255, 107, 107, 0.3);
}

.bonus-card-new.standard .bonus-icon i {
  color: #ff6b6b;
}

.bonus-card-new.premium .bonus-icon {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
  border-color: rgba(138, 43, 226, 0.3);
}

.bonus-card-new.premium .bonus-icon i {
  color: #8a2be2;
}

.bonus-card-new.elite .bonus-icon {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.4);
  animation: elite-glow 2s ease-in-out infinite alternate;
}

@keyframes elite-glow {
  from { box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
  to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
}

/*========== BONUS CARDS RESPONSIVE ==========*/
@media screen and (max-width: 768px) {
  .bonuses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0rem;
  }

  .bonus-card-new {
    padding: 1.5rem;
  }

  .bonus-badge {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .bonus-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .bonus-icon i {
    font-size: 1.5rem;
  }

  .amount-number {
    font-size: 2rem;
  }

  .amount-currency {
    font-size: 1rem;
  }

  .bonus-title {
    font-size: 1.2rem;
  }

  .bonus-description {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .feature-item {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .bonus-btn-new {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
}

/*========== BONUS MODAL ==========*/
.bonus-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.bonus-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bonus-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #ffd700;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  position: relative;
}

.bonus-modal-header {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 1.5rem 2rem;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #333;
}

.bonus-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bonus-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bonus-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.bonus-modal-body {
  padding: 2rem;
  color: white;
}

.bonus-amount-display {
  text-align: center;
  margin-bottom: 2rem;
}

.bonus-amount {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  margin-bottom: 0.5rem;
}

.bonus-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*========== NEW BONUS MODAL DESIGN ==========*/
.bonus-modal-content-new {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
  border-radius: 25px;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.1);
  position: relative;
  backdrop-filter: blur(20px);
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bonus-modal-header-new {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 2rem;
  border-radius: 25px 25px 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.bonus-modal-header-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

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

.modal-bonus-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-bonus-icon i {
  font-size: 1.8rem;
  color: #333;
}

.bonus-modal-header-new h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  flex-grow: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bonus-close-btn-new {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #333;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.bonus-close-btn-new:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.bonus-close-btn-new i {
  font-size: 1.5rem;
}

.bonus-modal-body-new {
  padding: 2rem;
  color: white;
}

.bonus-info-new {
  margin-bottom: 2rem;
}

.bonus-amount-display-new {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.bonus-amount-new {
  display: block;
  font-size: 3.2rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.bonus-label-new {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.bonus-description-new {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border-left: 4px solid #4ecdc4;
}

.bonus-description-new p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.bonus-details-new {
  margin-bottom: 2rem;
}

.bonus-detail-item-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.bonus-detail-item-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.detail-icon i {
  font-size: 1.2rem;
  color: #4ecdc4;
}

.detail-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 1rem;
  color: white;
  font-weight: 600;
}

.bonus-benefits {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.bonus-benefits h4 {
  margin: 0 0 1rem 0;
  color: #4ecdc4;
  font-size: 1.1rem;
  font-weight: bold;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.benefits-list li:last-child {
  margin-bottom: 0;
}

.benefits-list i {
  color: #4ecdc4;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bonus-actions-new {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bonus-action-btn-new {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.bonus-action-btn-new.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.bonus-action-btn-new.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.bonus-action-btn-new.primary {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
  border: 2px solid transparent;
}

.bonus-action-btn-new.primary:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.bonus-action-btn-new i {
  font-size: 1.1rem;
}

/*========== BONUS MODAL RESPONSIVE ==========*/
@media screen and (max-width: 768px) {
  .bonus-modal-content-new {
    width: 95%;
    margin: 1rem;
    max-height: 85vh;
  }

  .bonus-modal-header-new {
    padding: 1.5rem;
  }

  .modal-bonus-icon {
    width: 40px;
    height: 40px;
  }

  .modal-bonus-icon i {
    font-size: 1.5rem;
  }

  .bonus-modal-header-new h2 {
    font-size: 1.4rem;
  }

  .bonus-modal-body-new {
    padding: 1.5rem;
  }

  .bonus-amount-new {
    font-size: 2.5rem;
  }

  .bonus-actions-new {
    flex-direction: column;
    gap: 0.8rem;
  }

  .bonus-action-btn-new {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  .detail-icon {
    width: 35px;
    height: 35px;
  }

  .detail-icon i {
    font-size: 1rem;
  }
}

.bonus-description {
  margin-bottom: 2rem;
  text-align: center;
}

.bonus-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.bonus-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bonus-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bonus-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: bold;
  color: #ffd700;
}

.detail-value {
  color: rgba(255, 255, 255, 0.9);
}

.bonus-modal-footer {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bonus-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.bonus-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.bonus-purchase-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.bonus-purchase-btn:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/*========== PURCHASE CONFIRMATION MODAL ==========*/
.purchase-confirm {
  max-width: 600px;
}

.purchase-success {
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.purchase-success h2 {
  color: #4ecdc4;
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
}

.purchase-success p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0;
}

.purchase-details {
  padding: 2rem;
}

.purchase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-item:last-child {
  border-bottom: none;
}

.purchase-label {
  font-weight: bold;
  color: #ffd700;
  font-size: 1.1rem;
}

.purchase-value {
  color: white;
  font-size: 1.1rem;
}

.status-active {
  color: #4ecdc4;
  font-weight: bold;
}

.purchase-actions {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bonus-action-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
  font-size: 1rem;
}

.bonus-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.bonus-action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.bonus-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/*========== RESPONSIVE BONUS MODALS ==========*/
@media screen and (max-width: 768px) {
  .bonus-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .bonus-modal-header {
    padding: 1rem 1.5rem;
  }

  .bonus-modal-header h2 {
    font-size: 1.5rem;
  }

  .bonus-modal-body {
    padding: 1.5rem;
  }

  .bonus-amount {
    font-size: 2.5rem;
  }

  .bonus-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }

  .purchase-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bonus-action-btn {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27302C;
}

/*========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-image: url('../imagenes/BG.png');
  background-position: top;
  background-repeat: no-repeat;
  margin: 0;
  color: var(--container-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #000;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section {
  padding: 1rem 0 2rem;

}




.Games {
  padding: 1rem 0 2rem;
  margin-top: 6rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title_numer {
  font-size: var(--h4-font-size);
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--container-color);
  margin-bottom: var(--mb-1);
}

.section-subtitle {
  display: block;
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);

}

.review-carousel {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.review-slide {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  text-align: center;
}

.review-slide.active {
  opacity: 1;
  position: relative;
}

.review-subtitle {
  display: block;
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
  margin: 1rem;
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 1240px;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color);
  padding-top: env(safe-area-inset-top);      /* ✅ NUEVO */
  padding-left: env(safe-area-inset-left);    /* ✅ NUEVO */
  padding-right: env(safe-area-inset-right);  /* ✅ NUEVO */
}

/*========== NAV ==========*/
.nav {
  max-width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

/* Fix desktop navigation overflow only */
@media screen and (min-width: 769px) {
  .nav {
    overflow: visible;
  }

  .nav__menu {
    overflow: visible;
  }

  .nav__list {
    display: flex;
    align-items: center;
    overflow: visible;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item {
  margin-bottom: var(--mb-2);
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-color);
  font-weight: var(--font-bold);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__link {
  transition: .3s;
}

.nav__link:hover {
  color: var(--text-color);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: var(--header-height);
}

/* Active menu */
.active-link {
  color: var(--text-color-light);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: var(--first-color);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover {
  background-color: var(--first-color-alt);
}

.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrolltop */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/

/* Dynamic Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
  color: #333;
  text-align: center;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  animation: bannerPulse 3s ease-in-out infinite alternate;
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  width: 100%;
}

/* Hide hero banner on desktop */
@media screen and (min-width: 1024px) {
  .hero-banner {
    display: none !important;
  }
}

@keyframes bannerPulse {
  0% { box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3); }
  100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6); }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .user-metric-card.highlight .metric-number,
  .winner-notification-card,
  .benefit-item,
  .primary-cta,
  .secondary-cta {
    animation: none;
    transition: none;
  }
  
  .home__title {
    text-shadow: none;
    filter: none;
  }
}

/* Mobile motion reduction */
@media screen and (max-width: 768px) {
  .user-metric-card.highlight .metric-number {
    animation: none;
  }
  
  .user-metric-card:hover {
    transform: none;
  }
}

/* Tablet and mobile breakpoints */
@media screen and (max-width: 768px) {
  .hero-right-content {
    display: none;
  }
  
  .home__container {
    height: calc(100vh - var(--header-height) - 40px);
  }
}


.banner-content {
  max-width: 1200px;
  margin: 0 auto;
}

.home__container {
  height: calc(100vh - var(--header-height) - 60px);
  align-content: center;
  position: relative;
}

.home__title {
  font-family: 'Oswald', sans-serif;
  font-style: italic;
  font-size: 3.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #f2db56, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.2);
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
  word-wrap: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.home__subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 90%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Badge - Metaverso Style */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f2db56, #d5a423);
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    width: fit-content;
    animation: float 3s ease-in-out infinite;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Benefits Grid with Metaverso Effects */
.benefits-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(15px);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f2db56, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.benefit-item:hover::before {
  opacity: 1;
}

.benefit-item.highlight {
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.benefit-item.highlight .benefit-icon {
  animation: pulse 2.5s ease-in-out infinite;
}

.benefit-icon {
  font-size: 2.8rem;
  color: #f2db56;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.benefit-item span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Call to Actions */
.home_contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.primary-cta {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #333 !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
  color: #333 !important;
}

.secondary-cta {
  background: transparent !important;
  color: var(--text-color) !important;
  border: 2px solid rgba(255, 215, 0, 0.5);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.secondary-cta:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  border-color: #FFD700;
  color: #FFD700 !important;
}

/* CTA Micro-copy */
.cta-micro-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem 0;
  text-align: center;
  font-style: italic;
}

/* Hero Right Content */
.hero-right-content {
  position: absolute;
  right: -5%;
  top: 0;
  height: 100%;
  width: 50%;
  pointer-events: none;
  z-index: 1;
  background: url('/imagenes/casino-table.jpg') center/cover no-repeat;
  border-radius: 20px 0 0 20px;
}

/* Dynamic Stats */
.hero-stats {
  position: absolute;
  top: 15%;
  right: 8%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: auto;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 160px;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.stat-item.highlight {
  border-color: #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: statPulse 2s ease-in-out infinite alternate;
}

@keyframes statPulse {
  0% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
  100% { box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6); }
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Winner Notification */
.winner-notification {
  position: absolute;
  bottom: 20%;
  right: 5%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  animation: winnerSlideIn 0.5s ease-out;
  pointer-events: auto;
  max-width: 180px;
}

@keyframes winnerSlideIn {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.winner-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.winner-content i {
  font-size: 1.5rem;
  color: #22c55e;
}

.winner-text {
  display: flex;
  flex-direction: column;
}

.winner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.winner-amount {
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 700;
}

/* User Card - Vertical Hierarchy Layout */
.authenticated-content {
  text-align: left;
}

.user-card-main {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.7));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

/* Card Header - User greeting and avatar */
.user-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-avatar {
  flex-shrink: 0;
}

#userAvatar {
  font-size: 2.5rem;
  color: #FFD700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border-radius: 50%;
  padding: 0.6rem;
  border: 2px solid rgba(255, 215, 0, 0.4);
}

.user-greeting {
  flex: 1;
}

.user-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

/* Card Balance - Primary focus */
.user-card-balance {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-primary {
  margin-bottom: 0.5rem;
}

.balance-amount-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  line-height: 1;
  display: block;
}

.balance-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.balance-usd-equivalent {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.balance-label-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Card Footer - Action Buttons Grid */
.user-card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-top: 0.8rem;
}

.user-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.user-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-action-btn:hover::before {
  opacity: 1;
}

.user-action-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.user-action-btn span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.user-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.user-action-btn:hover i {
  transform: scale(1.15);
}

.user-action-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Button Color Variants */
.wallet-btn {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
}

.wallet-btn i,
.wallet-btn span {
  color: #00d4ff;
}

.wallet-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.25);
}

.send-btn {
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
}

.send-btn i,
.send-btn span {
  color: #00ff88;
}

.send-btn:hover {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.25);
}

.withdraw-btn {
  border-color: rgba(255, 165, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.05));
}

.withdraw-btn i,
.withdraw-btn span {
  color: #ffa500;
}

.withdraw-btn:hover {
  border-color: rgba(255, 165, 0, 0.5);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.25);
}

.logout-btn {
  border-color: rgba(255, 71, 87, 0.3);
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
}

.logout-btn i,
.logout-btn span {
  color: #ff4757;
}

.logout-btn:hover {
  border-color: rgba(255, 71, 87, 0.5);
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.25);
}

/* MOBILE LAYOUT FIX - MÁXIMA PRIORIDAD CON !important */
@media screen and (max-width: 767px) {
  /* FORZAR sin scroll horizontal GLOBAL */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  * {
    max-width: 100% !important;
  }
  
  /* FIX CRÍTICO: Forzar grid de 1 columna (CAUSA RAÍZ DEL SCROLL) */
  section#home .home__container.bd-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    overflow-x: hidden !important;
  }
  
  /* Ocultar mesa de fondo en mobile */
  .hero-right-content {
    display: none !important;
  }
  
  /* Contenedores padres - FORZAR ancho completo y eliminar overflow */
  section#home .home__container,
  section#home .authenticated-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Card principal - CENTRADA y sin cortes */
  section#home .authenticated-content .user-card-main {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.875rem !important;
    overflow: hidden !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Header compacto - Avatar e íconos más pequeños */
  section#home .authenticated-content .user-card-header {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  section#home .authenticated-content #userAvatar {
    font-size: 1.875rem !important;
    padding: 0.5rem !important;
  }
  
  /* Texto header más pequeño para que quepa el email */
  section#home .authenticated-content .user-name {
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }
  
  section#home .authenticated-content .user-name span {
    font-size: inherit !important;
  }
  
  /* Balance más compacto */
  section#home .authenticated-content .user-card-balance {
    padding: 0.75rem 0 !important;
    margin-bottom: 1rem !important;
  }
  
  section#home .authenticated-content .balance-amount-main {
    font-size: 1.8rem !important;
  }
  
  section#home .authenticated-content .balance-usd-equivalent {
    font-size: 0.875rem !important;
  }
  
  /* Grid de botones - 3 columnas GARANTIZADAS */
  section#home .authenticated-content .user-card-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* GARANTIZAR 3 botones visibles: Wallet, Retirar, Salir */
  section#home .authenticated-content .user-card-actions .wallet-btn,
  section#home .authenticated-content .user-card-actions .withdraw-btn,
  section#home .authenticated-content .user-card-actions .logout-btn {
    display: flex !important;
  }
  
  /* OCULTAR botón Enviar SPS en móvil */
  section#home .authenticated-content .user-card-actions .send-btn {
    display: none !important;
  }
  
  /* Botones compactos y proporcionados */
  section#home .authenticated-content .user-card-actions > * {
    min-width: 0 !important;
    padding: 0.45rem 0.5rem !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  
  section#home .authenticated-content .user-card-actions .user-action-btn i {
    font-size: 1rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  section#home .authenticated-content .user-card-actions .user-action-btn span {
    font-size: 0.625rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.3px !important;
    font-weight: 600 !important;
  }
}

/* User Metrics Section */
.user-metrics-section {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: space-between;
}

.user-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(4px);
  flex: 1;
  transition: all 0.3s ease;
}

.user-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.user-metric-card.highlight {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.user-metric-card .metric-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD700;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.4);
}

.user-metric-card.highlight .metric-number {
  animation: pulse 2s ease-in-out infinite;
}

.user-metric-card .metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Winner Notifications System */
.winner-notifications-container {
  margin-top: 1.5rem;
}

.winner-notification-card {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.winner-notification-card.active {
  opacity: 1;
  transform: translateY(0);
}

.winner-notification-card .winner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.winner-notification-card .winner-content i {
  font-size: 1.3rem;
  color: #22c55e;
}

.winner-notification-card .winner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.winner-notification-card .winner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.winner-notification-card .winner-amount {
  font-size: 0.8rem;
  font-weight: 500;
  color: #22c55e;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Transitions */
.home__data {
  position: relative;
  transition: all 0.5s ease;
}

.authenticated-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.authenticated-content.show {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy styles maintained */
.home_email {
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  margin: 1rem;
}

.home__img {
  width: 300px;
  justify-self: center;
}

.home__moneda {
  position: absolute;
  width: 200px;
  z-index: -1;
}

.home__juego {
  position: absolute;
  width: 200px;
  z-index: -1;
  margin-left: calc(100%);
}

.home__moneda:first-of-type {
  right: -100px;
  top: -100px
}

.home__moneda:last-of-type {
  left: -100px;
  bottom: -100px;
}

.home__mesa {
  position: absolute;
  top: 10px;
  right: -5%;
  height: 80%;
  width: auto;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
  border-radius: 20px;
  object-fit: cover;
}


/* Responsive Design - Mobile First */
@media screen and (max-width: 768px) {
  .hero-banner {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .home__subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .benefit-item {
    padding: 1rem 0.8rem;
  }

  .benefit-icon {
    font-size: 2rem;
  }

  .home_contact {
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .primary-cta {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  .secondary-cta {
    padding: 0.7rem 1.5rem;
  }

  .cta-micro-copy {
    font-size: 0.8rem;
  }

  /* Right side elements - hide on mobile */
  .hero-right-content {
    display: none;
  }

  /* Reduce effects for better mobile performance */
  .home__title {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    filter: none;
  }

  .benefit-item, .user-metric-card {
    backdrop-filter: none;
    background: rgba(255, 215, 0, 0.1);
  }
  
  .balance-usd {
    font-size: 0.9rem;
  }
}

  /* Compact widget responsive */
  .user-welcome-widget-compact {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
    gap: 1rem;
  }

  .user-stats {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  #userAvatar {
    font-size: 2.5rem;
    padding: 0.6rem;
  }

  .welcome-title-compact {
    font-size: 1.3rem;
    text-align: center;
  }

  .balance-amount {
    font-size: 1.4rem;
  }

  .last-win {
    font-size: 1.1rem;
  }

  .status-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* User metrics responsive */
  .user-metrics-section {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.2rem;
  }

  .user-metric-card .metric-number {
    font-size: 1.2rem;
  }

  .user-metric-card .metric-label {
    font-size: 0.65rem;
  }

  .winner-notifications-container {
    margin-top: 1rem;
  }

  .winner-notification-card {
    padding: 0.8rem;
  }

  .winner-notification-card .winner-content i {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .home__title {
    font-size: 2.2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .home_contact {
    flex-direction: column;
    width: 100%;
  }

  .primary-cta, .secondary-cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    max-width: 200px;
  }
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--title-color);
  font-weight: bold;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
}

.about__img {
  width: 280px;
  border-radius: .5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}

.services__title {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-2);
}

.services__description {
  padding: 0 1.5rem;
  text-align: left;
}

/*========== MENU ==========*/
.menu__container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;

}

.menu__container__Gambling {
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;

}

.menu__container__inTouch {
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;

}

.menu__content__inTouch {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  text-align: center;
  align-items: center;
  margin: 2rem;
  transition: all 0.3s ease;
}

.menu__content__inTouch:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.4);
}

.menu__content__inTouch .menu__name__article {
  color: #FFD700;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.menu__content__inTouch .menu__detail {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.menu__content__inTouch .menu__inTouch {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.menu__content__inTouch .menu__inTouch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.brands-footer-inTouch{
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.brands-footer-inTouch img {
  height: 60px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.brands-footer-inTouch img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}
.menu__container__casinos {
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
}

.menu__container__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  gap: 2rem;
  align-items: start;
}

.div1 {
  grid-area: 1 / 1 / 6/ 4;
}

.div2 {
  grid-area: 1 / 4 / 3 / 6;
}

.div3 {
  grid-area: 3 / 4 / 2 / 6;
}

.div4 {
  grid-area: 4 / 4 / 3 / 6;
}

.card {
  background: #fff;
  color: #000;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  display: block;
}

.card-review {
  width: 120px;

  height: 120px;
  object-fit: cover;

  border-radius: 50%;

  display: block;
}

/* Tarjeta grande */
.large-card .card-content {
  background: #0d0223;
  color: white;
  padding: 1rem;
  position: relative;
}


.card-footer {
  padding: 1rem;
  background-color: #f0f0f0;
  color: #333;
}

.card-footer .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Tarjetas mini */
.mini-card {
  height: 200px;
}

.menu__content {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
  padding: 1rem;
  text-align: center;

}

.menu__content__article {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
  padding: 2rem;
  text-align: left;

}

.menu__content__casinos {
  background-color: var(--container-color);
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: .5rem;
  height: 7rem;
  border-radius: .5rem;
}

.menu__img__casinos {
  width: auto;
  height: 70px;
  align-self: center;
  z-index: 2;
}

.casinos__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu__img {
  width: auto;
  height: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
  z-index: 2;
}

.menu__bg {
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 1;
  height: 240px;
  width: 350px;
}


.menu__name,
.menu__preci {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  z-index: 2;
}

.menu__inTouch{
   font-weight: var(--font-semi-bold);
  color: var(--body-color);
  z-index: 2;
}

.menu__name {
  font-size: var(--h2-font-size);
}

.menu__name__article {
  color: var(--title-color);
  font-size: var(--h2-font-size);
}

.bonuses__name {
  color: var(--container-color);
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.menu__detail,
.menu__preci {
  font-size: var(--small-font-size);
  color: var(--title-color);
  z-index: 2;
}

.menu__detail {
  margin-bottom: var(--mb-1);
}

.menu__button {
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
  margin: 10px;
  background: linear-gradient(to right, #ffed87 5%, #f0d066 20%, #d6a321 40%, #ffed87 70%, #e6b029 90%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
}

.bonuses__detail {
  background: var(--container-color);
  padding: .7rem;
  border-radius: .3rem;
  font-weight: bold;
  font-size: var(--font-medium);
  color: #d5a423;
}

.bx {
  font-size: var(--h3-font-size);
}

.menu__paly {
  margin-left: .5rem;
}


.menu__left,
.menu__right {
  position: relative;
}

.menu__left {
  top: 0;
  left: 0;
}

.menu__right {
  bottom: 0;
  right: 0;
}

.menu__left .home__moneda:first-of-type {
  top: 0px;
  left: -380px;
  width: 30%;

}

.menu__left .home__moneda:last-of-type {
  bottom: -750px;
  left: -370px;
  transform: rotate(45deg);
  width: 20%;
}

.menu__left .home__moneda:nth-of-type(2) {
  top: 200px;
  left: -150px;
  transform: rotate(-25deg);
  width: 25%;
}



.menu__right .home__moneda:first-of-type {
  top: -70px;
  right: -300px;
  width: 20%;
}

.menu__right .home__moneda:last-of-type {
  top: 400px;
  left: 110%;
  transform: rotate(180deg);
  width: 30%;
}

.menu__right .home__moneda:nth-of-type(2) {
  top: 200px;
  right: -200px;
  transform: rotate(25deg);
  width: 25%;
}



.menu__right .home__juego {
  top: -22rem;
  right: -23rem;

}

.menu__left .home__juego {
  top: -22rem;
  left: -97rem;
  transform: rotate(180deg);
}

.menu__left {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;

}

/*========== GAME ==========*/
.menu__img_game {
  width: 400px;
  align-self: center;
  margin-bottom: var(--mb-2);
  /* padding: 0rem rem 0 3rem; */
}

.menu__img_cryptoPoker {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu__img_inTouch {
  width: 45px;
  height: 50px;
  object-fit: cover;
}

.promo {
  margin-top: 3.5rem;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}


.promo-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  height: auto;
}

.promo-card {
  color: white;
  overflow: auto;
}

.purple-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem;
}

.dark-bg {
  background-color: #222;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.black-bg {
  background-color: #000;

}

.white-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
  padding: 10rem;
}

.accordion details {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* "Tiritas" blancas */
.accordion summary {
  background-color: #fff;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  position: relative;
}

/* Quitar el ícono por defecto */
.accordion summary::-webkit-details-marker {
  display: none;
}

/* Ícono personalizado con ::after */
.accordion summary::after {
  content: '>';
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Cuando se abre */
.accordion details[open] summary::after {
  content: '-';
  /* o puedes rotar el + con transform */
}

/* Contenido */
.accordion p {
  padding: 0 1rem 1rem 1rem;
  background-color: #f9f9f9;
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;

  color: white;
  text-decoration: none;
  border-radius: 5px;
}


/*========== APP ==========*/
.app__data {
  text-align: center;
}

.app__description {
  margin-bottom: var(--mb-5);
}

.app__stores {
  margin-bottom: var(--mb-4);
}

.app__store {
  width: 120px;
  margin: 0 var(--mb-1);
}

.app__img {
  width: 230px;
  justify-self: center;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}



/*========== CONTACT ==========*/
.contact__container {
  text-align: center;
}

.contact__description {
  margin-bottom: var(--mb-3);
}

/*========== FOOTER ==========*/
.footer {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  row-gap: 2rem;
  column-gap: 3rem;
}

.footer__logo {
  font-size: var(--h3-font-size);
  color: #FFD700;
  font-weight: var(--font-semi-bold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer__description {
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__social {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-right: var(--mb-2);
  transition: all 0.3s ease;
}

.footer__social:hover {
  color: #FFD700;
  transform: translateY(-2px);
}

.footer__title {
  font-size: var(--h2-font-size);
  color: #FFD700;
  margin-bottom: var(--mb-2);
  font-weight: 600;
}

.footer__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--mb-1);
  transition: all 0.3s ease;
  position: relative;
}

.footer__link:hover {
  color: #FFD700;
  padding-left: 10px;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #FFD700;
  transition: width 0.3s ease;
}

.footer__link:hover::before {
  width: 6px;
}

.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.inTouch {
  margin-top: 8.5rem;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  color: white;
}

.inTouch-header {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  color: white;
  font-size: var(--h2-font-size);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.inTouch-header h3 {
  color: rgba(255, 215, 0, 0.8);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.inTouch-header h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.inTouch-header h2 span {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}


/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {

  .home__container,
  .about__container,
  .app__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data,
  .about__initial,
  .app__data,
  .app__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }

  .about__img,
  .app__img {
    width: 380px;
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }

  .contact__button {
    justify-self: center;
  }
}

/* Medium screens (tablets and small desktops) - Fix navigation overflow */
@media screen and (min-width: 768px) and (max-width: 1099px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav__item {
    margin-left: 0.8rem;
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .nav__link {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }

  .nav__toggle {
    display: none;
  }

  /* Ensure navigation doesn't break */
  .nav__menu {
    overflow: visible;
  }

  /* Adjust home contact buttons for this range */
  .home_contact {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .button-outline {
    margin-left: 0;
  }
}

@media screen and (min-width: 1100px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 0rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
  }

  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container {
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }

  .menu__container {
    grid-template-columns: repeat(4, 260px);
    column-gap: 2rem;
  }

  .menu__content {
    padding: 1.5rem;
  }

  .menu__img {
    width: 130px;
  }

  .home__container {
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }

  .menu__container {
    grid-template-columns: repeat(4, 260px);
    column-gap: 2rem;
  }

  .menu__content {
    padding: 1.5rem;
  }

  .menu__img {
    width: 130px;
  }

  .app__store {
    margin: 0 var(--mb-1) 0 0;
  }

  .promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 110vh;
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .bonuses {
    margin-bottom: 10%;
  }

  .home__img {
    width: 250px;
  }

  .about__container,
  .app__container {
    column-gap: 7rem;
  }

  .menu__container__Gambling {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .menu__container__inTouch {
    margin-top: -15rem;
    padding: 6rem;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 0;

  }

  .menu__container__casinos {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;

  }
}

@media screen and (min-height: 721px) {
  .home__container {
    height: 880px;
  }
}

/*========== GAMES LOADING INDICATOR ==========*/
.games-loading-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.games-loading-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: loadingShimmer 2s infinite;
}

@keyframes loadingShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.games-loading-spinner {
  text-align: center;
  color: #ffd700;
  z-index: 2;
  position: relative;
}

.games-loading-spinner p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #e6e6e6;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 215, 0, 0.2);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

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

/*========== DYNAMIC GAMES UPDATES ==========*/
.menu__container__casinos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== MOBILE CASINO GAMES SPECIFIC ========== */
@media screen and (max-width: 768px) {
  /* Container específico para juegos de casino */
  #slot .menu__container__casinos {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  /* Cards específicas de juegos de casino */
  #slot .menu__content__casinos {
    padding: 1rem !important;
    min-height: auto !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
  }

  #slot .menu__content__casinos:hover {
    transform: translateY(-2px) scale(1.01) !important;
  }

  #slot .game-card-header {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  #slot .menu__img__casinos {
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
  }

  #slot .game-card-content {
    flex: 1 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #slot .menu__name__article {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #slot .menu__detail {
    font-size: 0.8rem !important;
    margin-bottom: 0.4rem !important;
    opacity: 0.8 !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #slot .menu__preci {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.5rem !important;
    margin-top: 0.3rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    display: inline-block !important;
  }

  #slot .casinos__item {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }

  #slot .slot-game-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    min-width: 80px !important;
    border-radius: 20px !important;
    margin-bottom: 0 !important;
    gap: 0.4rem !important;
  }

  #slot .slot-game-btn i {
    font-size: 1.1rem !important;
  }

  #slot .slot-game-btn .menu__paly {
    display: none !important;
  }

  #slot .slot-game-btn::after {
    content: "PLAY" !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
  }

  /* ========== FIX BONUS AND NEWS SECTIONS ========== */
  /* Aplicar el mismo fondo glassmorphism que las cards de juegos */
  #Bonuses .menu__content.bonus-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  #Bonuses .menu__content.bonus-card .menu__detail:not(.bonuses__detail) {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  #Bonuses .menu__content.bonus-card .menu__name.bonuses__name {
    color: #ffd700 !important;
  }

  /* Mantener el estilo dorado para los badges de cantidad */
  #Bonuses .bonuses__detail {
    background: linear-gradient(135deg, #ffd700, #ffed4a) !important;
    color: #333 !important;
  }

  /* Corregir fondo blanco en secciones de noticias */
  #news .menu__content__article {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  #news .menu__content__article .menu__name__article {
    color: #ffd700 !important;
  }

  #news .menu__content__article .menu__detail {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  #news .menu__content__article .menu__preci {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.3rem 0.8rem !important;
    display: inline-block !important;
    margin-top: 0.5rem !important;
  }
}

/* ========== FIX BONUS AND NEWS SECTIONS FOR DESKTOP ========== */
/* Aplicar el mismo fondo glassmorphism que las cards de juegos en TODAS las resoluciones */
#Bonuses .menu__content.bonus-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

#Bonuses .menu__content.bonus-card .menu__detail:not(.bonuses__detail) {
  color: rgba(255, 255, 255, 0.9) !important;
}

#Bonuses .menu__content.bonus-card .menu__name.bonuses__name {
  color: #ffd700 !important;
}

/* Mantener el estilo dorado para los badges de cantidad */
#Bonuses .bonuses__detail {
  background: linear-gradient(135deg, #ffd700, #ffed4a) !important;
  color: #333 !important;
}

/* Corregir fondo blanco en secciones de noticias */
#news .menu__content__article {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 15px !important;
  padding: 1.5rem !important;
  margin-bottom: 1rem !important;
}

#news .menu__content__article .menu__name__article {
  color: #ffd700 !important;
}

#news .menu__content__article .menu__detail {
  color: rgba(255, 255, 255, 0.9) !important;
}

#news .menu__content__article .menu__preci {
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.3rem 0.8rem !important;
  display: inline-block !important;
  margin-top: 0.5rem !important;
}

/*========== CASINO MACHINE SELECTOR MODAL - Enhanced UX ==========*/
.casino-machine-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(16, 20, 40, 0.9));
  backdrop-filter: blur(20px);
  z-index: 10002;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.casino-machine-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 1;
}

.casino-machine-content {
  background: linear-gradient(145deg, rgba(10, 15, 30, 0.98), rgba(20, 25, 50, 0.95));
  border-radius: 20px;
  max-width: 1100px;
  width: 100%;
  height: 95vh;
  max-height: 95vh;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.85) translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.casino-machine-modal.show .casino-machine-content {
  transform: scale(1) translateY(0);
}

.casino-machine-header {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: auto;
}

.casino-machine-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

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

.casino-machine-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
  line-height: 1.2;
}

.casino-close-btn {
  background: rgba(0, 0, 0, 0.15);
  border: none;
  font-size: 1.5rem;
  color: #1a1a2e;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  position: relative;
}

.casino-close-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.1) rotate(90deg);
}

.casino-info-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  flex-shrink: 0;
}

.casino-game-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.casino-game-image {
  flex-shrink: 0;
}

.casino-game-image img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.casino-game-details {
  flex: 1;
  color: white;
}

.casino-game-details h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.3rem;
  color: #ffd700;
  font-weight: 600;
}

.casino-game-details p {
  margin: 0 0 0.8rem 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  font-size: 0.95rem;
}

.casino-game-stats {
  display: flex;
  gap: 0.75rem;
}

.casino-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.casino-stat i {
  color: #ffd700;
  font-size: 0.9rem;
}

.casino-machine-body {
  flex: 1;
  padding: 1rem 1.5rem;
  color: white;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.casino-section-title {
  text-align: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.casino-section-title h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  color: #ffd700;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.casino-section-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.3;
}

.machine-search-container {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.machine-search-container input {
  padding: 0.6rem 0.8rem;
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  color: white;
  font-size: 0.85rem;
  width: 250px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.machine-search-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.machine-search-container input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.search-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1a1a2e;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.search-btn:hover {
  background: linear-gradient(135deg, #ffed4a, #ffd700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  flex: 1;
  overflow-y: auto;
  padding: 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
}

.machine-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 280px;
}

.machine-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.machine-item.selected {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.machine-item.highlighted {
  animation: highlight 3s ease-in-out;
}

@keyframes highlight {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

/* New Machine Card Layout */
.machine-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem 0.6rem 1rem;
  flex-shrink: 0;
}

.machine-number {
  font-size: 1rem;
  font-weight: bold;
  color: #ffd700;
}

.machine-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.machine-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
}

.machine-badge.hot {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.machine-badge.lucky {
  background: linear-gradient(135deg, #4ecdc4, #45b7b8);
  color: white;
}

.machine-badge.active {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
}

/* New Machine Card Components */
.machine-card-body {
  flex: 1;
  padding: 0 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.machine-image-container {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
}

.machine-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.machine-info {
  width: 100%;
  text-align: center;
}

.jackpot-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.jackpot-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-value {
  font-size: 1rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.machine-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  gap: 0.5rem;
}

.machine-play-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  justify-content: center;
}

.machine-play-btn:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.machine-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 0.75rem;
}

.machine-icon-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.machine-icon-btn i {
  font-size: 1.1rem;
}

/* User Info Component */
.user-info-container {
  margin-bottom: 1.5rem;
}

.wallet-info-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(10px);
}

.wallet-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.wallet-display i {
  color: #ffd700;
  font-size: 1rem;
}

.wallet-address-truncated {
  font-family: monospace;
  color: white;
  font-weight: 500;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.95rem;
}

.balance-display i {
  font-size: 1rem;
}

/* Metaverse Options */
.machine-metaverse-options {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metaverse-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.metaverse-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.metaverse-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.streaming-btn:hover {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(68, 160, 141, 0.2));
  border-color: #4ecdc4;
  color: #4ecdc4;
}

.launcher-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
  border-color: #ffd700;
  color: #ffd700;
}

.metaverse-btn i {
  font-size: 1rem;
}

.select-machine-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}

.select-machine-btn:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
  transform: translateY(-2px);
}

/* Metaverse Access Modals */
.metaverse-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.metaverse-modal.show {
  opacity: 1;
  visibility: visible;
}

.metaverse-modal-content {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(40, 40, 40, 0.95));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.metaverse-modal.show .metaverse-modal-content {
  transform: scale(1);
}

.metaverse-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem 1rem 2.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  flex-shrink: 0;
}

.metaverse-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metaverse-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.metaverse-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.metaverse-modal-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  padding: 1.5rem 2.5rem 2.5rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 120px);
}

.metaverse-feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.metaverse-feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metaverse-feature-list li:before {
  content: "✦";
  color: #ffd700;
  font-weight: bold;
}

.system-requirements {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 3px solid #ffd700;
}

.system-requirements h4 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement-label {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
}

.requirement-value {
  color: rgba(255, 255, 255, 0.6);
}

.metaverse-action-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.metaverse-action-btn:hover {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.streaming-action-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

.streaming-action-btn:hover {
  background: linear-gradient(135deg, #44a08d, #4ecdc4);
}

.info-box {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

.info-box.warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.info-box h4 {
  color: #4ecdc4;
  margin-bottom: 0.5rem;
}

.info-box.warning h4 {
  color: #ffc107;
}

/* Custom scrollbar for metaverse modals */
.metaverse-modal-body::-webkit-scrollbar {
  width: 8px;
}

.metaverse-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.metaverse-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 4px;
}

.metaverse-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
}

/* Firefox scrollbar */
.metaverse-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #ffd700 rgba(255, 255, 255, 0.1);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0 0.5rem;
}

.pagination-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  color: white;
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1a1a2e;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn:disabled:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  color: white;
  border-color: rgba(255, 215, 0, 0.2);
  transform: none;
  box-shadow: none;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Casino Machine Footer */
.casino-machine-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 25px 25px;
}

.casino-cancel-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.casino-cancel-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

.casino-info-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-style: italic;
}

.casino-info-text i {
  color: #ffd700;
  font-size: 1rem;
}



/*========== DESKTOP FULL SCREEN OPTIMIZED LAYOUT ==========*/
@media screen and (min-width: 769px) {
  .casino-machine-modal {
    padding: 0;
  }

  .casino-machine-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    transform: scale(1) translateY(0);
  }

  /* FULL SCREEN HEADER WITH LAYOUT OPTIMIZATION */
  .casino-machine-header {
    padding: 0.5rem 1.5rem;
    min-height: auto;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .casino-machine-header h2 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
  }

  /* Header wallet info styling */
  .header-wallet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .header-wallet-info .wallet-display,
  .header-wallet-info .balance-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .casino-close-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
  }

  .casino-close-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6666;
  }

  /* HIDE INFO PANEL COMPLETELY ON DESKTOP TO SAVE SPACE */
  .casino-info-panel {
    display: none !important;
  }

  /* BODY TAKES MAXIMUM SPACE */
  .casino-machine-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  /* REORGANIZED LAYOUT - TITLE LEFT, SEARCH RIGHT */
  .casino-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
  }

  .casino-section-title {
    margin-bottom: 0;
    flex-shrink: 0;
    text-align: left;
    flex: 1;
  }

  .casino-section-title h3 {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
  }

  .casino-section-title p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 0;
  }

  /* SEARCH MOVED TO TOP RIGHT */
  .machine-search-container {
    margin-bottom: 0;
    flex-shrink: 0;
    gap: 0.5rem;
    display: flex;
    align-items: center;
  }

  .machine-search-container input {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    width: 250px;
    border-radius: 15px;
  }

  .search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 15px;
  }

  /* FULL SCREEN GRID - MAXIMUM MACHINES VISIBLE */
  .machine-grid {
    height: auto;
    max-height: none;
    flex: 1;
    overflow-y: auto;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 0;
    /* Calculate height for full screen minus header and top section */
    min-height: calc(100vh - 200px);
  }

  /* OPTIMIZED MACHINE CARDS FOR FULL SCREEN */
  .machine-item {
    height: 200px;
  }

  .machine-card-header {
    padding: 0.4rem 0.6rem 0.2rem 0.6rem;
  }

  .machine-number {
    font-size: 0.85rem;
  }

  .machine-badge {
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
  }

  .machine-card-body {
    padding: 0 0.6rem;
  }

  .machine-image-container {
    height: 60px;
    margin-bottom: 0.4rem;
  }

  .jackpot-label {
    font-size: 0.65rem;
  }

  .jackpot-value {
    font-size: 0.8rem;
  }

  .machine-card-actions {
    padding: 0.4rem 0.6rem;
    gap: 0.3rem;
  }

  .machine-play-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  /* CUSTOM SCROLLBAR */
  .machine-grid::-webkit-scrollbar {
    width: 4px;
  }

  .machine-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }

  .machine-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.4), rgba(255, 215, 0, 0.6));
    border-radius: 2px;
  }

  .machine-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.6), rgba(255, 215, 0, 0.8));
  }

  /* HIDE BOTTOM ELEMENTS TO SAVE SPACE */
  .casino-machine-footer,
  .casino-cancel-btn,
  .casino-info-text {
    display: none !important;
  }

  /* COMPACT PAGINATION ONLY */
  .pagination-container {
    margin-top: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    border: none;
  }

  .pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
  }
}

/*========== TABLET-OPTIMIZED CASINO MACHINE MODAL (769px-1024px) ==========*/
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* Fixed 3-column grid for tablets */
  .machine-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0.5rem;
  }

  /* Optimized card height for tablet */
  .machine-item {
    height: 220px;
  }

  .machine-card-header {
    padding: 0.5rem 0.7rem 0.3rem 0.7rem;
  }

  .machine-number {
    font-size: 0.9rem;
  }

  .machine-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
  }

  .machine-card-body {
    padding: 0 0.7rem;
  }

  .machine-image-container {
    height: 70px;
    margin-bottom: 0.5rem;
  }

  .machine-card-actions {
    padding: 0.5rem 0.7rem;
    gap: 0.4rem;
  }

  .machine-play-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
}

/*========== MOBILE-OPTIMIZED CASINO MACHINE MODAL ==========*/
@media screen and (max-width: 768px) {
  .casino-machine-modal {
    padding: 0;
    align-items: flex-start;
  }

  .casino-machine-content {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }

  /* Compact Header for Mobile */
  .casino-machine-header {
    padding: 0.75rem 1rem;
    border-radius: 0;
    flex-shrink: 0;
    min-height: auto;
  }

  .casino-machine-header h2 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .casino-close-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  /* Hide info panel on mobile to save space */
  .casino-info-panel {
    display: none;
  }

  /* Maximize body space */
  .casino-machine-body {
    flex: 1;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }

  /* Compact section title */
  .casino-section-title {
    margin-bottom: 0.6rem;
    text-align: left;
    flex-shrink: 0;
  }

  .casino-section-title h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .casino-section-title p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Compact search */
  .machine-search-container {
    margin-bottom: 0.6rem;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .machine-search-container input {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    width: 100%;
    border-radius: 15px;
  }

  .search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 15px;
    flex-shrink: 0;
  }

  /* Hide user info on mobile to save space */
  .user-info-container {
    display: none;
  }

  /* Optimized grid for mobile */
  .machine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: auto;
    max-height: none;
  }

  /* Compact machine cards */
  .machine-item {
    height: 200px;
    border-radius: 12px;
    border-width: 1px;
  }

  .machine-card-header {
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
  }

  .machine-number {
    font-size: 1rem;
    font-weight: 700;
  }

  .machine-badges {
    gap: 0.25rem;
  }

  .machine-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 8px;
  }

  .machine-card-body {
    padding: 0 0.75rem;
    flex: 1;
  }

  .machine-image-container {
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .machine-image {
    border-radius: 6px;
  }

  .jackpot-info {
    gap: 0.2rem;
  }

  .jackpot-label {
    font-size: 0.7rem;
    font-weight: 700;
  }

  .jackpot-value {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .machine-card-actions {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.4rem;
  }

  .machine-play-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    gap: 0.3rem;
  }

  .machine-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-left: 0;
  }

  .machine-icon-btn i {
    font-size: 1rem;
  }

  /* Compact pagination */
  .pagination-container {
    margin-top: 0.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0;
  }

  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 15px;
    flex-shrink: 0;
  }

  .pagination-info {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    order: 0;
    margin-bottom: 0;
  }

  /* Compact footer */
  .casino-machine-footer {
    padding: 0.75rem;
    border-radius: 0;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .casino-cancel-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 15px;
    width: 100%;
    justify-content: center;
  }

  .casino-info-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
  }

  /* Mobile-specific enhancements */
  .machine-item:hover {
    transform: scale(1.02);
  }

  .machine-item.selected {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  }

  /* Loading state for mobile */
  .loading-machines {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    grid-column: 1 / -1;
  }

  /* Additional mobile optimizations */
  .casino-machine-modal.show .casino-machine-content {
    animation: slideUpMobile 0.3s ease-out;
  }

  .wallet-info-compact {
    display: none; /* Hide completely on mobile to save space */
  }

  /* Ensure no unnecessary vertical spacing */
  .casino-section-title,
  .machine-search-container,
  .machine-grid,
  .pagination-container {
    margin-top: 0;
  }

  /* Better touch targets for mobile */
  .machine-play-btn,
  .machine-icon-btn,
  .pagination-btn,
  .casino-cancel-btn {
    min-height: 44px; /* iOS minimum touch target */
  }

  /* Prevent zoom on inputs */
  .machine-search-container input {
    font-size: 16px;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


  .machine-play-btn {
    width: 60px;
    height: 40px;
    font-size: 1rem;
  }

  .machine-meta-buttons {
    gap: 0.6rem;
  }

  .machine-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .casino-machine-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .casino-cancel-btn,
  .casino-play-btn {
    width: 100%;
    justify-content: center;
  }


/*========== CASINO INFO TEXT ==========*/
.casino-info-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ecdc4;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.casino-info-text i {
  font-size: 1.2rem;
  color: #4ecdc4;
}

/*========== MACHINE LOADING AND BALANCE STYLES ==========*/
.loading-machines {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 1.2rem;
  color: #4ecdc4;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 15px;
  border: 2px dashed rgba(78, 205, 196, 0.3);
}

.machine-badge.active {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.machine-stat.total-balance {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.machine-stat.total-balance .stat-value {
  color: #ffd700;
  font-weight: bold;
}

.machine-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.machine-item.highlighted {
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulse 1s infinite;
}

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

.back-to-list-btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #4ecdc4, #44b3a8);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.back-to-list-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.user-info-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  padding: 0.5rem;
}

.wallet-info-compact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
}

.wallet-display,
.balance-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.wallet-display i {
  color: #4ecdc4;
  font-size: 1rem;
}

.balance-display i {
  color: #ffd700;
  font-size: 1rem;
}

.wallet-address-truncated {
  color: #4ecdc4;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.balance-amount-compact {
  color: #ffd700;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .user-info-container {
    margin: 0.5rem 0;
  }

  .wallet-info-compact {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }

  .wallet-display,
  .balance-display {
    font-size: 0.8rem;
  }

  .wallet-display i,
  .balance-display i {
    font-size: 0.9rem;
  }

  .wallet-address-truncated,
  .balance-amount-compact {
    font-size: 0.75rem;
  }
}

/*========== LOADING MODAL ==========*/
.slot-game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 10003;
  justify-content: center;
  align-items: center;
}

.slot-game-container {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  border: 2px solid #ffd700;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  overflow: hidden;
}

.slot-game-header {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-game-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.slot-game-content {
  padding: 2rem;
}

.loading-container {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

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

.loading-container h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.loading-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4ecdc4, #44a08d);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.loading-container p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.menu__content__casinos {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 20px;
  padding: 1.8rem 2rem 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu__content__casinos:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
}

.menu__content__casinos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu__content__casinos:hover::before {
  opacity: 1;
}

.menu__content__casinos::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.menu__content__casinos:hover::after {
  opacity: 0.3;
}

.menu__img__casinos {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.menu__content__casinos:hover .menu__img__casinos {
  transform: scale(1.15) rotate(2deg);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.menu__name__article {
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.menu__detail {
  color: #e6e6e6;
  font-size: 0.95rem;
  text-align: center;
  display: block;
  margin-bottom: 1rem;
  line-height: 1.4;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.casinos__item {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.8rem;
}

.game-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.slot-game-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a, #ffd700);
  background-size: 200% 200%;
  color: #1a1a1a;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
  font-size: 0.85rem;
  min-width: 110px;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
}

.slot-game-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
  background-position: 100% 100%;
  color: #000;
}

.slot-game-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.slot-game-btn:hover::before {
  width: 300px;
  height: 300px;
}

.slot-game-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.slot-game-btn:hover i {
  transform: translateX(3px);
}

.menu__preci {
  color: #A6A6A6;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 500;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .menu__container__casinos {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .menu__content__casinos {
    padding: 1rem 1rem 1.5rem 1rem;
    min-height: auto;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    overflow: visible;
  }

  .menu__content__casinos:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .game-card-header {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .menu__img__casinos {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .game-card-content {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .menu__name__article {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }

  .menu__detail {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
  }

  .menu__preci {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    margin-top: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: inline-block;
  }

  .casinos__item {
    flex-shrink: 0;
    margin-top: 0;
  }

  .slot-game-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
    border-radius: 20px;
    margin-bottom: 0;
    gap: 0.4rem;
    z-index: 10;
  }

  .game-actions-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .slot-game-btn i {
    font-size: 1.1rem;
  }

  .slot-game-btn .menu__paly {
    display: none;
  }

  .slot-game-btn::after {
    content: "PLAY";
    font-size: 0.8rem;
    font-weight: 700;
  }
}

  .slot-game-btn i {
    font-size: 1.1rem;
  }

  .slot-game-btn .menu__paly {
    display: none;
  }

  .slot-game-btn::after {
    content: "PLAY";
    font-size: 0.8rem;
    font-weight: 700;
  }


/*========== MOBILE SMALL SCREENS ==========*/
@media screen and (max-width: 480px) {
  .menu__container__casinos {
    padding: 0 0.5rem;
    gap: 0.8rem;
  }

  .menu__content__casinos {
    padding: 0.8rem;
    gap: 0.8rem;
    border-radius: 14px;
  }

  .menu__img__casinos {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .menu__name__article {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .menu__detail {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .menu__preci {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-top: 0;
  }

  .slot-game-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: 70px;
    border-radius: 18px;
  }

  .slot-game-btn i {
    font-size: 1rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .menu__container__casinos {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    gap: 1.5rem;
  }

  .menu__content__casinos {
    padding: 1.8rem 1.8rem 2.5rem 1.8rem;
    min-height: 350px;
  }

  .menu__img__casinos {
    width: 85px;
    height: 85px;
  }

  .slot-game-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 1201px) {
  .menu__container__casinos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1400px;
    gap: 2rem;
  }

  .menu__content__casinos {
    padding: 2rem 2rem 2.5rem 2rem;
    min-height: 360px;
  }

  .menu__img__casinos {
    width: 90px;
    height: 90px;
  }

  .slot-game-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/*========== GAME CARD STRUCTURE ==========*/
.game-card-header {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.game-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.casinos__item {
  margin-top: auto;
  text-align: center;
}

/*========== ENHANCED CARD ANIMATIONS ==========*/
.menu__content__casinos {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu__content__casinos:hover {
  animation: cardPulse 0.6s ease-in-out;
}

@keyframes cardPulse {
  0% { transform: translateY(-8px) scale(1.02); }
  50% { transform: translateY(-10px) scale(1.03); }
  100% { transform: translateY(-8px) scale(1.02); }
}

/*========== METAVERSE CASINO SLIDER ==========*/
.metaverse-casino-slider {
  margin-top: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.metaverse-casino-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  pointer-events: none;
}

.slider-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.slider-main {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.slider-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-content.active {
  opacity: 1;
  transform: translateX(0);
}

.slider-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.slider-content.active .slider-image img {
  transform: scale(1.05);
}

.slider-info {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  padding: 2rem;
  color: white;
  position: relative;
}

.casino-logo {
  position: absolute;
  top: -30px;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
}

.casino-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.casino-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 1rem 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.casino-author {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.casino-author span {
  color: #FFD700;
  font-weight: 600;
}

.casino-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.casino-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.slider-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.option-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.option-card.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.option-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-content {
  flex: 1;
  min-width: 0;
}

.option-content h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .slider-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .slider-main {
    height: 300px;
  }

  .slider-info {
    padding: 1.5rem;
  }

  .casino-title {
    font-size: 1.4rem;
  }

  .slider-options {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .option-card {
    min-width: 200px;
    flex-shrink: 0;
  }
}

/*========== KENO IFRAME STYLES (DESKTOP) ==========*/
.keno-iframe-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
}

.keno-iframe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.keno-iframe-header h3 {
  margin: 0;
  color: #ffd700;
  font-size: 1.2rem;
  font-weight: 600;
}

.keno-fullscreen-btn {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 8px;
  color: #ffd700;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.keno-fullscreen-btn:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

.keno-iframe {
  flex: 1;
  width: 100%;
  min-height: 400px;
  border: none;
  background: #000;
}

.keno-iframe-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.keno-iframe-footer small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.keno-iframe-footer small i {
  color: #ffd700;
  font-size: 0.9rem;
}

/* Mobile override - keep current behavior */
@media screen and (max-width: 768px) {
  .keno-iframe-container {
    display: none;
  }
}

/*========== USER ACTIONS BAR ==========*/
.user-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.user-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

/*========== ENHANCED BALANCE CARD ==========*/
.enhanced-balance-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
  width: 100%;
}

.enhanced-balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
}

.balance-icon-container {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.balance-icon-main {
  font-size: 2rem;
  color: #1a1a1a;
}

.balance-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.balance-label-enhanced {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-amount-enhanced {
  color: #ffd700;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.balance-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon {
  font-size: 1.5rem;
  color: #4CAF50;
  text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.wallet-info i {
  color: #FFD700;
  font-size: 1rem;
}

.balance-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.balance-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.balance-amount {
  color: #FFD700;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

/*========== ACTION BUTTONS GRID ==========*/
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.grid-action-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 100px;
  justify-content: center;
}

.grid-action-btn i {
  font-size: 1.8rem;
}

.grid-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.grid-action-btn.primary {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
}

.grid-action-btn.primary:hover {
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.grid-action-btn.secondary {
  border-color: rgba(33, 150, 243, 0.4);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.08));
}

.grid-action-btn.secondary:hover {
  border-color: rgba(33, 150, 243, 0.6);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.grid-action-btn.withdraw {
  border-color: rgba(255, 92, 92, 0.4);
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.15), rgba(255, 92, 92, 0.08));
}

.grid-action-btn.withdraw:hover {
  border-color: rgba(255, 92, 92, 0.6);
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.2), rgba(255, 92, 92, 0.1));
  box-shadow: 0 8px 25px rgba(255, 92, 92, 0.3);
}

.grid-action-btn.streaming {
  border-color: rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.08));
}

.grid-action-btn.streaming:hover {
  border-color: rgba(78, 205, 196, 0.6);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.action-btn.secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.action-btn.withdraw {
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.2) 0%, rgba(255, 92, 92, 0.1) 100%);
  color: #ff5c5c;
  border: 1px solid rgba(255, 92, 92, 0.3);
}

.action-btn.withdraw:hover {
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.3) 0%, rgba(255, 92, 92, 0.2) 100%);
  border-color: rgba(255, 92, 92, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 92, 92, 0.2);
}

.action-btn i {
  font-size: 1rem;
}

/*========== SLOT PURCHASE MODAL ==========*/
.slot-purchase-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.slot-purchase-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slot-purchase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-purchase-header h2 {
  color: #FFD700;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.slot-purchase-body {
  padding: 2rem;
}

.slot-nft-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.slot-image-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.slot-nft-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.slot-nft-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: center;
}

.slot-nft-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nft-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.detail-value {
  color: white;
  font-weight: 600;
}

.detail-value.price {
  color: #FFD700;
  font-size: 1.2rem;
  font-weight: 700;
}

.slot-benefits {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.slot-benefits h4 {
  color: #FFD700;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.slot-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slot-benefits li {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0;
  line-height: 1.4;
}

.slot-purchase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-cancel-btn, .slot-buy-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-cancel-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-buy-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.purchase-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/*========== WITHDRAW MODAL ==========*/
.withdraw-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  backdrop-filter: blur(15px);
}

.withdraw-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 25px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  border: 1px solid rgba(255, 92, 92, 0.3);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.withdraw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-header h2 {
  color: #ff5c5c;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.withdraw-header h2 i {
  font-size: 1.6rem;
}

.withdraw-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.withdraw-close-btn:hover {
  background: rgba(255, 92, 92, 0.2);
  color: #ff5c5c;
  transform: rotate(90deg);
}

.withdraw-body {
  padding: 2rem;
}

.current-balance-display {
  margin-bottom: 2rem;
}

.balance-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.1) 0%, rgba(255, 92, 92, 0.05) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 92, 92, 0.2);
}

.balance-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff5c5c 0%, #ff7575 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 92, 92, 0.3);
}

.balance-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.balance-amount-display {
  color: #ff5c5c;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wallet-destination {
  margin-bottom: 1.5rem;
}

.wallet-destination label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.wallet-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-input-group i {
  color: #ff5c5c;
  font-size: 1.2rem;
  margin-right: 0.8rem;
}

.wallet-input-group input {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  font-family: monospace;
}

.withdraw-info {
  margin-top: 0.5rem;
}

.fee-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.fee-info i {
  color: #FFD700;
}

.withdraw-summary {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ff5c5c;
}

.withdraw-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-cancel-btn, .withdraw-confirm-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.withdraw-cancel-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.withdraw-cancel-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateY(-2px);
}

.withdraw-confirm-btn {
  background: linear-gradient(135deg, #ff5c5c 0%, #ff7575 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 92, 92, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.withdraw-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 92, 92, 0.4);
}

.withdraw-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/*========== RECHARGE MODAL ==========*/
.recharge-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  backdrop-filter: blur(10px);
}

.recharge-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.recharge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recharge-header h2 {
  color: #FFD700;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.recharge-body {
  padding: 2rem;
}

.current-balance {
  text-align: center;
  margin-bottom: 2rem;
}

.balance-display-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-amount-large {
  color: #FFD700;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.amount-input-container {
  margin-bottom: 1.5rem;
}

.amount-input-container label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Estilos antiguos removidos - usando los nuevos profesionales */

.quick-amounts h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.2rem 0;
  text-align: left;
}

.quick-amount-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.quick-btn {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quick-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.recharge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recharge-cancel-btn, .recharge-confirm-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recharge-cancel-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recharge-confirm-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recharge-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.recharge-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Payment Method Selection Styles */
.payment-method-selection {
  margin-bottom: 2rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Responsive para móvil - 3 métodos en columnas */
@media screen and (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.payment-method-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.payment-method-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.payment-method-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #FFD700;
}

.payment-method-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.method-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.back-to-methods {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.back-to-methods:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

.method-header h4 {
  color: #FFD700;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.sps-equivalent, .usd-equivalent {
  margin-top: 0.8rem;
  text-align: left;
}

/* Estilos para botones de acción mejorados */
.sparklife-confirm-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 600;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-top: 1rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.sparklife-confirm-btn:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* WalletConnect SOLO DEBE MOSTRAR EL BOTÓN DE FOOTER */
.walletconnect-confirm-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.walletconnect-confirm-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.sparklife-spinner,
.walletconnect-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

/* Estilos mejorados para Wallet Sparklife */
.sparklife-benefits {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.benefit-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.benefit-highlight i {
  color: #FFD700;
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.benefit-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.benefit-item i {
  color: #4CAF50;
  font-size: 1rem;
  flex-shrink: 0;
}

.benefit-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Estilos mejorados profesionales para input de cantidad - LABEL ARRIBA */
.amount-input-container {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.amount-input-container label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  text-align: left;
  order: 1;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  order: 2;
  width: 100%;
}

.input-group:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.input-group input {
  background: transparent;
  border: none;
  padding: 1.2rem 1.5rem;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-suffix {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-left: 1px solid rgba(255, 215, 0, 0.3);
}

/* Forzar diseño vertical - label arriba, input abajo */
.sparklife-form .amount-input-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.8rem !important;
}

.sparklife-form .amount-input-container label {
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 0 !important;
  order: 1 !important;
}

.sparklife-form .input-group {
  width: 100% !important;
  order: 2 !important;
  margin-top: 0 !important;
}

/* Estilos para modal de progreso de recarga */
#rechargeProgressModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.progress-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.progress-modal-content {
  background: linear-gradient(135deg, rgba(36, 59, 85, 0.98), rgba(20, 30, 48, 0.98));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.progress-header h3 {
  color: #FFD700;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.progress-step.active {
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid #FFD700;
}

.progress-step.completed {
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4CAF50;
}

.progress-step.error {
  background: rgba(244, 67, 54, 0.1);
  border-left: 3px solid #f44336;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.progress-step.active .step-icon {
  background: #FFD700;
  color: #1a1a1a;
  border-color: #FFD700;
  animation: pulse 2s infinite;
}

.progress-step.completed .step-icon {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.progress-step.error .step-icon {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.step-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  flex: 1;
}

.progress-step.active .step-text {
  color: #FFD700;
  font-weight: 500;
}

.progress-step.completed .step-text {
  color: #4CAF50;
}

.progress-status {
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modal de Error para Tickets de Balotín */
.balotin-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.balotin-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.balotin-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(42, 55, 79, 0.98), rgba(25, 35, 52, 0.98));
  border: 2px solid rgba(255, 87, 51, 0.5);
  border-radius: 16px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  animation: errorModalFadeIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes errorModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.balotin-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 87, 51, 0.2);
  background: rgba(255, 87, 51, 0.05);
}

.balotin-modal-header i.bx-error-circle {
  font-size: 1.5rem;
  color: #ff5733;
}

.balotin-modal-header h3 {
  color: #ff5733;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
}

.balotin-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
}

.balotin-modal-close:hover {
  background: rgba(255, 87, 51, 0.2);
  border-color: rgba(255, 87, 51, 0.4);
  color: #ff5733;
  transform: scale(1.1);
}

.balotin-modal-body {
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.balotin-modal-body p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.balotin-modal-body .error-detail {
  background: rgba(255, 87, 51, 0.1);
  border: 1px solid rgba(255, 87, 51, 0.3);
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.balotin-modal-body .error-detail i {
  color: #ff5733;
  margin-top: 2px;
  flex-shrink: 0;
}

.balotin-modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.balotin-retry-btn {
  background: linear-gradient(135deg, #ff5733, #ff4520);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
}

.balotin-retry-btn:hover {
  background: linear-gradient(135deg, #ff4520, #ff5733);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 87, 51, 0.4);
}

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

/* Responsive para modal de error de Balotín */
@media (max-width: 768px) {
  .balotin-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .balotin-modal-header {
    padding: 1.2rem 1.2rem 0.8rem 1.2rem;
  }
  
  .balotin-modal-body {
    padding: 1.2rem;
  }
  
  .balotin-modal-footer {
    padding: 0.8rem 1.2rem 1.2rem 1.2rem;
  }
}

/* Notificación de éxito */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
  border: 2px solid #4CAF50;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  z-index: 10001;
  backdrop-filter: blur(10px);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.success-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.success-content i {
  font-size: 1.4rem;
  color: #4CAF50;
}

/* Balances compactos integrados - Principios UX */
.compact-balances-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.balance-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-value {
  color: #FFD700;
  font-weight: 600;
  font-size: 1rem;
}

.balance-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
}

/* Footer rediseñado - Jerarquía visual UX */
.recharge-footer-redesigned {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-action-container {
  display: flex;
  justify-content: center;
}

/* Botón principal - Máxima prominencia */
.primary-recharge-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  min-width: 240px;
  position: relative;
}

.primary-recharge-btn:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.primary-recharge-btn:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-content i {
  font-size: 1.2rem;
}

/* Botón secundario - Discreto pero accesible */
.secondary-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  min-width: 120px;
}

.secondary-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Spinners en botones principales */
.primary-recharge-btn .sparklife-spinner,
.primary-recharge-btn .walletconnect-spinner,
.primary-recharge-btn .creditcard-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #1a1a1a;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Estilos profesionales para botones sugeridos */
.quick-amount-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Botón especial para total de wallet */
.total-wallet-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border: 2px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  font-weight: 600;
  margin-top: 0.5rem;
}

.total-wallet-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

/* WalletConnect Connection Styles */
.web3-connection-status {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.connection-icon {
  margin-bottom: 1.5rem;
}

.connection-icon i {
  font-size: 4rem;
  color: #4ecdc4;
  animation: pulse 2s infinite;
}

.connection-icon.connected i {
  color: #4ade80;
  animation: none;
}

.connection-icon.error i {
  color: #ef4444;
  animation: shake 0.5s ease-in-out;
}

#connectionStatus {
  margin: 1rem 0 0.5rem 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

#connectionMessage {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.connection-loader {
  display: flex;
  justify-content: center;
}

.web3-connect-section {
  margin: 2rem 0;
}

.web3-connect-btn {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.web3-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, #5fd3ca, #4eb5a6);
}

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

.web3-connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.supported-wallets {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ecdc4;
  animation: loadingDots 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.connected-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 500;
}

.connected-indicator i {
  font-size: 1rem;
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.quick-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quick-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.4);
  color: #FFD700;
  transform: translateY(-1px);
}

/* Estilos mejorados para WalletConnect - SOLO UN BOTÓN */
.walletconnect-waiting {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.waiting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.walletconnect-waiting h3 {
  color: #FFD700;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.walletconnect-waiting p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 1rem;
}

/* Estilos mejorados para tarjeta de crédito con mejor contraste */
.creditcard-form {
  background: rgba(20, 25, 45, 0.95);
  border-radius: 15px;
  padding: 2rem;
  border: 2px solid rgba(255, 215, 0, 0.4);
  backdrop-filter: blur(10px);
}

.creditcard-form .method-header h4 {
  color: #FFD700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.card-input-section {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(5px);
}

.card-input-title {
  color: #FFD700;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-input-title i {
  font-size: 1.3rem;
}

/* Mejorar contrastes de Stripe elementos */
.stripe-card-element {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 1.2rem !important;
  color: white !important;
  transition: all 0.3s ease !important;
}

.stripe-card-element:focus-within {
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2) !important;
}

/* Mejorar botones de cantidad sugerida para USD */
.amount-suggestions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.amount-suggestion-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.amount-suggestion-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
  transform: translateY(-1px);
}

/* Balance amount mejorado */
.balance-amount-enhanced {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFD700;
}

/* Diseño uniforme para equivalencias en ambos métodos de pago */
.equivalence-display {
  margin-top: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  text-align: center;
}

.equivalence-display small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: block;
}

.equivalence-display span {
  color: #FFD700;
  font-weight: 600;
  font-size: 1rem;
}

/* Mantener compatibilidad con clases antiguas */
.sps-equivalent small, .usd-equivalent small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.sps-equivalent span, .usd-equivalent span {
  color: #FFD700;
  font-weight: 600;
}

/* Stripe Card Styles */
.stripe-card-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stripe-card-element {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: white;
}

.stripe-card-errors {
  color: #ff4757;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .payment-method-btn {
    padding: 1.2rem 0.8rem;
  }

  .payment-method-icon {
    font-size: 1.5rem;
  }

  .method-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Responsive for user actions */
@media screen and (max-width: 1024px) {
  .user-actions-bar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.2rem;
  }

  .user-balance {
    align-items: center;
    text-align: center;
  }

  .balance-amount {
    font-size: 1.2rem;
  }

  .action-buttons {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .action-btn {
    flex: 1;
    max-width: 150px;
    justify-content: center;
    padding: 0.9rem 0.8rem;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 768px) {
  .user-actions-bar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .user-balance {
    align-items: center;
    text-align: center;
  }

  .balance-amount {
    font-size: 1.1rem;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-btn {
    justify-content: center;
    padding: 0.9rem;
    font-size: 0.75rem;
  }

  /* Enhanced Balance Card Mobile */
  .enhanced-balance-card {
    padding: 1.2rem;
    gap: 1rem;
  }

  .balance-icon-container {
    width: 50px;
    height: 50px;
  }

  .balance-icon-main {
    font-size: 1.5rem;
  }

  .balance-amount-enhanced {
    font-size: 1.5rem;
  }

  /* Action Buttons Grid Mobile */
  .action-buttons-grid {
    gap: 0.8rem;
  }

  .grid-action-btn {
    padding: 1rem;
    min-height: 80px;
    font-size: 0.8rem;
  }

  .grid-action-btn i {
    font-size: 1.5rem;
  }

  .slot-nft-display {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .slot-purchase-content, .recharge-content {
    width: 95%;
    max-height: 95vh;
  }

  .quick-amount-buttons {
    grid-template-columns: 1fr;
  }
}

/*========== GAME CARD STAGGER ANIMATION ==========*/
.menu__content__casinos:nth-child(1) { animation-delay: 0.1s; }
.menu__content__casinos:nth-child(2) { animation-delay: 0.2s; }
.menu__content__casinos:nth-child(3) { animation-delay: 0.3s; }
.menu__content__casinos:nth-child(4) { animation-delay: 0.4s; }
.menu__content__casinos:nth-child(5) { animation-delay: 0.5s; }
.menu__content__casinos:nth-child(6) { animation-delay: 0.6s; }
.menu__content__casinos:nth-child(7) { animation-delay: 0.7s; }
.menu__content__casinos:nth-child(8) { animation-delay: 0.8s; }
.menu__content__casinos:nth-child(9) { animation-delay: 0.9s; }
.menu__content__casinos:nth-child(10) { animation-delay: 1.0s; }

/*========== ACCESSIBILITY IMPROVEMENTS ==========*/
.slot-game-btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.menu__content__casinos:focus-within {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .menu__content__casinos,
  .menu__img__casinos,
  .slot-game-btn {
    animation: none !important;
    transition: none !important;
  }

  .menu__content__casinos:hover {
    transform: none !important;
  }
}

/* ========== IMPROVED TICKETS STYLES ========== */
.tickets-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.tickets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Estilos para el nuevo formato de lista - Responsive */
.tickets-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-list-item {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: white;
    overflow: hidden;
    min-height: 100px;
}

.ticket-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.ticket-list-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "left center right";
    gap: 2rem;
    align-items: center;
}

.ticket-list-left {
    grid-area: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.ticket-list-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.ticket-list-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.ticket-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-list-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ticket-list-id,
.ticket-list-owner {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-list-center {
    grid-area: center;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
}

.ticket-list-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
}

.numbers-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.ticket-list-right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 150px;
}

.ticket-list-cost {
    text-align: right;
}

.ticket-list-cost .cost-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
}

.ticket-list-hash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.ticket-list-hash:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.ticket-list-btn {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

.ticket-list-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #0099CC 0%, #00D4FF 100%);
}

.tickets-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tickets-header h2 {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tickets-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #FFD700;
    color: #333;
}

/* Ticket Card Styles - Crypto Style */
.ticket-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: white;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.ticket-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    flex-shrink: 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.ticket-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-info {
    flex: 1;
}

.ticket-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.ticket-id, .ticket-owner {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.2rem 0;
    font-family: 'Courier New', monospace;
}

.ticket-numbers {
    margin-bottom: 1.5rem;
}

.numbers-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.special-numbers {
    display: flex;
    gap: 0.5rem;
}

.number-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.number-ball.main {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.number-ball.special {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.ticket-crypto-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.crypto-hash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.crypto-hash:hover {
    color: #FFD700;
}

.crypto-hash i {
    font-size: 1rem;
}

.ticket-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.ticket-cost {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

.cost-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.cost-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.ticket-action-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.ticket-action-btn.view-ticket {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    color: white;
}

.ticket-action-btn.view-ticket:hover {
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #0099CC 0%, #00D4FF 100%);
}

.no-tickets {
    text-align: center;
    padding: 3rem;
    color: rgba(255,255,255,0.8);
    grid-column: 1 / -1;
}

.no-tickets i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive for tickets */

/* Tablet - 768px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .tickets-list-container {
        padding: 0 1rem;
    }

    .ticket-list-item {
        padding: 1.5rem;
    }

    .ticket-list-content {
        gap: 1rem;
    }

    .ticket-list-left {
        gap: 1rem;
    }

    .ticket-list-logo {
        width: 55px;
        height: 55px;
    }

    .ticket-list-title {
        font-size: 1rem;
    }

    .ticket-list-id,
    .ticket-list-owner {
        font-size: 0.75rem;
    }

    .ticket-list-center {
        padding: 0 0.5rem;
    }

    .ticket-list-right {
        min-width: 130px;
    }

    .ticket-list-cost .cost-value {
        font-size: 1.1rem;
    }

    .ticket-list-hash {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .ticket-list-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        min-width: 100px;
    }

    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}

/* Mobile - up to 768px */
@media (max-width: 768px) {
    .tickets-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .tickets-list-container {
        padding: 0 0.5rem;
        gap: 0.8rem;
    }

    .ticket-list-item {
        padding: 1rem;
    }

    .ticket-list-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left"
            "center"
            "right";
        gap: 1rem;
        text-align: center;
    }

    .ticket-list-left {
        justify-content: center;
        gap: 0.8rem;
    }

    .ticket-list-logo {
        width: 50px;
        height: 50px;
    }

    .ticket-list-title {
        font-size: 1rem;
    }

    .ticket-list-id,
    .ticket-list-owner {
        font-size: 0.75rem;
    }

    .ticket-list-center {
        padding: 0;
        justify-content: center;
    }

    .ticket-list-numbers {
        flex-direction: column;
        gap: 0.8rem;
    }

    .ticket-list-right {
        align-items: center;
        gap: 1rem;
        min-width: auto;
    }

    .ticket-list-cost {
        text-align: center;
    }

    .ticket-list-cost .cost-value {
        font-size: 1.2rem;
    }

    .ticket-list-hash {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .ticket-list-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        min-width: 120px;
    }

    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .main-numbers {
        gap: 0.3rem;
    }

    .numbers-line {
        gap: 0.3rem;
    }

    /* Mantener estilos para cards (fallback) */
    .ticket-card {
        padding: 1rem;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ticket-logo {
        width: 50px;
        height: 50px;
    }

    .ticket-title {
        font-size: 1.1rem;
    }

    .ticket-crypto-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .crypto-hash {
        justify-content: center;
        font-size: 0.8rem;
    }

    .ticket-footer {
        align-items: stretch;
    }

    .ticket-action-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .tickets-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 0.6rem 1rem;
    }
}

/* Small mobile - up to 480px */
@media (max-width: 480px) {
    .tickets-list-container {
        padding: 0 0.25rem;
    }

    .ticket-list-item {
        padding: 0.8rem;
    }

    .ticket-list-logo {
        width: 45px;
        height: 45px;
    }

    .ticket-list-title {
        font-size: 0.9rem;
    }

    .ticket-list-id,
    .ticket-list-owner {
        font-size: 0.7rem;
    }

    .ticket-list-hash {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .ticket-list-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        min-width: 100px;
    }

    .number-ball {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .ticket-list-cost .cost-value {
        font-size: 1.1rem;
    }
}

/*========== TICKET MANAGER STYLES ==========*/
.ticket-manager-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.ticket-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: var(--first-color);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.tickets-table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    color: var(--text-color);
}

.tickets-table th,
.tickets-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tickets-table th {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: #FFD700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.tickets-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.ticket-hash {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ticket-link-status.linked {
    color: #4CAF50;
    font-weight: 600;
}

.ticket-link-status.unlinked {
    color: #FF9800;
    font-weight: 600;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.upload-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.linked-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    font-weight: 600;
}

.no-tickets-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-align: center;
}

.no-tickets-message i {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.upload-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.upload-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.upload-info span {
    color: #FFD700;
    font-weight: 600;
    word-break: break-all;
}

.file-preview {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-preview i {
    font-size: 1.2rem;
    color: #4caf50;
}

.file-input-group input[type="file"] {
    color: var(--text-color) !important;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: var(--body-font);
    flex: 1;
}

.file-input-group input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #f2db56, #d5a423);
    color: #2a1a3e;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.file-input-group input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #d5a423, #b8941e);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Mobile Card Layout for Ticket Manager */
.tickets-mobile-view {
    display: none;
}

.ticket-card-mobile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ticket-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ticket-card-title {
    color: #FFD700;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status-badge.linked {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.ticket-status-badge.unlinked {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.ticket-card-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.ticket-info-row:last-child {
    border-bottom: none;
}

.ticket-info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 80px;
}

.ticket-info-value {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.ticket-info-value.hash {
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.ticket-info-value.numbers {
    color: #FFD700;
    font-weight: 700;
}

.ticket-info-value.price {
    color: #4CAF50;
    font-weight: 700;
}

.ticket-card-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.linked-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.linked-indicator i {
    font-size: 1.1rem;
}

/*===== PROMO REDESIGNED =====*/
.promo {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    margin-top: 3.5rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imagenes/BG.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.promo-container {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.promo-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 60vh;
    position: relative;
}

.promo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('../assets/imagenes/imgcasino/web-optimized/background-casino.jpg') center right/cover;
    opacity: 0.12;
    z-index: -1;
    border-radius: 0 25px 25px 0;
    mask: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,1) 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,1) 100%);
    filter: blur(0.5px);
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f2db56, #d5a423);
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    width: fit-content;
    animation: float 3s ease-in-out infinite;
}

.promo-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #f2db56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.promo-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-width: 120px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f2db56;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Cards */
.promo-hero-visual {
    position: relative;
    /* height: 500px; */
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 280px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation: floatY 6s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 50%;
    right: 10%;
    animation: floatY 6s ease-in-out infinite 3s;
}

.floating-card:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(255, 215, 0, 0.6);
}

.floating-card img,
.floating-card picture {
    width: 100%;
    height: 70%;
}

.floating-card img {
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.floating-card:hover img {
    filter: brightness(1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: #ffffff;
}

.card-overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #f2db56;
}

.card-overlay p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

/* Casino Spaces */
.casino-spaces {
    margin-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.space-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.space-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.space-card.featured {
    border: 2px solid #f2db56;
    background: linear-gradient(135deg, rgba(242, 219, 86, 0.1), rgba(242, 219, 86, 0.05));
}

.space-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.space-image picture,
.space-image img {
    width: 100%;
    height: 100%;
}

.space-image img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.space-card:hover .space-image img {
    transform: scale(1.1);
}

.space-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vr-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
}

.live-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.hot-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.space-content {
    padding: 2rem;
}

.space-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.space-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.space-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-tag {
    background: rgba(255, 215, 0, 0.2);
    color: #f2db56;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.space-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--body-font);
    width: 100%;
    justify-content: center;
}

.space-btn.primary {
    background: linear-gradient(135deg, #f2db56, #d5a423);
    color: #1a1a2e;
}

.space-btn.primary:hover {
    background: linear-gradient(135deg, #d5a423, #b8941e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 219, 86, 0.3);
}

.space-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.space-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Technology Showcase */
.tech-showcase {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 4rem 3rem;
    margin-bottom: 6rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tech-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
}

.tech-content p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f2db56, #d5a423);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-icon i {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.tech-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.tech-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* Space Explorer Modal Styles - Enhanced UX */
.space-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(16, 20, 40, 0.9));
    z-index: 10000;
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.space-modal.show {
    opacity: 1;
}

.space-modal-content {
    background: linear-gradient(145deg, rgba(10, 15, 30, 0.98), rgba(20, 25, 50, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.7) translateY(50px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    max-height: 85vh;
    overflow-y: auto;
}

.space-modal.show .space-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 215, 0, 0.3);
}

.modal-image-section {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    flex-shrink: 0;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
    transition: all 0.3s ease;
}

.modal-image-section:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2) saturate(1.3);
}

.modal-space-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.modal-space-badge.vr-badge {
    color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.modal-space-badge.live-badge {
    color: #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.4);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.modal-space-badge.hot-badge {
    color: #ffa502;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.2), rgba(255, 165, 2, 0.1));
    border: 1px solid rgba(255, 165, 2, 0.4);
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.3);
}

.modal-info-section {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: white;
    min-height: auto;
}

.modal-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.modal-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.system-requirements {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}

.system-requirements h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
}

.system-requirements h4 i {
    color: var(--first-color);
}

.requirements-grid {
    display: grid;
    gap: 0.75rem;
}

.requirement-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requirement-item:last-child {
    border-bottom: none;
}

.req-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.req-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.launcher-download-btn,
.streaming-play-btn {
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.launcher-download-btn {
    background: linear-gradient(135deg, var(--first-color), #e6ac00);
    color: #1a1a2e;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.launcher-download-btn::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;
}

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

.launcher-download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.streaming-play-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--first-color);
    border: 2px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
}

.streaming-play-btn:hover {
    background: linear-gradient(135deg, var(--first-color), #e6ac00);
    color: #1a1a2e;
    transform: translateY(-3px) scale(1.02);
    border-color: var(--first-color);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.launcher-download-btn:disabled,
.streaming-play-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Desktop optimizations for Space Modal */
@media screen and (min-width: 769px) {
    .space-modal-content {
        max-width: 750px;
        width: 85%;
    }
    
    .modal-image-section {
        height: 380px;
    }
    
    .modal-info-section {
        padding: 2.5rem 2rem 2rem 2rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .requirement-item {
        padding: 1rem;
    }
}

/* Mobile Responsiveness for Space Modal */
@media screen and (max-width: 768px) {
    .space-modal {
        padding: 1rem 0.5rem;
        align-items: center;
        justify-content: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .space-modal-content {
        max-width: 95%;
        margin: 0 auto;
        border-radius: 25px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image-section {
        height: 200px;
        border-radius: 25px 25px 0 0;
        flex-shrink: 0;
    }

    .modal-info-section {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        min-height: auto;
        gap: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .system-requirements {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .system-requirements h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .requirements-grid {
        gap: 0.6rem;
    }

    .requirement-item {
        gap: 0.5rem;
        padding: 0.3rem 0;
    }

    .req-label, .req-value {
        font-size: 0.8rem;
    }

    .modal-actions {
        gap: 0.6rem;
        padding-top: 0.75rem;
    }

    .launcher-download-btn,
    .streaming-play-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* Extra small mobile devices - Space Modal */
@media screen and (max-width: 480px) {
    .space-modal {
        padding: 0.5rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .space-modal-content {
        max-width: 98%;
        max-height: 95vh;
    }

    .modal-image-section {
        height: 180px;
    }

    .modal-info-section {
        padding: 0.75rem 1rem 1rem 1rem;
        gap: 0.75rem;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .modal-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .system-requirements h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .requirements-grid {
        gap: 0.5rem;
    }

    .requirement-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .req-label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .req-value {
        font-size: 0.75rem;
    }

    .modal-actions {
        gap: 0.5rem;
        padding-top: 0.5rem;
    }

    .launcher-download-btn,
    .streaming-play-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
}

    .requirement-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .req-label {
        font-size: 0.9rem;
    }

    .req-value {
        font-size: 0.9rem;
        padding-left: 1rem;
    }

    .modal-actions {
        gap: 0.8rem;
    }

    .launcher-download-btn,
    .streaming-play-btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }


/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.faq-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.faq-item[open] {
    border-color: #f2db56;
    background: linear-gradient(135deg, rgba(242, 219, 86, 0.1), rgba(242, 219, 86, 0.05));
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #ffffff;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item[open] .faq-question {
    background: rgba(242, 219, 86, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.faq-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.faq-text {
    flex: 1;
    font-size: 1rem;
}

.faq-arrow {
    font-size: 1.2rem;
    color: #f2db56;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .promo-hero {
        gap: 3rem;
    }

    .promo-title {
        font-size: 3rem;
    }

    .floating-card {
        width: 250px;
        height: 180px;
    }
}

@media screen and (max-width: 968px) {
    .promo-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .promo-hero::before {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 80%, rgba(0,0,0,1) 100%);
        -webkit-mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 80%, rgba(0,0,0,1) 100%);
        border-radius: 0 0 25px 25px;
        opacity: 0.08;
    }

    .promo-title {
        font-size: 2.5rem;
    }

    .promo-subtitle {
        max-width: 100%;
    }

    .floating-cards {
        height: 300px;
    }

    .floating-card {
        width: 200px;
        height: 150px;
    }

    .floating-card.card-1 {
        top: 10%;
        left: 5%;
    }

    .floating-card.card-2 {
        top: 40%;
        right: 5%;
    }

    .tech-showcase {
        padding: 3rem 2rem;
    }

    .spaces-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .promo {
        padding: 4rem 0;
    }

    .promo-hero {
        margin-bottom: 4rem;
    }

    .promo-title {
        font-size: 2rem;
    }

    .promo-subtitle {
        font-size: 1rem;
    }

    .promo-stats {
        justify-content: center;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .space-image {
        height: 180px;
    }

    .space-content {
        padding: 1.5rem;
    }

    .tech-showcase {
        padding: 2rem 1.5rem;
        margin-bottom: 4rem;
    }

    .tech-content h3 {
        font-size: 1.8rem;
    }

    .tech-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-item {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .floating-cards {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .promo-title {
        font-size: 1.8rem;
    }

    .promo-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }
}

/* Responsive Design for Ticket Manager */
@media screen and (max-width: 1029px) {
    .ticket-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .tickets-table-container {
        padding: 1rem;
    }

    /* Hide table and show mobile cards */
    .tickets-table {
        display: none !important;
    }

    .tickets-mobile-view {
        display: block;
    }

    .upload-info {
        padding: 0.8rem;
    }

    .upload-info span {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .ticket-manager-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .tickets-table th,
    .tickets-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .tickets-table {
        min-width: 900px;
    }

    .loading-spinner {
        padding: 2rem;
        font-size: 1rem;
    }

    .no-tickets-message {
        padding: 2rem;
        font-size: 1rem;
    }
}

/*========== CONTENT VISIBILITY CONTROL ==========*/
.auth-hidden {
    display: none !important;
}

.auth-visible {
    display: block !important;
}

/* Smooth transitions for content visibility */
section {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

section.auth-fade-out {
    opacity: 0;
    visibility: hidden;
}

section.auth-fade-in {
    opacity: 1;
    visibility: visible;
}

/*===== AUTHENTICATION MODALS =====*/
.auth-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: linear-gradient(135deg, #2a1a3e, #1d1d3a);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #f2db56;
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1000000;
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.auth-modal-header {
    background: linear-gradient(135deg, #59005c, #371f50);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.auth-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-modal-header h2 i {
    font-size: 1.6rem;
    color: #f2db56;
}

.close-auth-modal {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.close-auth-modal:hover {
    color: #f2db56;
    opacity: 1;
}

.auth-modal-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #f2db56;
    box-shadow: 0 0 0 3px rgba(242, 219, 86, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.input-group i {
    color: #f2db56;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--body-font);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.auth-message {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.auth-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #f2db56, #d5a423);
    color: #2a1a3e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #d5a423, #b8941e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 219, 86, 0.3);
}

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

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn i {
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #f2db56;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Button Outline Style for Login Button */
.button-outline {
    background: transparent !important;
    color: #f2db56 !important;
    border: 2px solid #f2db56 !important;
    margin-left: 1rem;
}

.button-outline:hover {
    background: #f2db56 !important;
    color: #2a1a3e !important;
    border-color: #f2db56 !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media screen and (max-width: 480px) {
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .auth-modal-header {
        padding: 1rem 1.5rem;
    }

    .auth-modal-header h2 {
        font-size: 1.2rem;
    }

    .auth-modal-body {
        padding: 1.5rem;
    }

    .home_contact {
        flex-direction: column;
        gap: 1rem;
    }

    .button-outline {
        margin-left: 0;
    }
}

@media screen and (max-width: 350px) {
    .auth-modal-content {
        width: 98%;
    }

    .auth-modal-body {
        padding: 1rem;
    }
}

/*========== KENO FLOATING BUTTON ==========*/
.keno-float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.keno-float-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.keno-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.keno-close-icon {
  font-size: 2rem;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease;
}

.keno-float-button.active {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.keno-float-button.active:hover {
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/*========== KENO MODAL ==========*/
.keno-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.keno-modal.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.keno-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.keno-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffd700;
  z-index: 10;
}

.keno-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 215, 0, 0.2);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: kenoSpin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.keno-loading p {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#kenoFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*========== KENO TABS ==========*/
.keno-tabs {
  display: flex;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.keno-tab-button {
  flex: 1;
  padding: 1.2rem 2rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 3px solid transparent;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.keno-tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0), rgba(255, 215, 0, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.keno-tab-button:hover::before {
  opacity: 1;
}

.keno-tab-button:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.keno-tab-button.active {
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.1));
  border-bottom-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 2;
}

.keno-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: tabGlow 2s ease-in-out infinite alternate;
}

@keyframes tabGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.keno-tab-content {
  display: none;
  height: calc(100vh - 70px);
  overflow-y: auto;
  background: #1a1a1a;
}

.keno-tab-content.active {
  display: block;
}

/*========== KENO PLAY TAB ==========*/
.keno-game-selection {
  padding: 2rem;
  color: white;
}

.keno-game-selection h3 {
  color: #ffd700;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.keno-games-list {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.keno-enhanced-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.keno-enhanced-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.25);
}

.keno-enhanced-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.keno-enhanced-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: none;
}

.keno-enhanced-card.expired {
    opacity: 0.4;
    filter: grayscale(50%);
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.keno-enhanced-card.expired .keno-game-name {
    color: #999;
    text-shadow: none;
}

.keno-enhanced-card.removing {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.keno-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.keno-game-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.keno-game-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-selling {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
}

.status-finished {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

/* Nuevos estilos para countdown y estados de juego */
.keno-game-card.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.keno-game-card.disabled .keno-game-name {
    color: #999;
    text-shadow: none;
}

.keno-game-status.preparing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.keno-game-status.countdown {
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.6);
    animation: urgentPulse 1s infinite;
}

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

@keyframes urgentPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 149, 0, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 149, 0, 0.8);
    }
}

.keno-card-body {
    padding: 15px 20px;
}

.keno-info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.keno-room-info {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
}

.keno-room-info i {
    margin-right: 8px;
    color: #ffd700;
    font-size: 1.1em;
}

.keno-countdown-section {
    text-align: right;
    flex-grow: 1;
}

.countdown-timer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.countdown-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-display {
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px currentColor;
}

.keno-betting-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.04));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.bet-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.bet-info-row:first-child {
    margin-top: 0;
}

.bet-info-row:last-child {
    margin-bottom: 0;
}

.bet-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.bet-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.95em;
}

.bet-info-row.jackpot-info {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 8px;
    margin-top: 12px;
}

.bet-info-row.jackpot-info .bet-value.prize {
    color: #4ecdc4;
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.4);
    font-size: 1.1em;
}

.keno-card-footer {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.draw-time {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    gap: 8px;
}

.draw-time i {
    color: #ffd700;
    font-size: 1.1em;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .keno-info-section {
        flex-direction: column;
        align-items: stretch;
    }

    .keno-countdown-section {
        text-align: left;
        margin-top: 10px;
    }

    .keno-betting-info {
        font-size: 0.9em;
    }
}

/* ========== ESTILOS PARA PROGRESO DE COMPRA ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.progress-modal {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    animation: slideInScale 0.4s ease-out;
}

@keyframes slideInScale {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.progress-header {
    margin-bottom: 2rem;
}

.progress-header .progress-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.progress-header h3 {
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.progress-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.progress-bar-container {
    margin: 1.5rem 0;
    position: relative;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #ffd700, #4ecdc4);
    height: 100%;
    border-radius: 25px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.progress-percentage {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.progress-steps {
    margin: 2rem 0;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.8;
}

.progress-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.9rem;
    color: #ffd700;
}

.progress-step.active .step-icon {
    background: rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.progress-step.completed .step-icon {
    background: #4ecdc4;
    color: white;
}

.progress-step span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.progress-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.selected-numbers {
    margin-bottom: 1rem;
}

.selected-numbers span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.number-bubble {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.bet-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.bet-info span {
    color: rgba(255, 255, 255, 0.8);
}

.bet-info strong {
    color: #ffd700;
}

@media (max-width: 768px) {
    .progress-modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .numbers-display {
        gap: 0.25rem;
    }

    .number-bubble {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .bet-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ========== WALLET PAGE STYLES ========== */

/* Wallet Header */
.wallet-header {
    margin-bottom: 2rem;
}

.wallet-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.wallet-title-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.wallet-title-section .section-title i {
    font-size: 2.5rem;
}

.wallet-address-card {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.95), rgba(32, 34, 42, 0.95));
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wallet-address-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #f0b90b;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.wallet-address-header i {
    font-size: 1.2rem;
}

.wallet-address-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-address-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 20, 24, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.15);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.copy-address-btn {
    background: linear-gradient(135deg, #f0b90b, #eab459);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    color: #1e1e1e;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-address-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.wallet-network {
    display: flex;
    justify-content: center;
}

.network-badge {
    background: linear-gradient(135deg, #f3ba2f, #f0b90b);
    color: #1e1e1e;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Balance Cards - Binance Style */
.balance-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.95), rgba(32, 34, 42, 0.95));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Specific Mobile Styles for Wallet Balance Cards */
@media (max-width: 767px) {
    .balance-cards-container .balance-card {
        padding: 1.8rem 1.4rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.2rem !important;
    }

    .balance-cards-container {
        grid-template-columns: 1fr !important;
        gap: 1.6rem !important;
        padding: 0 0.6rem !important;
    }
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #eab459, #f0b90b, #eab459);
}

.balance-card.sps-balance::before {
    background: linear-gradient(90deg, #f0b90b, #eab459);
}

.balance-card.bnb-balance::before {
    background: linear-gradient(90deg, #f3ba2f, #f0b90b);
}

.balance-card.casino-balance::before {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.balance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(234, 180, 89, 0.15);
    border-color: rgba(234, 180, 89, 0.4);
}

.balance-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.balance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.05));
    border: 1px solid rgba(240, 185, 11, 0.2);
    color: #f0b90b;
}

.sps-balance .balance-icon {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.05));
    color: #f0b90b;
}

.bnb-balance .balance-icon {
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.15), rgba(243, 186, 47, 0.05));
    color: #f3ba2f;
}

.casino-balance .balance-icon {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.05));
    color: #4ecdc4;
}

.balance-info h3 {
    color: #f0b90b;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.balance-info p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
}

.balance-amount {
    margin-bottom: 1.75rem;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.balance-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.amount-section {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.balance-value .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Roboto Condensed', sans-serif;
}

.balance-value .currency-short {
    font-size: 0.9rem;
    color: #f0b90b;
    font-weight: 600;
    opacity: 0.9;
}

.currency-full {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 2px;
}

.loading-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-balance i {
    font-size: 1.2rem;
    color: #ffd700;
}

.balance-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
}

.balance-error i {
    font-size: 1.2rem;
}

.balance-actions {
    display: flex;
    gap: 0.5rem;
}

/* DESKTOP SPECIFIC STYLES - PREMIUM UX */
@media (min-width: 768px) {
    .balance-cards-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
        gap: 2rem !important;
        margin-bottom: 3rem !important;
        padding: 0 1rem !important;
    }

    .balance-card {
        background: linear-gradient(145deg, rgba(24, 26, 32, 0.98), rgba(32, 34, 42, 0.95)) !important;
        border: 2px solid rgba(234, 180, 89, 0.3) !important;
        border-radius: 20px !important;
        padding: 2.5rem 2rem !important;
        backdrop-filter: blur(25px) !important;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        min-height: 280px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .balance-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 60px rgba(234, 180, 89, 0.2) !important;
        border-color: rgba(234, 180, 89, 0.5) !important;
    }

    .balance-card-header {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .balance-icon {
        width: 64px !important;
        height: 64px !important;
        border-radius: 16px !important;
        font-size: 2rem !important;
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.2), rgba(240, 185, 11, 0.1)) !important;
        border: 2px solid rgba(240, 185, 11, 0.3) !important;
    }

    .balance-info h3 {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.5rem !important;
        color: #f0b90b !important;
    }

    .balance-info p {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .balance-amount {
        background: rgba(240, 185, 11, 0.1) !important;
        border: 2px solid rgba(240, 185, 11, 0.2) !important;
        border-radius: 16px !important;
        padding: 2rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .balance-value .balance-main {
        font-size: 2.2rem !important;
        font-weight: 800 !important;
        color: #f0b90b !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }

    .balance-value .balance-currency {
        font-size: 1.2rem !important;
        color: rgba(240, 185, 11, 0.8) !important;
        font-weight: 600 !important;
    }

    .balance-actions {
        display: flex !important;
        gap: 1rem !important;
        margin-top: auto !important;
    }

    .balance-action-btn {
        flex: 1 !important;
        padding: 1.2rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        min-height: 56px !important;
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.08)) !important;
        border: 2px solid rgba(240, 185, 11, 0.3) !important;
        color: #f0b90b !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        text-decoration: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .balance-action-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
        transition: left 0.5s !important;
    }

    .balance-action-btn:hover::before {
        left: 100% !important;
    }

    .balance-action-btn:hover {
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.25), rgba(240, 185, 11, 0.15)) !important;
        border-color: rgba(240, 185, 11, 0.5) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(240, 185, 11, 0.25) !important;
    }

    .balance-action-btn i {
        font-size: 1.2rem !important;
    }

    /* Color variations for different button types */
    .deposit-btn {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08)) !important;
        border-color: rgba(76, 175, 80, 0.3) !important;
        color: #4caf50 !important;
    }

    .deposit-btn:hover {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15)) !important;
        border-color: rgba(76, 175, 80, 0.5) !important;
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25) !important;
    }

    .transfer-btn {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.08)) !important;
        border-color: rgba(33, 150, 243, 0.3) !important;
        color: #2196f3 !important;
    }

    .transfer-btn:hover {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 150, 243, 0.15)) !important;
        border-color: rgba(33, 150, 243, 0.5) !important;
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25) !important;
    }

    .game-btn {
        background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(156, 39, 176, 0.08)) !important;
        border-color: rgba(156, 39, 176, 0.3) !important;
        color: #9c27b0 !important;
    }

    .game-btn:hover {
        background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(156, 39, 176, 0.15)) !important;
        border-color: rgba(156, 39, 176, 0.5) !important;
        box-shadow: 0 8px 25px rgba(156, 39, 176, 0.25) !important;
    }

    .recharge-btn {
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.08)) !important;
        border-color: rgba(255, 152, 0, 0.3) !important;
        color: #ff9800 !important;
    }

    .recharge-btn:hover {
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.15)) !important;
        border-color: rgba(255, 152, 0, 0.5) !important;
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25) !important;
    }
}

.balance-action-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08), rgba(240, 185, 11, 0.04));
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: #f0b90b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    letter-spacing: 0.2px;
}

/* WALLET MOBILE OPTIMIZATION - FINAL */
@media (max-width: 767px) {
    #wallet .balance-cards-container {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
        padding: 0 1rem !important;
    }

    #wallet .balance-card {
        padding: 2rem 1.5rem !important;
        border-radius: 18px !important;
        margin-bottom: 0 !important;
    }

    #wallet .balance-actions {
        flex-direction: column !important;
        gap: 1.4rem !important;
        margin-top: 1.8rem !important;
    }

    #wallet .balance-action-btn {
        width: 100% !important;
        padding: 1.5rem 2rem !important;
        font-size: 1.1rem !important;
        border-radius: 16px !important;
        min-height: 62px !important;
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.25), rgba(240, 185, 11, 0.15)) !important;
        border: 3px solid rgba(240, 185, 11, 0.4) !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        gap: 1rem !important;
        box-shadow: 0 4px 15px rgba(240, 185, 11, 0.2) !important;
    }

    #wallet .balance-action-btn:hover {
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.35), rgba(240, 185, 11, 0.25)) !important;
        border-color: rgba(240, 185, 11, 0.6) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(240, 185, 11, 0.3) !important;
    }

    #wallet .balance-action-btn i {
        font-size: 1.5rem !important;
    }

    .balance-action-btn:hover {
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.25), rgba(240, 185, 11, 0.15)) !important;
        border-color: rgba(240, 185, 11, 0.5) !important;
        transform: translateY(-1px) !important;
    }

    .balance-action-btn i {
        font-size: 1.3rem !important;
        margin-bottom: 0 !important;
    }

    .balance-action-btn span {
        font-size: 0.9rem !important;
        text-align: center !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    #wallet .balance-cards-container {
        padding: 0 0.8rem !important;
        gap: 1.6rem !important;
    }

    #wallet .balance-card {
        padding: 1.8rem 1.3rem !important;
    }

    #wallet .balance-actions {
        gap: 1.2rem !important;
        margin-top: 1.6rem !important;
    }

    #wallet .balance-action-btn {
        padding: 1.3rem 1.8rem !important;
        font-size: 1rem !important;
        min-height: 58px !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.3), rgba(240, 185, 11, 0.2)) !important;
        border: 3px solid rgba(240, 185, 11, 0.5) !important;
        font-weight: 700 !important;
    }

    .balance-action-btn:hover {
        background: linear-gradient(135deg, rgba(240, 185, 11, 0.3), rgba(240, 185, 11, 0.18)) !important;
        border-color: rgba(240, 185, 11, 0.6) !important;
    }

    .balance-action-btn i {
        font-size: 1.1rem !important;
    }

    .balance-action-btn span {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }
}

.balance-action-btn:hover {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.08));
    border-color: rgba(240, 185, 11, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.15);
}

.balance-action-btn.deposit-btn:hover {
    color: #f0b90b;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.08));
}

.balance-action-btn.transfer-btn:hover {
    color: #f0b90b;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.08));
}

.balance-action-btn.game-btn:hover {
    color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.08));
    border-color: rgba(78, 205, 196, 0.4);
}

/* Quick Actions - Binance Style */
.quick-actions-section {
    margin-top: 2.5rem;
}

.quick-actions-title {
    color: #f0b90b;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.8), rgba(32, 34, 42, 0.8));
    border: 1px solid rgba(240, 185, 11, 0.15);
    border-radius: 10px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.quick-action-card:hover {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.95), rgba(32, 34, 42, 0.95));
    border-color: rgba(240, 185, 11, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.12);
}

.quick-action-card i {
    font-size: 1.8rem;
    color: #f0b90b;
}

.quick-action-card span {
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

/* Wallet Modals - Binance Style */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10001;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    animation: fadeIn 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.wallet-modal.show {
    display: flex !important;
}

.wallet-modal-content {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.98), rgba(32, 34, 42, 0.98));
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    box-shadow: none;
    animation: slideInScale 0.4s ease-out;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.wallet-modal-header h3 {
    color: #f0b90b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: #ffd700;
}

.wallet-modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

/* Deposit Modal Styles */
.deposit-instructions {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.deposit-address-section {
    margin-bottom: 1.5rem;
}

.deposit-address-section label {
    display: block;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.deposit-address-input {
    display: flex;
    gap: 0.5rem;
}

.deposit-address-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: linear-gradient(135deg, #ffd700, #4ecdc4);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.deposit-qr-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.qr-placeholder {
    background: rgba(18, 20, 24, 0.4);
    border: 2px dashed rgba(240, 185, 11, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.qr-placeholder i {
    font-size: 2.5rem;
    color: rgba(240, 185, 11, 0.6);
    margin-bottom: 0.75rem;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

#qr-canvas {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.deposit-warning {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.deposit-warning i {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Transfer Modal Styles */
.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ffd700;
    font-weight: bold;
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input-container input {
    padding-right: 4rem;
}

.currency-label {
    position: absolute;
    right: 1rem;
    color: #ffd700;
    font-weight: bold;
    pointer-events: none;
}

.available-balance {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.transfer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cancel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-transfer-btn {
    flex: 1;
    background: linear-gradient(135deg, #ffd700, #4ecdc4);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Notification System */
.wallet-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    z-index: 10003;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.wallet-notification.show {
    transform: translateX(0);
}

.wallet-notification.success {
    border-color: rgba(78, 205, 196, 0.5);
}

.wallet-notification.success i {
    color: #4ecdc4;
}

.wallet-notification.error {
    border-color: rgba(255, 107, 107, 0.5);
}

.wallet-notification.error i {
    color: #ff6b6b;
}

.wallet-notification i {
    font-size: 1.2rem;
}

/* Responsive Design */
/* Desktop Modal Optimizations */
@media screen and (min-width: 1024px) {
    .wallet-modal-content {
        max-width: 440px;
        max-height: 75vh;
    }

    .wallet-modal-header {
        padding: 1.2rem 1.8rem;
    }

    .wallet-modal-body {
        padding: 1.2rem 1.8rem 1.8rem 1.8rem;
    }

    .qr-placeholder {
        padding: 1rem;
    }

    .qr-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .deposit-instructions {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .deposit-address-section {
        margin-bottom: 1.2rem;
    }

    .deposit-qr-section {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .balance-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .wallet-title-section .section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .wallet-title-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .wallet-address-card {
        padding: 1.3rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
        border-radius: 16px;
    }

    .wallet-address-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.8rem;
        border-radius: 12px;
    }

    .balance-cards-container {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .balance-card {
        padding: 1.6rem 1.4rem;
        border-radius: 16px;
        min-height: auto;
    }

    .balance-card-header {
        margin-bottom: 1.4rem;
        gap: 1rem;
    }

    .balance-icon {
        width: 44px;
        height: 44px;
    }

    .balance-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .balance-info p {
        font-size: 0.85rem;
        opacity: 0.8;
        margin-bottom: 0;
    }

    .balance-amount {
        margin-bottom: 1.2rem;
        padding: 0.8rem 1rem;
        background: rgba(240, 185, 11, 0.08);
        border-radius: 10px;
        border: 1px solid rgba(240, 185, 11, 0.15);
    }

    .balance-amount .amount-value {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }

    .balance-amount .amount-currency {
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .balance-amount {
        margin-bottom: 1.2rem;
        min-height: 55px;
    }

    .balance-value .amount {
        font-size: 1.6rem;
    }

    .balance-value .currency-short {
        font-size: 0.85rem;
    }

    .currency-full {
        font-size: 0.7rem;
    }


    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .quick-action-card {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .quick-action-card i {
        font-size: 1.6rem;
    }

    .quick-action-card span {
        font-size: 0.85rem;
    }

    .wallet-modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .wallet-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }

    .wallet-modal-header {
        padding: 1.2rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }

    .wallet-modal-body {
        padding: 1.5rem;
    }

    .deposit-address-input {
        flex-direction: column;
        gap: 0.8rem;
    }

    .deposit-address-input input {
        border-radius: 12px;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
        border-radius: 12px;
    }

    .transfer-form .form-group {
        margin-bottom: 1.2rem;
    }

    .transfer-form input {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .transfer-actions {
        flex-direction: row;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .transfer-actions button {
        flex: 1;
        padding: 0.9rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .wallet-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }

    .wallet-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.3rem;
    }

    .wallet-header {
        margin-bottom: 1.5rem;
    }

    .wallet-title-section {
        padding: 1rem 0.3rem;
    }

    .wallet-title-section .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .wallet-address-card {
        padding: 1.2rem;
        margin: 0 0.2rem 1.5rem 0.2rem;
        border-radius: 20px;
    }

    .wallet-address-display {
        padding: 1rem;
        border-radius: 16px;
    }

    .wallet-address-text {
        word-break: break-all;
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0.3rem 0;
    }

    .copy-address-btn {
        padding: 0.7rem 1.2rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .balance-cards-container {
        padding: 0 0.2rem;
        gap: 1rem;
    }

    .balance-card {
        padding: 1.5rem 1.2rem;
        border-radius: 20px;
        min-height: auto;
    }

    .balance-card-header {
        flex-direction: row;
        text-align: left;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .balance-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .balance-info {
        flex: 1;
    }

    .balance-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .balance-info p {
        font-size: 0.75rem;
    }

    .balance-amount {
        margin-bottom: 1rem;
        min-height: 50px;
    }

    .balance-value .amount {
        font-size: 1.5rem;
    }


    .quick-actions-section {
        margin-top: 2rem;
        padding: 0 0.2rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .quick-action-card {
        padding: 1.2rem 0.8rem;
        border-radius: 18px;
    }

    .quick-action-card i {
        font-size: 1.6rem;
    }

    .quick-action-card span {
        font-size: 0.8rem;
    }

    .wallet-modal {
        padding: 0;
        align-items: flex-end;
    }

    .wallet-modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 80vh;
    }

    .wallet-modal-header {
        padding: 1rem 1.2rem;
    }

    .wallet-modal-header h3 {
        font-size: 1.1rem;
    }

    .wallet-modal-body {
        padding: 1.2rem;
    }
}

.keno-winning-numbers {
  font-size: 0.8rem;
  color: #ffd700;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.keno-jackpot {
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
}

/*========== KENO NUMBER SELECTION ==========*/
.keno-number-selection {
  padding: 2rem;
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.keno-game-info {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.keno-number-selection h4 {
  color: #ffd700;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.3rem;
}

.keno-selected-count {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.keno-selected-count span {
  color: #ffd700;
  font-weight: bold;
}

.keno-number-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.keno-number-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.keno-number-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.keno-number-btn.selected {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  border-color: #ffd700;
  transform: scale(1.05);
}

.keno-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.keno-back-btn, .keno-buy-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.keno-back-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.keno-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.keno-buy-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  flex: 1;
}

.keno-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.keno-buy-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/*========== KENO PURCHASE SUCCESS ==========*/
.keno-purchase-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: white;
}

.success-animation {
  margin-bottom: 2rem;
}

.success-animation i {
  font-size: 4rem;
  color: #4caf50;
  animation: successPulse 2s ease-in-out infinite;
}

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

.keno-purchase-success h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.keno-purchase-success p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.keno-success-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.keno-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/*========== RESPONSIVE KENO ==========*/
@media screen and (max-width: 768px) {
  .keno-float-button {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }

  .keno-icon {
    width: 32px;
    height: 32px;
  }

  .keno-close-icon {
    font-size: 1.5rem;
  }

  .keno-tab-button {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .keno-game-selection, .keno-number-selection {
    padding: 1rem;
  }

  .keno-number-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 0.3rem;
  }

  .keno-number-btn {
    font-size: 0.8rem;
  }

  .keno-actions {
    flex-direction: column;
  }

  .keno-back-btn, .keno-buy-btn {
    width: 100%;
  }
}

/* Keno Error Message Styles */
.keno-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 100, 0, 0.1));
    border-radius: 15px;
    margin: 20px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.keno-error-message .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.keno-error-message h3 {
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.keno-error-message p {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.retry-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.retry-button:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Keno Stream Info Styles */
.keno-stream-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 20px;
    margin: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.keno-stream-info .stream-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

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

.keno-stream-info h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.keno-stream-info > p {
    color: #e0e0e0;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
}

.stream-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    width: 100%;
    max-width: 350px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.feature-item i {
    font-size: 20px;
    color: #ffd700;
    min-width: 20px;
}

.feature-item span {
    color: #ffffff;
    font-size: 14px;
}

.keno-stream-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keno-stream-btn:hover {
    background: linear-gradient(135deg, #ffb347, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.keno-stream-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.keno-stream-btn i {
    font-size: 20px;
}

.stream-note {
    color: #b0b0b0;
    font-size: 12px;
    font-style: italic;
    margin-top: 10px;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .keno-stream-info {
        padding: 30px 15px;
        margin: 15px;
    }

    .keno-stream-info .stream-icon {
        font-size: 48px;
    }

    .keno-stream-info h3 {
        font-size: 24px;
    }

    .keno-stream-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .stream-features {
        max-width: 300px;
    }

    .feature-item {
        padding: 10px 16px;
    }
}

/*========== KENO TICKETS HISTORY - SPECIFIC STYLES ==========*/

/* =================================
   DESKTOP VERSION (768px+)
   ================================= */

/* Container and Header */
#kenoTicketsTab .keno-tickets-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.06));
    border-bottom: 2px solid rgba(255, 215, 0, 0.25);
    margin-bottom: 0.5rem;
    border-radius: 15px 15px 0 0;
}

#kenoTicketsTab .keno-tickets-header h3 {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

#kenoTicketsTab .keno-tickets-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

/* Loading, Empty and Error States */
#kenoTicketsTab .keno-tickets-loading,
#kenoTicketsTab .keno-tickets-empty,
#kenoTicketsTab .keno-tickets-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    text-align: center;
    color: #ffffff;
    margin: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    min-height: 300px;
}

#kenoTicketsTab .keno-tickets-loading {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

#kenoTicketsTab .keno-tickets-empty {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.15), rgba(189, 189, 189, 0.1));
    border: 2px solid rgba(158, 158, 158, 0.4);
    box-shadow: 0 8px 32px rgba(158, 158, 158, 0.1);
}

#kenoTicketsTab .keno-tickets-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(229, 57, 53, 0.1));
    border: 2px solid rgba(244, 67, 54, 0.4);
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.2);
}

#kenoTicketsTab .empty-icon,
#kenoTicketsTab .error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: pulse 2s infinite ease-in-out;
}

#kenoTicketsTab .keno-tickets-loading .keno-spinner,
#kenoTicketsTab .keno-tickets-empty h4,
#kenoTicketsTab .keno-tickets-error h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

#kenoTicketsTab .keno-tickets-empty p,
#kenoTicketsTab .keno-tickets-error p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 400px;
}

#kenoTicketsTab .keno-retry-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#kenoTicketsTab .keno-retry-btn:hover {
    background: linear-gradient(135deg, #ffb347, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Tickets List Container */
#kenoTicketsTab .keno-tickets-list {
    padding: 0.5rem 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(255, 255, 255, 0.1);
}

#kenoTicketsTab .keno-tickets-list::-webkit-scrollbar {
    width: 8px;
}

#kenoTicketsTab .keno-tickets-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#kenoTicketsTab .keno-tickets-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 10px;
}

/* Ticket Cards */
#kenoTicketsTab .keno-ticket-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 15px;
    margin-bottom: 1rem;
    padding: 1rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#kenoTicketsTab .keno-ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transition: left 0.6s ease;
}

#kenoTicketsTab .keno-ticket-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#kenoTicketsTab .keno-ticket-card:hover::before {
    left: 100%;
}

#kenoTicketsTab .keno-ticket-card.has-winnings {
    border-color: rgba(255, 215, 0, 0.7);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    animation: winnerGlow 2s infinite ease-in-out;
}

@keyframes winnerGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

/* Ticket Header */
#kenoTicketsTab .keno-ticket-card .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

#kenoTicketsTab .keno-ticket-card .ticket-title h4 {
    color: #ffd700;
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#kenoTicketsTab .keno-ticket-card .ticket-code {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

#kenoTicketsTab .keno-ticket-card .ticket-amount .amount {
    color: #4ecdc4;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#kenoTicketsTab .keno-ticket-card .winner-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    animation: winnerPulse 1.5s infinite ease-in-out;
}

/* New Layout Structure - Header Section */
#kenoTicketsTab .keno-ticket-card .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#kenoTicketsTab .keno-ticket-card .ticket-title-section h4 {
    margin: 0 0 0.3rem 0;
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: bold;
}

#kenoTicketsTab .keno-ticket-card .ticket-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

#kenoTicketsTab .keno-ticket-card .time-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

#kenoTicketsTab .keno-ticket-card .ticket-status-section {
    align-self: flex-start;
}

/* Regular Financial Info Section (Non-winners) */
#kenoTicketsTab .keno-ticket-card .ticket-financial-info {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#kenoTicketsTab .keno-ticket-card .bet-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#kenoTicketsTab .keno-ticket-card .bet-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

#kenoTicketsTab .keno-ticket-card .bet-amount .amount {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Winner Financial Section - Special Layout */
#kenoTicketsTab .keno-ticket-card .winner-financial-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0.5rem;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    animation: winnerGlow 3s infinite ease-in-out;
}

/* Winner Celebration Section */
#kenoTicketsTab .keno-ticket-card .winner-celebration {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

#kenoTicketsTab .keno-ticket-card .winner-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

#kenoTicketsTab .keno-ticket-card .winner-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#kenoTicketsTab .keno-ticket-card .winner-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

#kenoTicketsTab .keno-ticket-card .winner-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Winner Amounts Section */
#kenoTicketsTab .keno-ticket-card .winner-amounts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#kenoTicketsTab .keno-ticket-card .amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

#kenoTicketsTab .keno-ticket-card .amount-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

#kenoTicketsTab .keno-ticket-card .amount-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

#kenoTicketsTab .keno-ticket-card .prize-highlight {
    color: #28a745 !important;
    font-size: 1.3rem !important;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

#kenoTicketsTab .keno-ticket-card .total-row {
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    padding-top: 1rem !important;
    margin-top: 0.5rem;
}

#kenoTicketsTab .keno-ticket-card .total-highlight {
    color: #ffd700 !important;
    font-size: 1.4rem !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: totalPulse 2s infinite ease-in-out;
}

/* Ticket Body Improvements */
#kenoTicketsTab .keno-ticket-card .ticket-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

/* Remove old prize styles that are no longer used */
/* .prize-detail and .prize-value classes removed since we eliminated duplication */

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

/* Winner animations */
@keyframes winnerGlow {
    0% { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes totalPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Winning Numbers Section */
#kenoTicketsTab .keno-ticket-card .winning-numbers-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.08));
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

#kenoTicketsTab .keno-ticket-card .winning-numbers-section h5 {
    color: #4caf50;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Selected Numbers Section */
#kenoTicketsTab .keno-ticket-card .selected-numbers {
    margin-bottom: 1rem;
}

#kenoTicketsTab .keno-ticket-card .selected-numbers h5 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

#kenoTicketsTab .keno-ticket-card .numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#kenoTicketsTab .keno-ticket-card .number-chip {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

#kenoTicketsTab .keno-ticket-card .number-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

#kenoTicketsTab .keno-ticket-card .winning-number-chip {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
    transition: all 0.3s ease;
}

#kenoTicketsTab .keno-ticket-card .winning-number-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

#kenoTicketsTab .keno-ticket-card .matched-number {
    background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5) !important;
    animation: matchPulse 2s infinite ease-in-out;
    position: relative;
}

#kenoTicketsTab .keno-ticket-card .matched-number::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4caf50;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

/* Ticket Details */
#kenoTicketsTab .keno-ticket-card .ticket-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#kenoTicketsTab .keno-ticket-card .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#kenoTicketsTab .keno-ticket-card .detail-row:last-child {
    border-bottom: none;
}

#kenoTicketsTab .keno-ticket-card .detail-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

#kenoTicketsTab .keno-ticket-card .detail-value {
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-align: right;
}

/* Transaction Actions */
#kenoTicketsTab .keno-ticket-card .transaction-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#kenoTicketsTab .keno-ticket-card .copy-btn,
#kenoTicketsTab .keno-ticket-card .bscscan-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

#kenoTicketsTab .keno-ticket-card .copy-btn:hover {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: rgba(78, 205, 196, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

#kenoTicketsTab .keno-ticket-card .bscscan-btn:hover {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-color: rgba(255, 215, 0, 0.7);
    color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

#kenoTicketsTab .keno-ticket-card .transaction-id {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
}

/* Copy Feedback Animation */
@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutFade {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* =================================
   MOBILE VERSION (up to 767px)
   ================================= */

@media (max-width: 767px) {
    /* Header optimized for mobile */
    #kenoTicketsTab .keno-tickets-header {
        padding: 1rem 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 10px 10px 0 0;
    }
    
    #kenoTicketsTab .keno-tickets-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    #kenoTicketsTab .keno-tickets-header p {
        font-size: 0.85rem;
    }

    /* Mobile-optimized states */
    #kenoTicketsTab .keno-tickets-loading,
    #kenoTicketsTab .keno-tickets-empty,
    #kenoTicketsTab .keno-tickets-error {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 15px;
        min-height: 250px;
    }
    
    #kenoTicketsTab .empty-icon,
    #kenoTicketsTab .error-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    #kenoTicketsTab .keno-tickets-loading .keno-spinner,
    #kenoTicketsTab .keno-tickets-empty h4,
    #kenoTicketsTab .keno-tickets-error h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    #kenoTicketsTab .keno-tickets-empty p,
    #kenoTicketsTab .keno-tickets-error p {
        font-size: 0.9rem;
    }
    
    #kenoTicketsTab .keno-retry-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    /* Mobile tickets list */
    #kenoTicketsTab .keno-tickets-list {
        padding: 0.25rem;
        max-height: calc(100vh - 150px);
    }
    
    /* Mobile-optimized ticket cards */
    #kenoTicketsTab .keno-ticket-card {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 10px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    }
    
    #kenoTicketsTab .keno-ticket-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* Mobile ticket header */
    #kenoTicketsTab .keno-ticket-card .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-title h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-code {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-amount .amount {
        font-size: 1.1rem;
    }
    
    /* Mobile Responsive Updates for New Layout */
    #kenoTicketsTab .keno-ticket-card .ticket-header {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-financial-info {
        padding: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .winner-financial-section {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .winner-celebration {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .winner-icon {
        font-size: 2.5rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .winner-title {
        font-size: 1.5rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .amount-row {
        padding: 0.4rem 0;
    }
    
    #kenoTicketsTab .keno-ticket-card .amount-label {
        font-size: 0.9rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .amount-value {
        font-size: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .prize-highlight {
        font-size: 1.1rem !important;
    }
    
    #kenoTicketsTab .keno-ticket-card .total-highlight {
        font-size: 1.2rem !important;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-metadata {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .ticket-body {
        padding: 1rem;
    }

    /* Mobile winning numbers section */
    #kenoTicketsTab .keno-ticket-card .winning-numbers-section {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 8px;
    }
    
    #kenoTicketsTab .keno-ticket-card .winning-numbers-section h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Mobile selected numbers */
    #kenoTicketsTab .keno-ticket-card .selected-numbers h5 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Mobile numbers grid */
    #kenoTicketsTab .keno-ticket-card .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .number-chip,
    #kenoTicketsTab .keno-ticket-card .winning-number-chip {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    #kenoTicketsTab .keno-ticket-card .number-chip:hover,
    #kenoTicketsTab .keno-ticket-card .winning-number-chip:hover {
        transform: translateY(-2px);
    }
    
    #kenoTicketsTab .keno-ticket-card .matched-number::after {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }

    /* Mobile ticket details */
    #kenoTicketsTab .keno-ticket-card .ticket-details {
        gap: 0.8rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.8rem 0;
    }
    
    #kenoTicketsTab .keno-ticket-card .detail-label {
        font-size: 0.9rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .detail-value {
        text-align: left;
        font-size: 0.85rem;
    }
    
    /* Mobile transaction section complete redesign */
    #kenoTicketsTab .keno-ticket-card .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #kenoTicketsTab .keno-ticket-card .detail-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #ffd700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.3rem;
    }
    
    /* Mobile transaction actions container */
    #kenoTicketsTab .keno-ticket-card .transaction-actions {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        align-items: stretch;
    }
    
    /* Mobile transaction ID - Optimized truncation */
    #kenoTicketsTab .keno-ticket-card .transaction-id {
        font-family: 'Courier New', monospace;
        font-size: 0.7rem;
        padding: 0.6rem;
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.9);
        
        /* Improved text truncation */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: break-all;
        
        /* Prevent horizontal overflow */
        max-width: calc(100vw - 4rem);
        box-sizing: border-box;
    }
    
    /* Mobile buttons row */
    #kenoTicketsTab .keno-ticket-card .mobile-buttons-row {
        display: flex;
        gap: 0.6rem;
        width: 100%;
        justify-content: space-between;
    }
    
    #kenoTicketsTab .keno-ticket-card .copy-btn,
    #kenoTicketsTab .keno-ticket-card .bscscan-btn {
        flex: 1;
        min-width: 0;
        height: 42px;
        padding: 0.6rem;
        font-size: 0.9rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        
        /* Prevent button overflow */
        max-width: calc(50% - 0.3rem);
        box-sizing: border-box;
    }
    
    /* Better mobile detail value styling */
    #kenoTicketsTab .keno-ticket-card .detail-value {
        width: 100%;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.4;
    }
}

/* Desktop transaction actions improvements */
@media (min-width: 768px) {
    #kenoTicketsTab .keno-ticket-card .transaction-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .transaction-id {
        flex: 1;
        margin-right: 1rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .mobile-buttons-row {
        display: flex;
        gap: 0.8rem;
        flex-shrink: 0;
    }
    
    #kenoTicketsTab .keno-ticket-card .copy-btn,
    #kenoTicketsTab .keno-ticket-card .bscscan-btn {
        min-width: auto;
        max-width: none;
        flex: none;
        padding: 0.6rem;
    }
    
    #kenoTicketsTab .keno-ticket-card .copy-btn span,
    #kenoTicketsTab .keno-ticket-card .bscscan-btn span {
        display: none; /* Hide text labels on desktop */
    }
}

/* NEW ELEMENTS - Time Played and Game Status */
#kenoTicketsTab .time-played {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 215, 0, 0.8);
    margin-top: 0.3rem;
    font-weight: 400;
    font-style: italic;
}

#kenoTicketsTab .game-status-container {
    margin-top: 0.5rem;
}

#kenoTicketsTab .game-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

#kenoTicketsTab .game-status.played {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.15));
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#kenoTicketsTab .game-status.pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 235, 59, 0.15));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

#kenoTicketsTab .game-status.finished {
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.2), rgba(120, 144, 156, 0.15));
    color: #78909c;
    border-color: rgba(96, 125, 139, 0.4);
    box-shadow: 0 2px 8px rgba(96, 125, 139, 0.3);
}

/* Mobile adjustments for new elements */
@media (max-width: 767px) {
    #kenoTicketsTab .time-played {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }
    
    #kenoTicketsTab .game-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    #kenoTicketsTab .ticket-header {
        align-items: flex-start;
    }
    
    #kenoTicketsTab .game-status-container {
        margin-top: 0.3rem;
        width: 100%;
    }
}

/* KENO STREAMING BUTTON STYLES */
.keno-streaming-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9));
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.streaming-prompt-content {
    max-width: 400px;
    width: 100%;
}

.streaming-icon {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

.keno-streaming-prompt h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.keno-streaming-prompt p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.keno-streaming-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keno-streaming-btn:hover {
    background: linear-gradient(135deg, #ffb347, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.keno-streaming-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.keno-streaming-btn i {
    font-size: 1.3rem;
}

/* Pulse animation for streaming icon */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .keno-streaming-prompt {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .streaming-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .keno-streaming-prompt h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .keno-streaming-prompt p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .keno-streaming-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 200px;
    }
}

/* NEW UX IMPROVEMENTS - TICKETS MANAGEMENT */

/* Statistics Cards Grid */
.tickets-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-icon {
    font-size: 1.8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Tabs */
.tickets-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.filter-tab.active {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-color: #ffd700;
    color: #2c2c2c;
    font-weight: bold;
}

/* Summary Info */
.tickets-summary-info {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.summary-item i {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Quick Action Buttons */
.ticket-quick-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.quick-action-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    justify-content: center;
    min-width: 150px;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.quick-action-btn i {
    font-size: 1rem;
}

/* Ticket Details Modal */
.ticket-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.details-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.details-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.3rem;
}

.close-details-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-details-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.details-body {
    padding: 1.5rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 0.3rem;
}

.detail-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Notification System */
.keno-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.notification-content h4 {
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.notification-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive Adjustments for UX Improvements */
@media (max-width: 767px) {
    .tickets-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .tickets-filter-tabs {
        margin-bottom: 1rem;
    }
    
    .filter-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .ticket-quick-actions {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .quick-action-btn {
        justify-content: center;
        padding: 0.8rem;
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .details-modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .details-header, .details-body {
        padding: 1rem;
    }
    
    .keno-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.ticket-title h4 {
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.ticket-title .game-code {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: monospace;
}

.ticket-amount .amount {
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: bold;
}

.selected-numbers {
    margin-bottom: 1.5rem;
}

.selected-numbers h5 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-chip {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #2c2c2c;
    padding: 0.4rem 0.2rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.number-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ticket-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: monospace;
    text-align: right;
}

/* Mobile responsive for tickets */
@media (max-width: 768px) {
    .keno-tickets-header {
        padding: 1.5rem 1rem;
    }
    
    .keno-tickets-header h3 {
        font-size: 1.3rem;
    }
    
    .keno-tickets-list {
        padding: 0.5rem;
    }
    
    .keno-ticket-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .ticket-title h4 {
        font-size: 1.1rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 0.4rem;
    }
    
    .number-chip {
        padding: 0.3rem 0.1rem;
        font-size: 0.8rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.7rem 0;
    }
    
    .detail-value {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .keno-tickets-loading, .keno-tickets-empty, .keno-tickets-error {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .empty-icon, .error-icon {
        font-size: 2.5rem;
    }
}

/* ===============================================
   ESTILOS PARA LOTERÍA INTERNACIONAL - TEMA OSCURO
   =============================================== */

/* Estilos generales para elementos de lotería */
.cost-sps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #ffd700;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 0.5rem;
}

.cost-sps span:last-child {
    font-size: 1.1em;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Modal base para loterías - tema oscuro */
.modal {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95), rgba(15, 15, 25, 0.98)) !important;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-title {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.close-button {
    background: none;
    border: none;
    color: #ffd700 !important;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Botones de compra con tema oscuro */
.purchase-ticket-btn, .primary-button {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    border: none !important;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

.purchase-ticket-btn:hover, .primary-button:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

/* Números seleccionados - tema oscuro */
.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.number-ball.main {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.number-ball.special {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    border: 2px solid rgba(255, 107, 107, 0.5);
}

/* Grid de números - tema oscuro */
.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.number-btn {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    color: #fff !important;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.number-btn:hover {
    border-color: rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1)) !important;
    transform: scale(1.1);
}

.number-btn.selected {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.special-number.selected {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;
    color: #fff !important;
    border-color: #ff6b6b !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Información del ticket - tema oscuro */
.purchase-info, .ticket-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin: 1rem 0;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.info-line:last-child {
    border-bottom: none;
}

.info-line span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.info-line span:last-child {
    color: #ffd700;
    font-weight: 600;
}

/* Estilos específicos para elementos de confirmación */
.purchase-confirmation {
    text-align: center;
    color: #fff;
}

.success-icon {
    font-size: 3rem;
    margin: 1rem 0;
}

.purchase-confirmation h3 {
    color: #ffd700 !important;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.purchase-confirmation p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem;
}

/* Botones de acción de lotería */
.lottery-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.quick-pick-btn {
    background: linear-gradient(135deg, rgba(76, 205, 196, 0.9), rgba(76, 205, 196, 0.7)) !important;
    color: #fff !important;
    border: 2px solid rgba(76, 205, 196, 0.5) !important;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 140px;
}

.quick-pick-btn:hover {
    background: linear-gradient(135deg, rgba(76, 205, 196, 1), rgba(76, 205, 196, 0.8)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 205, 196, 0.4);
}

.lottery-action-buttons .purchase-ticket-btn {
    flex: 1;
    min-width: 140px;
}

/* Estilos para jackpot en SPS */
.jackpot-usd {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: normal;
}

/* Checkout button específico para móvil */
@media (max-width: 768px) {
    .lottery-action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .purchase-ticket-btn, .primary-button, .quick-pick-btn {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.2rem;
        margin: 0;
        min-width: auto;
    }

    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 6px;
        padding: 0.8rem;
    }

    .number-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===== CORRECIÓN THEME OSCURO LOTTERY ===== */
.review-screen, .checkout-screen {
  background: rgba(0, 0, 0, 0.95) !important;
}

.review-screen *, .checkout-screen * {
  color: white !important;
}

.review-screen .modal-content, .checkout-screen .modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  color: white !important;
}

.review-screen input, .checkout-screen input {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.checkout-btn, .review-btn {
  background: #28a745 !important;
  color: white !important;
  border: none !important;
}

.checkout-btn:hover, .review-btn:hover {
  background: #218838 !important;
}

/* Asegurar tabs visibles */
.play-tabs, .tabs-container, .tab-button {
  display: flex !important;
  visibility: visible !important;
}

.tab-button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Correcciones de tema oscuro para lotería */

/* Saldo en header de lotería */
.lottery-modal .modal-header .balance-display,
.lottery-modal .balance-display,
.balance-display {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #FFD700 !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-weight: bold !important;
  font-size: 1rem !important;
}

/* Botón checkout - eliminar TODOS los fondos blancos */
.checkout-btn, .review-btn {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  border: none !important;
  color: white !important;
  padding: 1rem 2rem !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  width: 100% !important;
  margin: 0 !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
  transition: all 0.3s ease !important;
}

/* Forzar fondo oscuro en contenedores del botón checkout */
.checkout-btn-container, 
.review-screen .checkout-section,
.lottery-checkout-container,
.checkout-area,
.review-screen .bottom-section,
.review-screen .actions-section {
  background: transparent !important;
  background-color: transparent !important;
}

/* Eliminar cualquier fondo blanco del review screen */
.review-screen {
  background: rgba(21, 25, 40, 0.98) !important;
  background-color: rgba(21, 25, 40, 0.98) !important;
}

.review-screen * {
  background-color: transparent !important;
}

.review-screen .modal-content,
.review-screen .lottery-content {
  background: transparent !important;
  background-color: transparent !important;
}

.checkout-btn:hover, .review-btn:hover {
  background: linear-gradient(135deg, #218838, #1a8f6a) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Modal de detalles de pago - fondo oscuro */
.payment-details-modal,
.payment-breakdown,
.cost-breakdown {
  background: rgba(21, 25, 40, 0.95) !important;
  color: white !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 15px !important;
  padding: 1.5rem !important;
  backdrop-filter: blur(10px) !important;
}

.payment-details-modal .breakdown-item,
.cost-breakdown .breakdown-item {
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.8rem !important;
  margin: 0.5rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.payment-details-modal .breakdown-label,
.cost-breakdown .breakdown-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
}

.payment-details-modal .breakdown-value,
.cost-breakdown .breakdown-value {
  color: #FFD700 !important;
  font-weight: bold !important;
}

/* Corregir elementos específicos del modal de pago */
.payment-details-modal h3,
.payment-details-modal h4 {
  color: #FFD700 !important;
  margin-bottom: 1rem !important;
}

.payment-details-modal .close-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  cursor: pointer !important;
}

.payment-details-modal .close-btn:hover {
  background: rgba(255, 215, 0, 0.2) !important;
  border-color: #FFD700 !important;
}

/* Panel de detalles de precio en review screen */
.price-details-panel {
  background: rgba(21, 25, 40, 0.95) !important;
  color: white !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 15px !important;
  padding: 1.5rem !important;
  backdrop-filter: blur(10px) !important;
}

.price-details-panel .price-detail-row {
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.8rem !important;
  margin: 0.5rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.price-details-panel .price-detail-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
}

.price-details-panel .price-detail-value,
.price-details-panel .line-price,
.price-details-panel .line-count,
.price-details-panel .subtotal-value,
.price-details-panel .fee-value {
  color: #FFD700 !important;
  font-weight: bold !important;
}

/* Toggle de precio en header */
#price-toggle {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #FFD700 !important;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

#price-toggle:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  border-color: #FFD700 !important;
}

.price-toggle-icon {
  transition: transform 0.3s ease !important;
}

/* Corregir texto del precio principal */
.price {
  color: #FFD700 !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
}

/* FORZAR TEMA OSCURO ABSOLUTO EN REVIEW SCREEN */
.review-screen,
.review-screen .lottery-modal-content,
.review-screen .modal-body,
.review-screen .modal-content {
  background: rgba(21, 25, 40, 0.98) !important;
  background-color: rgba(21, 25, 40, 0.98) !important;
}

.review-screen .checkout-btn-container,
.review-screen .action-buttons,
.review-screen .button-container,
.review-screen .buttons-section {
  background: transparent !important;
  background-color: transparent !important;
  margin: 0 !important;
  padding: 1rem !important;
}

/* Eliminar cualquier div con fondo blanco */
.review-screen div {
  background-color: transparent !important;
}

.review-screen div:not(.selected-line):not(.number-display):not(.special-number-ball):not(.tab-button) {
  background-color: transparent !important;
}


/* CRITICAL: Forzar ocultación de botones de pago incorrectos */
#rechargeConfirmBtn[style*="display: none"],
#creditcardConfirmBtn[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.payment-process-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Estilos para radio buttons deshabilitados */
.radio-option input[type="radio"]:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.radio-option input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Nota explicativa del balance casino */
.balance-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0.2rem;
    font-style: italic;
}
