:root {
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef2ff;
  --violet: #8b5cf6;
  --teal: #14b8a6;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #14b8a6 100%);
}

body {
  background: linear-gradient(160deg, #eef2ff 0%, #f0fdf4 40%, #fef3c7 100%);
}

.brand__icon {
  background: var(--gradient-brand) !important;
}

.sidebar {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.35);
  border-left: 3px solid var(--teal);
}

.stat-card:nth-child(1) { border-top: 3px solid var(--accent); }
.stat-card:nth-child(2) { border-top: 3px solid var(--teal); }
.stat-card:nth-child(3) { border-top: 3px solid var(--violet); }
.stat-card:nth-child(4) { border-top: 3px solid var(--amber); }

.primary-btn {
  background: var(--gradient-brand);
  border: none;
}

.card {
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.member-scope-note {
  background: var(--accent-soft);
  color: #4338ca;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.career-card {
  border-left: 4px solid var(--violet);
}

.career-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.career-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* AI Assistant */
.ai-assistant {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.ai-toggle {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.ai-panel {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 20, 25, 0.18);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ai-panel__header {
  background: var(--gradient-brand);
  color: #fff;
  padding: 1rem;
}

.ai-panel__header small {
  display: block;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.ai-log {
  max-height: 240px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-msg {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ai-msg--user {
  background: var(--accent-soft);
  align-self: flex-end;
  max-width: 90%;
}

.ai-msg--bot {
  background: #f1f5f9;
  align-self: flex-start;
  max-width: 95%;
}

.ai-signup-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #4338ca;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.ai-signup-link:hover {
  background: #3730a3;
}

.ai-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.ai-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.ai-form .primary-btn {
  padding: 0.5rem 1rem;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.platform-actions button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
