:root {
  color-scheme: dark;
  --bg: #151515;
  --surface: #1e1e1e;
  --line: #303030;
  --ink: #f5eee5;
  --muted: #a19c95;
  --accent: #e95c43;
  --green: #71c99a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  letter-spacing: 1.5px;
}
.status {
  font-size: 11px;
  color: var(--muted);
}
.status.online { color: var(--green); }
.status.offline { color: var(--accent); }
main {
  max-width: 760px;
  margin: auto;
  padding: 24px 18px 110px;
}
h1 {
  font-size: 28px;
  margin: 8px 0 14px;
  letter-spacing: -.8px;
}
h2 { font-size: 16px; margin: 8px 0 16px; }
p { line-height: 1.9; }
.eyebrow {
  color: var(--accent);
  font: 700 10px Arial, sans-serif;
  letter-spacing: 2px;
  direction: ltr;
  text-align: right;
}
.muted { color: var(--muted); font-size: 12px; }
.hero, .panel, .metric, .proxy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
}
.hero { margin-top: 24px; }
.hero-number {
  font-size: 68px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.metric { margin: 0; padding: 16px 12px; }
.metric-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.value {
  font-size: 25px;
  font-weight: 700;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.accent { color: var(--accent); }
.track {
  height: 6px;
  border-radius: 10px;
  background: #383838;
  overflow: hidden;
  margin: 18px 0;
}
#target-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .6s ease;
}
.chart { margin: 22px 0 10px; min-height: 100px; }
.chart svg { display: block; width: 100%; }
.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #191919;
  border-top: 1px solid var(--line);
  display: flex;
  padding: 10px 4px max(16px, env(safe-area-inset-bottom));
}
.navigation button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
}
.symbol {
  display: block;
  font-size: 25px;
  margin-bottom: 6px;
}
.navigation .selected { color: var(--accent); }
input {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  width: 100%;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.filters button, .primary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 10px;
}
.filters .selected, .primary {
  background: var(--accent);
  color: #151515;
  font-weight: 700;
}
.proxy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.proxy-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.proxy-name {
  direction: ltr;
  overflow-wrap: anywhere;
}
.active { color: var(--green); }
#error {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 16px;
  border-radius: 12px;
  line-height: 2;
}
footer {
  text-align: center;
  margin: 28px 0;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* REAL PROXY TYPOGRAPHY SYSTEM */

@font-face {
    font-family: Peyda;
    src: url('/fonts/PeydaWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Peyda;
    src: url('/fonts/PeydaWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Peyda;
    src: url('/fonts/PeydaWeb-Bold.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

@font-face {
    font-family: YekanMetrics;
    src: url('/fonts/YekanBakhFaNum-BoldExpanded.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
    unicode-range: U+0030-0039, U+0660-066C, U+06F0-06F9, U+0025;
}

body {
    font-family: Peyda, sans-serif;
    font-weight: 500;
}

h1, h2 {
    font-weight: 700;
    letter-spacing: 0;
}

button, input, .metric-label, .status {
    font-family: Peyda, sans-serif;
}

.hero-number, .value {
    font-family: YekanMetrics, Peyda, sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.navigation button {
    font-weight: 600;
}

.brand, .eyebrow, footer {
    font-family: Arial, sans-serif;
}
