/* ============================================
   FASTAP MINING - PRODUCTION STYLES
   Modern Glassmorphic Design with Animations
   ============================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #151929;
  --bg-tertiary: #1e2335;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  --gradient-primary: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-tertiary: #718096;

  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 24px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(at 20% 10%, rgba(0, 100, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 90%, rgba(0, 200, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(100, 0, 255, 0.1) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.App {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 80px;
}

/* ============================================
   GLASSMORPHIC COMPONENTS
   ============================================ */

.glassmorphic {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* ============================================
   GRADIENTS & ANIMATIONS
   ============================================ */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

.primary-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.primary-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition-normal);
}

.primary-gradient:active::before {
  left: 100%;
}

.secondary-gradient {
  background: var(--gradient-secondary);
  border: none;
  color: white;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  animation: slideDown 0.5s ease;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.wallet-btn {
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 200, 255, 0.3);
}

.wallet-btn.connected {
  background: rgba(0, 200, 100, 0.1);
  border-color: rgba(0, 200, 100, 0.3);
}

.wallet-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================
   REALTIME STATS BANNER
   ============================================ */

.realtime-stats-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 16px rgba(0, 200, 255, 0.2);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.live-pulse {
  animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(1.5); }
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-btn {
  flex: 1;
  min-width: 70px;
  padding: 12px 8px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 11px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4);
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ============================================
   ACTIVE BOOSTS BANNER
   ============================================ */

.active-boosts-banner {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.boost-icon {
  font-size: 24px;
  animation: rotate 2s linear infinite;
}

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

.boost-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffd700;
}

/* ============================================
   MINING VIEW
   ============================================ */

.mining-view {
  animation: fadeInUp 0.5s ease;
}

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

.tap-zone {
  min-height: 320px;
  border-radius: var(--border-radius-lg);
  padding: 40px 20px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tap-zone:active {
  transform: scale(0.98);
}

.tap-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.mining-label {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.tap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tap-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.stat-label-sm {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.tap-animation {
  position: absolute;
  font-size: 32px;
  font-weight: 800;
  color: #00ff88;
  pointer-events: none;
  animation: tapPop 1s ease forwards;
  text-shadow: 0 0 10px #00ff88;
}

@keyframes tapPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150%) scale(1.5);
    opacity: 0;
  }
}

/* ============================================
   COINS GRID
   ============================================ */

.mining-info {
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.mining-info h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.coin-item {
  padding: 16px 12px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  animation: scaleIn 0.5s ease;
  animation-fill-mode: backwards;
}

.coin-item:nth-child(1) { animation-delay: 0.1s; }
.coin-item:nth-child(2) { animation-delay: 0.15s; }
.coin-item:nth-child(3) { animation-delay: 0.2s; }
.coin-item:nth-child(4) { animation-delay: 0.25s; }
.coin-item:nth-child(5) { animation-delay: 0.3s; }
.coin-item:nth-child(6) { animation-delay: 0.35s; }
.coin-item:nth-child(7) { animation-delay: 0.4s; }
.coin-item:nth-child(8) { animation-delay: 0.45s; }

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

.coin-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.coin-icon-lg {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.coin-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 4px;
}

.coin-amount {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ============================================
   CLAIM BUTTON
   ============================================ */

.claim-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.3);
}

.claim-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 200, 255, 0.5);
}

.claim-btn:active {
  transform: translateY(-2px);
}

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

/* ============================================
   RECENT BLOCKS
   ============================================ */

.recent-blocks {
  padding: 20px;
  border-radius: var(--border-radius);
}

.recent-blocks h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.block-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.block-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.block-height {
  font-size: 14px;
  font-weight: 700;
  color: #00aaff;
}

.block-coin {
  font-size: 13px;
  color: var(--text-secondary);
}

.block-reward {
  font-size: 14px;
  font-weight: 700;
  color: #00ff88;
}

/* ============================================
   PORTFOLIO VIEW
   ============================================ */

.portfolio-view {
  animation: fadeInUp 0.5s ease;
}

.portfolio-header {
  padding: 30px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-total {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.total-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.total-value {
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-item {
  padding: 20px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

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

.coin-details {
  display: flex;
  flex-direction: column;
}

.coin-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.coin-balance {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.coin-value-usd {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.coin-change {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.coin-change.positive {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
}

.coin-change.negative {
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
}

/* ============================================
   ANALYTICS VIEW
   ============================================ */

.analytics-view {
  animation: fadeInUp 0.5s ease;
}

.analytics-view h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.3);
}

.stat-card .stat-icon {
  font-size: 40px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.rank-card,
.earnings-card {
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 20px;
}

.rank-card h3,
.earnings-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.rank-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank-number {
  font-size: 56px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.rank-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.earnings-value {
  font-size: 48px;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
}

/* ============================================
   REFERRAL VIEW
   ============================================ */

.referral-view {
  animation: fadeInUp 0.5s ease;
}

.referral-view h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.referral-card {
  padding: 30px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.referral-code-section {
  text-align: center;
  margin-bottom: 24px;
}

.referral-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.referral-code {
  font-size: 32px;
  font-weight: 800;
  color: #00aaff;
  padding: 16px 24px;
  background: rgba(0, 170, 255, 0.1);
  border: 2px dashed #00aaff;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.copy-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.4);
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ref-stat-card {
  padding: 20px 16px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  transition: var(--transition-normal);
}

.ref-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.ref-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ref-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.referral-rewards {
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.referral-rewards h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

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

.reward-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   ACHIEVEMENTS VIEW
   ============================================ */

.achievements-view {
  animation: fadeInUp 0.5s ease;
}

.achievements-view h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.empty-state {
  padding: 60px 20px;
  border-radius: var(--border-radius);
  text-align: center;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.achievement-card {
  padding: 20px;
  border-radius: var(--border-radius);
  display: flex;
  gap: 16px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.achievement-icon {
  font-size: 48px;
}

.achievement-info {
  display: flex;
  flex-direction: column;
}

.achievement-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.achievement-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.wallet-connect-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  animation: fadeIn 0.5s ease;
}

.wallet-modal-content {
  max-width: 420px;
  width: 100%;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  animation: scaleIn 0.5s ease;
}

.modal-icon-lg {
  font-size: 80px;
  text-align: center;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wallet-modal-content h1 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.modal-description {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.wallet-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.feature-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.feature-coin:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.connect-wallet-btn,
.manual-wallet-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.connect-wallet-btn:hover,
.manual-wallet-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 200, 255, 0.5);
}

.connect-wallet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.divider {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 20px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.manual-wallet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-input {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.wallet-input:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.save-wallet-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
}

.back-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.modal-footer {
  text-align: center;
  margin-top: 30px;
}

.modal-footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.block-found-modal {
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  animation: scaleIn 0.5s ease;
  max-width: 400px;
  width: 90%;
}

.confetti {
  font-size: 80px;
  margin-bottom: 20px;
  animation: confettiPop 0.8s ease;
}

@keyframes confettiPop {
  0% { transform: scale(0) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.block-found-modal h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 20px;
}

.block-details {
  margin: 30px 0;
}

.block-details p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.block-details h2 {
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.continue-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-top: 20px;
}

.continue-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 200, 255, 0.5);
}

/* ============================================
   TOASTS
   ============================================ */

.achievement-toast,
.notification-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
  animation: slideDown 0.5s ease, fadeOutUp 0.5s ease 2.5s forwards;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes fadeOutUp {
  to {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
}

.achievement-toast {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.notification-toast {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.notification-toast.success {
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.1);
}

.notification-toast.error {
  border-color: rgba(255, 68, 68, 0.5);
  background: rgba(255, 68, 68, 0.1);
}

.toast-icon,
.notif-icon {
  font-size: 32px;
}

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
}

.toast-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.notif-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .header-content h1 {
    font-size: 24px;
  }

  .realtime-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .referral-stats-grid {
    grid-template-columns: 1fr;
  }

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

/* ============================================
   UTILITIES
   ============================================ */

.view {
  min-height: calc(100vh - 200px);
}
