/* ============================================
   MINT TOKEN PAGE
   ============================================ */

.mt-token-main {
  max-width: 1280px;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--accent); }

.token-404 {
  text-align: center;
  padding: 120px 24px;
}
.token-404 h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.token-404 p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.mt-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ----- LEFT · token info ----- */
.mt-info {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 32px;
}

.mt-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mt-ticker {
  font-family: var(--mono);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}

.mt-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  border-radius: 2px;
}

.mt-progress {
  margin-bottom: 32px;
}

.mt-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mt-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}
.mt-progress-bar.done { background: var(--green); }

.mt-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.mt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mt-stats > div {
  background: var(--bg);
  padding: 16px 18px;
}

.mt-stats span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mt-stats strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

/* ----- RIGHT · mint widget ----- */
.mt-widget {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.mt-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.mt-widget-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.mt-widget-net {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.mt-row {
  margin-bottom: 24px;
}

.mt-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mt-qty {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mt-qty-btn {
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  border: none;
  border-right: 1px solid var(--line-2);
  cursor: pointer;
  transition: background 0.12s ease;
}
.mt-qty-btn:last-child {
  border-right: none;
  border-left: 1px solid var(--line-2);
}
.mt-qty-btn:hover { background: var(--accent); color: #000; }

.mt-qty input {
  background: transparent;
  border: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  outline: none;
  padding: 10px 0;
  font-weight: 500;
}
.mt-qty input::-webkit-outer-spin-button,
.mt-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mt-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mt-preset {
  padding: 8px 4px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.mt-preset:hover { color: var(--text); border-color: var(--text-dim); }
.mt-preset.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.mt-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.mt-summary-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 0;
}
.mt-summary-row span { color: var(--text-dim); }
.mt-summary-row strong { color: var(--text); font-weight: 500; }

.mt-summary-total {
  border-top: 1px solid var(--line-2);
  margin-top: 6px;
  padding-top: 12px;
}
.mt-summary-total span { color: var(--text); }
.mt-summary-total strong { color: var(--accent); font-size: 15px; }

/* Mint readiness pill — sits between gas picker and Mint button.
   Tells the user whether their wallet has a spendable UTXO ready
   for the next mint, or whether they need to wait for a previous
   commit/reveal tx to confirm. Polls every 5s via mint-token.js. */
.mt-readiness {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.015);
}
.mt-readiness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.mt-readiness[data-state="ready"] .mt-readiness-dot {
  background: var(--green, #4caf50);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.18);
}
.mt-readiness[data-state="waiting"] .mt-readiness-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,183,40,0.18);
  animation: mt-pulse 1.2s ease-in-out infinite;
}
.mt-readiness[data-state="empty"] .mt-readiness-dot {
  background: var(--red, #ef5350);
}
.mt-readiness[data-state="ready"] .mt-readiness-label { color: var(--green, #4caf50); }
.mt-readiness[data-state="waiting"] .mt-readiness-label { color: var(--accent); }
.mt-readiness[data-state="empty"] .mt-readiness-label { color: var(--red, #ef5350); }
@keyframes mt-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.mt-mint-btn {
  font-size: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.mt-mint-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--line-2);
  color: var(--text-muted);
}
.mt-mint-btn:disabled:hover {
  transform: none;
  background: var(--line-2);
}

.mt-inscription {
  border: 1px solid var(--line);
  border-radius: 2px;
}

.mt-inscription-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.mt-inscription .code {
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.mt-disclaimer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 18px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 980px) {
  .mt-grid { grid-template-columns: 1fr; gap: 24px; }
  .mt-widget { position: static; }
  .mt-stats { grid-template-columns: 1fr; }
}

/* Phone: quantity presets reflow from 4-col to 2-col, the page padding
   tightens, and 10/11px labels get bumped to the 12px readability floor. */
@media (max-width: 480px) {
  .mt-presets { grid-template-columns: repeat(2, 1fr); }
  .mt-preset { font-size: 12px; padding: 10px 6px; }
  .mt-stats span,
  .mt-stats .label { font-size: 12px; }
}
