/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:    #FF6B35;
  --orange-dk: #e05520;
  --orange-lt: #ff8a5e;
  --bg:        #0b0d13;
  --bg-soft:   #11141c;
  --surface:   #161924;
  --surface2:  #1f2333;
  --surface3:  #262b3e;
  --border:    #2a2f44;
  --border-lt: #353b54;
  --text:      #eef0f6;
  --text-mid:  #b8bcd0;
  --text-muted:#7e8399;
  --green:     #22c55e;
  --green-soft:rgba(34,197,94,.15);
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --yellow-soft:rgba(245,158,11,.15);
  --orange-soft:rgba(255,107,53,.15);
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(0,0,0,.45);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-lt); }

a { color: var(--orange); text-decoration: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.brand { font-size: 20px; font-weight: 700; color: var(--orange); letter-spacing: -.5px; }
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost { background: var(--surface2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Form Elements ────────────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 11px 14px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 14px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--orange); }
.input::placeholder { color: var(--text-muted); }

/* ── Status Dot ───────────────────────────────────────────────────────────── */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green  { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.2); position: relative; }
.dot-green::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--green); opacity: 0; animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.dot-yellow { background: var(--yellow); }
.dot-red    { background: var(--red); }

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 10px; font-size: 13px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 9999; max-width: 340px; text-align: center;
}
#toast.show { opacity: 1; }
