/* ===== Modern dark UI ===== */
:root {
  --bg: #0b0f14;
  --card: #121922;
  --card-2: #0f1620;
  --text: #e5ecf5;
  --muted: #9aa6b2;
  --line: #1f2a37;
  --brand: #5b8cff; /* primary */
  --accent: #7dd87d; /* success */
  --warn: #ffb74d;
  --focus: 0 0 0 4px rgba(91, 140, 255, 0.15);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

.uic-wrap {
  /*background: var(--bg);*/
  padding: 32px 16px;
}
.uic-card {
  max-width: 840px;
  margin: 0 auto;
  padding: 50px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}
.uic-title {
  margin: 6px 6px 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* header stats (chips) */
.uic-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 6px 10px;
}
.uic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d141d;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
}
.uic-chip svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* rows */
.uic-list {
  margin: 6px 0 10px;
  display: grid;
  gap: 10px;
}
.uic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
}
.uic-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0d141d;
  border: 1px solid var(--line);
}
.uic-dot.ok {
  background: rgba(125, 216, 125, 0.15);
  border-color: rgba(125, 216, 125, 0.35);
}
.uic-dot.ok svg {
  stroke: var(--accent);
}
.uic-dot svg {
  width: 14px;
  height: 14px;
  stroke: #637084;
  stroke-width: 2;
  fill: none;
}

.uic-row label {
  min-width: 120px;
  color: var(--muted);
  font-size: 14px;
}
.uic-row input {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  background: #0b121a;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.uic-row input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.uic-actions {
  display: flex;
  gap: 10px;
  margin: 6px 6px 6px;
}
.uic-actions button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  letter-spacing: 0.2px;
}
#uic-calc {
  background: linear-gradient(180deg, #6b95ff, #4f78f5);
}
#uic-swap {
  background: #0d141d;
  border: 1px solid var(--line);
  color: var(--text);
}

#uic-output {
  margin: 10px 6px 0;
}
#uic-output p {
  margin: 8px 0;
  font-size: 16px;
}
#uic-result {
  font-weight: 800;
}
#uic-rate {
  font-weight: 700;
}
.uic-updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* compact on mobile */
@media (max-width: 640px) {
  .uic-row {
    flex-direction: column;
    align-items: stretch;
  }
  .uic-row label {
    min-width: unset;
  }
}
