/* ========== RESET & VARIABLES ========== */
    :root {
      --bg-deep: #0d0514;
      --bg-mid: #140a24;
      --bg-card: rgba(20, 10, 36, 0.85);
      --purple-main: #9b59b6;
      --purple-light: #c084fc;
      --purple-bright: #a855f7;
      --purple-glow: rgba(168, 85, 247, 0.25);
      --purple-dark: #2d1250;
      --text-primary: #f0e6ff;
      --text-secondary: #a89bc2;
      --text-muted: #7c6d96;
      --success: #22c55e;
      --success-glow: rgba(34, 197, 94, 0.2);
      --error: #ef4444;
      --error-glow: rgba(239, 68, 68, 0.2);
      --border: rgba(168, 85, 247, 0.12);
      --border-hover: rgba(168, 85, 247, 0.3);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
      background: var(--bg-deep);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ========== ANIMATED BACKGROUND ========== */
    .bg-effects {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-effects::before {
      content: '';
      position: absolute;
      width: 800px;
      height: 800px;
      top: -200px;
      left: -200px;
      background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
      animation: drift1 20s ease-in-out infinite;
    }

    .bg-effects::after {
      content: '';
      position: absolute;
      width: 600px;
      height: 600px;
      bottom: -150px;
      right: -150px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
      animation: drift2 25s ease-in-out infinite;
    }

    @keyframes drift1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(80px, 40px) scale(1.1); }
    }

    @keyframes drift2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(-60px, -30px) scale(1.05); }
    }

    /* ========== TOP ANNOUNCEMENT BANNER ========== */
    .announcement-bar {
      background: linear-gradient(90deg, var(--purple-dark), #1a0a30, var(--purple-dark));
      text-align: center;
      padding: 10px 16px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--purple-light);
      border-bottom: 1px solid var(--border);
      position: relative;
      z-index: 10;
    }

    .announcement-bar a {
      color: var(--purple-light);
      text-decoration: none;
    }
    .announcement-bar a:hover {
      color: #fff;
    }

    .navbar {
      display: flex;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 0 40px;
      background: linear-gradient(180deg, rgba(120, 60, 200, 0.15) 0%, rgba(80, 40, 160, 0.05) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      text-decoration: none;
      transition: opacity 0.3s;
    }
    .nav-brand:hover { opacity: 0.85; }
    .nav-brand img {
      height: 110px;
      width: auto;
      display: block;
      mix-blend-mode: screen;
    }

    .nav-spacer {
      width: 60px;
    }

    .nav-links {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      gap: 24px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links a {
      color: var(--text-primary);
      text-decoration: none;
      font-size: 20px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      transition: color 0.3s;
      padding-bottom: 4px;
      border-bottom: 3px solid var(--purple-bright);
    }
    .nav-links a:hover { color: #fff; }

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

    .nav-icon {
      color: var(--text-secondary);
      transition: color 0.3s;
      cursor: pointer;
    }
    .nav-icon:hover { color: var(--purple-light); }

    /* ========== HERO SECTION ========== */
    .hero {
      position: relative;
      text-align: center;
      padding: 64px 20px 48px;
      z-index: 1;
    }

    .hero-logo {
      margin-bottom: 4px;
      animation: fadeInUp 0.8s ease-out;
      display: flex;
      justify-content: center;
    }

    .hero-logo img {
      height: clamp(80px, 16vw, 140px);
      width: auto;
      display: block;
      filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.35));
      mix-blend-mode: screen;
    }

    .hero-star {
      display: inline-block;
      color: var(--purple-bright);
      font-size: 0.6em;
      vertical-align: middle;
      margin: 0 -4px;
    }

    /* ========== STATS ROW ========== */
    .stats-row {
      display: flex;
      justify-content: center;
      gap: clamp(24px, 6vw, 64px);
      margin-top: 24px;
      animation: fadeInUp 1s ease-out 0.2s both;
    }

    .stat-item {
      text-align: center;
    }

    .stat-icon {
      width: 36px;
      height: 36px;
      margin: 0 auto 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(168, 85, 247, 0.12);
      color: var(--purple-light);
    }

    .stat-icon svg { width: 18px; height: 18px; }

    .stat-number {
      font-size: 28px;
      font-weight: 900;
      color: var(--purple-light);
      line-height: 1;
    }

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

    /* ========== CLAIM CARD ========== */
    .container {
      position: relative;
      z-index: 1;
      max-width: 680px;
      margin: 0 auto;
      padding: 0 20px 80px;
    }

    .section-title {
      text-align: center;
      margin-bottom: 8px;
      font-family: 'Sacramento', cursive;
      font-size: 36px;
      color: var(--purple-light);
      animation: fadeInUp 1.2s ease-out 0.3s both;
    }

    .section-subtitle {
      text-align: center;
      color: var(--text-muted);
      font-size: 14px;
      margin-bottom: 28px;
      animation: fadeInUp 1.2s ease-out 0.35s both;
    }

    .claim-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 32px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(168, 85, 247, 0.05) inset;
      animation: fadeInUp 1.2s ease-out 0.4s both;
      transition: border-color 0.3s;
    }

    .claim-card:hover {
      border-color: var(--border-hover);
    }

    /* ========== FORM FIELDS ========== */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    @media (max-width: 580px) {
      .form-grid { grid-template-columns: 1fr; }
    }

    .form-group { position: relative; }

    .form-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .form-input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(13, 5, 20, 0.6);
      color: var(--text-primary);
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 500;
      outline: none;
      transition: all 0.3s ease;
    }

    .form-input::placeholder {
      color: var(--text-muted);
      font-weight: 400;
    }

    .form-input:focus {
      border-color: var(--purple-bright);
      box-shadow: 0 0 0 4px var(--purple-glow);
      background: rgba(20, 10, 36, 0.9);
    }

    /* ========== BUTTONS ========== */
    .btn-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    .btn {
      padding: 13px 24px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(168, 85, 247, 0.08);
      color: var(--text-primary);
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 700;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .btn:hover::before { opacity: 1; }
    .btn:hover {
      border-color: var(--border-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
    }

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

    .btn-primary {
      background: linear-gradient(135deg, var(--purple-bright), #7c3aed);
      border: none;
      color: #fff;
      box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
    }

    .btn-primary:hover {
      box-shadow: 0 6px 28px rgba(168, 85, 247, 0.45);
      transform: translateY(-2px);
    }

    .btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none !important;
    }

    .btn-loading {
      pointer-events: none;
    }

    .btn-loading::after {
      content: '';
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      margin-left: 8px;
      vertical-align: middle;
      animation: spin 0.6s linear infinite;
    }

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

    /* ========== HELP NOTE ========== */
    .help-note {
      color: var(--text-muted);
      font-size: 12px;
      line-height: 1.6;
      margin-top: 16px;
      padding: 12px 16px;
      border-radius: 12px;
      background: rgba(168, 85, 247, 0.04);
      border: 1px solid rgba(168, 85, 247, 0.06);
    }

    .help-note b { color: var(--text-secondary); }

    /* ========== STATUS MESSAGES ========== */
    .status-box {
      margin-top: 16px;
      padding: 16px 18px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.5;
      display: none;
      animation: fadeIn 0.3s ease-out;
    }

    .status-box b { font-weight: 700; }

    .status-ok {
      background: rgba(34, 197, 94, 0.08);
      border: 1px solid rgba(34, 197, 94, 0.25);
      color: #86efac;
    }

    .status-err {
      background: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #fca5a5;
    }

    /* ========== ITEMS TABLE ========== */
    .items-section {
      display: none;
      margin-top: 20px;
      animation: fadeIn 0.4s ease-out;
    }

    .items-table-wrap {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .items-table {
      width: 100%;
      border-collapse: collapse;
    }

    .items-table th {
      padding: 12px 16px;
      text-align: left;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      background: rgba(168, 85, 247, 0.06);
      border-bottom: 1px solid var(--border);
    }

    .items-table td {
      padding: 12px 16px;
      font-size: 13px;
      border-bottom: 1px solid rgba(168, 85, 247, 0.05);
      color: var(--text-secondary);
    }

    .items-table tr:last-child td { border-bottom: none; }

    .items-table tr:hover td {
      background: rgba(168, 85, 247, 0.04);
    }

    /* ========== NEXT STEPS ========== */
    .next-steps {
      margin-top: 16px;
      padding: 14px 18px;
      border-radius: 12px;
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.1);
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .next-steps b { color: var(--purple-light); }
    .next-steps a { color: var(--purple-light); text-decoration: none; }
    .next-steps a:hover { text-decoration: underline; color: #fff; }

    /* ========== FOOTER ========== */
    .footer {
      text-align: center;
      padding: 32px 20px;
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 12px;
      position: relative;
      z-index: 1;
    }

    .footer a {
      color: var(--purple-light);
      text-decoration: none;
    }
    .footer a:hover { color: #fff; }

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

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

    /* ========== RESPONSIVE ========== */
    @media (max-width: 640px) {
      .navbar { padding: 12px 16px; }
      .nav-links { display: none; }
      .hero { padding: 40px 16px 32px; }
      .claim-card { padding: 24px 18px; }
      .stats-row { gap: 20px; }
      .stat-number { font-size: 22px; }
    }

/* ========== CLAIM FLOW PANELS (manual-delivery edition) ========== */
[hidden] { display: none !important; }

.help-note { white-space: pre-line; }

.status-box.show { display: block; }

.stage-panel {
  margin-top: 20px;
  padding: 26px 22px;
  border-radius: 16px;
  text-align: center;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid var(--border);
  animation: fadeIn 0.4s ease-out;
}

.stage-panel.tone-good { background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.28); }
.stage-panel.tone-wait { background: rgba(168, 85, 247, 0.07); border-color: rgba(168, 85, 247, 0.3); }
.stage-panel.tone-muted { background: rgba(148, 163, 184, 0.06); border-color: rgba(148, 163, 184, 0.22); }

.stage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(168, 85, 247, 0.14);
}
.tone-good .stage-icon { background: rgba(34, 197, 94, 0.16); }
.tone-muted .stage-icon { background: rgba(148, 163, 184, 0.14); }

.stage-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stage-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.stage-text a {
  color: var(--purple-light);
  font-weight: 700;
}
.stage-text a:hover { color: #fff; }

/* Countdown ring */
.countdown {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 22px auto 6px;
}
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown .track { fill: none; stroke: rgba(168, 85, 247, 0.12); stroke-width: 10; }
.countdown .bar {
  fill: none;
  stroke: url(#cdGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s linear;
}
.countdown-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-time {
  font-size: 38px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--purple-light);
  letter-spacing: 1px;
}
.countdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
  animation: pulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
.live-note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

.join-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.join-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(34, 197, 94, 0.45); }

.bot-chip {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(13, 5, 20, 0.6);
  border: 1px solid var(--border-hover);
  font-weight: 800;
  color: var(--purple-light);
  user-select: all;
}

.reset-link {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}
.reset-link:hover { color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn-row-center { justify-content: center; }
.items-section.show { display: block; }
