@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .earnings-summary {
    grid-template-columns: 1fr !important;
  }

  .invest-stats {
    grid-template-columns: 1fr !important;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .table-wrapper table {
    min-width: 600px;
  }

  .modal {
    margin: 10% 16px;
    padding: 24px;
  }

  .chat-container {
    margin: 0 -16px;
    border-radius: 0 !important;
  }

  .chat-messages {
    height: 400px !important;
  }

  .match-teams {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .match-vs {
    font-size: 1.2rem !important;
  }

  .betslip-content {
    flex-direction: column;
    align-items: stretch !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .balance-display {
    font-size: 1.6rem !important;
  }

  .card {
    padding: 16px !important;
  }

  .form-group input,
  .form-group select {
    padding: 10px 14px;
  }

  .page-header {
    padding: 24px 0 20px !important;
  }

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

  .wallet-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

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

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

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

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
