:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-card: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-gold: #f4b942;
  --accent-blue: #4a9eff;
  --accent-purple: #8b5cf6;
  --border-gold: #d4a042;
  --border-purple: #6d28d9;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4a9eff, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar-brand {
  color: var(--text-primary) !important;
}

.nav-link {
  color: var(--text-secondary) !important;
  padding: 0.5rem 1.5rem !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-primary-custom {
  background-color: var(--accent-gold);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: #e0a532;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 185, 66, 0.3);
}

.btn-secondary-custom {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-secondary-custom:hover {
  background-color: #3a3a3a;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.sidebar-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.sidebar-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.miner-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.miner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.miner-item i {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.logo-bottom {
  width: 60px;
  height: 60px;
  background: rgba(74, 158, 255, 0.1);
  border: 2px solid var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

/* Mining Visual */
.mining-visual {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.mining-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Miner Cards */
.miner-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.miner-card.gold-tier {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 160, 66, 0.05), transparent);
}

.miner-card.silver-tier {
  border-color: var(--border-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

.miner-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.miner-icon.gold {
  background: linear-gradient(135deg, #f4b942, #d4a042);
  color: #000;
}

.miner-icon.silver {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
}

.small-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Blog Card */
.blog-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Right Sidebar */
.earnings-card,
.trending-card,
.boosts-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.earnings-amount h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.notification-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.trending-content {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.boost-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.boost-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.boost-icon.bitcoin {
  background: linear-gradient(135deg, #4a9eff, #2563eb);
  color: #fff;
}

.boost-icon.star {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

/* Notification Popup */
.notification-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.98), rgba(37, 37, 37, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  animation: slideInUp 0.5s ease-out;
}

.notification-content {
  position: relative;
  z-index: 1;
}

.sparkle-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
}

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

/* Badges */
.badge {
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar-card {
    margin-bottom: 2rem;
  }

  .notification-popup {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .earnings-amount h2 {
    font-size: 1.5rem;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}
