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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #050510;
  color: #f3f4f6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #0a0a1a 0%, #050510 100%);
}

.neon-gradient {
  background: linear-gradient(135deg, #A8FF00, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #1F3A1F;
}

.glass-card:hover {
  border-color: #A8FF00;
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.toast.success {
  background: rgba(168, 255, 0, 0.9);
  color: #0F1115;
  border: 1px solid #A8FF00;
}

.toast.error {
  background: rgba(239, 68, 68, 0.9);
  color: #fef2f2;
  border: 1px solid #f87171;
}

.toast.info {
  background: rgba(59, 130, 246, 0.9);
  color: #eff6ff;
  border: 1px solid #60a5fa;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.9);
  color: #0F1115;
  border: 1px solid #fbbf24;
}

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

.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
  animation: slideUp 0.3s ease-out;
}

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

.bottom-nav {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #1F3A1F;
}

.nav-item.active .nav-icon {
  color: #A8FF00;
}

.nav-item.active .nav-label {
  color: #A8FF00;
}

.mine-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0F1115, #1a1a2e);
  box-shadow: 0 0 30px rgba(168, 255, 0, 0.2), inset 0 0 30px rgba(168, 255, 0, 0.05);
  border: 2px solid #1F3A1F;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.mine-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 50px rgba(168, 255, 0, 0.3), inset 0 0 40px rgba(168, 255, 0, 0.1);
}

.mine-btn.active {
  background: linear-gradient(145deg, #0F1115, #1a3a0a);
  box-shadow: 0 0 40px rgba(168, 255, 0, 0.3), 0 0 80px rgba(168, 255, 0, 0.1);
  border-color: #A8FF00;
  animation: minePulse 2s ease-in-out infinite;
}

.mine-btn.claim {
  background: linear-gradient(145deg, #4ADE80, #A8FF00);
  box-shadow: 0 0 40px rgba(168, 255, 0, 0.5), 0 0 80px rgba(168, 255, 0, 0.2);
  border-color: #A8FF00;
  animation: claimGlow 1.5s ease-in-out infinite;
}

.mine-btn.cooldown {
  background: linear-gradient(145deg, #0F1115, #1a1a2e);
  box-shadow: none;
  border-color: #1F3A1F;
  cursor: pointer;
  opacity: 0.6;
}

.mine-btn .progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 188px;
  height: 188px;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}

.mine-btn .progress-ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.mine-btn .progress-ring .bg-circle {
  stroke: #1F3A1F;
}

.mine-btn .progress-ring .progress-circle {
  stroke: url(#neonGradient);
  transition: stroke-dashoffset 1s linear;
}

@keyframes minePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(168, 255, 0, 0.3), 0 0 60px rgba(168, 255, 0, 0.1); }
  50% { box-shadow: 0 0 60px rgba(168, 255, 0, 0.5), 0 0 100px rgba(168, 255, 0, 0.2); }
}

@keyframes claimGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(168, 255, 0, 0.5), 0 0 80px rgba(168, 255, 0, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 60px rgba(168, 255, 0, 0.7), 0 0 120px rgba(168, 255, 0, 0.3); transform: scale(1.02); }
}

.stat-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(168, 255, 0, 0.3);
  border-top-color: #A8FF00;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, #1F3A1F 25%, #2a5a2a 50%, #1F3A1F 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.price-bar {
  background-color: #0F1115;
  border: 1px solid #1F3A1F;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.price-bar::-webkit-scrollbar {
  display: none;
}

.price-chip {
  background-color: #0F1115;
  border: 1px solid #1F3A1F;
  border-radius: 8px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-chip .price-label {
  font-size: 10px;
  color: #6B7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-chip .price-value {
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #A8FF00;
  background: linear-gradient(90deg, #A8FF00, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a.price-chip {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

a.price-chip:hover {
  border-color: #A8FF00;
}

.price-loading {
  width: 60px;
  height: 18px;
  background: linear-gradient(90deg, #1F3A1F 25%, #2a5a2a 50%, #1F3A1F 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  display: inline-block;
}

.package-card {
  transition: all 0.2s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: #A8FF00;
}

.package-card.selected {
  border-color: #A8FF00;
  background: rgba(168, 255, 0, 0.1);
  box-shadow: 0 0 20px rgba(168, 255, 0, 0.2);
}

.package-card.recommended {
  border-color: #A8FF00;
}

.currency-btn {
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.currency-btn.active {
  border-color: #A8FF00;
  background: rgba(168, 255, 0, 0.15);
}

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

.animate-fade-in {
  animation: fadeInUp 0.3s ease-out;
}

a.no-underline {
  text-decoration: none;
}

@media (max-width: 420px) {
  .mine-btn {
    width: 150px;
    height: 150px;
  }
  .mine-btn .progress-ring {
    width: 158px;
    height: 158px;
  }
  .relative[style*="188px"] {
    width: 158px !important;
    height: 158px !important;
  }
  .stat-value {
    font-size: 0.875rem;
  }
}

.wc-qr-overlay {
  animation: fadeIn 0.2s ease-out;
}

@media (min-width: 768px) {
  .app-container {
    border-left: 1px solid #1F3A1F;
    border-right: 1px solid #1F3A1F;
  }
}
