* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: #ffffff;
  min-height: 100vh;
  padding-bottom: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.logo h1 {
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.user-diamonds {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
}

.diamond-icon {
  font-size: 24px;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ff8c00;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ID Section */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.input-group input {
  padding: 15px;
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #ff8c00;
  background: rgba(255, 255, 255, 0.1);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.info-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Buttons */
.btn-primary {
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 25px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-claim {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Packages */
.packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.package {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.package:hover {
  transform: translateY(-5px);
  border-color: #ff8c00;
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.package.selected {
  border-color: #ff8c00;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.package-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.package-amount {
  font-size: 32px;
  font-weight: bold;
  color: #ff8c00;
  margin-bottom: 5px;
}

.package-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.package-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

/* Daily Rewards */
.daily-rewards {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.reward-day {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 5px;
  text-align: center;
  transition: all 0.3s;
}

.reward-day.claimed {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.reward-day.current {
  border-color: #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
  animation: glow 2s infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.8);
  }
}

.day-number {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.reward-amount {
  font-size: 13px;
  font-weight: bold;
  color: #ff8c00;
}

.ad-boost {
  margin-top: 20px;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  text-align: center;
}

.ad-boost p {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Spin Wheel */
.spin-info {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.spins-left {
  background: rgba(255, 140, 0, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
}

.wheel-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#wheelCanvas {
  max-width: 100%;
  height: auto;
}

.spin-button {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border: 4px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.5);
}

.spin-button:hover {
  transform: scale(1.1);
}

.spin-button:active {
  transform: scale(0.95);
}

.spin-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin-result {
  text-align: center;
  padding: 15px;
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  animation: slideIn 0.5s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress */
.progress-info {
  margin-bottom: 20px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  border-radius: 15px;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
}

.progress-percent {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #ff8c00;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.disclaimer {
  margin-top: 10px;
  font-size: 11px;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .packages {
    grid-template-columns: 1fr;
  }

  .daily-rewards {
    grid-template-columns: repeat(4, 1fr);
  }

  .logo h1 {
    font-size: 16px;
  }
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border-color: #ff8c00;
  color: #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Memory Game */
.game-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #ff8c00;
}

.memory-game {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  min-height: 200px;
}

.memory-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s;
  position: relative;
}

.memory-card:hover {
  transform: scale(1.05);
}

.memory-card.flipped {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border-color: #ff8c00;
}

.memory-card.matched {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-color: #4caf50;
  cursor: default;
}

.memory-card .card-back {
  display: block;
}

.memory-card .card-front {
  display: none;
}

.memory-card.flipped .card-back {
  display: none;
}

.memory-card.flipped .card-front {
  display: block;
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.game-info {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-weight: bold;
}

/* Quiz Game */
.quiz-game {
  margin-bottom: 20px;
}

.quiz-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 140, 0, 0.1);
  border-left: 4px solid #ff8c00;
  border-radius: 10px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff8c00;
}

.quiz-option.correct {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.quiz-option.wrong {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
}

/* Missions */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s;
}

.mission-item.completed {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.mission-info {
  flex: 1;
}

.mission-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ff8c00;
}

.mission-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.mission-progress {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}

.mission-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: rgba(255, 140, 0, 0.2);
  border-radius: 10px;
}

.mission-reward-amount {
  font-size: 18px;
  font-weight: bold;
  color: #ff8c00;
}

.mission-reward-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Leaderboard */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s;
}

.leaderboard-item.top3 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-color: #ffd700;
}

.leaderboard-rank {
  font-size: 24px;
  font-weight: bold;
  color: #ff8c00;
  min-width: 40px;
  text-align: center;
}

.leaderboard-item.top3 .leaderboard-rank {
  color: #ffd700;
}

.leaderboard-info {
  flex: 1;
}

.leaderboard-name {
  font-weight: bold;
  margin-bottom: 3px;
}

.leaderboard-id {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.leaderboard-diamonds {
  font-size: 18px;
  font-weight: bold;
  color: #ff8c00;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
  border: 2px solid rgba(255, 140, 0, 0.5);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 26px;
  color: #ff8c00;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 24px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.claim-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.claim-option {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s;
}

.claim-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
}

.claim-option.highlight {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-color: #ff8c00;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.claim-option.highlight:hover {
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.claim-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.claim-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.claim-amount {
  font-size: 36px;
  font-weight: bold;
  color: #ff8c00;
  margin-bottom: 10px;
}

.claim-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.claim-option button {
  width: 100%;
}

.modal-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-balance {
  text-align: center;
  padding: 15px;
  background: rgba(255, 140, 0, 0.1);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 18px;
}

.modal-balance strong {
  color: #ff8c00;
  font-size: 24px;
}

.modal-boost {
  margin: 20px 0;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  text-align: center;
}

.modal-boost p {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.modal-actions button {
  flex: 1;
}

@media (max-width: 480px) {
  .claim-options {
    grid-template-columns: 1fr;
  }
}

/* Shop Styles */
.shop-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s;
}

.shop-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.shop-item.purchased {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.shop-item-icon {
  font-size: 40px;
  min-width: 50px;
  text-align: center;
}

.shop-item-info {
  flex: 1;
}

.shop-item-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ff8c00;
}

.shop-item-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.shop-item-action {
  min-width: 100px;
  text-align: center;
}

.btn-shop {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.btn-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-shop.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item-owned {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4caf50;
  border-radius: 8px;
  color: #4caf50;
  font-size: 13px;
  font-weight: bold;
}

/* Goal Message Styles */
.goal-message {
  text-align: center;
  padding: 20px;
  background: rgba(255, 140, 0, 0.1);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
}

.goal-message p {
  margin: 0;
}

/* Withdrawal Section Styles */
.withdrawal-info {
  text-align: center;
  margin-bottom: 25px;
}

.withdrawal-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 140, 0, 0.1);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 15px;
  margin-bottom: 15px;
}

.withdrawal-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.withdrawal-amount {
  font-size: 36px;
  font-weight: bold;
  color: #ff8c00;
}

.withdrawal-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
