@font-face {
  font-family: 'IRANSansX';
  src: url('/fonts/IRANSansXV.woff') format('woff-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #0075bf;
  --primary-dark: #00578c;
  --primary-soft: #e3f1fa;
  --secondary: #b71e3f;
  --secondary-soft: #f9e6ea;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #16232e;
  --text-2: #51637a;
  --muted: #8ba0b5;
  --line: #dfe7ee;
  --line-2: #c8d5e1;
  --ok: #178a4c;
  --ok-soft: #e2f5ea;
  --warn: #b07708;
  --warn-soft: #fbf1dc;
  --err: #c23b3b;
  --err-soft: #fbe7e7;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --gap: 20px;
  --pad: 16px;
  --shadow-1: 0 1px 2px rgba(22, 35, 46, .06), 0 2px 8px rgba(22, 35, 46, .06);
  --shadow-2: 0 8px 28px rgba(22, 35, 46, .14);
  --ring: 0 0 0 4px rgba(0, 117, 191, .16);
  --ring-err: 0 0 0 4px rgba(194, 59, 59, .14);
  --t: .25s ease;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ico: none;
  --fnum: "ss03";
  --dots: 4;
  --wght: 400;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'IRANSansX', 'Segoe UI', Tahoma, sans-serif;
  font-variation-settings: "wght" var(--wght), "dots" var(--dots);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -moz-font-feature-settings: var(--fnum);
  -webkit-font-feature-settings: var(--fnum);
  font-feature-settings: var(--fnum);
}

input, textarea, select, button {
  font-family: inherit;
  -moz-font-feature-settings: var(--fnum);
  -webkit-font-feature-settings: var(--fnum);
  font-feature-settings: var(--fnum);
}

input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 0; }

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus,
select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: var(--line-2);
  border-radius: var(--radius);
  transition: background-color 99999s ease-out;
}

h1, h2, h3, h4 { --wght: 700; margin: 0 0 8px; line-height: 1.6; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; flex: 1 0 auto; }
.num { font-feature-settings: var(--fnum); }
.cur {
  font-style: normal; --wght: 600;
  font-size: .72em; position: relative; top: -.3em; margin-right: 2px;
}
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

.ico, .mico { height: 20px; width: 20px; object-fit: contain; filter: var(--ico); transition: filter var(--t); }
.btn.primary .mico, .btn.sec .mico, .btn.ok .mico, .btn.err .mico, .btn.warn .mico { --ico: brightness(0) invert(1); }
lottie-player:not([data-ok]) { visibility: hidden !important; }

.kbd {
  direction: ltr; text-align: left; display: block;
  font-family: Consolas, 'Courier New', monospace; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px; margin: 6px 0;
  overflow-x: auto; white-space: nowrap; color: var(--text);
}

.empty {
  padding: 40px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty img { width: 84px; opacity: .6; margin-bottom: 8px; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; --wght: 600; border: 1px solid transparent;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.badge.err { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.badge.mut { background: var(--surface-2); color: var(--text-2); border-color: var(--line-2); }
.badge.pri { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.badge.sec { background: var(--secondary-soft); color: var(--secondary); border-color: var(--secondary); }
