:root {
  --bg: #0f1115;
  --card: #171a21;
  --line: #262b36;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --brand: #10a37f;
  --brand-2: #0d8a6b;
  --danger: #e5484d;
  --warn: #f5a524;
  --ok: #30a46c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.7; }
a { color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.wide { max-width: 1180px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
header.top h1 { font-size: 22px; margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--line); color: var(--muted); }
.badge.ok { background: rgba(48,164,108,.15); color: var(--ok); }
.badge.warn { background: rgba(245,165,36,.15); color: var(--warn); }
.badge.err { background: rgba(229,72,77,.15); color: var(--danger); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 6px; }
input, textarea, select {
  width: 100%; background: #0c0e12; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 0; }
textarea { min-height: 140px; direction: ltr; text-align: left; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.ltr { direction: ltr; text-align: left; font-family: ui-monospace, Consolas, monospace; }
button {
  background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px;
  font: inherit; font-weight: 700; cursor: pointer;
}
button:hover { background: var(--brand-2); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.danger { background: var(--danger); }
button.small { padding: 6px 12px; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.grow { flex: 1 1 200px !important; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; border: 1px solid; }
.alert.err { border-color: rgba(229,72,77,.4); background: rgba(229,72,77,.08); }
.alert.ok { border-color: rgba(48,164,108,.4); background: rgba(48,164,108,.08); }
.alert.warn { border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.08); }
.hidden { display: none !important; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps div { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps div.on { background: var(--brand); }
ol.howto { padding-inline-start: 20px; margin: 8px 0; font-size: 14px; color: var(--muted); }
ol.howto code { direction: ltr; unicode-bidi: embed; }
.plan-pill { font-size: 20px; font-weight: 800; color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.timeline li { padding: 6px 0; border-top: 1px dashed var(--line); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: #0c0e12; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 22px; }
pre.json { direction: ltr; text-align: left; background: #0c0e12; padding: 12px; border-radius: 10px; overflow: auto; max-height: 420px; font-size: 12px; }
.codes { direction: ltr; text-align: left; white-space: pre; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 32px; }
