:root {
  --mint-card-gap: 1rem;
}

.mint-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.mint-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mint-card,
.summary-card,
.info-card,
.wallet-card,
.recent-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  padding: 1.5rem;
}

.mint-card {
  background: linear-gradient(135deg, hsl(var(--card) / 0.8), hsl(var(--background)));
  width: min(600px, 100%);
  margin: 0 auto;
}

.mint-card header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.mode-switch {
  display: inline-flex;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0.25rem;
  background: hsl(var(--background));
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.mode-button {
  flex: 1;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mode-button.active {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: hsl(var(--primary-foreground));
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mint-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mint-input input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--input));
  color: inherit;
  font-size: 1rem;
}

.mint-input select {
  min-width: 90px;
  border-radius: 0.8rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: inherit;
  padding: 0.75rem 0.5rem;
}

.output-box {
  min-height: 3.25rem;
  border-radius: 0.8rem;
  border: 1px dashed hsl(var(--border));
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: hsl(var(--foreground));
}

.mint-info-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.mint-primary {
  width: 100%;
  border: none;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.mint-note {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

.mint-status {
  font-size: 0.82rem;
  min-height: 1.25rem;
  margin-top: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.mint-status a {
  color: hsl(var(--acc));
  text-decoration: underline;
}

.mint-status--error {
  color: #f87171;
}

.mint-status--success {
  color: #4ade80;
}

.summary-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.summary-stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-stats span {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.summary-stats strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
}

.summary-cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wallets-section {
  margin-top: 3rem;
}

.wallet-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wallet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: hsl(var(--card) / 0.7);
}

.wallet-card button {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: hsl(var(--background));
  color: inherit;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease;
}

.wallet-card button:hover,
.wallet-card button:focus {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.wallet-card button.active {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.wallet-card small {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

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

.recent-card th,
.recent-card td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.recent-card th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

.recent-card tbody tr:last-child td {
  border-bottom: none;
}
