/* MBU Intelligence — Design System
   Based on MBU AI Hype Style Sheet · Dark Intelligence Dashboard Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:          #0B0F17;
  --surface:     #111827;
  --surface-2:   #1A2235;
  --border:      rgba(255,255,255,0.08);
  --text:        #E5E7EB;
  --muted:       #9CA3AF;
  --blue:        #2563EB;
  --cyan:        #22D3EE;
  --violet:      #7C3AED;
  --success:     #10B981;
  --radius:      10px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(11,15,23,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.logo-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Language Picker ─────────────────────────────────────────────────────── */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-btn.active {
  background: rgba(37,99,235,0.2);
  color: var(--cyan);
}

.no-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 20px;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.no-ai-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.session-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--muted);
  min-width: 40px;
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 2px;
  background: var(--surface);
  z-index: 199;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

/* ── Main Layout ─────────────────────────────────────────────────────────── */
.main {
  margin-top: 122px;   /* header 60 + progress 2 + stage track 60 */
  min-height: calc(100vh - 122px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* ── Conversation ────────────────────────────────────────────────────────── */
.conversation {
  padding: 36px 0 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Messages ────────────────────────────────────────────────────────────── */
.message {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  animation: fadeUp 0.38s ease both;
}
.message.user { flex-direction: row-reverse; }

/* Avatar */
.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  margin-top: 17px;   /* align with top of bubble */
  letter-spacing: 0.3px;
}
.mbu-avatar {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.user-avatar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Content wrapper */
.msg-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.message.mbu  .msg-content { align-items: flex-start; }
.message.user .msg-content { align-items: flex-end; }

.message-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-bubble {
  max-width: 92%;
  padding: 15px 20px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.message.mbu .message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text);
}

.message.user .message-bubble {
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  border-top-right-radius: 4px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.message-bubble p { margin-bottom: 10px; }
.message-bubble p:last-child { margin-bottom: 0; }

.inline-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Typing Indicator ────────────────────────────────────────────────────── */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top-left-radius: 4px;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce 1.3s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.30s; }

/* ── Input Panel ─────────────────────────────────────────────────────────── */
.input-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(11,15,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
  z-index: 150;
}

.input-panel-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* ── CTA Button ──────────────────────────────────────────────────────────── */
.cta-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

/* ── Text Input ──────────────────────────────────────────────────────────── */
.text-input-wrap {
  display: flex;
  gap: 10px;
}

.text-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.text-input:focus { border-color: var(--blue); }
.text-input::placeholder { color: var(--muted); }

.submit-btn {
  padding: 14px 22px;
  background: var(--blue);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.submit-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

.skip-btn {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
}
.skip-btn:hover { color: var(--text); }

/* ── Choice Buttons ──────────────────────────────────────────────────────── */
.choices { display: flex; flex-direction: column; gap: 7px; }

.choice-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
}
.choice-btn:hover {
  border-color: var(--blue);
  background: rgba(37,99,235,0.06);
  transform: translateY(-1px);
}
.choice-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Scale Input ─────────────────────────────────────────────────────────── */
.scale-input { display: flex; flex-direction: column; gap: 10px; }

.scale-track { display: flex; gap: 8px; }

.scale-btn {
  flex: 1;
  padding: 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.scale-btn:hover { border-color: var(--blue); color: var(--text); transform: translateY(-2px); }
.scale-btn.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ── Diagnosis Card ──────────────────────────────────────────────────────── */
.diagnosis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 100%;
}

.diagnosis-header {
  margin-bottom: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.kpi-tile {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}

.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 5px;
}

.kpi-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.insight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.insight-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin-top: 7px;
}

/* ── Fit Cards ───────────────────────────────────────────────────────────── */
.fit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 8px;
}

.fit-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(37,99,235,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.fit-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.fit-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Signal Badges ───────────────────────────────────────────────────────── */
.signal-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-analyzed {
  background: rgba(34,211,238,0.12);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.25);
}

.badge-verified {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}

/* ── Software Product Cards ──────────────────────────────────────────────── */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.product-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: rgba(37,99,235,0.35);
}

.product-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-body {
  flex: 1;
  min-width: 0;
}

.product-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-url {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.7;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Download Section ────────────────────────────────────────────────────── */
.download-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 88%;
}

.download-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

/* ── Contact Button (header) ─────────────────────────────────────────────── */
.contact-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.35);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.contact-btn:hover {
  background: rgba(37,99,235,0.28);
  border-color: rgba(37,99,235,0.55);
  color: #fff;
}

/* ── Contact Modal ───────────────────────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,10,16,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.contact-modal.open {
  opacity: 1;
  pointer-events: all;
}

.contact-sheet {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.contact-modal.open .contact-sheet {
  transform: translateY(0) scale(1);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.contact-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.contact-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

/* ── Contact Form ────────────────────────────────────────────────────────── */
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 28px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.cf-req { color: var(--cyan); }
.cf-opt { color: var(--muted); font-weight: 400; }

.cf-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.cf-input::placeholder { color: rgba(156,163,175,0.5); }

.cf-input:focus {
  outline: none;
  border-color: rgba(37,99,235,0.6);
  background: rgba(37,99,235,0.04);
}

.cf-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.cf-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(156,163,175,0.7);
  line-height: 1.6;
}

.cf-privacy-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin-top: 5px;
}

.cf-error {
  font-size: 13px;
  color: #F87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  line-height: 1.55;
}

.cf-error a { color: #F87171; }

.cf-submit {
  padding: 13px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #1D4ED8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.2px;
  transition: opacity 0.2s, transform 0.15s;
  align-self: flex-end;
}

.cf-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.cf-submit:active { transform: translateY(0); }

/* ── Contact States ──────────────────────────────────────────────────────── */
.contact-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
  gap: 12px;
}

.contact-state p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.cf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(37,99,235,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cf-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 2px solid rgba(16,185,129,0.3);
  color: var(--success);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cf-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.cf-contact-name { color: var(--text); font-weight: 600; margin-bottom: 2px; }

.cf-contact-info a {
  color: var(--cyan);
  text-decoration: none;
}

.cf-close-success {
  margin-top: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.cf-close-success:hover { background: rgba(255,255,255,0.08); color: var(--text); }

@media (max-width: 480px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-submit { align-self: stretch; }
}

/* ── Admin Panel ─────────────────────────────────────────────────────────── */
.admin-layout { max-width: 1100px; margin: 80px auto 60px; padding: 0 24px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.admin-actions { display: flex; gap: 10px; }

.admin-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.admin-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.chart-label { width: 140px; color: var(--muted); flex-shrink: 0; }

.chart-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.chart-bar.drop { background: linear-gradient(90deg, #EF4444, #F97316); }

.chart-count { width: 24px; text-align: right; color: var(--muted); flex-shrink: 0; font-size: 12px; }

.session-log-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.session-card.done  { border-left: 3px solid var(--success); }
.session-card.dropped { border-left: 3px solid #EF4444; }

.session-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-card-body {
  padding: 14px 18px;
  font-size: 13px;
}

.s-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
}

.badge-done { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-drop { background: rgba(239,68,68,0.12); color: #EF4444; border: 1px solid rgba(239,68,68,0.25); }

.s-name { font-weight: 600; margin-right: 8px; }
.s-role { font-size: 12px; color: var(--muted); }
.s-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; }

.section-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.answers-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.ans-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  gap: 6px;
}

.ans-key { color: var(--muted); }
.ans-val { color: var(--text); font-weight: 500; }

.step-flow { display: flex; flex-wrap: wrap; gap: 5px; }

.step-chip {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--cyan);
}

.step-chip small { color: var(--muted); }

.empty { font-size: 13px; color: var(--muted); font-style: italic; }

/* ── Welcome Screen ──────────────────────────────────────────────────────── */
.welcome-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.welcome-screen.dismissing {
  opacity: 0;
  transform: scale(0.97) translateY(-12px);
  pointer-events: none;
}

/* Subtle grid background */
.welcome-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 100%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}

/* Glow orb */
.welcome-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ws-lang-picker {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 3px;
  z-index: 310;
  animation: wFadeUp 0.5s ease 0.05s both;
}

.ws-lang-picker .lang-btn {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ws-lang-picker .lang-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.ws-lang-picker .lang-btn.active {
  background: rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.4);
  color: var(--cyan);
}

.welcome-logo-wrap {
  margin-bottom: 28px;
  animation: wFadeUp 0.7s ease 0.1s both;
}

.welcome-logo-mark {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(37,99,235,0.1), 0 0 40px rgba(37,99,235,0.2);
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(37,99,235,0.1), 0 0 40px rgba(37,99,235,0.2); }
  50%       { box-shadow: 0 0 0 12px rgba(34,211,238,0.1), 0 0 60px rgba(34,211,238,0.25); }
}

.welcome-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: wFadeUp 0.7s ease 0.25s both;
}

.welcome-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  animation: wFadeUp 0.7s ease 0.4s both;
}
/* Gradient accent on last word */
.welcome-headline span {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 24px;
  animation: wFadeUp 0.7s ease 0.55s both;
}

.welcome-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  animation: wFadeUp 0.7s ease 0.7s both;
}
.welcome-notice-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan);
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 12px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  animation: wFadeUp 0.7s ease 0.85s both, ctaPulse 3s ease-in-out 1.6s infinite;
  cursor: pointer;
}
.welcome-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.35);
}
.welcome-arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.welcome-cta:hover .welcome-arrow { transform: translateX(4px); }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%       { box-shadow: 0 0 0 8px rgba(37,99,235,0.15); }
}

.welcome-caps {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
  animation: wFadeUp 0.7s ease 1.0s both;
}
.cap-sep { color: var(--border); }

@keyframes wFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stage Tracker ───────────────────────────────────────────────────────── */
.stage-track {
  position: fixed;
  top: 62px; left: 0; right: 0;
  height: 60px;
  background: rgba(11,15,23,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 198;
  display: flex;
  align-items: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stage-track.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.si-rail {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.si-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.si-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: transparent;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.si-step.done .si-dot {
  border-color: var(--cyan);
  background: var(--cyan);
}
.si-step.active .si-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
  animation: stagePulse 2s ease-in-out infinite;
}
@keyframes stagePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(37,99,235,0.08); }
}

.si-label {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: color 0.4s;
}
.si-step.done  .si-label { color: var(--muted); }
.si-step.active .si-label {
  color: var(--cyan);
  font-weight: 600;
}

.si-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.07);
  margin: 4px 6px 0;   /* 4px top to align with dot center (dot is 10px, margin-top aligns) */
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.si-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}
.si-line.filled .si-fill { transform: scaleX(1); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header { padding: 0 16px; }
  .main { padding: 0 16px; }
  .input-panel { padding: 14px 16px 18px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .no-ai-badge span { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .si-label { display: none; }
  .stage-track { height: 30px; }
  .main { margin-top: 94px; }
  .msg-avatar { width: 28px; height: 28px; font-size: 10px; margin-top: 17px; }
  .welcome-headline { font-size: 26px; letter-spacing: -0.8px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.ft-root {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 60px;
}
.ft-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.ft-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.ft-logo-mark {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ft-tagline { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.ft-addr    { font-size: 13px; color: #4B5563; }
.ft-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4B5563;
  margin-bottom: 14px;
}
.ft-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: color .15s;
}
.ft-link:hover { color: var(--cyan); }
.ft-contact li { font-size: 14px; color: var(--muted); }
.ft-contact a   { color: var(--muted); text-decoration: none; transition: color .15s; }
.ft-contact a:hover { color: var(--cyan); }
.ft-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-copy { font-size: 12px; color: #374151; }
.ft-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-badge {
  font-size: 11px;
  font-weight: 500;
  color: #4B5563;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ════════════════════════════════════════════════════════════════════════════
   LEGAL MODALS
   ══════════════════════════════════════════════════════════════════════════ */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.legal-modal.open { display: flex; }
.legal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.legal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.legal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.legal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.legal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-body h3:first-of-type { margin-top: 8px; }
.legal-body p  { margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; margin-bottom: 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a  { color: var(--cyan); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body code { font-size: 12px; background: rgba(255,255,255,0.07); padding: 2px 5px; border-radius: 4px; color: var(--text); }
.legal-body strong { color: var(--text); }
.legal-updated { font-size: 12px; color: #4B5563; margin-bottom: 20px !important; }
.legal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(34,211,238,.07);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.legal-highlight-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--cyan);
  color: #0B0F17;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════════
   AUTH / LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.auth-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.auth-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-pill {
  display: inline-block;
  background: rgba(34,211,238,0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  width: fit-content;
}
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s;
  outline: none;
  width: 100%;
}
.auth-field input:focus { border-color: var(--blue); }
.auth-field input::placeholder { color: #4B5563; }
.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
  border: none;
}
.auth-btn:hover:not(:disabled)  { background: #1D4ED8; }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-link {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  transition: color .15s;
}
.auth-link:hover { color: var(--cyan); }
.auth-error {
  font-size: 13px;
  color: #F87171;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.auth-success {
  font-size: 13px;
  color: var(--success);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.auth-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.auth-footer {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #374151;
}
.auth-footer a { color: #4B5563; text-decoration: none; }
.auth-footer a:hover { color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — TABS & TEAM MANAGEMENT
   ══════════════════════════════════════════════════════════════════════════ */
.admin-tab-bar {
  position: sticky;
  top: 60px;
  z-index: 100;
  display: flex;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}
.admin-tab-btn {
  padding: 14px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.admin-tab-btn:hover  { color: var(--text); }
.admin-tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.admin-user-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.team-loading, .team-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color .15s;
}
.team-member:hover { border-color: rgba(255,255,255,0.14); }
.team-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.team-info { flex: 1; min-width: 0; }
.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-you {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,.1);
  padding: 2px 6px;
  border-radius: 100px;
}
.team-email { font-size: 13px; color: var(--muted); margin-top: 2px; }
.team-meta  { font-size: 11px; color: #4B5563; margin-top: 4px; }
.team-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.team-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.status-active  { background: rgba(16,185,129,.15); color: var(--success); }
.status-pending { background: rgba(251,191,36,.1);  color: #FBBF24; }
.team-remove {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(248,113,113,.1);
  color: #F87171;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background .15s;
  opacity: 0;
}
.team-member:hover .team-remove { opacity: 1; }
.team-remove:hover { background: rgba(248,113,113,.2); }

/* ── Footer responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ft-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px 32px; }
  .ft-bar   { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .auth-card { padding: 28px 20px; }
  .admin-tab-bar { padding: 0 16px; }
  .team-member { flex-wrap: wrap; }
  .team-remove { opacity: 1; }
  .legal-body { padding: 20px; }
  .legal-header { padding: 20px; }
}
