.portal-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 162, 181, .18), transparent 34%),
    linear-gradient(135deg, #fffaf7 0%, #fff3f6 48%, #fffdfb 100%);
  min-height: 100vh;
}

.portal-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px;
}

.portal-nav {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px 18px;
}

.portal-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-nav nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.portal-hero {
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .9), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 226, 234, .9));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(104, 61, 69, .16);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 430px;
  overflow: hidden;
  padding: 42px;
  position: relative;
}

.business-hero {
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, .86), transparent 28%),
    linear-gradient(135deg, #fff9f5, #ffe8ee 54%, #fffdfb);
}

.portal-hero h1,
.application-shell h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  margin: 12px 0;
}

.portal-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.portal-illustration {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.bear-face {
  animation: portalBreath 4s ease-in-out infinite;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 46% 46% 42% 42%;
  box-shadow: 0 24px 54px rgba(104, 61, 69, .14);
  height: 210px;
  position: relative;
  width: 230px;
}

.bear-face::before,
.bear-face::after {
  background: var(--coral);
  border-radius: 50%;
  content: "";
  height: 15px;
  position: absolute;
  top: 80px;
  width: 15px;
}

.bear-face::before { left: 72px; }
.bear-face::after { right: 72px; }

.bear-face i {
  background: #c89a4d;
  border-radius: 999px;
  height: 24px;
  left: 50%;
  position: absolute;
  top: 112px;
  transform: translateX(-50%);
  width: 38px;
}

.bear-ear {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 90px;
  position: absolute;
  top: 60px;
  width: 90px;
}

.bear-ear.left { left: 54px; }
.bear-ear.right { right: 54px; }

.floating-heart {
  animation: floatHeart 3.5s ease-in-out infinite;
  color: var(--coral);
  font-size: 3rem;
  position: absolute;
  right: 46px;
  top: 48px;
}

.business-illustration .growth-card,
.business-illustration .growth-bag,
.business-illustration .growth-line {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: absolute;
}

.growth-card {
  border-radius: 8px;
  height: 150px;
  left: 60px;
  top: 80px;
  width: 180px;
}

.growth-bag {
  animation: portalBreath 4.2s ease-in-out infinite;
  border-radius: 8px 8px 34px 34px;
  bottom: 78px;
  height: 155px;
  right: 70px;
  width: 145px;
}

.growth-bag::before {
  border: 12px solid var(--coral);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
  height: 42px;
  left: 34px;
  position: absolute;
  top: -34px;
  width: 56px;
}

.growth-line {
  background: transparent;
  border: 0;
  border-bottom: 12px solid var(--gold);
  border-right: 12px solid var(--gold);
  height: 120px;
  left: 104px;
  top: 130px;
  transform: rotate(-18deg);
  width: 170px;
}

.portal-band,
.application-shell {
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 22px 0;
  padding: 28px;
}

.certificate-band {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.certificate-band p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 720px;
}

.portal-tools {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.portal-tools .input {
  max-width: 520px;
}

.portal-mini-grid,
.adoption-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.portal-info-card,
.adoption-card {
  background: linear-gradient(180deg, #fff, #fff3f6);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(104, 61, 69, .1);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.portal-filter-card {
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.portal-filter-card:hover,
.portal-filter-card.active {
  border-color: rgba(229, 111, 136, .45);
  box-shadow: 0 18px 42px rgba(104, 61, 69, .14);
  transform: translateY(-3px);
}

.portal-filter-card.active {
  background: linear-gradient(180deg, #fff, #ffe5ec);
}

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

.business-product-card {
  align-content: start;
}

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

.commercial-notes .portal-info-card {
  box-shadow: none;
  padding: 12px;
}

.adoption-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
}

.adoption-photo-stack img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  width: 100%;
}

.certificate-preview {
  display: grid;
  gap: 6px;
}

.certificate-preview small {
  color: var(--muted);
}

.process-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.process-steps strong {
  color: var(--coral);
  display: block;
  font-size: 1.8rem;
}

.progress-track {
  background: #ffe5eb;
  border-radius: 999px;
  height: 12px;
  margin: 16px 0 22px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--coral), var(--gold));
  display: block;
  height: 100%;
  transition: width .25s ease;
  width: 20%;
}

.portal-wizard {
  display: grid;
  gap: 14px;
}

@keyframes portalBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .8; }
  50% { transform: translateY(-16px) rotate(8deg); opacity: 1; }
}

@media (max-width: 780px) {
  .portal-nav,
  .portal-hero,
  .adoption-detail {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero {
    padding: 26px;
  }

  .certificate-band,
  .portal-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-tools .input {
    max-width: none;
  }

  .portal-illustration {
    max-width: 310px;
    justify-self: center;
    width: 100%;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}
