/* Matches BarShift's (bar-shift.com) palette/typography exactly — dark charcoal + gold,
   Segoe UI body / Palatino headings — so Bar-Spec reads as the same product family. */
:root {
  --bg:       #0c0c0c;
  --s1:       #141414;
  --s2:       #1e1e1e;
  --s3:       #272727;
  --border:   #2e2e2e;
  --borderlt: #3a3a3a;
  --gold:     #c8a95a;
  --goldhov:  #e2c97a;
  --goldpale: rgba(200, 169, 90, .13);
  --text:     #f0ead5;
  --text2:    #a89e84;
  --text3:    #68614f;
  --error:    #d9534f;
  --radius:   8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-weight: normal;
  color: var(--gold);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  flex-shrink: 0;
  background: rgba(12, 12, 12, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: normal;
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 380px;
}

.card h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.card p.sub {
  margin: 0 0 20px;
  color: var(--text2);
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--s2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

textarea { resize: vertical; }

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

button.primary {
  background: var(--gold);
  color: #0a0a0a;
  width: 100%;
  margin-top: 18px;
}

button.primary:hover { background: var(--goldhov); }
button.primary:disabled { opacity: 0.6; cursor: default; }

button.link,
a.link {
  background: none;
  color: var(--gold);
  padding: 0;
  font-weight: 500;
  text-decoration: none;
}
button.link:hover, a.link:hover { color: var(--goldhov); }

.error-text {
  color: var(--error);
  font-size: 13px;
  min-height: 16px;
  margin-top: 10px;
}

.switch-row {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text2);
  text-align: center;
}

.dashboard {
  flex: 1;
  padding: 32px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.dashboard h1 { font-size: 24px; margin-bottom: 4px; }
.dashboard p.sub { color: var(--text2); margin-top: 0; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--goldpale);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--s3);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.module-list { margin-top: 16px; }

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.link.danger, button.danger { color: var(--error); }

.q-row {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.q-opt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.q-opt-row input[type="text"] { flex: 1; }
.q-opt-row input[type="radio"] { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--gold); }
