:root {
  --ink: #09111f;
  --night: #081221;
  --blue: #22d3ee;
  --gold: #f4c84d;
  --pink: #ff5fbf;
  --mint: #83f7d5;
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.72);
  --panel: rgba(7, 18, 36, 0.78);
  --panel-border: rgba(130, 246, 255, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(255, 95, 191, 0.18), transparent 28%),
    linear-gradient(180deg, #07101d 0%, #081221 48%, #03070f 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mint-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 42vh;
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 24px;
  align-items: end;
}

.hero-panel::before,
.panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 62%);
  pointer-events: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.subheadline,
.panel-note,
.wallet-state,
.mint-description,
.mint-feedback,
#mint-empty {
  color: var(--muted);
}

.subheadline {
  max-width: 60ch;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold), #ffed9c);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 32px rgba(244, 200, 77, 0.2);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(244, 200, 77, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 95, 191, 0.16), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 18, 33, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.dashboard {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.panel {
  border-radius: 28px;
  padding: 28px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.contracts-grid {
  display: grid;
  gap: 16px;
}

.contract-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contract-card:hover,
.contract-card.active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.45);
}

.contract-thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
}

.contract-meta h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.contract-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.network-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(131, 247, 213, 0.1);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
}

.mint-panel {
  min-height: 620px;
}

.mint-art-wrap {
  margin-bottom: 18px;
}

.mint-art {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 22px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-value {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.coa-panel {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(131, 247, 213, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(131, 247, 213, 0.18);
}

.coa-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.coa-badge,
.coa-provider {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.coa-badge {
  background: rgba(244, 200, 77, 0.16);
  color: var(--gold);
}

.coa-provider {
  background: rgba(34, 211, 238, 0.12);
  color: var(--blue);
}

.coa-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.coa-copy {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.coa-copy-secondary {
  margin-top: 8px;
  color: var(--muted);
}

.quantity-input {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.mint-feedback {
  margin-top: 14px;
  min-height: 24px;
}

@media (max-width: 980px) {
  .hero-panel,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .mint-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .hero-panel,
  .panel {
    padding: 22px;
    border-radius: 22px;
  }

  .contract-card {
    grid-template-columns: 1fr;
  }

  .contract-thumb {
    width: 100%;
    height: 180px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

.secondary-button {
  appearance: none;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.admin-panel {
  margin-top: 24px;
}

.admin-form {
  display: block;
}

.admin-stats-row {
  margin-bottom: 18px;
}

.admin-notes {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-chip {
  align-self: flex-start;
}

.admin-fields {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
}

.admin-field-row {
  display: grid;
  gap: 8px;
}
