:root {
  --bg: #fbfdff;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #002f2f;
  --accent-2: #0c5c5c;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, 0.12);
  --transition: 250ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
.container-narrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.muted {
  color: var(--muted);
}
/* Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(109, 40, 217, 0.18);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text);
}
/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}
.auth-visual {
  background: linear-gradient(
    160deg,
    rgba(124, 58, 237, 0.92),
    rgba(99, 102, 241, 0.85)
  );
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.auth-visual h2 {
  font-size: 28px;
  margin: 0;
}
.auth-visual p {
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}
.auth-form {
  background: var(--surface);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.form-field {
  position: relative;
}
.input-modern {
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  font-size: 15px;
  transition: all var(--transition);
}
.input-modern:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.06);
}
.floating-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  transition: all 180ms ease;
}
.input-modern:not(:placeholder-shown) + .floating-label,
.input-modern:focus + .floating-label {
  top: -10px;
  font-size: 12px;
  color: var(--accent);
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.auth-footer {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 880px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-form {
    padding: 28px;
  }
}
/* Directory */
.directory-hero {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.04),
    rgba(124, 58, 237, 0.01)
  );
  padding: 48px 20px;
  border-radius: 12px;
  margin: 20px 0;
}
.directory-hero h1 {
  font-size: 34px;
  margin: 0;
}
.search-filter-card {
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.search-bar {
  display: flex;
  gap: 12px;
}
.search-input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.search-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.member-card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: all var(--transition);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.member-card.premium {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #fff7e0 0%, #fff1cc 100%);
}
.member-card.premium:hover {
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.18);
}
.member-card.premium .member-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.member-card.premium .member-avatar {
  border-color: #fbbf24;
}
.member-card.premium .member-type-badge,
.member-card.premium .member-premium-tag {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}
.member-card .member-header {
  padding: 18px;
  background: linear-gradient(90deg, #fff, #fafafa);
  display: flex;
  align-items: center;
  gap: 14px;
}
.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgb(245 158 11);
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-name {
  font-weight: 700;
  font-size: 16px;
}
.member-company {
  color: var(--muted);
  font-size: 14px;
}
.member-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.member-actions {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.03);
}
.skeleton {
  background: linear-gradient(90deg, #f4f6fb, #eef2ff, #f4f6fb);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* Focus outlines */
:focus {
  outline: 3px solid rgba(124, 58, 237, 0.12);
  outline-offset: 2px;
}

/* Subtle card float animation */
@keyframes floatUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}
.card-float:hover {
  animation: floatUp 220ms ease forwards;
}

/* Button micro-interaction (sheen) */
.btn-modern {
  position: relative;
  overflow: hidden;
}
.btn-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 40%
  );
  transform: skewX(-12deg);
  transition: all 420ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-modern:hover::after {
  left: 100%;
}

/* Modal animation helpers */
.profile-modal {
  transform-origin: center;
  transition:
    transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 260ms ease;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
.profile-modal.active,
.profile-modal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.profile-modal-overlay {
  transition: opacity 260ms ease;
}
/* Overlay active class toggles inner modal */
.profile-modal-overlay.active .profile-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Page enter/exit transitions */
.page-enter {
  opacity: 0;
  transform: translateY(6px);
}
.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 420ms cubic-bezier(0.2, 0.9, 0.25, 1);
}
.page-exit {
  opacity: 1;
}
.page-exit-active {
  opacity: 0;
  transform: translateY(-6px);
  transition: all 320ms ease;
}

/* Members skeleton card */
.skeleton-card {
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.skeleton-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}
.skeleton-line {
  height: 12px;
  border-radius: 8px;
}
