:root {
  --teal: #1a9eb8;
  --teal-dark: #157f94;
  --paper: #f8f8f8;
  --card: #ffffff;
  --text: #2d2d2d;
  --muted: #848484;
  --field: #f2f2f2;
  --outline: #dfdfdf;
  --shadow: 0 30px 60px rgba(20, 20, 20, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  background-image: url("https://epixpro.com/static/media/bg-login.ebcfea36dc8f012a0232.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(5, 10, 18, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(884px, 92vw);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 0.44fr;
  gap: clamp(1.15rem, 1.9vw, 1.6rem);
  padding: clamp(0.65rem, 1.3vw, 0.9rem);
  overflow: hidden;
}

.login-panel {
  padding: clamp(0.3rem, 1vw, 0.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-block {
  text-align: center;
  margin-bottom: 0.35rem;
  width: 100%;
}

.brand-logo {
  width: clamp(75px, 14vw, 95px);
  height: auto;
  display: block;
  margin: 0 auto 0.45rem;
}

.headline {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  width: 100%;
}

.invite-subtitle {
  margin: 0.5rem 0 0;
  width: 100%;
  max-width: none;
  color: #6a7692;
  font-size: 0.86rem;
  line-height: 1.4;
}

.privacy-consent {
  margin: 0.65rem 0 0;
  width: 100%;
  max-width: 46ch;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5f6f8f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.privacy-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1f5da8;
}

.privacy-consent a {
  color: #1f5da8;
  text-decoration: underline;
}

.login-form {
  width: min(520px, 100%);
  display: grid;
  gap: 0.45rem;
}

.credential-login-hidden {
  display: none;
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--field);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(26, 158, 184, 0.25);
  border-color: var(--teal);
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 3rem;
}

.toggle-visibility {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  color: var(--teal);
}

.eye-icon {
  display: block;
}

.btn-login {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  background: var(--teal-dark);
}

.form-message {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.preview-panel {
  display: grid;
  align-content: stretch;
}

.preview-canvas {
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(0.8rem, 1.4vw, 1rem);
  min-height: 148px;
  position: relative;
  overflow: visible;
}

.preview-image {
  position: absolute;
  width: clamp(222px, 59.4vw, 268px);
  height: auto;
  left: clamp(-22px, -3.5vw, -22px);
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
  z-index: 2;
}

.tile {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.16);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    display: none;
  }
}

@media (max-width: 520px) {
  .btn-login {
    font-size: 1.2rem;
  }

  .headline {
    font-size: 1rem;
  }

  input {
    padding: 0.78rem 0.9rem;
  }
}

.my-profile-screen {
  min-height: 100vh;
  padding: clamp(1rem, 2vw, 2rem);
  font-family: "Source Sans 3", "Outfit", sans-serif;
  background:
    linear-gradient(135deg, rgba(245, 247, 252, 0.92), rgba(231, 236, 245, 0.9)),
    url("https://epixpro.com/static/media/bg-login.ebcfea36dc8f012a0232.webp") center / cover;
}

.profile-layout {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 350px) 1fr;
  gap: 1.25rem;
}

.card-shell {
  background: #f9fbff;
  border: 1px solid #d8e0ec;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 53, 91, 0.12);
}

.profile-sidebar {
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.avatar-wrap {
  position: relative;
  width: 120px;
  margin: 0 auto;
}

.profile-sidebar .user-avatar {
  width: 120px !important;
  max-width: 120px !important;
  min-width: 120px !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  object-fit: cover !important;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.avatar-edit-btn {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 52, 101, 0.86);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 35, 66, 0.35);
}

.avatar-edit-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.avatar-file-input {
  display: none;
}

.avatar-upload-message {
  min-height: 1rem;
  margin: -0.4rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #5b7297;
}

.side-name {
  margin: 0.3rem 0 0;
  font-size: clamp(1.45rem, 1.7vw, 1.9rem);
  font-weight: 800;
  color: #1f3357;
}

.side-role {
  margin: 0;
  color: #2a446f;
  font-size: 0.88rem;
  font-weight: 600;
}

.side-info {
  border-top: 1px solid #d0d8e6;
  border-bottom: 1px solid #d0d8e6;
  padding: 0.5rem 0;
}

.side-info p {
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid #d0d8e6;
  color: #213961;
  font-size: 0.9rem;
}

.side-info p:last-child {
  border-bottom: 0;
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.action-btn {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

#connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

#connect-btn .connect-logo {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px;
  object-fit: contain;
}

#linkedin-signin-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  text-align: center !important;
  width: 100% !important;
}

#linkedin-signin-btn.is-disabled,
#linkedin-signin-btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

#linkedin-signin-btn .connect-logo {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  flex: 0 0 25px;
  object-fit: contain;
}

.primary-btn {
  border: 0;
  background: #1f5da8;
  color: #fff;
}

.ghost-btn {
  border: 1px solid #1f5da8;
  background: #fff;
  color: #1f5da8;
}

.profile-main {
  display: grid;
  gap: 0.9rem;
}

.profile-main .card-shell {
  padding: 1rem 1.2rem;
}

.header-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.hero-name {
  margin: 0;
  color: #1c3152;
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  font-weight: 800;
}

.hero-role {
  margin: 0.2rem 0 0;
  color: #2c4773;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
}

.menu-dots {
  color: #9aa5b7;
  font-size: 2.4rem;
  line-height: 1;
}

.business-profile,
.about-text {
  margin: 0;
  color: #20385f;
  font-size: clamp(0.96rem, 1.02vw, 1.06rem);
  line-height: 1.55;
  font-weight: 400;
}

.section-title {
  margin: 0 0 0.7rem;
  color: #1d3459;
  font-size: clamp(1.25rem, 1.3vw, 1.5rem);
  font-weight: 800;
}

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

.strength-chip {
  border: 1px solid #d2dbeb;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecf2fb, #dde7f8);
  color: #21406f;
  padding: 0.7rem 0.8rem;
  font-size: clamp(0.86rem, 0.92vw, 1rem);
  font-weight: 600;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.chip-label {
  line-height: 1.2;
}

.key-list p {
  margin: 0;
  padding: 0.72rem 0;
  border-top: 1px solid #d0d8e6;
  color: #21406f;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.key-list p:last-child {
  padding-bottom: 0;
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-right: 0.28rem;
}

.mini-icon {
  font-size: 0.88rem;
  opacity: 0.86;
}

@media (max-width: 1080px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .strengths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .side-actions {
    grid-template-columns: 1fr;
  }

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

  .profile-main .card-shell,
  .profile-sidebar {
    padding: 0.9rem;
  }
}

.home-screen,
.public-screen {
  min-height: 100vh;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background:
    linear-gradient(135deg, rgba(245, 247, 252, 0.95), rgba(235, 239, 247, 0.9)),
    url("https://epixpro.com/static/media/bg-login.ebcfea36dc8f012a0232.webp") center / cover;
}

.profile-population-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: none !important;
}

.profile-population-screen::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(245, 247, 252, 0.95), rgba(235, 239, 247, 0.9)),
    url("https://epixpro.com/static/media/bg-login.ebcfea36dc8f012a0232.webp") center / cover;
  filter: blur(8px);
  transform: scale(1.04);
}

.home-nav {
  background: #fefefe;
  color: #1f3357;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #e5ebf4;
}

.brand {
  font-size: 2rem;
  font-weight: 800;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.home-links {
  display: flex;
  gap: 1rem;
}

.home-links a {
  color: #e8efff;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

.home-links a.active {
  border-color: #fff;
}

.home-actions {
  display: flex;
  gap: 0.6rem;
}

.home-btn {
  background: #0d4fab;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.home-btn.ghost {
  background: #fff;
  color: #0d4fab;
}

.investors-wrap {
  width: min(1380px, 96%);
  margin: 1rem auto 2rem;
}

.seed-round-title {
  margin: 0 0 0.55rem;
  color: #142e57;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
}

.seed-round-cards {
  display: grid;
  gap: 0.65rem;
}

.seed-round-cards .lead-card {
  grid-template-columns: 88px 1fr auto;
  gap: 0.6rem;
  padding: 0.5rem;
}

.seed-round-cards .investor-name {
  font-size: 1.25rem;
}

.seed-round-cards .seed-role-label {
  margin-left: 0.45rem;
  color: #7f92b2;
  font-weight: 400;
  font-size: 0.92rem;
}

.seed-round-cards .lead-main p {
  font-size: 0.9rem;
  margin: 0.12rem 0;
}

.seed-round-cards .lead-money strong {
  font-size: 1rem;
}

.seed-round-cards .home-btn {
  padding: 0.45rem 0.75rem;
}

.personal-card {
  margin-bottom: 0.75rem;
}

.list-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c5d2e8 14%, #c5d2e8 86%, transparent);
  margin: 0.35rem 0 0.9rem;
}

.investors-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.investors-head > div {
  text-align: left;
  align-self: flex-start;
}

.investors-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: #142e57;
  text-align: left;
}

.investors-head p {
  margin: 0.35rem 0 0;
  color: #2c4773;
  text-align: left;
}

.profile-population-card {
  background: #f8fbff;
  border: 1px solid #ccd8eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(24, 46, 78, 0.12);
  padding: clamp(1rem, 1.8vw, 1.45rem);
}

.profile-population-message {
  margin: 0;
  white-space: pre-line;
  color: #1f3357;
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
}

#search-input {
  width: min(360px, 100%);
  border: 1px solid #c4d0e6;
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.lead-card,
.investor-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: #f8fbff;
  border: 1px solid #ced8ea;
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(25, 46, 80, 0.1);
}

.lead-card {
  padding: 0.7rem;
}

.lead-card img,
.investor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.lead-main p,
.investor-main p {
  margin: 0.2rem 0;
  color: #304b75;
}

.investor-name {
  color: #102d5b;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 800;
}

.investor-card .investor-name {
  font-size: 1.1rem;
}

.pill {
  display: inline-block;
  border: 1px solid #b7d7bd;
  color: #316f3e;
  border-radius: 8px;
  padding: 0.15rem 0.55rem;
  font-size: 0.9rem;
}

.my-pill {
  border-color: #b9d4ff;
  color: #0d4fab;
  background: #edf4ff;
}

.lead-money,
.investor-side {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  padding-right: 0.3rem;
}

.lead-money strong,
.investor-side strong {
  font-size: 1.15rem;
  color: #0f3e30;
}

.investor-list {
  display: grid;
  gap: 0.55rem;
}

.investor-card {
  padding: 0.55rem;
  grid-template-columns: 74px 1fr auto;
}

.public-screen {
  padding: 2rem 1rem;
}

.public-card {
  width: min(760px, 96%);
  margin: 0 auto;
  background: #f8fbff;
  border: 1px solid #ced8ea;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 7px 16px rgba(25, 46, 80, 0.1);
}

.public-avatar {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.public-card h1 {
  margin: 0.7rem 0 0;
  color: #102d5b;
}

.public-role,
.public-line,
.public-summary {
  color: #2f4a74;
}

.public-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.public-strengths span {
  background: #dde8fb;
  color: #20416f;
  border: 1px solid #cad7ef;
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
}

.public-actions {
  width: min(760px, 96%);
  margin: 0.8rem auto 0;
}

@media (max-width: 900px) {
  .home-nav {
    flex-wrap: wrap;
  }

  .investors-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-card,
  .investor-card {
    grid-template-columns: 84px 1fr;
  }

  .lead-money,
  .investor-side {
    justify-items: start;
    padding-right: 0;
  }
}
