/* JARVIS — shared look for every page (start, pair, app). */
:root {
  --bg: #03070f;
  --bg2: #07101d;
  --panel: rgba(12, 24, 40, 0.72);
  --panel-solid: #0b1726;
  --line: rgba(0, 229, 255, 0.14);
  --line-strong: rgba(0, 229, 255, 0.35);
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.12);
  --text: #e6f4ff;
  --muted: #7f97ad;
  --dim: #4b6177;
  --green: #22d68a;
  --amber: #ffb547;
  --red: #ff5c7a;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 70% at 50% -10%, #0d2440 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Heebo", "Noto Sans Hebrew", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cyan); }
.hidden { display: none !important; }

.brand { font-weight: 800; letter-spacing: .32em; font-size: 15px; color: var(--text); }
.brand b { color: var(--cyan); font-weight: 800; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 650; font-size: 16px; letter-spacing: .01em;
  transition: transform .12s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
a.btn { text-decoration: none; }
.btn-primary { background: var(--cyan); color: #00131a; box-shadow: 0 8px 28px rgba(0, 229, 255, .28); }
.btn-ghost { background: var(--cyan-soft); color: var(--cyan); border: 1px solid var(--line-strong); }
.btn-danger { background: rgba(255, 92, 122, .12); color: var(--red); border: 1px solid rgba(255, 92, 122, .35); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

.field {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(0, 229, 255, .08); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--red); min-height: 20px; font-size: 14px; }

/* the arc-reactor orb */
.orb { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.orb .ring, .orb .ring2, .orb .core, .orb .ticks { position: absolute; inset: 0; border-radius: 50%; }
.orb .ring { border: 3px solid var(--cyan); box-shadow: 0 0 24px rgba(0, 229, 255, .45), inset 0 0 24px rgba(0, 229, 255, .25); }
.orb .ring2 { inset: 26px; border: 1.5px solid rgba(0, 229, 255, .55); }
.orb .ticks { inset: 9px; background: repeating-conic-gradient(from 0deg, rgba(0, 229, 255, .85) 0 3deg, transparent 3deg 36deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 72%, transparent 73%);
          mask: radial-gradient(circle, transparent 62%, #000 63%, #000 72%, transparent 73%); }
.orb .core { inset: 70px; background: radial-gradient(circle, #e8fdff 0%, #6ff3ff 38%, rgba(0, 229, 255, .15) 72%, transparent 75%);
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, .8)); transition: transform .25s ease; }
.orb.idle .ticks { animation: spin 18s linear infinite; }
.orb.listening .ticks { animation: spin 4s linear infinite; }
.orb.listening .core { animation: breathe 1.1s ease-in-out infinite; }
.orb.thinking .ticks { animation: spin 1.4s linear infinite; }
.orb.thinking .ring2 { animation: pulse 1s ease-in-out infinite; }
.orb.speaking .core { animation: breathe .45s ease-in-out infinite; }
.orb.offline .ring, .orb.offline .ring2, .orb.offline .ticks { filter: grayscale(1); opacity: .35; }
.orb.offline .core { filter: grayscale(1); opacity: .3; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.18); } }
@keyframes pulse { 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
