/* ============================================================
   BURNVAULT — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080b14;
  --bg2:         #0d1220;
  --bg3:         #111827;
  --glass:       rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --text:        #f0f4ff;
  --muted:       #6b7a99;
  --accent:      #4f8eff;
  --accent2:     #a259ff;
  --success:     #22d3a3;
  --error:       #ff4d6d;
  --warn:        #f0b90b;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.22s ease;
  --font-head:   'Syne', sans-serif;
  --font-mono:   'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background Mesh ────────────────────────────────────────── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(79,142,255,0.12) 0%, transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.bg-mesh::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(162,89,255,0.10) 0%, transparent 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px,60px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,-80px) scale(1.2); } }

/* ── Layout ─────────────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  text-align: center;
  padding: 48px 0 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 32px rgba(79,142,255,0.4);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 32px rgba(79,142,255,0.4); }
  50%      { box-shadow: 0 0 48px rgba(162,89,255,0.55); }
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
header h1 {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stat-pill {
  flex: 1; min-width: 140px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.stat-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.stat-pill span { color: var(--muted); }
.stat-pill strong { color: var(--text); margin-left: auto; }

/* ── Card / Glass ────────────────────────────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.13); }
.card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.card-title .step-badge {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ── Network Grid ────────────────────────────────────────────── */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.network-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.network-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.network-btn:hover { transform: translateY(-2px); }
.network-btn:hover::before { opacity: 1; }
.network-btn.active {
  border-width: 1.5px;
  transform: translateY(-2px);
}
.network-btn.active::before { opacity: 1; }
.net-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  transition: transform var(--transition);
}
.network-btn:hover .net-icon,
.network-btn.active .net-icon { transform: scale(1.1); }
.net-symbol {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

/* ── Info Panel ──────────────────────────────────────────────── */
.info-panel {
  display: none;
  animation: slide-in 0.3s ease;
}
.info-panel.visible { display: block; }
@keyframes slide-in {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

.treasury-display {
  background: rgba(79,142,255,0.06);
  border: 1px solid rgba(79,142,255,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.treasury-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.treasury-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}

.copy-row {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  border-radius: 50px;
  border: none; cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(79,142,255,0.45);
}
.btn-outline {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

/* ── QR Code ─────────────────────────────────────────────────── */
.qr-wrapper {
  display: none;
  justify-content: center;
  padding: 20px;
  animation: slide-in 0.25s ease;
}
.qr-wrapper.visible { display: flex; }
.qr-inner {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
}

/* ── Network Info Badges ─────────────────────────────────────── */
.net-info-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
}
.badge-label { color: var(--muted); }
.badge-value { color: var(--text); font-weight: 700; }

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.12);
}
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255,77,109,0.12); }
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  font-family: var(--font-mono);
}

/* ── Network Select in Form ──────────────────────────────────── */
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-select:focus { border-color: var(--accent); }
.form-select option { background: var(--bg3); color: var(--text); }

/* ── Verification Status ─────────────────────────────────────── */
#verify-status { display: none; }
#verify-status.visible { display: block; animation: slide-in 0.3s ease; }

.status-card {
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
  border: 1px solid;
}
.status-card.verifying {
  background: rgba(79,142,255,0.06);
  border-color: rgba(79,142,255,0.2);
}
.status-card.success {
  background: rgba(34,211,163,0.06);
  border-color: rgba(34,211,163,0.25);
}
.status-card.failed {
  background: rgba(255,77,109,0.06);
  border-color: rgba(255,77,109,0.25);
}

.status-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.status-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.verifying .status-icon { background: rgba(79,142,255,0.15); color: var(--accent); }
.success  .status-icon { background: rgba(34,211,163,0.15); color: var(--success); }
.failed   .status-icon { background: rgba(255,77,109,0.15); color: var(--error); }

.status-title {
  font-size: 17px; font-weight: 700;
}
.verifying .status-title { color: var(--accent); }
.success  .status-title  { color: var(--success); }
.failed   .status-title  { color: var(--error); }

.status-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(79,142,255,0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reward summary */
.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.reward-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px 14px;
}
.reward-item-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-family: var(--font-mono); }
.reward-item-value { font-size: 15px; font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.reward-item-value.highlight { color: var(--success); }

.explorer-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: opacity var(--transition);
}
.explorer-link:hover { opacity: 0.75; }

/* ── Referral Banner ─────────────────────────────────────────── */
.referral-banner {
  display: none;
  background: linear-gradient(135deg, rgba(79,142,255,0.1), rgba(162,89,255,0.1));
  border: 1px solid rgba(162,89,255,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  animation: slide-in 0.3s ease;
}
.referral-banner.visible { display: flex; align-items: center; gap: 14px; }
.referral-emoji { font-size: 24px; }
.referral-text strong { display: block; font-size: 14px; color: var(--text); }
.referral-text small { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ── Cooldown Bar ────────────────────────────────────────────── */
#cooldown-bar { display:none; margin-top:12px; }
#cooldown-bar.visible { display:block; }
.cooldown-track {
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.cooldown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 1s linear;
}
.cooldown-label { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

/* ── Toast Notification ──────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 28px; right: 20px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 320px;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px;
  backdrop-filter: blur(16px);
  animation: toast-in 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,211,163,0.35); }
.toast.error   { border-color: rgba(255,77,109,0.35); }
.toast.info    { border-color: rgba(79,142,255,0.35); }
.toast-icon { font-size: 16px; flex-shrink:0; margin-top:1px; }
.toast-msg  { color: var(--text); line-height: 1.4; }
@keyframes toast-in { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-out { to { opacity:0; transform:translateX(20px); } }

/* ── How It Works ────────────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.step-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-card p  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 2;
}
footer a { color: var(--muted); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 20px; }
  .network-grid { grid-template-columns: repeat(3, 1fr); }
  .reward-grid  { grid-template-columns: 1fr; }
  .copy-row     { flex-direction: column; }
  .btn-outline, .btn-primary { width: 100%; justify-content: center; }
  .stats-bar    { flex-direction: column; }
}

/* ── Verify Steps List (inside verifying card) ───────────────── */
.verify-steps-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vstep {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.vstep.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(79,142,255,0.06);
}

/* ── Proof Badges (success card) ────────────────────────────── */
.proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.proof-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid;
}
.proof-badge.ok {
  color: var(--success);
  border-color: rgba(34,211,163,0.3);
  background: rgba(34,211,163,0.06);
}
.proof-badge.warn {
  color: var(--warn);
  border-color: rgba(240,185,11,0.3);
  background: rgba(240,185,11,0.06);
}

/* ── Fail Reason ─────────────────────────────────────────────── */
.fail-reason {
  font-size: 13px;
  color: var(--text);
  background: rgba(255,77,109,0.07);
  border: 1px solid rgba(255,77,109,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── Highlight reward box ────────────────────────────────────── */
.reward-item.highlight-box {
  grid-column: 1 / -1;
  background: rgba(34,211,163,0.07);
  border: 1px solid rgba(34,211,163,0.2);
}

/* ── DexScreener link ────────────────────────────────────────── */
.dex-link {
  color: var(--accent2);
  font-size: 11px;
  font-family: var(--font-mono);
  text-decoration: none;
}
.dex-link:hover { opacity: 0.75; }

/* ── Payout Explainer ────────────────────────────────────────── */
.payout-explainer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  background: rgba(79,142,255,0.05);
  border: 1px solid rgba(79,142,255,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.pe-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.pe-text strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.pe-text p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Verify Callout ──────────────────────────────────────────── */
.verify-callout {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.vc-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.vc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vc-list li {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.vc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Form intro ──────────────────────────────────────────────── */
.form-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Info warning ────────────────────────────────────────────── */
.info-warning {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ── Referral Section ────────────────────────────────────────── */
.referral-section {
  display: none;
}
.referral-section.visible {
  display: block;
}

.referral-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.referral-link-row .form-input {
  flex: 1;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  cursor: text;
}
.referral-link-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.referral-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ref-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 120px;
}
.ref-stat-pill span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ref-stat-pill strong {
  font-size: 15px;
  color: var(--accent2);
}

/* Referral banner visible state */
.referral-banner.visible {
  display: flex;
}
