/* dash-name */
.dn-wrap { max-width: 620px; }
.tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

.dn-controls { margin-bottom: 14px; }
.dn-netsel {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 0.82rem; font-family: var(--mono); padding: 7px 10px; cursor: pointer;
}
.dn-netsel:focus { outline: none; border-color: var(--blue); }

.dn-name { display: flex; align-items: center; }
.dn-name input {
  /* an input will not shrink past its intrinsic size on its own; without this
     the name field + suffix push the page wider than a phone screen */
  flex: 1; min-width: 0; padding: 15px 16px; font-size: 1.3rem;
  border: 1px solid var(--border); border-right: none; border-radius: 10px 0 0 10px;
  background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: inherit;
}
.dn-name input:focus { outline: none; border-color: var(--blue); }
.dn-name .suffix {
  padding: 15px 16px; font-size: 1.3rem; border: 1px solid var(--border); border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.5); color: var(--muted); font-family: var(--mono);
}

/* SDK snippet dropdown (same idea as the explorer) */
.dn-snippet { margin-top: 14px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.dn-snippet > summary { cursor: pointer; padding: 10px 13px; font-size: 0.83rem; color: var(--muted); background: rgba(0, 0, 0, 0.15); }
.dn-snippet[open] > summary { border-bottom: 1px solid var(--border); color: var(--text); }
.dn-snippet-body { padding: 13px; }
.dn-snippet-body pre {
  background: rgba(0, 0, 0, 0.38); border: 1px solid var(--border); border-radius: 7px;
  color: #d6e2f0; padding: 12px; font-size: 0.78rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.dn-snippet-body .dn-copy { margin-top: 10px; }

.dn-status { margin-top: 12px; font-size: 0.95rem; min-height: 1.3em; }
.dn-status.ok { color: var(--ok); }
.dn-status.bad { color: var(--danger); }
.dn-status.warn { color: var(--warn); }
.dn-status.muted { color: var(--muted); }
.dn-link { margin-left: 6px; font-size: 0.85rem; }
.dn-sub { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }
.dn-price { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

/* contested panel */
.dn-contest { margin-top: 14px; padding: 13px; border: 1px solid rgba(157, 50, 228, 0.4); background: rgba(157, 50, 228, 0.08); border-radius: 10px; }
.dn-contest-head { color: #c88bf5; font-weight: 600; font-size: 0.88rem; }
.dn-contender { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.dn-contender:last-child { border-bottom: none; }
.dn-cid { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dn-votes { color: var(--muted); white-space: nowrap; }
.dn-badge { background: rgba(40, 167, 69, 0.2); color: #7ee2a0; border: 1px solid rgba(40, 167, 69, 0.5); border-radius: 999px; padding: 2px 9px; font-size: 0.68rem; text-transform: uppercase; }
.dn-badge.lock { background: rgba(220, 53, 69, 0.18); color: #f19aa4; border-color: rgba(220, 53, 69, 0.5); }
.dn-contest.locked { border-color: rgba(220, 53, 69, 0.4); background: rgba(220, 53, 69, 0.07); }
.dn-contest.locked .dn-contest-head { color: #f19aa4; }

/* claim */
.dn-claim { margin-top: 22px; }
.dn-claim h2 { margin-bottom: 14px; }
.dn-claim .field { margin: 14px 0; }
.dn-claim label { display: block; color: var(--blue); font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; }
.dn-claim input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: var(--mono); font-size: 0.85rem;
}
.dn-claim input:focus { outline: none; border-color: var(--blue); }
.dn-warn { color: #ffe08a; }
#claimOut { margin-top: 14px; }
#claimOut .dn-link { display: inline-block; margin-top: 8px; margin-left: 0; }

/* The shared theme forces controls to 16px below 760px so iOS doesn't zoom in on
   focus; the suffix has to follow or the two halves of the field don't line up. */
@media (max-width: 760px) {
  .dn-name input, .dn-name .suffix { font-size: 1rem; }
}
@media (max-width: 560px) {
  .dn-name input, .dn-name .suffix { padding: 13px 12px; }
}

/* success */
.dn-success { margin-top: 16px; padding: 18px; border: 1px solid rgba(40, 167, 69, 0.5); background: rgba(40, 167, 69, 0.1); border-radius: 12px; }
.dn-success-title { color: #7ee2a0; font-size: 1.3rem; font-weight: 700; }
.dn-success .dn-sub { margin: 8px 0 14px; }
.dn-success-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dn-success-actions .dn-link { margin-left: 0; }
