/* ─── Blockbit Ink Whitelist — Light Editorial Theme ─── */
/* Inherits variables from style.css (--bg, --ink, --violet, --sans, --serif, etc.) */

/* ── Override any dark leftovers from old whitelist.css ── */
:root {
  --wl-surface: var(--bg-card, #FFFFFF);
  --wl-border: var(--border);
  --wl-muted: var(--muted, #94A3B8);
  --wl-slate: var(--slate, #475569);
  --wl-success: #16A34A;
  --wl-error: #DC2626;
  --wl-yellow: #EAB308;
}

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

body {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Whitelist Wrap ─── */
.wl-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 95px 20px 40px;
}

/* ─── Whitelist Container ─── */
.wl-container {
  width: 100%;
  max-width: 540px;
  position: relative;
  z-index: 3;
}

/* ─── Header ─── */
.wl-header {
  text-align: center;
  margin-bottom: 20px;
}
.wl-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.15;
}
.wl-header p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ─── Progress Bar ─── */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 22px;
  position: relative;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.progress-step.done:not(:last-child)::after {
  background: var(--wl-success);
}
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt, #F0EDE8);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--sans);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.progress-step.active .progress-dot {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.progress-step.done .progress-dot {
  background: var(--wl-success);
  border-color: var(--wl-success);
  color: #fff;
}
.progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.progress-step.active .progress-label {
  color: var(--violet);
}
.progress-step.done .progress-label {
  color: var(--wl-success);
}

/* ─── Panels ─── */
.form-panel {
  display: none;
}
.form-panel.active {
  display: block;
  animation: wlFadeIn 0.3s ease;
}
@keyframes wlFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Form Card ─── */
.form-card {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.form-card h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-card .desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ─── Fields ─── */
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg, #FAFAF8);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder {
  color: var(--muted);
}
.field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.field-error {
  font-size: 0.78rem;
  color: var(--wl-error);
  margin-top: 6px;
  min-height: 18px;
}

/* ─── Form Navigation ─── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.form-nav-actions {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

/* ─── Social Tasks ─── */
.social-tasks {
  margin-bottom: 24px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--violet-glow);
}
.action-btn:active {
  transform: translateY(0);
}
.action-btn .action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-btn .action-label {
  flex: 1;
}
.action-btn .action-status {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.7;
}
.action-btn.completed {
  background: var(--wl-success);
  color: #fff;
  cursor: default;
}
.action-btn.completed:hover {
  transform: none;
  box-shadow: none;
}

/* ─── Continue button (disabled state) ─── */
.btn-continue:not(:disabled) {
  background: var(--violet);
  color: #fff;
  cursor: pointer;
}
.btn-continue:not(:disabled):hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}
.btn-continue:disabled {
  background: var(--bg-alt, #F0EDE8);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─── Confirm Summary ─── */
.confirm-summary {
  background: var(--bg, #FAFAF8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.confirm-row:last-child {
  border-bottom: none;
}
.confirm-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.confirm-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.confirm-serial .confirm-value {
  color: var(--violet);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1rem;
}

/* ─── Mint Pass ─── */
.pass-wrapper {
  text-align: center;
  margin-bottom: 12px;
}
.pass-wrapper canvas {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pass-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* ─── Submit Status ─── */
.submit-status {
  font-size: 0.82rem;
  text-align: center;
  min-height: 20px;
  margin-bottom: 8px;
}
.submit-status.error {
  color: var(--wl-error);
}

/* ─── Success Panel ─── */
.success-box {
  text-align: center;
  padding: 48px 32px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wl-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.success-box h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.success-box p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 28px;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Nav Back Button ─── */
.nav-back-btn {
  font-size: 0.65rem !important;
  padding: 0.5rem 1.2rem !important;
}

/* ─── Disabled btn-primary override ─── */
.btn-primary:disabled {
  background: var(--bg-alt, #F0EDE8);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .wl-wrap {
    padding: 100px 16px 40px;
  }
  .form-card {
    padding: 24px 20px;
  }
  .progress-label {
    font-size: 0.6rem;
  }
  .progress-dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .form-nav {
    flex-direction: column;
    gap: 10px;
  }
  .form-nav-actions {
    flex-direction: column;
    width: 100%;
  }
  .form-nav-actions .btn-primary,
  .form-nav-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .success-actions {
    flex-direction: column;
    align-items: center;
  }
  .wl-timer {
    margin: 8px auto 0;
  }
  .timer-content {
    padding: 5px 14px;
    gap: 8px;
  }
  .timer-hours,
  .timer-mins,
  .timer-secs {
    font-size: 1.1rem;
  }
  .wl-header {
    margin-bottom: 16px;
  }
  .wl-header h1 {
    font-size: 1.8rem;
  }
  .progress-bar {
    margin-bottom: 16px;
  }
}

/* ─── Countdown Timer (Compact Pill Badge) ─── */
.wl-timer {
  text-align: center;
  margin: 10px auto 0;
  position: relative;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wl-timer.loaded {
  opacity: 1;
}
.timer-content {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 30px;
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.timer-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}
.timer-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.timer-hours,
.timer-mins,
.timer-secs {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--violet);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-unit-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

/* ─── Coming Soon ─── */
.wl-coming-soon {
  display: none;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  z-index: 3;
}
.wl-coming-soon.active {
  display: block;
}
.coming-soon-content h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.coming-soon-content p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
}
.coming-soon-icon {
  color: var(--violet);
  margin-bottom: 20px;
}
.coming-soon-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── Share Section ─── */
.share-section {
  text-align: center;
  margin: 20px 0 8px;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-share:hover {
  background: #333;
  transform: translateY(-1px);
}
.btn-share:active {
  transform: translateY(0);
}
.btn-share svg {
  flex-shrink: 0;
}

/* ─── @ Hint ─── */
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* ─── Toast Notification ─── */
.wl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 10, 18, 0.95);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.4);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-width: 90vw;
}
.wl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
