.edit-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.edit-profile-preview-trigger {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(68, 193, 255, 0.46);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 92, 145, 0.58), rgba(24, 33, 54, 0.94));
  color: #e8f7ff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 8, 18, 0.24);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.edit-profile-preview-trigger > span {
  color: #58ceff;
  font-size: 17px;
  line-height: 1;
}

.edit-profile-preview-trigger:hover {
  border-color: #57d0ff;
  background: linear-gradient(135deg, rgba(19, 111, 174, 0.72), rgba(24, 33, 54, 0.98));
  transform: translateY(-1px);
}

.edit-profile-preview-trigger:focus-visible,
.profile-edit-preview-close:focus-visible,
.profile-edit-preview-done:focus-visible {
  outline: 2px solid #5ed2ff;
  outline-offset: 3px;
}

.profile-edit-preview-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) 14px
    max(14px, env(safe-area-inset-bottom));
  background: rgba(3, 8, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-edit-preview-dialog {
  display: flex;
  width: min(100%, 540px);
  max-height: min(94dvh, 960px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(120, 168, 209, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top right, rgba(39, 114, 164, 0.18), transparent 42%),
    #0b111a;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
}

.profile-edit-preview-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 10px;
}

.profile-edit-preview-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #55cafa;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.profile-edit-preview-header h2 {
  margin: 0;
  color: #f4f8fc;
  font-size: 20px;
  line-height: 1.15;
}

.profile-edit-preview-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(156, 180, 204, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #e3edf7;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}

.profile-edit-preview-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 20px 13px;
  color: #aebdce;
  font-size: 12px;
  line-height: 1.45;
}

.profile-edit-preview-card-host {
  min-height: 0;
  overflow: auto;
  padding: 0 16px 18px;
  overscroll-behavior: contain;
}

.profile-edit-preview-card.profile-panel {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  isolation: isolate;
  border-radius: 22px !important;
}

.profile-edit-preview-card.profile-panel > .profile-panel-background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.profile-edit-preview-card.profile-panel[data-has-profile-background-video="true"]
  > .profile-panel-background-video {
  display: block;
}

.profile-edit-preview-card.profile-panel > .profile-panel-inner {
  position: relative;
  z-index: 2;
}

.profile-edit-preview-card.profile-panel::before {
  z-index: 1;
}

.profile-edit-preview-card .profile-edit-preview-photo {
  width: 110px;
  height: 110px;
  border: 3px solid #ff315b;
  border-radius: 50%;
  object-fit: cover;
}

.profile-edit-preview-card .profile-edit-preview-online-dot {
  position: absolute;
  right: 5px;
  bottom: 7px;
  width: 17px;
  height: 17px;
  border: 3px solid #0d1016;
  border-radius: 50%;
  background: #31e6b6;
}

.profile-edit-preview-card .profile-edit-preview-name {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.4px;
  text-align: center;
}

.profile-edit-preview-card .profile-edit-preview-bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-edit-preview-card .profile-about-read-more[hidden] {
  display: none !important;
}

.profile-edit-preview-card .profile-edit-preview-activity {
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  background: #151922;
  color: #ff6684;
  font-weight: 800;
}

.profile-edit-preview-card .profile-edit-preview-interests {
  max-height: 112px;
  justify-content: center;
  padding: 9px;
  margin-top: 9px;
  overflow-y: auto;
  border: 1px solid rgba(150, 164, 193, 0.25);
  border-radius: 12px;
  background: rgba(8, 12, 21, 0.38);
}

.profile-edit-preview-card .profile-edit-preview-interests span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 77, 168, 0.78);
  border-radius: 20px;
  background: rgba(19, 18, 31, 0.72);
  color: #f0dced;
  font-size: 11px;
  font-weight: 700;
}

.profile-edit-preview-card .profile-edit-preview-message {
  min-height: 47px;
  margin-top: 18px;
  border: 1px solid rgba(255, 67, 143, 0.85);
  border-radius: 10px;
  background: linear-gradient(100deg, #ff315b 0%, #e82b9c 53%, #a828ee 100%);
  box-shadow: 0 9px 22px rgba(224, 31, 135, 0.27);
  color: #fff;
  opacity: 0.78;
}

.profile-edit-preview-card.profile-panel > .profile-close {
  display: none !important;
}

.profile-edit-preview-card .profile-info-value {
  overflow-wrap: anywhere;
}

.profile-edit-preview-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(133, 157, 180, 0.14);
  color: #aebdce;
  font-size: 11px;
}

.profile-edit-preview-done {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(68, 193, 255, 0.4);
  border-radius: 10px;
  background: rgba(22, 104, 154, 0.28);
  color: #eaf8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

@media (max-width: 600px) {
  .edit-profile-header {
    flex-direction: column;
    align-items: stretch;
  }

  .edit-profile-preview-trigger {
    width: 100%;
  }

  .profile-edit-preview-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .profile-edit-preview-dialog {
    width: 100%;
    max-height: 96dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }

  .profile-edit-preview-header {
    padding: 16px 16px 8px;
  }

  .profile-edit-preview-status {
    padding: 0 16px 11px;
  }

  .profile-edit-preview-card-host {
    padding: 0 10px 14px;
  }

  .profile-edit-preview-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edit-profile-preview-trigger {
    transition: none;
  }
}