:root {
  --bg: #0b0b0d;
  --bg-alt: #111117;
  --bg-white: #ffffff;
  --bg-light: rgba(255, 255, 255, 0.05);
  --card: rgba(255, 255, 255, 0.08);
  --yellow: #f6c90e;
  --yellow-strong: #ffd029;
  --text: #f4f4f6;
  --text-dark: #1a1a1a;
  --muted: #c6c7d0;
  --border: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.2);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --success: #28a745;
  --error: #dc3545;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(246, 201, 14, 0.15), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(246, 201, 14, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, var(--bg) 100%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 30%, rgba(246, 201, 14, 0.08), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(246, 201, 14, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.brand-name {
  font-family: "Lora", "Times New Roman", serif;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.app-header {
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 11, 13, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  background: rgba(246, 201, 14, 0.14);
  color: var(--yellow-strong);
  border-color: rgba(246, 201, 14, 0.35);
  box-shadow: 0 10px 24px rgba(246, 201, 14, 0.15);
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--yellow);
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wallet-info:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(246, 201, 14, 0.3);
  transform: translateY(-1px);
}

.wallet-address {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: rgba(246, 201, 14, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: var(--bg);
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(246, 201, 14, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--yellow-strong), var(--yellow));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 201, 14, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 2;
}

.btn-primary.disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(246, 201, 14, 0.4);
}

.btn-primary.large {
  padding: 16px 32px;
  font-size: 16px;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--card);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(246, 201, 14, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 201, 14, 0.2);
}

.app-main {
  flex: 1;
  padding: 40px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.step-section {
  margin-bottom: 40px;
}

.section {
  margin: 64px 0;
}

.step-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  width: min(420px, 90vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(246, 201, 14, 0.1), transparent 50%);
  pointer-events: none;
}

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

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(246, 201, 14, 0.4);
  position: relative;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(246, 201, 14, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(246, 201, 14, 0.6);
  }
}

.step-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  margin-bottom: 16px;
  margin-top: 0;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.wallet-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.wallet-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.wallet-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(246, 201, 14, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-option:hover {
  border-color: var(--yellow);
  background: rgba(246, 201, 14, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(246, 201, 14, 0.3);
}

.wallet-option:hover::before {
  opacity: 1;
}

.wallet-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.wallet-name {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.x-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  padding: 12px 24px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.x-status:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 12px rgba(246, 201, 14, 0.2);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-indicator.connected {
  background: var(--success);
}

.status-indicator.disconnected {
  background: var(--error);
}

.fee-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.tasks-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  color: var(--text);
}

.xp-balance {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  border-radius: 8px;
}

.xp-label {
  font-size: 14px;
  color: var(--bg);
  font-weight: 500;
}

.xp-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.task-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.task-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(246, 201, 14, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.task-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(246, 201, 14, 0.3);
  transform: translateY(-4px);
}

.task-card:hover::before {
  opacity: 1;
}

.task-card.completed {
  border-color: var(--success);
  background: rgba(40, 167, 69, 0.05);
}

/* Featured time-based task card - larger and centered */
.task-card-featured {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--yellow);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(246, 201, 14, 0.2);
}

/* Available state - yellow border (ready to claim) */
.task-card-featured.available {
  border-color: var(--yellow);
  box-shadow: 0 8px 32px rgba(246, 201, 14, 0.2);
}

.task-card-featured.available::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(246, 201, 14, 0.15), transparent 60%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.task-card-featured.available:hover {
  border-color: var(--yellow-strong);
  box-shadow: 0 12px 40px rgba(246, 201, 14, 0.4);
  transform: translateY(-6px);
}

/* Claimed state - green border (on cooldown) */
.task-card-featured.claimed {
  border-color: var(--success);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.2);
}

.task-card-featured.claimed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(40, 167, 69, 0.15), transparent 60%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.task-card-featured.claimed:hover {
  border-color: #34ce57;
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.4);
  transform: translateY(-6px);
}

.task-card-featured .task-header {
  margin-bottom: 20px;
}

.task-card-featured .task-title {
  font-size: 28px;
  font-weight: 700;
}

.task-card-featured .task-xp {
  font-size: 18px;
  padding: 6px 16px;
  border-radius: 14px;
}

.task-card-featured .task-description {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.task-card-featured .task-actions {
  justify-content: center;
}

.task-card-featured .task-actions .btn-primary {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.task-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.task-xp {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(246, 201, 14, 0.3);
}

.task-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-status {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.task-status.pending {
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-light);
}

.task-status.completed {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.task-status.claimable {
  background: rgba(246, 201, 14, 0.2);
  color: var(--yellow);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.modal-content p {
  margin-bottom: 12px;
  color: var(--text);
}

.modal-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions button {
  flex: 1;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 13, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-overlay p {
  margin-top: 16px;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links,
  .header-actions {
    justify-content: center;
  }

  .step-card {
    padding: 32px 24px;
  }

  .tasks-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

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

/* Leaderboard Styles */
.leaderboard-section {
  margin-top: 48px;
  padding: 24px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.leaderboard-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 24px;
}

.leaderboard-container {
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(246, 201, 14, 0.1);
  border-bottom: 2px solid var(--yellow);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yellow);
}

.leaderboard-list {
  max-height: 600px;
  overflow-y: auto;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  align-items: center;
}

.leaderboard-entry:hover {
  background: rgba(246, 201, 14, 0.05);
  border-color: var(--yellow);
}

.leaderboard-entry:last-child {
  border-bottom: none;
}

.leaderboard-entry.current-user {
  background: rgba(246, 201, 14, 0.15);
  border-left: 3px solid var(--yellow);
}

.leaderboard-rank {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-rank.top-3 {
  color: var(--yellow);
  font-size: 20px;
}

.leaderboard-rank.top-1::after {
  content: "🥇";
  margin-left: 4px;
}

.leaderboard-rank.top-2::after {
  content: "🥈";
  margin-left: 4px;
}

.leaderboard-rank.top-3::after {
  content: "🥉";
  margin-left: 4px;
}

.leaderboard-wallet {
  font-family: "Space Grotesk", monospace;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

.leaderboard-xp {
  font-weight: 600;
  font-size: 16px;
  color: var(--yellow);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.leaderboard-xp::after {
  content: "XP";
  font-size: 12px;
  opacity: 0.7;
}

.leaderboard-list::-webkit-scrollbar {
  width: 8px;
}

.leaderboard-list::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

.leaderboard-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.leaderboard-list::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

.leaderboard-separator {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .leaderboard-header,
  .leaderboard-entry {
    grid-template-columns: 60px 1fr 100px;
    gap: 12px;
    padding: 12px 16px;
  }

  .leaderboard-section {
    margin-top: 32px;
    padding: 16px;
  }

  .leaderboard-section h2 {
    font-size: 24px;
  }

  .leaderboard-rank {
    font-size: 16px;
  }

  .leaderboard-wallet {
    font-size: 12px;
  }

  .leaderboard-xp {
    font-size: 14px;
  }
}

/* CTA Section */
.section.cta {
  text-align: center;
  margin: 80px 0;
}

.cta__card {
  background: linear-gradient(135deg, rgba(246, 201, 14, 0.12), rgba(11, 11, 13, 0.8));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--shadow);
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 10px;
}

/* Footer */
.footer {
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer .logo.brand-name {
  color: var(--yellow) !important;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  display: block;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: all 0.3s ease;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
}

.social-link:hover {
  color: var(--yellow);
  background: rgba(246, 201, 14, 0.1);
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 201, 14, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Button styles for CTA */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 14px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: #0b0b0d;
  box-shadow: 0 10px 30px rgba(246, 201, 14, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cta__actions {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer__social {
    order: -1;
  }
}

/* Surprise Boxes Section */
.surprise-boxes-section {
  margin-top: 60px;
  padding: 40px 0;
}

.surprise-boxes-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  color: var(--text);
}

.surprise-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.surprise-box-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  text-align: center;
}

.surprise-box-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  font-size: 80px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

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

/* Box-specific styles */
.surprise-box-card.box-bronze {
  border-color: #cd7f32;
}

.surprise-box-card.box-bronze:hover {
  border-color: #b87333;
  box-shadow: 0 8px 24px rgba(205, 127, 50, 0.4);
}

.surprise-box-card.box-silver {
  border-color: #c0c0c0;
}

.surprise-box-card.box-silver:hover {
  border-color: #e8e8e8;
  box-shadow: 0 8px 24px rgba(192, 192, 192, 0.4);
}

.surprise-box-card.box-gold {
  border-color: #ffd700;
}

.surprise-box-card.box-gold:hover {
  border-color: #ffed4e;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.surprise-box-card.box-free {
  border-color: #4a90e2;
}

.surprise-box-card.box-free:hover {
  border-color: #6ba3e8;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

.free-box-featured {
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
}

.surprise-box-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(246, 201, 14, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.surprise-box-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(246, 201, 14, 0.3);
  transform: translateY(-4px);
}

.surprise-box-card:hover::before {
  opacity: 1;
}

.surprise-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.surprise-box-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.surprise-box-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--yellow);
  background: rgba(246, 201, 14, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.surprise-box-description {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.surprise-box-actions {
  margin-top: 20px;
}

.surprise-box-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Reward Modal */
.reward-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.reward-modal-content {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--yellow);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(246, 201, 14, 0.4);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.reward-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 0.6s ease 0.2s;
}

.reward-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  animation: slideUp 0.5s ease 0.3s both;
}

.reward-xp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(246, 201, 14, 0.5);
  animation: slideUp 0.5s ease 0.4s both;
}

.reward-box-name {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  animation: slideUp 0.5s ease 0.5s both;
}

.reward-modal-content .btn-primary {
  animation: slideUp 0.5s ease 0.6s both;
}

/* History Section */
.history-section {
  margin-top: 60px;
}

.history-container {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-height: 600px;
  overflow-y: auto;
}

.history-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.history-empty p {
  font-size: 16px;
  margin: 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--yellow);
  transform: translateX(4px);
}

.history-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-content {
  flex: 1;
  min-width: 0;
}

.history-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.history-date {
  font-size: 13px;
  color: var(--muted);
}

.history-xp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

/* Scrollbar styling for history container */
.history-container::-webkit-scrollbar {
  width: 8px;
}

.history-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-strong);
}

.history-load-more {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px 0;
}

.history-load-more .btn-secondary {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
}

.history-load-more .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

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

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

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

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

