:root {
  --sl-blue: #66CCFF;
  --sl-yellow: #FCD116;
  --sl-black: #000000;
  --sl-white: #FFFFFF;
  --sl-sand: #f8f3e7;
  --sl-sand-2: #f3ead8;
  --sl-border: rgba(0, 0, 0, 0.12);
  --sl-text: #162033;
  --sl-muted: #5e6879;
  --sl-shadow: 0 10px 26px rgba(13, 29, 46, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--sl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(102, 204, 255, 0.26), rgba(102, 204, 255, 0) 34%),
    radial-gradient(circle at 88% 12%, rgba(252, 209, 22, 0.24), rgba(252, 209, 22, 0) 38%),
    linear-gradient(180deg, #f9fcff 0%, #fdf9ef 44%, #ffffff 100%);
  min-height: 100vh;
}

.slcc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sl-border);
}

.slcc-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slcc-brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #0c1b33;
}

.slcc-home-link {
  text-decoration: none;
  color: #0c1b33;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--sl-white);
}

.slcc-shell {
  width: min(1160px, 100% - 2rem);
  margin: 1.1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.card-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 231, 0.75));
  border: 1px solid var(--sl-border);
  border-radius: 18px;
  box-shadow: var(--sl-shadow);
}

.slcc-hero {
  padding: 1.3rem 1.2rem;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-transform: uppercase;
  color: #2068a2;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  line-height: 1.12;
}

.hero-subtitle {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  color: var(--sl-muted);
}

.slcc-controls {
  padding: 1rem;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.9fr repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.control-field {
  display: grid;
  gap: 0.35rem;
}

.label-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #40506a;
  font-weight: 800;
}

.control-field input,
.control-field select {
  width: 100%;
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  padding: 0.65rem 0.72rem;
  font-size: 0.95rem;
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.95);
}

.control-field input:focus,
.control-field select:focus,
.btn-clear:focus,
.modal-close:focus,
.profile-card:focus-visible {
  outline: 2px solid rgba(102, 204, 255, 0.65);
  outline-offset: 2px;
}

.controls-footer {
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.results-count {
  margin: 0;
  font-size: 0.86rem;
  color: #3f4d65;
  font-weight: 700;
}

.btn-clear {
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  background: var(--sl-white);
  padding: 0.5rem 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  color: #1e2b40;
}

.cards-wrap {
  margin-top: 0.2rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}

.profile-card {
  border: 1px solid var(--sl-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 234, 216, 0.62));
  box-shadow: var(--sl-shadow);
  padding: 0.82rem;
  display: grid;
  gap: 0.62rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 29, 46, 0.13);
}

.profile-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.65rem;
  align-items: center;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(102, 204, 255, 0.33);
  object-fit: cover;
  background: #eef6ff;
}

.profile-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.profile-biz {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: #35527b;
  font-weight: 700;
}

.profile-meta {
  font-size: 0.77rem;
  color: var(--sl-muted);
  font-weight: 700;
  line-height: 1.35;
}

.profile-bio {
  margin: 0;
  font-size: 0.85rem;
  color: #243347;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges-row,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  border: 1px solid transparent;
}

.badge-758 {
  background: linear-gradient(90deg, rgba(102, 204, 255, 0.2), rgba(252, 209, 22, 0.35));
  border-color: rgba(102, 204, 255, 0.6);
  color: #114a80;
}

.badge-diaspora {
  background: rgba(17, 74, 128, 0.08);
  border-color: rgba(17, 74, 128, 0.28);
  color: #15406b;
}

.badge-reform {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  color: #131313;
}

.tag-chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #40506a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.85);
  padding: 1.2rem;
  text-align: center;
  font-weight: 700;
  color: #5e6879;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 20, 0.55);
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--sl-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 234, 216, 0.75));
  box-shadow: 0 20px 40px rgba(6, 16, 29, 0.28);
  padding: 1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.65rem;
  top: 0.45rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--sl-border);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.4rem;
}

.modal-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(102, 204, 255, 0.4);
}

.modal-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  color: #2a5d90;
}

.modal-header h2 {
  margin: 0.2rem 0;
  line-height: 1.1;
}

.modal-business,
.modal-role,
.modal-location,
.modal-bio {
  margin: 0;
}

.modal-business {
  color: #2f4f76;
  font-weight: 700;
}

.modal-badges {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-role {
  margin-top: 0.7rem;
  font-weight: 800;
  color: #1e2b40;
}

.modal-location {
  margin-top: 0.24rem;
  color: #4d5f7b;
  font-weight: 700;
}

.modal-bio {
  margin-top: 0.8rem;
  color: #1e2b40;
  line-height: 1.45;
}

.modal-contact {
  margin-top: 0.95rem;
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.72rem;
}

.modal-contact h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38557b;
}

.modal-contact p {
  margin: 0.25rem 0;
  color: #233145;
}

.modal-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (max-width: 960px) {
  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .slcc-shell {
    width: min(100% - 1rem, 100%);
    margin-top: 0.75rem;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    grid-template-columns: 72px 1fr;
  }

  .modal-avatar {
    width: 72px;
    height: 72px;
  }
}
