/* Servaxa UI tokens (light default + dark mode via .dark on html)
   Colors: graphite + blue + white
*/
:root{
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, .10);
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,6,23,.10);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

html.dark{
  --bg: #070a12;
  --card: rgba(17,24,39,.70);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148,163,184,.18);
  --primary: #60a5fa;
  --primary-contrast: #06101f;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }
.container{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:.75rem 1rem;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.5);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
html.dark .btn{ background: rgba(17,24,39,.55); }
.btn:hover{ transform: translateY(-1px); border-color: rgba(37,99,235,.35); }
.btn-primary{
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}
.btn-primary:hover{ filter: brightness(1.03); }
.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.25rem .5rem; border-radius: 999px;
  border:1px solid var(--border); color: var(--muted); font-size:12px;
}
.notice{
  padding:.75rem 1rem; border-radius: 12px;
  border:1px solid var(--border); background: rgba(37,99,235,.08);
}
.notice.error{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); }
.notice.success{ background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); }
.input{
  width:100%;
  padding:.8rem .9rem;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--text);
  outline:none;
}
html.dark .input{ background: rgba(2,6,23,.35); }
.input:focus{ border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

.kbd{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; font-size:12px;
  padding:.15rem .4rem; border:1px solid var(--border); border-bottom-width:2px; border-radius: 8px;
  background: rgba(255,255,255,.5);
}
html.dark .kbd{ background: rgba(17,24,39,.5); }

@media (max-width: 768px){
  .container{ padding: 0 16px; }
}
