/* ─── AUTH SCREEN ─────────────────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 20px 40px;
}

.auth-brand {
  text-align: center;
  color: white;
  margin-bottom: 28px;
}
.auth-brand-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.auth-brand h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-brand p { opacity: 0.7; font-size: 0.9rem; }
.auth-beta-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
  vertical-align: middle;
  margin-left: 6px;
}

.auth-form {
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.auth-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--navy); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-group input {
  width: 100%; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 1rem; transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--sky); }

.auth-btn {
  width: 100%; padding: 12px;
  border-radius: 8px; font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; transition: opacity .2s;
}
.auth-btn.primary { background: var(--navy); color: white; margin-top: 4px; }
.auth-btn.primary:hover { opacity: 0.85; }

.auth-links { text-align: center; margin-top: 14px; font-size: 0.85rem; }
.auth-links a { color: var(--sky); }

.auth-error {
  background: #fde8e8; color: #c0392b;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.85rem; margin-bottom: 10px;
}
.auth-ok {
  background: #e8f8e8; color: #27ae60;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.85rem; margin-bottom: 10px;
}

.invite-banner {
  background: #e8f4fd; color: var(--navy);
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.85rem; margin-bottom: 14px;
  border-left: 3px solid var(--sky);
  font-weight: 600;
}

/* ─── BETA BADGE (header) ─────────────────────────────────────────────────── */
.beta-badge {
  font-size: 0.55rem;
  font-weight: 800;
  background: var(--gold);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: .05em;
  vertical-align: middle;
  margin-left: 2px;
}

/* ─── USER MENU ───────────────────────────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.user-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.user-btn:hover { background: rgba(255,255,255,0.25); }
.user-avatar { color: white; font-size: 0.9rem; font-weight: 700; }

.user-menu {
  position: absolute;
  top: 44px; right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 300;
  overflow: hidden;
}
.user-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .15s;
}
.user-menu a:hover { background: var(--bg); }
.user-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.user-menu-name {
  padding: 10px 14px 4px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--navy);
}
.user-menu-version {
  padding: 4px 14px 10px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ─── SPRINT ──────────────────────────────────────────────────────────────── */
.sprint-btn { background: linear-gradient(135deg, var(--gold), #e67e22) !important; color: white !important; }
.sprint-btn .qb-icon, .sprint-btn .qb-label { color: white; }

.sprint-card {
  min-height: 200px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.btn-danger {
  background: var(--red); color: white;
  border: none; border-radius: 8px; padding: 10px;
  font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1.4;
}
.btn-success {
  background: var(--green); color: white;
  border: none; border-radius: 8px; padding: 10px;
  font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1.4;
}
.btn-primary {
  background: var(--navy); color: white;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
}
.btn-secondary {
  background: var(--bg); color: var(--navy);
  border: 2px solid var(--border); border-radius: 8px; padding: 10px 20px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
}

/* ─── GROUPE ──────────────────────────────────────────────────────────────── */
.loading-spinner { text-align: center; padding: 40px; color: var(--muted); }

/* ─── WEAK THEMES ─────────────────────────────────────────────────────────── */
#weak-themes-section .card-title { font-size: .95rem; }
