*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151b3a 0, #050712 48%, #03040a 100%);
  color: #f7fafc;
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
  padding: 32px 12px 48px;
}

.page {
  width: 100%;
  max-width: 1180px;
}

/* HERO */

.hero {
  margin-bottom: 24px;
}

.hero-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.16), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.75);
}

.hero-logo-wrap {
  flex: 0 0 auto;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.hero-content {
  flex: 1 1 auto;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-text {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.hero-text-small {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.hero-text a {
  color: #fb7185;
  text-decoration: none;
  border-bottom: 1px dashed rgba(248, 113, 113, 0.75);
}

.hero-text a:hover {
  opacity: 0.9;
}

/* MAIN LAYOUT */

.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.section-subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* HOW-TO (SINGLE WIDE BOX) */

.whitelist-address-row {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
}

/* old .steps styles can stay — unused */

/* GRID FOR STATUS / MINT */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: flex-start;
}

.panel-column {
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.07), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.column-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #cbd5f5;
}

/* INPUTS & BUTTONS */

.input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.input::placeholder {
  color: #64748b;
}

.input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.6);
}

.select {
  appearance: none;
  padding-right: 26px;
  background-image: linear-gradient(45deg, #cbd5f5 50%, transparent 50%),
    linear-gradient(135deg, #cbd5f5 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #f9fafb;
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.55);
}

.btn.success {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.55);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

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

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* STATUS LINES UNDER PANELS */

.status-line {
  margin-top: 8px;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
  border-left: 3px solid transparent;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  min-height: 0;
}

.status-line.info {
  border-left-color: #3b82f6;
}

.status-line.success {
  border-left-color: #22c55e;
}

.status-line.error {
  border-left-color: #f87171;
}

/* FILTER BAR - MULTI-TRAIT */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  flex: 1 1 auto;
}

.filter-group {
  min-width: 180px;
  max-width: 240px;
}

.filter-actions {
  flex: 0 0 auto;
}

/* MINTED GALLERY */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.nft-card {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.06), transparent 60%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nft-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: radial-gradient(circle at center, #1f2937 0, #020617 60%);
}

.nft-body {
  padding: 10px 11px 11px;
}

.nft-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.nft-address {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
  word-break: break-all;
}

.nft-address a {
  color: #93c5fd;
  text-decoration: none;
}

.nft-address a:hover {
  text-decoration: underline;
}

/* TRAITS */

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trait-pill {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  max-width: 100%;
}

.trait-main {
  font-size: 0.75rem;
}

.trait-meta {
  font-size: 0.7rem;
  font-style: italic;
  color: #9ca3af;
  margin-top: 2px;
}

.trait-pill.ultra-rare {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
}

.trait-pill.rare {
  border-color: #22c55e;
}

/* RESPONSIVE */

@media (max-width: 720px) {
  body {
    padding: 18px 8px 32px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
  }

  .panel {
    padding: 14px 12px 16px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-groups {
    width: 100%;
  }

  .filter-group {
    max-width: 100%;
  }
}
