.profile-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--profile-accent, #613fe7) 18%, transparent), transparent),
    linear-gradient(165deg, #f8f7ff 0%, #eef2ff 45%, #f1f5f9 100%);
  color: #1e1b4b;
}

.profile-page__main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  gap: 1.25rem;
}

.profile-portrait {
  width: min(100%, 320px);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(15, 10, 26, 0.04),
    0 24px 64px rgba(97, 63, 231, 0.16);
  display: flex;
  flex-direction: column;
}

.profile-portrait__head {
  text-align: center;
  padding: 1.35rem 1.25rem 0.85rem;
  background: linear-gradient(
    160deg,
    var(--profile-accent, #613fe7),
    color-mix(in srgb, var(--profile-accent, #613fe7) 72%, #1e1b4b)
  );
  color: #fff;
}

.profile-portrait__logo {
  height: 36px;
  width: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.profile-portrait__company {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-portrait__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.88;
}

.profile-portrait__accent {
  height: 5px;
  background: color-mix(in srgb, var(--profile-accent, #613fe7) 85%, #fff);
}

.profile-portrait__photo-wrap {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.25rem 0.5rem;
  margin-top: -1.5rem;
}

.profile-portrait__photo {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(15, 10, 26, 0.14);
}

.profile-portrait__photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--profile-accent, #613fe7);
}

.profile-portrait__identity {
  text-align: center;
  padding: 0.35rem 1.25rem 0.75rem;
}

.profile-portrait__name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1e1b4b;
}

.profile-portrait__role {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.profile-portrait__handle {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--profile-accent, #613fe7);
}

.profile-portrait__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem 0.75rem;
}

.profile-portrait__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--profile-accent, #613fe7);
  background: color-mix(in srgb, var(--profile-accent, #613fe7) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--profile-accent, #613fe7) 22%, #e2e8f0);
}

.profile-portrait__action .material-icons {
  font-size: 1rem;
}

.profile-portrait__action--wa {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.profile-portrait__details {
  padding: 0.5rem 1.15rem;
  border-top: 1px solid #f1f5f9;
}

.profile-portrait__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
  border-bottom: 1px solid #f8fafc;
}

.profile-portrait__row:last-child {
  border-bottom: none;
}

.profile-portrait__row .material-icons {
  font-size: 1.05rem;
  color: var(--profile-accent, #613fe7);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.profile-portrait__biz {
  margin-top: auto;
  padding: 0.85rem 1.15rem 1.1rem;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.profile-portrait__biz-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.profile-portrait__biz-title .material-icons {
  font-size: 0.95rem;
}

.profile-portrait__biz-line {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.profile-portrait__biz-line .material-icons {
  font-size: 0.9rem;
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.profile-portrait__biz-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--profile-accent, #613fe7);
  text-decoration: none;
}

.profile-page__home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 10, 26, 0.06);
}

.profile-page__home .material-icons {
  font-size: 1rem;
}

.profile-not-found {
  width: min(100%, 360px);
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 10, 26, 0.1);
}

.profile-not-found__icon {
  font-size: 3rem;
  color: #94a3b8;
}

.profile-not-found__title {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-not-found__text {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.92rem;
}

.profile-portrait__branch {
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f7;
}

.profile-portrait__branch:last-of-type {
  border-bottom: none;
}

.profile-portrait__branch-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--profile-accent, #613fe7);
  letter-spacing: 0.03em;
}

.profile-portrait__biz-line--hq {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
}

.profile-fab-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 40;
}

.profile-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 10, 26, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 10, 26, 0.24);
  color: #fff;
}

.profile-fab .material-icons {
  font-size: 1.35rem;
}

.profile-fab--share {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.profile-fab--vcard {
  background: linear-gradient(145deg, var(--profile-accent, #613fe7), color-mix(in srgb, var(--profile-accent, #613fe7) 70%, #1e1b4b));
}

.profile-share-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.profile-share-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.profile-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 26, 0.45);
  backdrop-filter: blur(4px);
}

.profile-share-modal__panel {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 24px 64px rgba(15, 10, 26, 0.22);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.profile-share-modal.is-open .profile-share-modal__panel {
  transform: translateY(0);
}

.profile-share-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-share-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e1b4b;
}

.profile-share-modal__intro {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}

.profile-share-modal__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.profile-share-modal__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 0.85rem;
}

.profile-share-modal__field .material-icons {
  font-size: 1.1rem;
  color: #94a3b8;
}

.profile-share-modal__field input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e1b4b;
  outline: none;
  min-width: 0;
}

.profile-share-modal__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #25d366, #128c7e);
  cursor: pointer;
}

@media (min-width: 520px) {
  .profile-share-modal {
    align-items: center;
  }

  .profile-share-modal__panel {
    border-radius: 20px;
  }
}
