:root {
  --bg: #0f1419;
  --card: #1a222c;
  --text: #e8eef4;
  --muted: #9aabba;
  --accent: #2f8f6b;
  --danger: #c45c5c;
  --border: #2c3845;
  --font: "Vazirmatn", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 100% 0%, #1c3a30 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.steps {
  padding-inline-start: 1.25rem;
  line-height: 1.7;
}

.card,
main .tab {
  background: color-mix(in srgb, var(--card) 92%, black);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem auto;
  max-width: 960px;
}

#login-view {
  max-width: 420px;
  margin-top: 12vh;
}

h1,
h2 {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--muted);
}

label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
button,
pre {
  width: 100%;
  font: inherit;
}

input,
select {
  background: #0d1218;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

button {
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  width: auto;
}

button.small {
  width: auto;
  margin: 0.25rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.error {
  color: var(--danger);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0 0.5rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  max-width: 960px;
  margin: 1rem auto;
  flex-wrap: wrap;
}

.tabs button {
  width: auto;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
}

.tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.list-item {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.list-item:first-child {
  border-top: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.row input {
  width: auto;
}

pre {
  white-space: pre-wrap;
  background: #0d1218;
  border-radius: 10px;
  padding: 0.75rem;
  direction: ltr;
  text-align: left;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #243140;
  font-size: 0.8rem;
}
