/* =====================================================
   ESTILOS: SISTEMA DE USUARIO
   Agregar al style.css principal o importar
   ===================================================== */

/* =====================================================
   1. BOTÓN DE LOGIN
   ===================================================== */
.login-btn {
  background: linear-gradient(135deg, rgba(200, 170, 110, 0.3) 0%, rgba(200, 170, 110, 0.2) 100%);
  color: #F0E6D2;
  border: 2px solid #C8AA6E;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 170, 110, 0.5);
  background: linear-gradient(135deg, rgba(200, 170, 110, 0.4) 0%, rgba(200, 170, 110, 0.3) 100%);
}

/* =====================================================
   2. DASHBOARD HEADER (Mini)
   ===================================================== */
.user-dashboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-container:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #C8AA6E;
  object-fit: cover;
}

.user-quick-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-username {
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.user-stats-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.user-streak,
.user-tickets {
  color: #ffd700;
  font-weight: 600;
}

.user-coins {
  color: #FFD700;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.sidebar-coins {
  color: #FFD700;
  font-weight: 600;
}

/* =====================================================
   3. MODALES
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: linear-gradient(135deg, #1a1f36 0%, #0f1419 100%);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: white;
}

/* =====================================================
   4. LOGIN MODAL
   ===================================================== */
.login-modal-content {
  max-width: 500px;
}

.login-header {
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  color: white;
}

.login-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.login-benefits {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  font-size: 32px;
  flex-shrink: 0;
  color: #FFD700;
}

.benefit-text strong {
  display: block;
  color: white;
  font-size: 16px;
  margin-bottom: 4px;
}

.benefit-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.4;
}

.login-buttons {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discord-btn {
  background: #5865F2;
  color: white;
}

.discord-btn:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.google-btn {
  background: white;
  color: #1a1a1a;
}

.google-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.login-footer {
  padding: 16px 32px 24px;
  text-align: center;
}

.login-disclaimer {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* =====================================================
   5. DASHBOARD MODAL - MODERN OPTIMIZED STYLE
   ===================================================== */
.dashboard-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1a1f36 0%, #0f1419 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  -ms-overflow-style: none;
  scrollbar-width: none;
  will-change: transform;
  animation: dashboardFadeIn 0.25s ease-out;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.dashboard-modal-content::-webkit-scrollbar {
  display: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(200, 170, 110, 0.6);
  object-fit: cover;
}

.dashboard-user-details h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #F0E6D2;
  font-weight: 700;
}

.user-stat {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.edit-profile-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.edit-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sign-out-btn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sign-out-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.dashboard-sections {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}

.dashboard-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.dashboard-section:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-section h3 {
  margin: 0 0 16px 0;
  font-size: 12px;
  color: #C8AA6E;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section h3 i {
  font-size: 16px;
}

/* Sección de Racha - Streak */
.streak-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.streak-number {
  font-size: 48px;
  font-weight: 800;
  color: #FF9500;
  line-height: 1;
}

.streak-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.streak-multiplier {
  color: #C8AA6E !important;
  font-weight: 700;
  font-size: 14px !important;
  margin-top: 4px !important;
}

.claim-section {
  margin-bottom: 16px;
}

.claim-reward-btn {
  width: 100%;
  background: linear-gradient(135deg, #C8AA6E 0%, #e8d5a3 100%);
  color: #0f1419;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claim-reward-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.claim-reward-btn:active:not(:disabled) {
  transform: translateY(0);
}

.claim-reward-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.streak-milestones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(200, 170, 110, 0.5);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Sección de Coins */
.coins-section h3 {
  color: #FFD700;
}

.coins-display {
  text-align: center;
  margin-bottom: 16px;
}

.coins-number {
  font-size: 48px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1;
  margin-bottom: 4px;
}

.coins-display p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.coins-stats,
.tickets-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.stat-value {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.coins-stats .stat-value {
  color: #FFD700;
}

/* Sección de Tickets */
.tickets-display {
  text-align: center;
  margin-bottom: 16px;
}

.tickets-number {
  font-size: 48px;
  font-weight: 800;
  color: #C8AA6E;
  line-height: 1;
}

.tickets-display p {
  margin: 4px 0 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Sección de Sorteo - Raffle */
.raffle-section h3 {
  color: #FFD700;
}

.raffle-prize {
  text-align: center;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.prize-title {
  margin: 0 0 4px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-display {
  font-size: 32px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1.2;
}

.prize-winners {
  margin: 4px 0 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.raffle-stats {
  margin-bottom: 16px;
}

.raffle-entry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.raffle-entry-form label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
}

.raffle-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: #F0E6D2;
  font-size: 14px;
  transition: border-color 0.2s;
}

.raffle-input:focus {
  outline: none;
  border-color: rgba(200, 170, 110, 0.5);
}

.enter-raffle-btn {
  background: linear-gradient(135deg, #C8AA6E 0%, #e8d5a3 100%);
  color: #0f1419;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.enter-raffle-btn:hover {
  transform: translateY(-1px);
}

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

.raffle-disclaimer {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.raffle-disclaimer i {
  color: rgba(200, 170, 110, 0.6);
  margin-right: 2px;
}

/* Sección de Historial - History / Recent Activity */
.history-section {
  grid-column: 1 / -1;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for activity list */
.transaction-list::-webkit-scrollbar {
  width: 4px;
}

.transaction-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background: rgba(200, 170, 110, 0.3);
  border-radius: 2px;
}

.transaction-list::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 170, 110, 0.5);
}

.no-transactions {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  padding: 24px 0;
}

/* Activity Loading State */
.activity-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.activity-loading i {
  animation: spin 1s linear infinite;
}

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

/* Activity Item */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Activity Icon */
.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

.activity-icon i {
  font-size: 18px;
}

/* Activity Details */
.activity-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-title {
  font-size: 13px;
  font-weight: 600;
  color: #F0E6D2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Activity Meta (amount + time) */
.activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.activity-amount {
  font-size: 14px;
  font-weight: 700;
}

.activity-amount.positive {
  color: #4ade80;
}

.activity-amount.negative {
  color: #f87171;
}

.activity-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* Specific activity type styles */
.activity-item[data-type="raffle_win"] {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.activity-item[data-type="raffle_win"]:hover {
  background: rgba(251, 191, 36, 0.12);
}

.activity-item[data-type="daily_claim"] .activity-icon {
  background: rgba(74, 222, 128, 0.1);
}

.activity-item[data-type="game_reward"] .activity-icon {
  background: rgba(96, 165, 250, 0.1);
}

.activity-item[data-type="raffle_entry"] .activity-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
  .activity-item {
    padding: 8px 10px;
    gap: 10px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
  }

  .activity-icon i {
    font-size: 16px;
  }

  .activity-title {
    font-size: 12px;
  }

  .activity-subtitle {
    font-size: 10px;
  }

  .activity-amount {
    font-size: 13px;
  }

  .transaction-list {
    max-height: 180px;
  }
}

/* =====================================================
   6. SECCIÓN DE RECOMPENSAS (Home)
   ===================================================== */
.rewards-section {
  margin: 32px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rewards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.reward-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.reward-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.reward-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.reward-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: white;
}

.reward-card p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.reward-stat {
  font-size: 28px !important;
  font-weight: 700;
  color: #C8AA6E !important;
}

.reward-stat-small {
  font-size: 14px !important;
  color: #ffd700 !important;
}

.reward-action-btn {
  background: linear-gradient(135deg, #C8AA6E 0%, #8B7355 100%);
  color: #0F1E2D;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.reward-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(200, 170, 110, 0.6);
}

.reward-action-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.reward-action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   7. ANIMACIONES DE RECOMPENSA
   ===================================================== */
.reward-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: overlayFadeIn 0.3s ease;
}

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

.reward-modal {
  background: linear-gradient(135deg, #1a3a4a 0%, #0F1E2D 100%);
  border: 2px solid #C8AA6E;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(200, 170, 110, 0.3);
  animation: rewardBounce 0.5s ease;
}

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

.reward-modal h2 {
  margin: 0 0 24px 0;
  font-size: 32px;
  color: white;
}

.reward-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  border-radius: 12px;
}

.reward-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reward-value {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.reward-milestone {
  background: rgba(255, 215, 0, 0.2);
  padding: 16px;
  border-radius: 12px;
  margin-top: 8px;
}

.reward-milestone p {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.reward-close-btn {
  background: linear-gradient(135deg, #C8AA6E 0%, #8B7355 100%);
  color: #0F1E2D;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reward-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(200, 170, 110, 0.4);
}

/* =====================================================
   8. NOTIFICACIÓN DE TICKETS
   ===================================================== */
.ticket-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
}

.ticket-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.ticket-notification-content {
  background: linear-gradient(135deg, #1a3a4a 0%, #0F1E2D 100%);
  border: 2px solid #C8AA6E;
  color: #F0E6D2;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(200, 170, 110, 0.4);
  animation: ticketPulse 0.5s ease infinite alternate;
}

@keyframes ticketPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* =====================================================
   9. RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .dashboard-modal-content {
    width: 95%;
  }

  .dashboard-sections {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 15px;
  }

  .dashboard-header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .user-avatar-container {
    padding: 6px 12px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .user-username {
    font-size: 12px;
  }

  .user-stats-row {
    font-size: 11px;
  }

  .login-header {
    padding: 20px;
  }

  .login-header h2 {
    font-size: 22px;
  }

  .login-benefits {
    padding: 16px 20px;
    gap: 12px;
  }

  .login-buttons {
    padding: 16px 20px;
    gap: 10px;
  }

  .modal-content {
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 15px;
  }

  .dashboard-sections {
    padding: 12px 15px;
  }

  .login-header {
    padding: 16px;
  }

  .login-header h2 {
    font-size: 18px;
  }

  .login-benefits {
    padding: 12px 16px;
  }

  .login-buttons {
    padding: 12px 16px;
  }

  .benefit-icon {
    font-size: 24px;
  }

  .benefit-text strong {
    font-size: 14px;
  }

  .benefit-text p {
    font-size: 12px;
  }
}

/* =====================================================
   11. EDIT PROFILE MODAL
   ===================================================== */
.edit-profile-modal-content {
  max-width: 500px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  margin: 10px auto;
}

.edit-profile-modal-content h2 {
  margin: 0 0 15px 0;
  color: #F0E6D2;
  text-align: center;
  font-size: 1.5rem;
}

.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.edit-profile-form h3 {
  margin: 0 0 10px 0;
  color: #C8AA6E;
  font-size: 1rem;
}

/* Avatar Section */
.avatar-preview-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avatar-preview {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: rgba(15, 30, 45, 0.5);
  border-radius: 12px;
  border: 2px solid rgba(200, 170, 110, 0.2);
}

.edit-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #C8AA6E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-options {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.avatar-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #F0E6D2;
  cursor: pointer;
  padding: 6px 12px;
  background: rgba(15, 30, 45, 0.3);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.avatar-options label:hover {
  background: rgba(15, 30, 45, 0.5);
  border-color: rgba(200, 170, 110, 0.3);
}

.avatar-options input[type="radio"] {
  accent-color: #C8AA6E;
}

.avatar-url-input {
  width: 100%;
  padding: 8px;
  background: rgba(15, 30, 45, 0.5);
  border: 2px solid rgba(200, 170, 110, 0.3);
  border-radius: 8px;
  color: #F0E6D2;
  font-size: 13px;
  font-family: inherit;
}

.avatar-url-input:focus {
  outline: none;
  border-color: #C8AA6E;
  background: rgba(15, 30, 45, 0.7);
}

/* Username Section */
.username-edit-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.username-input {
  width: 100%;
  padding: 10px;
  background: rgba(15, 30, 45, 0.5);
  border: 2px solid rgba(200, 170, 110, 0.3);
  border-radius: 8px;
  color: #F0E6D2;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
}

.username-input:focus {
  outline: none;
  border-color: #C8AA6E;
  background: rgba(15, 30, 45, 0.7);
}

.helper-text {
  font-size: 12px;
  color: rgba(240, 230, 210, 0.6);
  margin: 0;
}

.validation-message {
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

.validation-message.error {
  display: block;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.validation-message.success {
  display: block;
  color: #51cf66;
  background: rgba(81, 207, 102, 0.1);
  border: 1px solid rgba(81, 207, 102, 0.3);
}

/* Region Selector */
.region-edit-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.region-edit-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: #F0E6D2;
}

.region-helper {
  font-size: 11px !important;
  margin-bottom: 5px !important;
}

.region-select {
  width: 100%;
  padding: 12px;
  background: rgba(15, 30, 45, 0.5);
  border: 2px solid rgba(200, 170, 110, 0.3);
  border-radius: 8px;
  color: #F0E6D2;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C8AA6E' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.region-select:focus {
  outline: none;
  border-color: #C8AA6E;
  background-color: rgba(15, 30, 45, 0.7);
}

.region-select option {
  background: #0F1E2D;
  color: #F0E6D2;
  padding: 10px;
}

.region-select optgroup {
  background: #1a3a4a;
  color: #C8AA6E;
  font-weight: 700;
}

.current-region-display {
  font-size: 12px;
  color: #C8AA6E;
  margin: 0;
  padding: 6px 10px;
  background: rgba(200, 170, 110, 0.1);
  border-radius: 6px;
  text-align: center;
}

.current-region-display:empty {
  display: none;
}

/* Action Buttons */
.edit-profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.edit-profile-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #9A8560 0%, #6B5840 100%);
  color: #F0E6D2;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 120, 80, 0.25);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #F0E6D2;
  border: 2px solid rgba(200, 170, 110, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(200, 170, 110, 0.5);
}

/* Status Messages */
.edit-profile-status {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

.edit-profile-status.success {
  background: rgba(81, 207, 102, 0.15);
  color: #51cf66;
  border: 2px solid rgba(81, 207, 102, 0.3);
}

.edit-profile-status.error {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 2px solid rgba(255, 107, 107, 0.3);
}

.edit-profile-status.info {
  background: rgba(74, 144, 226, 0.15);
  color: #4a90e2;
  border: 2px solid rgba(74, 144, 226, 0.3);
}

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

/* Edit Profile Button */
.edit-profile-btn {
  background: rgba(200, 170, 110, 0.2);
  border: 2px solid rgba(200, 170, 110, 0.3);
  color: #C8AA6E;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.edit-profile-btn:hover {
  background: rgba(200, 170, 110, 0.3);
  border-color: #C8AA6E;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
  .edit-profile-modal-content {
    max-width: 95%;
    padding: 20px;
  }

  .edit-avatar-img {
    width: 100px;
    height: 100px;
  }

  .avatar-options {
    flex-direction: column;
    gap: 10px;
  }

  .edit-profile-actions {
    flex-direction: column;
  }
}

/* =====================================================
   12. SIDEBAR PROFILE (Mobile)
   ===================================================== */
.sidebar-profile {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(200, 170, 110, 0.2);
  margin-bottom: 10px;
}

.sidebar-profile-logged-out {
  text-align: center;
}

.sidebar-login-btn {
  background: linear-gradient(135deg, #C8AA6E 0%, #8B7355 100%);
  color: #0F1E2D;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.sidebar-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.4);
}

.sidebar-profile-logged-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-user-info:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #C8AA6E;
  object-fit: cover;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-username {
  font-size: 14px;
  font-weight: 600;
  color: #F0E6D2;
}

.sidebar-user-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #A09B8C;
}

.sidebar-streak {
  color: #ff9f43;
}

.sidebar-tickets {
  color: #4ade80;
}

.sidebar-logout-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* =====================================================
   TABLER ICONS STYLING
   ===================================================== */
.ti {
  vertical-align: middle;
}

/* Icon colors */
.ti-coin,
.ti-coins,
.ti-wallet,
.ti-moneybag {
  color: #C8AA6E;
}

/* Header and sidebar coin icons */
.user-coins .ti,
.sidebar-coins .ti {
  font-size: 1em;
  margin-left: 2px;
}

/* Dashboard modal coin icon */
#dashboardCoinsIcon {
  font-size: 1.2em;
  vertical-align: baseline;
}

/* Notification coin icons */
.coin-notification-content .ti {
  font-size: 1.2em;
}

/* Reward animation icons */
.reward-value .ti {
  font-size: 1em;
}

/* Live coins counter icon */
.live-coins-icon .ti {
  font-size: 1.5em;
}

/* Benefits section icons */
.benefit-icon .ti {
  font-size: 1.5em;
}

/* Reward section icons */
.reward-icon .ti {
  font-size: 1.5em;
}

/* Ranking user stats icons */
.user-stat-item .ti {
  font-size: 0.9em;
}

/* =====================================================
   13. LIVE COINS COUNTER (Smash or Pass)
   ===================================================== */
.live-coins-counter {
  position: relative;
  background: linear-gradient(135deg, rgba(200, 170, 110, 0.15) 0%, rgba(139, 115, 85, 0.1) 100%);
  border: 2px solid rgba(200, 170, 110, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 20px auto;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(200, 170, 110, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-coins-counter.visible {
  opacity: 1;
  transform: translateY(0);
}

.live-coins-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.live-coins-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFD700 0%, #C8AA6E 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  animation: coinIconPulse 2s ease-in-out infinite;
}

.live-coins-icon .ti {
  color: #1a1a1a !important;
  font-size: 1.3em !important;
}

@keyframes coinIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  }
}

.live-coins-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFD700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.live-coins-value {
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 4px 16px rgba(255, 215, 0, 0.5),
               0 0 30px rgba(200, 170, 110, 0.3);
  line-height: 1;
  margin: 8px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.live-coins-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 4px;
}

.live-coins-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  color: #4ade80;
  text-shadow: 0 2px 12px rgba(74, 222, 128, 0.6),
               0 0 20px rgba(74, 222, 128, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.live-coins-plus.show {
  animation: plusFloatUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes plusFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -80%) scale(1.2);
  }
  30% {
    transform: translate(-50%, -100%) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -120%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.8);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .live-coins-counter {
    padding: 16px 20px;
    max-width: 240px;
  }

  .live-coins-value {
    font-size: 36px;
  }

  .live-coins-icon {
    width: 32px;
    height: 32px;
  }

  .live-coins-label {
    font-size: 12px;
  }

  .live-coins-plus {
    font-size: 22px;
  }
}

/* =====================================================
   WELCOME POPUP MODAL
   ===================================================== */

.welcome-popup-content {
  max-width: 420px;
  width: 90%;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(1, 10, 19, 0.98) 0%, rgba(5, 20, 30, 0.98) 100%);
  border: 2px solid rgba(200, 170, 110, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(200, 170, 110, 0.2);
  animation: welcomePopupIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-height: 90vh;
  overflow-y: auto;
}

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

.welcome-popup-header {
  margin-bottom: 16px;
}

.welcome-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(200, 170, 110, 0.2) 0%, rgba(200, 170, 110, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(200, 170, 110, 0.3);
}

.welcome-icon i {
  font-size: 28px;
  color: #C8AA6E;
}

.welcome-popup-header h2 {
  font-size: 22px;
  color: #F0E6D2;
  margin: 0 0 4px;
  font-weight: 700;
}

.welcome-subtitle {
  font-size: 13px;
  color: #A09B8C;
  margin: 0;
}

.welcome-popup-body {
  margin-bottom: 16px;
}

.welcome-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
  line-height: 1.4;
}

.welcome-description strong {
  color: #C8AA6E;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(200, 170, 110, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(200, 170, 110, 0.15);
}

.welcome-feature i {
  font-size: 18px;
  color: #C8AA6E;
  flex-shrink: 0;
}

.welcome-feature span {
  font-size: 12px;
  color: #F0E6D2;
  text-align: left;
}

.welcome-cta-section {
  background: rgba(200, 170, 110, 0.1);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(200, 170, 110, 0.2);
}

.welcome-cta-text {
  font-size: 11px;
  color: #A09B8C;
  margin: 0 0 8px;
}

.welcome-raffle-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.welcome-raffle-highlight i {
  font-size: 24px;
  color: #C8AA6E;
}

.welcome-raffle-highlight div {
  text-align: left;
}

.welcome-raffle-highlight strong {
  display: block;
  font-size: 14px;
  color: #F0E6D2;
}

.welcome-raffle-highlight span {
  font-size: 11px;
  color: #C8AA6E;
}

.welcome-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-btn-primary {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #010A13;
  background: linear-gradient(135deg, #C8AA6E 0%, #F0E6D2 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.4);
}

.welcome-btn-primary i {
  font-size: 18px;
}

.welcome-btn-secondary {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #A09B8C;
  background: transparent;
  border: 1px solid rgba(160, 155, 140, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.welcome-btn-secondary:hover {
  color: #F0E6D2;
  border-color: rgba(200, 170, 110, 0.4);
  background: rgba(200, 170, 110, 0.1);
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .welcome-popup-content {
    padding: 20px 16px;
    max-height: 85vh;
  }

  .welcome-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .welcome-icon i {
    font-size: 24px;
  }

  .welcome-popup-header h2 {
    font-size: 20px;
  }

  .welcome-subtitle {
    font-size: 12px;
  }

  .welcome-description {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .welcome-features {
    gap: 6px;
    margin-bottom: 12px;
  }

  .welcome-feature {
    padding: 6px 10px;
  }

  .welcome-feature i {
    font-size: 16px;
  }

  .welcome-feature span {
    font-size: 11px;
  }

  .welcome-cta-section {
    padding: 10px;
  }

  .welcome-cta-text {
    font-size: 10px;
  }

  .welcome-raffle-highlight i {
    font-size: 20px;
  }

  .welcome-raffle-highlight strong {
    font-size: 13px;
  }

  .welcome-raffle-highlight span {
    font-size: 10px;
  }

  .welcome-btn-primary {
    padding: 10px 16px;
    font-size: 13px;
  }

  .welcome-btn-secondary {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Very small screens */
@media (max-height: 600px) {
  .welcome-popup-content {
    padding: 16px 12px;
  }

  .welcome-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .welcome-icon i {
    font-size: 20px;
  }

  .welcome-popup-header {
    margin-bottom: 12px;
  }

  .welcome-popup-header h2 {
    font-size: 18px;
  }

  .welcome-popup-body {
    margin-bottom: 12px;
  }

  .welcome-features {
    gap: 4px;
  }

  .welcome-feature {
    padding: 5px 8px;
  }

  .welcome-cta-section {
    padding: 8px;
  }

  .welcome-popup-actions {
    gap: 6px;
  }
}

/* ===== Daily Tickets Modal ===== */
.daily-tickets-content {
  text-align: center;
  max-width: 380px;
  padding: 24px;
}

.tickets-header {
  margin-bottom: 20px;
}

.tickets-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #c89b3c 0%, #f0e6d2 50%, #c89b3c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(200, 155, 60, 0.4);
}

.tickets-icon i {
  font-size: 32px;
  color: #1e2328;
}

.tickets-header h2 {
  color: #c89b3c;
  font-size: 22px;
  margin: 0 0 6px;
}

.tickets-header p {
  color: #a09b8c;
  font-size: 13px;
  margin: 0;
}

.tickets-progress {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #a09b8c;
}

.progress-bar {
  height: 10px;
  background: rgba(30, 35, 40, 0.8);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #463714;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c89b3c, #f0e6d2);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.next-reward-box {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.15) 0%, rgba(30, 35, 40, 0.9) 100%);
  border: 2px solid #c89b3c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.next-reward-box span:first-child {
  display: block;
  color: #a09b8c;
  font-size: 12px;
  margin-bottom: 6px;
}

.reward-amount {
  font-size: 28px;
  font-weight: bold;
  color: #f0e6d2;
}

.reward-amount i {
  color: #c89b3c;
  margin-left: 6px;
}

.watch-ad-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #c89b3c 0%, #785a28 100%);
  border: 2px solid #f0e6d2;
  border-radius: 8px;
  color: #1e2328;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.watch-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.5);
}

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

.watch-ad-btn i {
  font-size: 20px;
}

.daily-limit-msg {
  color: #a09b8c;
  font-size: 13px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(30, 35, 40, 0.6);
  border-radius: 8px;
  border: 1px solid #463714;
}

.daily-limit-msg i {
  color: #c89b3c;
  margin-right: 6px;
}

/* ===== Streak Lost Popup ===== */
.streak-lost-content {
  text-align: center;
  max-width: 360px;
  padding: 24px;
}

.streak-lost-header {
  margin-bottom: 16px;
}

.streak-lost-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(255, 68, 68, 0.7); }
}

.streak-lost-icon i {
  font-size: 28px;
  color: #fff;
}

.streak-lost-header h2 {
  color: #ff6b6b;
  font-size: 20px;
  margin: 0 0 6px;
}

.streak-lost-header p {
  color: #a09b8c;
  font-size: 13px;
  margin: 0;
}

.streak-reward-box {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.15) 0%, rgba(30, 35, 40, 0.9) 100%);
  border: 2px solid #c89b3c;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.streak-reward-box span:first-child {
  display: block;
  color: #a09b8c;
  font-size: 11px;
  margin-bottom: 4px;
}

.streak-reward-box .reward-amount {
  font-size: 24px;
}

.streak-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.streak-actions .watch-ad-btn {
  padding: 12px 20px;
  font-size: 14px;
}

.skip-btn {
  background: transparent;
  border: 1px solid #463714;
  color: #a09b8c;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.skip-btn:hover {
  border-color: #785a28;
  color: #f0e6d2;
}

/* Responsive para modales de tickets */
@media (max-width: 480px) {
  .daily-tickets-content,
  .streak-lost-content {
    padding: 20px 16px;
  }

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

  .tickets-icon i {
    font-size: 26px;
  }

  .tickets-header h2 {
    font-size: 18px;
  }

  .reward-amount {
    font-size: 24px;
  }

  .watch-ad-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .streak-lost-icon {
    width: 50px;
    height: 50px;
  }

  .streak-lost-icon i {
    font-size: 24px;
  }
}

/* =====================================================
   DAILY TICKETS MODAL
   ===================================================== */

.daily-tickets-modal-content {
  max-width: 420px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.daily-tickets-header {
  background: linear-gradient(135deg, #C8AA6E 0%, #9b7e4a 100%);
  padding: 24px;
  text-align: center;
  color: #0a0a0a;
}

.tickets-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.tickets-icon i {
  font-size: 28px;
  color: #0a0a0a;
}

.daily-tickets-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.tickets-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.daily-tickets-body {
  padding: 24px;
  background: #1a1a2e;
}

/* Progress Section */
.tickets-progress-section {
  text-align: center;
  margin-bottom: 20px;
}

.tickets-today-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.tickets-today-count span:first-child {
  font-size: 48px;
  font-weight: 700;
  color: #C8AA6E;
  line-height: 1;
}

.tickets-label {
  font-size: 14px;
  color: #888;
}

.videos-remaining {
  font-size: 13px;
  color: #666;
}

/* Progression Display */
.tickets-progression {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.progression-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.progression-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #888;
  transition: all 0.3s ease;
}

.progression-item.completed .progression-circle {
  background: #C8AA6E;
  border-color: #C8AA6E;
  color: #0a0a0a;
}

.progression-item.current .progression-circle {
  border-color: #C8AA6E;
  color: #C8AA6E;
  animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 170, 110, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(200, 170, 110, 0); }
}

.progression-reward {
  font-size: 10px;
  color: #666;
}

.progression-item.completed .progression-reward {
  color: #C8AA6E;
}

/* Next Reward Section */
.next-reward-section {
  text-align: center;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(200, 170, 110, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(200, 170, 110, 0.3);
}

.next-reward-section p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

.next-reward-section strong {
  color: #C8AA6E;
  font-size: 16px;
}

/* Watch Button */
.watch-ad-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #C8AA6E 0%, #9b7e4a 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.watch-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 170, 110, 0.4);
}

.watch-ad-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.watch-ad-btn i {
  font-size: 20px;
}

/* Daily Limit Message */
.daily-limit-message {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 16px;
}

.daily-limit-message i {
  font-size: 32px;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.daily-limit-message p {
  margin: 0;
  font-size: 14px;
  color: #888;
}

/* Info Section */
.tickets-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tickets-info p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.tickets-info i {
  font-size: 14px;
  color: #888;
}

/* Ticket Badge in Menu */
.ticket-badge {
  background: #C8AA6E;
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
  .daily-tickets-modal-content {
    max-width: 100%;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .tickets-progression {
    padding: 12px 8px;
  }

  .progression-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .progression-reward {
    font-size: 9px;
  }
}

/* =====================================================
   BUG REPORT MODAL STYLES
   ===================================================== */

.bug-report-modal-content {
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
}

.bug-report-header {
  padding: 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(200, 100, 100, 0.1) 0%, rgba(200, 170, 110, 0.05) 100%);
}

.bug-report-icon {
  font-size: 48px;
  color: #e74c3c;
  margin-bottom: 12px;
}

.bug-report-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #F0E6D2;
}

.bug-report-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.bug-report-body {
  padding: 24px 32px;
}

.bug-report-field {
  margin-bottom: 20px;
}

.bug-report-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #C8AA6E;
  font-size: 14px;
}

.bug-report-select,
.bug-report-input,
.bug-report-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 170, 110, 0.3);
  border-radius: 8px;
  color: #F0E6D2;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bug-report-select:focus,
.bug-report-input:focus,
.bug-report-textarea:focus {
  outline: none;
  border-color: #C8AA6E;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.1);
}

.bug-report-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C8AA6E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.bug-report-select option {
  background: #1a1f36;
  color: #F0E6D2;
}

.bug-report-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.bug-report-device-info {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.bug-report-device-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.bug-report-device-info i {
  margin-right: 8px;
  color: #C8AA6E;
}

.bug-report-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bug-report-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.bug-report-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bug-report-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.bug-report-status.success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.bug-report-status.error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

/* Bug Report History Section */
.bug-report-history {
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.bug-report-history h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #C8AA6E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bug-reports-list {
  max-height: 200px;
  overflow-y: auto;
}

.no-reports {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.bug-report-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-left: 3px solid #C8AA6E;
}

.bug-report-item:last-child {
  margin-bottom: 0;
}

.bug-report-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bug-report-item-type {
  font-weight: 600;
  color: #F0E6D2;
  font-size: 13px;
}

.bug-report-item-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.bug-report-item-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.bug-report-item-status.pending {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.bug-report-item-status.in_progress {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.bug-report-item-status.resolved {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.bug-report-item-status.closed {
  background: rgba(149, 165, 166, 0.2);
  color: #95a5a6;
}

.bug-report-item-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Responsive Bug Report */
@media (max-width: 480px) {
  .bug-report-modal-content {
    max-width: 100%;
    margin: 10px;
  }

  .bug-report-header,
  .bug-report-body,
  .bug-report-history {
    padding: 16px 20px;
  }

  .bug-report-icon {
    font-size: 36px;
  }

  .bug-report-header h2 {
    font-size: 20px;
  }
}

/* =====================================================
   FLOATING BUG REPORT BUTTON
   ===================================================== */
.floating-bug-report-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8aa6e 0%, #8b6b3d 100%);
  border: 2px solid #c8aa6e;
  color: #0a1428;
  font-size: 22px;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: floatingPulse 2s ease-in-out infinite;
}

.floating-bug-report-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(200, 170, 110, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #f0d89a 0%, #c8aa6e 100%);
}

.floating-bug-report-btn:active {
  transform: scale(0.95);
}

.floating-bug-report-btn i {
  line-height: 1;
}

@keyframes floatingPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(200, 170, 110, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(200, 170, 110, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}

/* Mobile adjustments for floating button */
@media (max-width: 768px) {
  .floating-bug-report-btn {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Smaller screens - position to avoid overlapping with other elements */
@media (max-width: 480px) {
  .floating-bug-report-btn {
    bottom: 80px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}
