@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg-color: #050816;
  --panel-bg: rgba(12, 16, 36, 0.72);
  --panel-border: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;

  --neon-cyan: #22d3ee;
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-emerald: #34d399;
  --neon-gold: #fbbf24;

  --accent-gradient: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  --success: var(--neon-emerald);
  --success-glow: rgba(52, 211, 153, 0.35);
  --danger: #f43f5e;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ── Ambient Background ────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
  z-index: 0;
  pointer-events: none;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, var(--bg-color) 100%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: orb-drift 25s infinite alternate ease-in-out;
}

.orb-1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, transparent 70%);
  top: -20%; left: -20%;
  animation-duration: 28s;
}

.orb-2 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
  bottom: -25%; right: -15%;
  animation-duration: 32s;
  animation-delay: -8s;
}

.orb-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.24) 0%, transparent 70%);
  top: 30%; left: 40%;
  animation-duration: 24s;
  animation-delay: -14s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(6%, 8%) scale(1.12); }
  66%  { transform: translate(-4%, 3%) scale(0.95); }
  100% { transform: translate(-2%, -6%) scale(1.08); }
}

/* ── Layout ────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.view.hidden, .hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.96) translateY(16px);
}

/* ── LANDING VIEW ──────────────────────────────────────── */
#landing-view {
  text-align: center;
  max-width: 620px;
}

.logo-container {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: center;
  animation: logo-breathe 3.5s infinite alternate ease-in-out;
}

@keyframes logo-breathe {
  0%   { filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 38px rgba(34, 211, 238, 0.55)); transform: scale(1.04); }
}

.logo-icon {
  width: 80px; height: 80px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 50px rgba(139, 92, 246, 0.35),
    0 0 20px rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0f1e;
}

.logo-icon img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.title-coming-soon {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  background: linear-gradient(160deg, #ffffff 25%, #cbd5e1 55%, rgba(255, 255, 255, 0.65) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 6s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.title-coming-soon span {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.title-coming-soon span::after {
  content: 'on Arka';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(16px);
  opacity: 0.5;
  z-index: -1;
}

.subtitle-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Primary CTA ───────────────────────────────────────── */
.btn-primary {
  position: relative;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.1rem 2.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  box-shadow:
    0 6px 28px rgba(34, 211, 238, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: all 0.35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.01em;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 40px rgba(34, 211, 238, 0.45),
    0 0 20px rgba(139, 92, 246, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

/* ── TASKS VIEW ────────────────────────────────────────── */
#tasks-view {
  max-width: 700px;
  width: 100%;
}

.tasks-container {
  background: var(--panel-bg);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  width: 100%;
  box-shadow:
    0 32px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 80px -30px rgba(139, 92, 246, 0.12);
  position: relative;
  overflow: hidden;
}

/* Animated top accent bar */
.tasks-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-cyan) 20%,
    var(--neon-blue) 40%,
    var(--neon-purple) 60%,
    var(--neon-pink) 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: accent-flow 4s linear infinite;
}

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

/* ── Tasks Header ──────────────────────────────────────── */
.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}

.header-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--neon-pink);
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.28);
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
}

.tasks-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.progress-counter {
  font-family: var(--font-display);
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.45rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  transition: all 0.35s var(--ease-out-expo);
}

.progress-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.progress-nums {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.progress-counter.highlight .progress-nums {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.progress-counter.completed-all .progress-nums {
  color: var(--neon-emerald);
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

/* ── Progress Bar ──────────────────────────────────────── */
.progress-track-wrapper {
  margin-bottom: 1.5rem;
}

.progress-track-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
}

.progress-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
  border-radius: 99px;
  transition: width 0.65s var(--ease-out-expo);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
  position: relative;
}

.tasks-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ── Task List ─────────────────────────────────────────── */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

/* Hover left-edge glow */
.task-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0 3px 3px 0;
}

.task-item:hover:not(.locked)::before { opacity: 1; }

.task-item:hover:not(.locked) {
  background: rgba(34, 211, 238, 0.03);
  border-color: rgba(34, 211, 238, 0.18);
  transform: translateX(4px);
  box-shadow:
    0 8px 28px -8px rgba(0, 0, 0, 0.4),
    0 0 18px -6px rgba(34, 211, 238, 0.12);
}

.task-item.completed {
  border-color: rgba(52, 211, 153, 0.15);
  background: rgba(52, 211, 153, 0.02);
}

.task-item.completed:hover:not(.locked) {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 16px -4px rgba(52, 211, 153, 0.15);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-grow: 1;
  min-width: 0;
}

/* ── Task Icon ─────────────────────────────────────────── */
.task-icon-container {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: all 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

.task-item:hover:not(.locked) .task-icon-container {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.task-item.completed .task-icon-container {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: var(--neon-emerald);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.15);
}

.task-icon-container svg {
  width: 20px; height: 20px;
}

/* ── Task Details ──────────────────────────────────────── */
.task-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.task-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.task-title-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.completed .task-title-text {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.12);
}

.task-item.completed .task-desc {
  color: var(--text-muted);
  opacity: 0.65;
}

/* ── Category Chips ────────────────────────────────────── */
.task-chip {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  flex-shrink: 0;
}

.chip-social {
  background: rgba(34, 211, 238, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.chip-community {
  background: rgba(139, 92, 246, 0.08);
  color: var(--neon-purple);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.chip-testnet {
  background: rgba(59, 130, 246, 0.08);
  color: var(--neon-blue);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.chip-tweet {
  background: rgba(236, 72, 153, 0.08);
  color: var(--neon-pink);
  border: 1px solid rgba(236, 72, 153, 0.22);
}

.chip-wallet {
  background: rgba(52, 211, 153, 0.08);
  color: var(--neon-emerald);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

/* ── Task Buttons ──────────────────────────────────────── */
.btn-task-go {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s var(--ease-out-expo);
  flex-shrink: 0;
}

.btn-task-go:hover:not(:disabled) {
  background: #fff;
  color: #050816;
  border-color: #fff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-task-go:active:not(:disabled) {
  transform: translateY(0);
}

.btn-task-go svg {
  width: 13px; height: 13px;
  transition: transform 0.25s ease;
}

.btn-task-go:hover:not(:disabled) svg {
  transform: translate(2px, -2px);
}

.btn-task-go.verifying {
  background: rgba(34, 211, 238, 0.06) !important;
  color: var(--neon-cyan) !important;
  border-color: rgba(34, 211, 238, 0.2) !important;
  cursor: not-allowed;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.1);
}

.btn-task-go.completed-btn {
  background: rgba(52, 211, 153, 0.08) !important;
  color: var(--neon-emerald) !important;
  border-color: rgba(52, 211, 153, 0.2) !important;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

.spinner {
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

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

/* ── Wallet Inline Input ───────────────────────────────── */
.task-item-wallet {
  align-items: flex-start !important;
}

.task-inline-input {
  width: 100%;
  margin-top: 0.4rem;
  background: rgba(5, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.35s var(--ease-out-expo);
}

.task-inline-input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.task-inline-input:focus {
  border-color: var(--neon-cyan);
  background: rgba(5, 8, 22, 0.8);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}

.task-inline-input.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25) !important;
  animation: shake 0.35s ease;
}

.task-inline-input.input-success {
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: var(--neon-emerald) !important;
  background: rgba(52, 211, 153, 0.04) !important;
  cursor: default;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

/* ── Lock Overlay ──────────────────────────────────────── */
.lock-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5, 8, 22, 0.55) 0%, rgba(5, 8, 22, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.5s var(--ease-out-expo);
  padding: 2rem;
}

.lock-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.lock-content {
  text-align: center;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slide-up 0.6s var(--ease-out-expo);
}

.lock-icon-glow {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.2);
  animation: lock-pulse 2.5s infinite alternate ease-in-out;
}

@keyframes lock-pulse {
  0%   { box-shadow: 0 0 24px rgba(34, 211, 238, 0.15); }
  100% { box-shadow: 0 0 42px rgba(34, 211, 238, 0.35), 0 0 16px rgba(139, 92, 246, 0.2); }
}

.lock-icon-glow svg {
  width: 26px; height: 26px;
}

.lock-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.btn-connect-x {
  background: linear-gradient(135deg, #ffffff 0%, #e8ecf1 100%);
  color: #050816;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 255, 255, 0.12);
  transition: all 0.35s var(--ease-out-expo);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-connect-x svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

.btn-connect-x:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(34, 211, 238, 0.25);
}

.btn-connect-x:active {
  transform: translateY(0) scale(0.98);
}

.task-item.locked {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.6);
}

/* ── Modal & Dialogs ───────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.97) 0%, rgba(8, 12, 28, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(139, 92, 246, 0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-backdrop.show .modal-content {
  transform: scale(1) translateY(0);
}

.twitter-logo-glow, .wallet-icon-glow {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.twitter-logo-glow svg {
  width: 30px; height: 30px;
  fill: #fff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.auth-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.15rem;
  border-radius: var(--radius-md);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.step-row.active {
  color: var(--text-primary);
  font-weight: 600;
}

.step-row.completed {
  color: var(--neon-emerald);
}

.step-indicator-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.step-row.active .step-indicator-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.step-row.completed .step-indicator-dot {
  background: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Wallet Modal extras ───────────────────────────────── */
.wallet-input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.wallet-input {
  width: 100%;
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.wallet-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.wallet-error-text {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.4rem;
  display: block;
}

.modal-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Success Card & Holographic Ticket ─────────────────── */
.success-card {
  text-align: center;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-glow {
  width: 76px; height: 76px;
  background: rgba(52, 211, 153, 0.08);
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-emerald);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.3);
  animation: bounce-in 0.6s var(--ease-out-expo);
}

.ticket-wrapper {
  perspective: 1000px;
  margin-top: 1rem;
}

.ticket-card {
  background: linear-gradient(160deg, rgba(15, 22, 42, 0.95), rgba(8, 12, 28, 0.92));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 360px;
  max-width: 100%;
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(34, 211, 238, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

/* Holographic sweep */
.ticket-card::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: rotate(30deg);
  transition: inset 0.7s ease;
  pointer-events: none;
}

.ticket-card:hover::after {
  inset: 150%;
}

.ticket-card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.02);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(34, 211, 238, 0.25);
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.ticket-brand-logo {
  width: 30px; height: 30px;
}

.ticket-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}

.ticket-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.ticket-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

.ticket-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 1.25rem 0;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}

.ticket-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Animations ────────────────────────────────────────── */
@keyframes slide-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.06); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .tasks-container {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .tasks-header {
    flex-direction: column;
    gap: 1rem;
  }

  .progress-counter {
    align-self: flex-start;
  }

  .task-item {
    padding: 0.9rem 1rem;
  }

  .btn-task-go {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .task-chip {
    font-size: 0.52rem;
    padding: 0.1rem 0.4rem;
  }
}