/* ══════════════════════════════════════════════════════════
   Founder Panel — Design System
   ══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
.founder-panel {
  --fp-sidebar-w: 240px;
  --fp-sidebar-w-collapsed: 64px;
  --fp-sidebar-bg: #0f0f1a;
  --fp-sidebar-border: rgba(255,255,255,0.07);
  --fp-sidebar-text: rgba(255,255,255,0.55);
  --fp-sidebar-text-active: #ffffff;
  --fp-sidebar-accent: #6366f1;
  --fp-sidebar-hover: rgba(255,255,255,0.06);
  --fp-main-bg: #f4f6fa;
  --fp-card-bg: #ffffff;
  --fp-card-border: #e4e8ed;
  --fp-card-radius: 14px;
  --fp-card-shadow: 0 2px 10px rgba(0,0,0,0.05);
  --fp-card-shadow-hover: 0 8px 24px rgba(0,0,0,0.09);
  --fp-text: #0f172a;
  --fp-muted: #64748b;
  --fp-accent: #6366f1;
  --fp-radius-sm: 8px;
  --fp-radius-md: 12px;
  --fp-font-xs: 0.68rem;
  --fp-font-sm: 0.78rem;
  --fp-font-base: 0.875rem;
}

/* ── Full-page shell ────────────────────────────────────── */
.fp-shell {
  display: flex;
  min-height: 100vh;
  background: var(--fp-main-bg);
}

/* ══════════════════════════════════════════════════════════
   Sidebar
   ══════════════════════════════════════════════════════════ */
.fp-sidebar {
  width: var(--fp-sidebar-w);
  min-width: var(--fp-sidebar-w);
  background: var(--fp-sidebar-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  border-right: 1px solid var(--fp-sidebar-border);
  /* ⬇ transition mirrors the main app sidebar */
  transition: width 0.28s ease, min-width 0.28s ease;
  overflow: hidden;
}

/* Brand row */
.fp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--fp-sidebar-border);
  flex-shrink: 0;
}
.fp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.28s ease;
  max-width: 160px;
}
.fp-sidebar-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}
.fp-sidebar-product {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.fp-sidebar-panel-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Collapse button */
.fp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.fp-collapse-btn:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
#fp-collapse-icon {
  transition: transform 0.28s ease;
  display: block;
}

/* Nav */
.fp-sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}
.fp-nav-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding: 0 0.65rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.28s ease;
  max-height: 2em;
}
.fp-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  margin-bottom: 0.15rem;
  color: var(--fp-sidebar-text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
  white-space: nowrap;
}
.fp-nav-link:hover {
  background: var(--fp-sidebar-hover);
  color: rgba(255,255,255,0.85);
}
.fp-nav-link.active {
  background: rgba(99,102,241,0.18);
  color: #c7d2fe;
  font-weight: 600;
}
.fp-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--fp-sidebar-accent);
  border-radius: 0 3px 3px 0;
}
.fp-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.fp-nav-label {
  flex: 1;
  overflow: hidden;
  transition: opacity 0.2s ease, max-width 0.28s ease;
  max-width: 160px;
}

/* Footer */
.fp-sidebar-footer {
  padding: 1rem 0.75rem 1.25rem;
  border-top: 1px solid var(--fp-sidebar-border);
  flex-shrink: 0;
}
.fp-back-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.fp-back-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}
.fp-back-icon { flex-shrink: 0; }
.fp-back-label {
  overflow: hidden;
  transition: opacity 0.2s ease, max-width 0.28s ease;
  max-width: 160px;
}

/* ── Collapsed state ─────────────────────────────────────
   Class goes on the sidebar element itself (matches main app pattern)
   ─────────────────────────────────────────────────────── */
.fp-sidebar.fp-sidebar--collapsed {
  width: var(--fp-sidebar-w-collapsed);
  min-width: var(--fp-sidebar-w-collapsed);
}

/* Hide logo + brand text when collapsed — keeps only the collapse button visible */
.fp-sidebar.fp-sidebar--collapsed .fp-sidebar-logo {
  opacity: 0;
  flex: 0 0 0;
  min-width: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, flex 0.28s ease, width 0.28s ease;
}
.fp-sidebar.fp-sidebar--collapsed .fp-sidebar-brand-text {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}
/* Center the collapse button in the brand row */
.fp-sidebar.fp-sidebar--collapsed .fp-sidebar-brand {
  justify-content: center;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}
.fp-sidebar.fp-sidebar--collapsed .fp-collapse-btn {
  margin-left: 0;
}

.fp-sidebar.fp-sidebar--collapsed .fp-nav-label,
.fp-sidebar.fp-sidebar--collapsed .fp-back-label {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}
.fp-sidebar.fp-sidebar--collapsed .fp-nav-group-label {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.fp-sidebar.fp-sidebar--collapsed .fp-nav-link {
  justify-content: center;
  padding: 0.65rem 0;
}
.fp-sidebar.fp-sidebar--collapsed .fp-nav-link.active::before { display: none; }
.fp-sidebar.fp-sidebar--collapsed .fp-nav-icon { width: 100%; text-align: center; }
.fp-sidebar.fp-sidebar--collapsed .fp-back-btn {
  justify-content: center;
  padding: 0.55rem 0;
}

/* ══════════════════════════════════════════════════════════
   Main content area
   ══════════════════════════════════════════════════════════ */
.fp-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background: var(--fp-main-bg);
}

/* ══════════════════════════════════════════════════════════
   Shared page components
   ══════════════════════════════════════════════════════════ */
.fp-page { max-width: 1300px; }

.fp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.fp-page-header__title    { font-size: 1.5rem; font-weight: 800; color: var(--fp-text); margin-bottom: 0.15rem; letter-spacing: -0.03em; }
.fp-page-header__subtitle { font-size: 0.84rem; color: var(--fp-muted); margin: 0; }
.fp-page-header__actions  { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.fp-h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fp-text);
  letter-spacing: -0.04em;
  margin: 0 0 0.2rem;
}
.fp-subtitle { font-size: 0.85rem; color: var(--fp-muted); margin: 0; }

/* ── Cards ──────────────────────────────────────────────── */
.fp-card {
  background: var(--fp-card-bg);
  border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  box-shadow: var(--fp-card-shadow);
  transition: box-shadow 0.2s ease;
}
.fp-card:hover { box-shadow: var(--fp-card-shadow-hover); }
.fp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fp-card-border);
  box-shadow: inset 4px 0 0 var(--fp-accent);
}
.fp-card-title { font-size: 0.9rem; font-weight: 700; color: var(--fp-text); display: flex; align-items: center; }
.fp-card-title i { color: var(--fp-accent); }
.fp-card-subtitle { font-size: var(--fp-font-xs); color: var(--fp-muted); font-weight: 500; }

.fp-section { margin-bottom: 1.5rem; overflow: hidden; }
.fp-section.fp-card .fp-section-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--fp-card-border); }
.fp-section-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.fp-section-title { font-size: 1rem; font-weight: 700; color: var(--fp-text); margin: 0; }

.fp-muted  { color: var(--fp-muted) !important; }
.fp-small  { font-size: var(--fp-font-sm) !important; }

.fp-header-badge {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 999px; padding: 0.3rem 0.8rem;
}
.fp-live-dot {
  font-size: 0.45rem; color: #22c55e;
  animation: fp-pulse 1.5s ease infinite;
}

/* ══════════════════════════════════════════════════════════
   Dashboard — Hero Banner
   ══════════════════════════════════════════════════════════ */
.fp-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.fp-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  pointer-events: none;
}
.fp-hero-banner::after {
  content: '';
  position: absolute;
  bottom: -70px; left: 35%;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
  pointer-events: none;
}
.fp-hero-left {
  display: flex; align-items: center; gap: 1.25rem;
  position: relative; z-index: 1;
}
.fp-hero-avatar {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #c7d2fe; flex-shrink: 0;
  backdrop-filter: blur(6px);
}
.fp-hero-greeting {
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem;
}
.fp-hero-title { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.2rem; }
.fp-hero-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.fp-hero-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem;
  position: relative; z-index: 1;
}
.fp-hero-date { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5); }
.fp-status-pill {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35);
  border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.75rem; font-weight: 600; color: #86efac;
}
.fp-status-dot-live {
  width: 7px; height: 7px; background: #22c55e; border-radius: 50%;
  display: inline-block; box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: fp-blink 1.6s ease infinite;
}
@keyframes fp-blink {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.1); }
}
@keyframes fp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ══════════════════════════════════════════════════════════
   Dashboard — KPI Strip
   ══════════════════════════════════════════════════════════ */
.fp-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1200px) { .fp-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .fp-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .fp-kpi-strip { grid-template-columns: 1fr; } }

.fp-kpi {
  background: #fff;
  border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  box-shadow: var(--fp-card-shadow);
  padding: 1.25rem 1.25rem 1rem;
  display: flex; align-items: flex-start; gap: 1rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fp-kpi:hover { box-shadow: var(--fp-card-shadow-hover); transform: translateY(-2px); }
.fp-kpi-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0; position: relative; z-index: 1;
}
.fp-kpi-body { flex: 1; position: relative; z-index: 1; }
.fp-kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--fp-text); margin-bottom: 0.3rem; }
.fp-kpi-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fp-muted); }
.fp-kpi-glow {
  position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; opacity: 0.12;
  pointer-events: none; transition: opacity 0.2s ease;
}
.fp-kpi:hover .fp-kpi-glow { opacity: 0.2; }

.fp-kpi--blue   { border-top: 3px solid #2563eb; }
.fp-kpi--blue   .fp-kpi-icon  { background: #eff6ff; color: #2563eb; }
.fp-kpi--blue   .fp-kpi-value { color: #1d4ed8; }
.fp-kpi--blue   .fp-kpi-glow  { background: #2563eb; }

.fp-kpi--green  { border-top: 3px solid #22c55e; }
.fp-kpi--green  .fp-kpi-icon  { background: #f0fdf4; color: #16a34a; }
.fp-kpi--green  .fp-kpi-value { color: #15803d; }
.fp-kpi--green  .fp-kpi-glow  { background: #22c55e; }

.fp-kpi--indigo { border-top: 3px solid #6366f1; }
.fp-kpi--indigo .fp-kpi-icon  { background: #eef2ff; color: #4f46e5; }
.fp-kpi--indigo .fp-kpi-value { color: #4338ca; }
.fp-kpi--indigo .fp-kpi-glow  { background: #6366f1; }

.fp-kpi--violet { border-top: 3px solid #7c3aed; }
.fp-kpi--violet .fp-kpi-icon  { background: #f5f3ff; color: #6d28d9; }
.fp-kpi--violet .fp-kpi-value { color: #6d28d9; }
.fp-kpi--violet .fp-kpi-glow  { background: #7c3aed; }

.fp-kpi--amber  { border-top: 3px solid #f59e0b; }
.fp-kpi--amber  .fp-kpi-icon  { background: #fffbeb; color: #d97706; }
.fp-kpi--amber  .fp-kpi-value { color: #b45309; }
.fp-kpi--amber  .fp-kpi-glow  { background: #f59e0b; }

/* Legacy aliases */
.fp-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.fp-stat {
  background: #fff; border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius); box-shadow: var(--fp-card-shadow);
  padding: 1.25rem; border-top: 3px solid transparent; display: flex; flex-direction: column;
}
.fp-stat--blue   { border-top-color: #2563eb; }
.fp-stat--green  { border-top-color: #22c55e; }
.fp-stat--indigo { border-top-color: #6366f1; }
.fp-stat--violet { border-top-color: #7c3aed; }
.fp-stat--amber  { border-top-color: #f59e0b; }
.fp-stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.85rem; }
.fp-stat-icon-wrap { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.fp-stat-icon-wrap--blue   { background: #eff6ff; color: #2563eb; }
.fp-stat-icon-wrap--green  { background: #f0fdf4; color: #16a34a; }
.fp-stat-icon-wrap--indigo { background: #eef2ff; color: #4f46e5; }
.fp-stat-icon-wrap--violet { background: #f5f3ff; color: #6d28d9; }
.fp-stat-icon-wrap--amber  { background: #fffbeb; color: #d97706; }
.fp-stat-value { font-size: 2rem; font-weight: 800; color: var(--fp-text); letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.3rem; }
.fp-stat-label { font-size: var(--fp-font-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fp-muted); }

/* ══════════════════════════════════════════════════════════
   Dashboard — two-column row
   ══════════════════════════════════════════════════════════ */
.fp-dashboard-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .fp-dashboard-row { grid-template-columns: 1fr; } }

.fp-roles-card .fp-card-header { box-shadow: inset 4px 0 0 #6366f1; }
.fp-role-grid { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.75rem; }
.fp-role-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 0.75rem; border-radius: 10px; transition: background 0.12s ease;
}
.fp-role-item:hover { background: #f8fafc; }
.fp-role-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.fp-role-item--admin .fp-role-icon { background: #fff1f2; color: #dc2626; }
.fp-role-item--comp  .fp-role-icon { background: #eff6ff; color: #2563eb; }
.fp-role-item--hrbp  .fp-role-icon { background: #f5f3ff; color: #7c3aed; }
.fp-role-count { font-size: 1.4rem; font-weight: 800; color: var(--fp-text); letter-spacing: -0.04em; line-height: 1; }
.fp-role-name  { font-size: var(--fp-font-sm); color: var(--fp-muted); font-weight: 500; margin-top: 0.1rem; }

.fp-activity-card .fp-card-header { box-shadow: inset 4px 0 0 #22c55e; }
.fp-activity-list { padding: 0.5rem 0.75rem; }
.fp-activity-list .d-flex.border-bottom {
  padding: 0.7rem 0.25rem; min-height: 48px;
  border-bottom: 1px solid #f1f3f5 !important; transition: background 0.12s ease;
}
.fp-activity-list .d-flex.border-bottom:hover { background: #f8fafc; border-radius: 8px; }
.fp-activity-list .d-flex.border-bottom:last-child { border-bottom: none !important; }

/* ══════════════════════════════════════════════════════════
   Filter bar
   ══════════════════════════════════════════════════════════ */
.founder-panel .fp-filter-bar {
  background: #fff; border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius); padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.75rem;
}
.founder-panel .fp-filter-bar .form-control,
.founder-panel .fp-filter-bar .form-select {
  height: 36px; font-size: var(--fp-font-base); border-radius: 8px; border-color: #e2e8f0;
}
.founder-panel .fp-filter-bar .form-label {
  font-size: var(--fp-font-xs); font-weight: 600; color: var(--fp-muted);
  margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════
   Global tables (users, activity)
   ══════════════════════════════════════════════════════════ */
.founder-panel .founder-users .table,
.founder-panel .founder-activity .table { font-size: var(--fp-font-base); margin: 0; }
.founder-panel .founder-users #founder-users-table th,
.founder-panel .founder-activity #founder-activity-table th {
  background: #0f172a !important; color: #94a3b8 !important;
  font-size: var(--fp-font-xs) !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.07em !important;
  padding: 0.65rem 0.85rem !important; border: none !important;
}
.founder-panel .founder-users #founder-users-table tbody tr:hover,
.founder-panel .founder-activity #founder-activity-table tbody tr:hover { background: #f8fafc; }
.founder-panel .founder-users #founder-users-table td,
.founder-panel .founder-activity #founder-activity-table td {
  padding: 0.7rem 0.85rem; vertical-align: middle; border-color: #f1f3f5 !important;
}

/* ══════════════════════════════════════════════════════════
   Companies — New Design
   ══════════════════════════════════════════════════════════ */

/* Hero */
.fp-companies-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.fp-companies-hero::before {
  content: '';
  position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.fp-companies-hero-left {
  display: flex; align-items: center; gap: 1.1rem;
  position: relative; z-index: 1;
}
.fp-companies-hero-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #c7d2fe; flex-shrink: 0;
  backdrop-filter: blur(6px);
}
.fp-companies-title {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin: 0 0 0.2rem;
}
.fp-companies-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }
.fp-companies-create-btn {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  border-radius: 10px; padding: 0.55rem 1.25rem;
  transition: all 0.15s ease;
  backdrop-filter: blur(6px);
  position: relative; z-index: 1;
}
.fp-companies-create-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Master-detail layout */
.fp-companies-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .fp-companies-layout { grid-template-columns: 1fr; } }

/* Left panel */
.fp-company-list-panel {
  background: #fff;
  border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  box-shadow: var(--fp-card-shadow);
  overflow: hidden;
  position: sticky;
  top: 1rem;
}
.fp-company-list-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.fp-company-list-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--fp-muted);
  display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem;
}
.fp-company-list-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px;
  background: #e0e7ff; color: #4338ca;
  font-size: 0.62rem; font-weight: 700; border-radius: 999px;
}
.fp-company-search-wrap {
  position: relative;
}
.fp-company-search-icon {
  position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 0.8rem; pointer-events: none;
}
.fp-company-search-input {
  width: 100%; padding: 0.45rem 0.75rem 0.45rem 2rem;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.82rem; outline: none; background: #fff;
  transition: border-color 0.15s ease;
}
.fp-company-search-input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.1); }

.fp-company-list-body {
  padding: 0.6rem 0.6rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Company list items (rendered by JS as .list-group-item) */
.fp-company-list-body .list-group-item {
  border-radius: 9px !important;
  margin-bottom: 0.2rem;
  border: 1.5px solid transparent !important;
  transition: all 0.15s ease;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
}
.fp-company-list-body .list-group-item:hover {
  background: #f1f5ff !important;
  border-color: #c7d2fe !important;
}
.fp-company-list-body .list-group-item.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
}

/* Right: workspace */
.fp-company-workspace {
  background: #fff;
  border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius);
  box-shadow: var(--fp-card-shadow);
  overflow: hidden;
}

/* Topbar */
.fp-company-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid #334155;
}
.fp-company-topbar-left {
  display: flex; align-items: center; gap: 0.9rem;
}
.fp-company-topbar-avatar {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  flex-shrink: 0; text-transform: uppercase;
}
.fp-company-topbar-name {
  font-size: 1.05rem; font-weight: 700; color: #f1f5f9; line-height: 1.2;
}
.fp-company-topbar-meta {
  font-size: 0.75rem; color: #64748b; margin-top: 0.15rem;
}
.fp-company-topbar-right {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
}

/* Inline meta chips */
.fp-company-meta-chips {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.fp-meta-chip {
  display: flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.75rem;
}
.fp-meta-chip-label {
  color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.62rem;
}
.fp-meta-chip-value { color: #e2e8f0; font-weight: 600; }
.fp-meta-select {
  background: transparent; border: none; outline: none;
  color: #e2e8f0; font-size: 0.75rem; font-weight: 600;
  padding: 0; cursor: pointer;
}
.fp-meta-select option { background: #1e293b; color: #e2e8f0; }

.fp-company-expiry-wrap {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.fp-expiry-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #64748b;
}
.fp-expiry-input {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px; color: #e2e8f0; font-size: 0.75rem;
  padding: 0.28rem 0.6rem; outline: none;
  transition: border-color 0.15s ease;
}
.fp-expiry-input:not(:disabled):focus { border-color: #6366f1; }
.fp-expiry-input:disabled { opacity: 0.5; cursor: not-allowed; }

.fp-company-save-btn {
  background: #22c55e; border: none; color: #fff;
  font-size: 0.8rem; font-weight: 700; border-radius: 9px;
  padding: 0.45rem 1rem;
  transition: background 0.15s ease;
}
.fp-company-save-btn:hover { background: #16a34a; color: #fff; }

/* Overview mini-stats strip */
.fp-company-overview-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.fp-overview-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; padding: 0.9rem 0.5rem;
  border-right: 1px solid #f1f5f9;
  transition: background 0.12s ease;
  font-size: 0.7rem;
}
.fp-overview-stat:hover { background: #f1f5ff; }
.fp-overview-stat i { font-size: 1rem; margin-bottom: 0.1rem; }
.fp-overview-val { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.fp-overview-lbl { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.fp-overview-stat--blue   { color: #2563eb; }
.fp-overview-stat--indigo { color: #4f46e5; }
.fp-overview-stat--violet { color: #7c3aed; }
.fp-overview-stat--green  { color: #16a34a; }
.fp-overview-notes {
  flex: 2; padding: 0.75rem 1rem;
  display: flex; flex-direction: column; gap: 0.2rem; justify-content: center;
}
.fp-overview-notes-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #94a3b8;
}
.fp-overview-notes-text { font-size: 0.78rem; color: #475569; line-height: 1.4; }

/* Tabs */
.fp-company-tabs-wrap { padding: 0; }
.fp-company-tabs {
  display: flex; padding: 0 1rem;
  border-bottom: 2px solid #f1f5f9 !important;
  background: #fff; gap: 0;
}
.fp-company-tabs .nav-item { }
.fp-company-tabs .nav-link {
  border: none !important; color: #94a3b8;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px;
  border-radius: 0 !important;
  display: flex; align-items: center; gap: 0.3rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.fp-company-tabs .nav-link:hover { color: #6366f1; background: #f8f9ff; }
.fp-company-tabs .nav-link.active {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
  background: transparent !important;
}
.fp-company-tabs .fp-tab-danger { color: #ef4444 !important; }
.fp-company-tabs .fp-tab-danger:hover { background: #fff5f5 !important; }
.fp-company-tabs .fp-tab-danger.active { color: #dc2626 !important; border-bottom-color: #dc2626 !important; }

.fp-company-tab-content { padding: 1.25rem 1.5rem; }

/* Tab empty placeholder */
.fp-tab-empty-msg { padding: 2rem 0; text-align: center; }

/* Tab toolbar */
.fp-tab-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.fp-tab-toolbar-title {
  font-size: 0.82rem; font-weight: 700; color: var(--fp-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.35rem;
}
.fp-tab-action-btn {
  background: #eef2ff; border: 1px solid #c7d2fe;
  color: #4338ca; font-size: 0.78rem; font-weight: 700;
  border-radius: 8px; padding: 0.4rem 0.9rem;
  display: flex; align-items: center; gap: 0.3rem;
  transition: all 0.15s ease;
}
.fp-tab-action-btn:hover {
  background: #4f46e5; border-color: #4f46e5; color: #fff;
}
.fp-tab-action-btn:disabled {
  opacity: 0.45; cursor: not-allowed;
}
.fp-tab-action-btn:disabled:hover {
  background: #eef2ff; border-color: #c7d2fe; color: #4338ca;
}

/* Domain add row */
.fp-domain-add-row {
  display: flex; align-items: center; gap: 0.4rem;
}
.fp-domain-input {
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.82rem; padding: 0.38rem 0.75rem;
  outline: none; width: 220px;
  transition: border-color 0.15s ease;
}
.fp-domain-input:not(:disabled):focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.1); }
.fp-domain-input:disabled { opacity: 0.5; cursor: not-allowed; background: #f8fafc; }

/* Inner tables */
.fp-inner-table {
  font-size: 0.82rem;
  margin: 0;
}
.fp-inner-table thead tr {
  background: #0f172a !important;
}
.fp-inner-table thead th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  padding: 0.6rem 0.75rem !important;
  border: none !important;
}
.fp-inner-table tbody tr:hover { background: #f8fafc; }
.fp-inner-table tbody td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-color: #f1f5f9 !important;
  color: #334155;
}

/* Danger zone */
.fp-danger-zone { }
.fp-danger-callout {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1.25rem;
  color: #9a3412; font-size: 0.82rem;
}
.fp-danger-callout i { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.fp-danger-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.fp-danger-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid #fee2e2;
  border-radius: 10px; padding: 1rem 1.25rem;
}
.fp-danger-row--critical { border-color: #fca5a5; background: #fff5f5; }
.fp-danger-row-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; }
.fp-danger-row-title--critical { color: #dc2626; }
.fp-danger-row-desc { font-size: 0.78rem; color: #64748b; }
.fp-danger-btn-outline {
  background: #fff; border: 1.5px solid #fca5a5; color: #dc2626;
  font-size: 0.78rem; font-weight: 700; border-radius: 8px; padding: 0.4rem 1rem;
  transition: all 0.15s ease; flex-shrink: 0;
}
.fp-danger-btn-outline:hover { background: #fff1f2; border-color: #ef4444; }
.fp-danger-btn {
  background: #dc2626; border: 1.5px solid #dc2626; color: #fff;
  font-size: 0.78rem; font-weight: 700; border-radius: 8px; padding: 0.4rem 1rem;
  transition: all 0.15s ease; flex-shrink: 0;
}
.fp-danger-btn:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* ══════════════════════════════════════════════════════════
   Modals — Companies
   ══════════════════════════════════════════════════════════ */
.fp-modal-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  border-bottom: none; border-radius: 0.375rem 0.375rem 0 0;
  padding: 1.1rem 1.25rem;
}
.fp-modal-header--indigo {
  background: linear-gradient(135deg, #312e81 0%, #6366f1 100%);
}
.fp-modal-header--green {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}
.fp-modal-header--violet {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}
.fp-modal-icon {
  width: 34px; height: 34px; background: rgba(255,255,255,0.15);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; flex-shrink: 0;
}
.fp-modal-label {
  font-size: 0.78rem; font-weight: 700; color: #374151; margin-bottom: 0.35rem;
  display: block; text-transform: uppercase; letter-spacing: 0.04em;
}
.fp-modal-info-box {
  display: flex; align-items: flex-start; gap: 0.5rem;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 9px; padding: 0.8rem 1rem;
  font-size: 0.8rem; color: #1e40af; line-height: 1.4;
}
.fp-modal-btn-save {
  font-weight: 700; font-size: 0.85rem;
  padding: 0.45rem 1.25rem; border-radius: 9px;
}

/* ══════════════════════════════════════════════════════════
   Hierarchy Tree
   ══════════════════════════════════════════════════════════ */
.hierarchy-tree { padding: 1rem; }
.hierarchy-node { margin-bottom: 0.4rem; }
.hierarchy-node-content {
  padding: 0.65rem 1rem; border-radius: 9px;
  display: flex; align-items: center; transition: background 0.15s;
}
.hierarchy-root .hierarchy-node-content {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.5px solid #fbbf24; font-weight: 700;
}
.hierarchy-admin .hierarchy-node-content {
  background: #fff1f2; border-left: 4px solid #dc2626; margin-left: 1rem;
}
.hierarchy-member .hierarchy-node-content {
  background: #f8fafc; border-left: 4px solid #2563eb;
  margin-left: 3rem; font-size: 0.875rem;
}
.hierarchy-orphaned .hierarchy-node-content {
  background: #f1f5f9; border-left: 4px solid #94a3b8; margin-left: 1rem;
}
.hierarchy-toggle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.hierarchy-team { margin-left: 2rem; margin-top: 0.4rem; padding-left: 1rem; border-left: 2px dashed #e2e8f0; }
.hierarchy-team-empty { padding: 0.5rem 1rem; margin-left: 1rem; color: var(--fp-muted); font-style: italic; font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════
   Skeletons
   ══════════════════════════════════════════════════════════ */
.founder-panel .fp-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: fp-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes fp-skeleton-pulse {
  0%, 100% { background-position: 200% 0; }
  50%       { background-position: -200% 0; }
}
.founder-panel .fp-skeleton-text { height: 1em; margin-bottom: 0.5rem; }
.founder-panel .fp-skeleton-card { height: 80px; }
.founder-panel .fp-skeleton-row  { height: 44px; margin-bottom: 0.5rem; }

/* ══════════════════════════════════════════════════════════
   Empty states
   ══════════════════════════════════════════════════════════ */
.founder-panel .fp-empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--fp-muted);
}
.founder-panel .fp-empty-state .fp-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.founder-panel .fp-empty-state .fp-empty-message { font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   Modals — general
   ══════════════════════════════════════════════════════════ */
.founder-panel #founderUserModal .modal-dialog,
.founder-panel #founderAccessLinkModal .modal-dialog { max-width: 800px; }
.founder-panel #founderAccessLinkModal .form-control {
  font-family: monospace; font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fp-shell { flex-direction: column; }
  .fp-sidebar {
    width: 100% !important; min-width: unset !important;
    min-height: unset; position: static; overflow: visible;
  }
  .fp-sidebar-nav { display: flex; overflow-x: auto; padding: 0.5rem; }
  .fp-nav-group-label { display: none; }
  .fp-nav-link { white-space: nowrap; border-radius: 8px; }
  .fp-nav-link.active::before { display: none; }
  .fp-main { padding: 1.25rem; }
  .hierarchy-member .hierarchy-node-content { margin-left: 1rem; }
  .hierarchy-team { margin-left: 1rem; }
  .fp-companies-layout { grid-template-columns: 1fr; }
  .fp-company-list-panel { position: static; }
  .fp-company-topbar { flex-direction: column; }
  .fp-company-overview-strip { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════
   All Users Page
   ══════════════════════════════════════════════════════════ */

/* Hero */
.fp-users-hero {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  background: linear-gradient(135deg, #0c1445 0%, #1e3a8a 50%, #2563eb 100%);
  border-radius: 18px; padding: 1.5rem 2rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.fp-users-hero::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.fp-users-hero::after {
  content: ''; position: absolute; bottom: -50px; left: 40%;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.fp-users-hero-left {
  display: flex; align-items: center; gap: 1.1rem;
  position: relative; z-index: 1;
}
.fp-users-hero-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #bfdbfe; flex-shrink: 0; backdrop-filter: blur(6px);
}
.fp-users-title {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin: 0 0 0.2rem;
}
.fp-users-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }
.fp-users-create-btn {
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  border-radius: 10px; padding: 0.55rem 1.25rem;
  transition: all 0.15s ease; backdrop-filter: blur(6px);
  position: relative; z-index: 1;
}
.fp-users-create-btn:hover {
  background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); color: #fff;
}

/* Stats strip */
.fp-users-stats {
  display: flex; gap: 0;
  background: #fff; border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius); box-shadow: var(--fp-card-shadow);
  overflow: hidden; margin-bottom: 1.25rem;
}
.fp-users-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem; padding: 1rem 0.5rem;
  border-right: 1px solid #f1f5f9;
  transition: background 0.12s ease; cursor: default;
}
.fp-users-stat:last-child { border-right: none; }
.fp-users-stat:hover { background: #f8fafc; }
.fp-users-stat i { font-size: 1.1rem; margin-bottom: 0.1rem; }
.fp-users-stat-val { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.fp-users-stat-lbl {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #94a3b8;
}
.fp-users-stat--blue   { color: #2563eb; }
.fp-users-stat--green  { color: #16a34a; }
.fp-users-stat--red    { color: #dc2626; }
.fp-users-stat--indigo { color: #4f46e5; }
.fp-users-stat--violet { color: #7c3aed; }

/* Filter bar */
.fp-users-filters {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius); padding: 0.85rem 1rem;
  box-shadow: var(--fp-card-shadow); margin-bottom: 1.25rem;
}
.fp-users-filter-item {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.fp-users-filter-search {
  flex-direction: row !important; align-items: center;
  gap: 0; flex: 1; min-width: 200px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 9px; padding: 0 0.75rem;
  transition: border-color 0.15s ease;
}
.fp-users-filter-search:focus-within {
  border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.1); background: #fff;
}
.fp-users-filter-icon { color: #94a3b8; font-size: 0.82rem; flex-shrink: 0; }
.fp-users-filter-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 0.84rem; padding: 0.5rem 0.5rem; color: #1e293b;
}
.fp-users-filter-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #94a3b8;
}
.fp-users-filter-select {
  border: 1px solid #e2e8f0; border-radius: 9px;
  font-size: 0.82rem; padding: 0.45rem 2rem 0.45rem 0.75rem;
  outline: none; background: #f8fafc; color: #1e293b;
  appearance: auto; cursor: pointer; min-width: 130px;
  transition: border-color 0.15s ease;
}
.fp-users-filter-select:focus { border-color: #6366f1; background: #fff; }
.fp-users-filter-reset {
  width: 36px; height: 36px; border-radius: 9px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  color: #64748b; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; cursor: pointer; transition: all 0.15s ease;
  align-self: flex-end;
}
.fp-users-filter-reset:hover {
  background: #fee2e2; border-color: #fca5a5; color: #dc2626;
}

/* Table card */
.fp-users-table-card {
  background: #fff; border: 1px solid var(--fp-card-border);
  border-radius: var(--fp-card-radius); box-shadow: var(--fp-card-shadow);
  overflow: hidden;
}
.fp-users-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.fp-users-table-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--fp-muted);
  display: flex; align-items: center; gap: 0.3rem;
}
.fp-users-table-count {
  font-size: 0.75rem; font-weight: 600; color: #64748b;
  background: #f1f5f9; border-radius: 999px; padding: 0.2rem 0.75rem;
}

/* Table itself */
.fp-users-table { font-size: 0.82rem; margin: 0; }
.fp-users-table thead tr { background: #0f172a; }
.fp-users-table thead th {
  background: #0f172a !important; color: #94a3b8 !important;
  font-size: 0.68rem !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.07em !important;
  padding: 0.65rem 0.9rem !important; border: none !important;
}
.fp-users-table tbody tr { transition: background 0.1s ease; }
.fp-users-table tbody tr:hover { background: #f8fafc; }
.fp-users-table tbody td {
  padding: 0.75rem 0.9rem; vertical-align: middle;
  border-color: #f1f5f9 !important; color: #334155;
}

/* Password requirements box */
.fp-pw-requirements {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 9px; padding: 0.75rem 1rem; margin-top: 0.5rem;
}
.fp-pw-req-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.4rem;
}
.fp-pw-req-list li {
  font-size: 0.78rem; color: #64748b; padding: 0.1rem 0;
  display: flex; align-items: center;
}

/* Action icon buttons in table rows */
.fp-action-icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease;
  text-decoration: none; background: transparent; padding: 0;
}
.fp-action-icon--gray  { color: #64748b; border-color: #e2e8f0; }
.fp-action-icon--blue  { color: #2563eb; border-color: #bfdbfe; }
.fp-action-icon--amber { color: #d97706; border-color: #fde68a; }
.fp-action-icon--teal  { color: #0891b2; border-color: #a5f3fc; }
.fp-action-icon--red   { color: #dc2626; border-color: #fca5a5; }
.fp-action-icon--gray:hover  { background: #f1f5f9; color: #334155; }
.fp-action-icon--blue:hover  { background: #eff6ff; border-color: #93c5fd; }
.fp-action-icon--amber:hover { background: #fffbeb; border-color: #fcd34d; }
.fp-action-icon--teal:hover  { background: #ecfeff; border-color: #67e8f9; }
.fp-action-icon--red:hover   { background: #fff1f2; border-color: #f87171; }

/* Amber modal header variant */
.fp-modal-header--amber {
  background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

/* ══════════════════════════════════════════════════════════
   Accessibility
   ══════════════════════════════════════════════════════════ */
.founder-panel .fp-nav-link:focus-visible,
.founder-panel .btn:focus-visible,
.founder-panel .form-control:focus-visible {
  outline: 2px solid var(--fp-accent); outline-offset: 2px;
}
.founder-panel .fp-nav-link { outline: none; }
