/* Aurvox AI Dashboard. Matches aurvoxai.com: near-black, off-white text, glass cards. Mobile first (built for 390 px). */

:root {
  --bg: #070708;
  --text: #f4f4f5;
  --muted: #a1a1a9;
  --faint: #6c6c75;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  --radius: 22px;
  --danger: #ff8a8a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; }
h2 { margin: 0 0 8px; font-size: 1.125rem; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 14px; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { height: 26px; width: auto; }
.brand small { font-size: 0.65rem; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); vertical-align: middle; }

.who { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.who form { margin: 0; }
.who-name { color: var(--muted); max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.75rem; }
.badge--admin { background: #f4f4f5; color: #0a0a0c; border-color: transparent; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.link-btn:hover { color: var(--text); }

.tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--line-strong); background: var(--glass); }

.wrap { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }

.cards { display: grid; gap: 14px; margin-top: 22px; }
.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.chip { display: inline-block; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8125rem; color: var(--muted); }
.status { margin-top: 26px; color: var(--faint); font-size: 0.875rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f4f4f5; color: #0a0a0c;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #fff; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.login { max-width: 420px; margin: 56px auto 0; text-align: center; }
.login-logo { height: 54px; width: auto; margin-bottom: 18px; }
.login .btn { width: 100%; margin-top: 8px; }
.notice { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); }
.notice--error { color: var(--danger); border-color: rgba(255, 138, 138, 0.4); }
.dev { margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.dev-list { display: grid; gap: 8px; }

@media (min-width: 720px) {
  .topbar { padding: 16px 28px; }
  .tabs { padding: 10px 28px; }
  .wrap { padding-top: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .who-name { max-width: none; }
}
