:root {
  --bg-primary: #0a0e14;
  --bg-card: #111318;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.header {
  display: flex;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 40px;
}

.rewards-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 2rem 1rem;
  text-align: center;
}

.rewards-balance {
  margin-bottom: 1.5rem;
}

.rewards-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.rewards-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.rewards-amount span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.rewards-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.rewards-btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.rewards-btn:hover {
  transform: translateY(-2px);
}

.rewards-btn.primary {
  background: var(--accent-orange);
  color: #000;
}

.rewards-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section {
  padding: 1.5rem 1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-link {
  font-size: 0.85rem;
  color: var(--accent-orange);
  text-decoration: none;
}

.task-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.task-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.task-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.task-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.task-reward {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.task-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.task-progress-bar {
  height: 100%;
  background: var(--accent-orange);
  transition: width 0.3s;
}

.task-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--accent-orange);
  color: #000;
  flex-shrink: 0;
}

.task-btn.claimed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: default;
}

.referral-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.referral-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.referral-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.referral-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.referral-code code {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--accent-orange);
  cursor: pointer;
  padding: 0.25rem;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
  border-bottom: none;
}

.history-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.history-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.history-amount {
  font-weight: 600;
  color: var(--accent-green);
}

.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.inline-style-034359d7a8 {
  width: 0%;
}