* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffd700;
  --secondary-color: #00ff88;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --gradient-primary: linear-gradient(135deg, #ffd700, #ffa500);
  --gradient-secondary: linear-gradient(135deg, #00ff88, #00cc6a);
  --gradient-dark: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

body {
  font-family: "Arial", sans-serif;
  background: var(--darker-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--dark-bg);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  background: var(--gradient-primary);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: var(--dark-bg);
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-login,
.btn-register {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn-login {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.btn-login:hover {
  background: var(--text-light);
  color: var(--dark-bg);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--dark-bg);
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23g)"/><circle cx="80" cy="40" r="1.5" fill="url(%23g)"/><circle cx="40" cy="80" r="1" fill="url(%23g)"/></svg>')
    repeat;
  opacity: 0.3;
}

.hero-banner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-banner-content {
  flex: 1;
}

.hero-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero-mascot {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.hero-mascot::after {
  content: "😄";
  position: absolute;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--dark-bg);
  font-size: 1.2rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.step p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Games Section */
.games-section {
  padding: 60px 0;
  background: var(--dark-bg);
}

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

.game-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.game-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 136, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.game-category:hover::before {
  opacity: 1;
}

.game-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.category-icon {
  background: var(--gradient-primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--dark-bg);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.category-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.category-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.btn-category {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.btn-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Mobile adjustments for games section */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .game-category {
    padding: 2rem 1.5rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .category-content h2 {
    font-size: 1.5rem;
  }

  .btn-category {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin: 1rem 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Products Section */
.products-section {
  padding: 60px 0;
  background: var(--darker-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--dark-bg);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.product-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--dark-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-bg);
}

.bonus-badge {
  background: var(--secondary-color);
  color: var(--dark-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}

.form-group {
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #333;
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--text-light);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.password-input {
  position: relative;
}

.show-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

.btn-submit {
  width: calc(100% - 4rem);
  margin: 0 2rem 1rem;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.form-divider {
  text-align: center;
  margin: 1rem 0;
  color: var(--text-gray);
}

.form-footer {
  text-align: center;
  padding: 0 2rem 2rem;
  color: var(--text-gray);
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Deposit Modal */
.deposit-content {
  padding: 2rem;
  text-align: center;
}

.deposit-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.amount-input {
  margin: 2rem 0;
}

.amount-input input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #333;
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
}

.min-amount {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background: transparent;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.selected {
  background: var(--primary-color);
  color: var(--dark-bg);
}

.amount-btn.hot {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  position: relative;
}

.amount-btn.hot::after {
  content: "🔥 QUENTE";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--secondary-color);
  color: var(--dark-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
}

.btn-generate-qr {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-secondary);
  color: var(--dark-bg);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-generate-qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Game Modal */
.game-modal {
  max-width: 800px;
  width: 95%;
}

.game-content {
  padding: 2rem;
}

.game-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-price {
  text-align: center;
}

.btn-buy-game {
  background: var(--gradient-secondary);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.game-instructions p {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.btn-auto {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.scratch-area {
  margin: 2rem 0;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.scratch-card {
  aspect-ratio: 1;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.scratch-card.scratched {
  background: var(--dark-bg);
  border: 2px solid var(--primary-color);
}

.scratch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
  font-weight: bold;
  transition: opacity 0.3s;
}

.prizes-section {
  margin-top: 2rem;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.prize-card {
  background: var(--dark-bg);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.prize-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.prize-name {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.prize-value {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Footer */
.footer {
  background: var(--darker-bg);
  padding: 3rem 0 1rem;
  border-top: 2px solid var(--primary-color);
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-logo i {
  margin-right: 0.5rem;
  font-size: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
  }

  .logo {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .logo i {
    font-size: 1.2rem;
  }

  .auth-buttons {
    gap: 0.3rem;
  }

  .btn-login,
  .btn-register {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 80px 0 30px;
  }

  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-banner h2 {
    font-size: 1.4rem;
  }

  .hero-mascot {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

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

  .step {
    padding: 1rem 0.5rem;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step h3 {
    font-size: 0.9rem;
  }

  .step p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-steps {
    grid-template-columns: 1fr;
  }

  .games-section .section-title {
    flex-direction: column;
    gap: 0.5rem;
  }

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

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary:hover,
.btn-submit:hover,
.btn-generate-qr:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
}

.message.success {
  background: rgba(0, 255, 136, 0.2);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.message.error {
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff0000;
  color: #ff0000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header .container {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
  }

  .logo {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .logo i {
    font-size: 1.2rem;
  }

  .auth-buttons {
    gap: 0.3rem;
  }

  .btn-login,
  .btn-register {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 80px 0 30px;
  }

  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-banner h2 {
    font-size: 1.4rem;
  }

  .hero-mascot {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

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

  .step {
    padding: 1rem 0.5rem;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step h3 {
    font-size: 0.9rem;
  }

  .step p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-steps {
    grid-template-columns: 1fr;
  }

  .games-section .section-title {
    flex-direction: column;
    gap: 0.5rem;
  }

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