.profile-slot,
.profile-video,
.upload-hit,
.profile-edit-hit,
.profile-action-hit {
  position: absolute;
  z-index: 25;
  box-sizing: border-box;
  border-radius: 12%;
}

.profile-slot,
.profile-video {
  display: none;
  background: transparent;
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
  isolation: isolate;
}

.profile-slot {
  border-radius: 18px;
  clip-path: inset(0 round 18px);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(229, 151, 55, 0.18);
}

.profile-slot > img,
.profile-video > video,
.profile-slot-media,
.profile-video-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  max-width: 100%;
  max-height: 100%;
}

.profile-room-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 32;
  pointer-events: none;
}

.profile-video {
  left: 38.5%;
  top: 46.0%;
  width: 23.0%;
  height: 18.0%;
  z-index: 20;
  border-radius: 18px;
  clip-path: inset(0 round 18px);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(229, 151, 55, 0.16);
}

.slot-main { left: 41.5%; top: 20.5%; width: 17.0%; height: 22.0%; z-index: 15; }
.slot-1 { left: 67.5%; top: 31.0%; width: 17.0%; height: 18.0%; z-index: 10; }
.slot-2 { left: 73.5%; top: 48.5%; width: 18.0%; height: 19.0%; z-index: 9; }
.slot-3 { left: 67.5%; top: 68.5%; width: 17.0%; height: 18.0%; z-index: 8; }
.slot-4 { left: 41.5%; top: 72.5%; width: 17.0%; height: 18.0%; z-index: 8; }
.slot-5 { left: 16.0%; top: 68.5%; width: 17.0%; height: 18.0%; z-index: 8; }
.slot-6 { left: 8.5%; top: 48.5%; width: 18.0%; height: 19.0%; z-index: 9; }
.slot-7 { left: 15.5%; top: 31.0%; width: 17.0%; height: 18.0%; z-index: 10; }

.upload-hit {
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  border: 0;
  color: transparent;
  font-size: 0;
  background: transparent;
}

.upload-mode .upload-hit {
  pointer-events: auto;
  opacity: 1;
  z-index: 44;
  border-radius: 12%;
  background:
    radial-gradient(circle at center, rgba(255, 228, 117, 0.12) 0 22%, rgba(226, 159, 38, 0.06) 42%, rgba(0, 0, 0, 0) 70%);
  box-shadow:
    0 0 8px rgba(255, 218, 87, 0.34),
    0 0 18px rgba(205, 137, 26, 0.22),
    inset 0 0 10px rgba(255, 224, 117, 0.12);
  filter: drop-shadow(0 0 7px rgba(245, 205, 92, 0.28));
}

.upload-mode .upload-hit::file-selector-button {
  display: none;
}

.upload-mode .profile-slot,
.upload-mode .profile-video,
.upload-mode .profile-info-slot {
  box-shadow:
    0 0 10px rgba(245, 205, 92, 0.18),
    inset 0 0 8px rgba(245, 205, 92, 0.10);
}

.profile-edit-hit {
  right: 1.8%;
  top: 7.8%;
  width: 26.5%;
  height: 8.8%;
  z-index: 96;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-hit:active,
.back:active,
.premium-hit:active,
.xxx-hit:active {
  background: radial-gradient(circle at center, rgba(245, 205, 92, 0.36), rgba(245, 205, 92, 0.04) 64%, transparent 78%);
  box-shadow: 0 0 22px rgba(245, 205, 92, 0.7);
}

[data-profile-layer="premium"] .back,
[data-profile-layer="premium"] .profile-edit-hit {
  top: 10.3%;
}

.upload-video {
  left: 38.5%;
  top: 46.0%;
  width: 23.0%;
  height: 18.0%;
}

.upload-1 { left: 67.5%; top: 31.0%; width: 17.0%; height: 18.0%; }
.upload-2 { left: 73.5%; top: 48.5%; width: 18.0%; height: 19.0%; }
.upload-3 { left: 67.5%; top: 68.5%; width: 17.0%; height: 18.0%; }
.upload-4 { left: 41.5%; top: 72.5%; width: 17.0%; height: 18.0%; }
.upload-5 { left: 16.0%; top: 68.5%; width: 17.0%; height: 18.0%; }
.upload-6 { left: 8.5%; top: 48.5%; width: 18.0%; height: 19.0%; }
.upload-7 { left: 15.5%; top: 31.0%; width: 17.0%; height: 18.0%; }

.profile-info-slot {
  position: absolute;
  left: 41.5%;
  top: 20.5%;
  width: 17.0%;
  height: 22.0%;
  z-index: 36;
  box-sizing: border-box;
  padding: 1.4% 1.6% 0.4%;
  display: grid;
  align-content: start;
  gap: 1px;
  color: rgba(156, 87, 38, 0.96);
  font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(239, 168, 73, 0.25),
    0 -1px 0 rgba(22, 7, 2, 0.95),
    1px 0 0 rgba(54, 20, 5, 0.64),
    -1px 0 0 rgba(202, 119, 53, 0.18);
  pointer-events: auto;
  mix-blend-mode: normal;
}

.profile-info-slot > * {
  pointer-events: none;
}

.profile-long-text {
  white-space: pre-wrap;
  overflow: hidden;
  align-content: start;
  padding: 4% 4% 4%;
  font-size: clamp(12px, calc(var(--room-w, 390px) * 0.031), 22px);
  line-height: 1.18;
}

.bio-text {
  top: 18.8%;
  height: 8.8%;
  font-size: clamp(10px, calc(var(--room-w, 390px) * 0.025), 18px);
  line-height: 1.08;
}

.profile-info-name {
  font-size: clamp(14px, calc(var(--room-w, 390px) * 0.039), 29px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info-line {
  display: grid;
  gap: 0;
  font-size: clamp(8px, calc(var(--room-w, 390px) * 0.022), 16px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-info-line span {
  opacity: 0.8;
  font-size: 0.7em;
}

.profile-info-line b {
  font-weight: 700;
  min-height: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-dashboard .profile-info-slot {
  top: 20.5%;
  height: 22.0%;
  padding: 3.6% 1.7% 0.6%;
  align-content: start;
  gap: 2px;
}

.model-dashboard .profile-info-name {
  font-size: clamp(14px, calc(var(--room-w, 390px) * 0.038), 28px);
  line-height: 0.94;
}

.model-dashboard .profile-info-line {
  font-size: clamp(8px, calc(var(--room-w, 390px) * 0.021), 15px);
  line-height: 0.94;
}

.model-dashboard .model-decor-star {
  pointer-events: none !important;
}


.profile-edit {
  position: absolute;
  right: 4.5%;
  top: 15.0%;
  z-index: 80;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-edit button {
  border: 1px solid rgba(245, 205, 92, 0.78);
  background: rgba(0, 0, 0, 0.72);
  color: rgba(245, 225, 166, 0.98);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-menu {
  display: none;
  position: absolute;
  right: 0;
  width: 150px;
  padding: 8px;
  border: 1px solid rgba(245, 205, 92, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.82);
}

.profile-details-hit {
  position: absolute;
  left: 41.5%;
  top: 20.5%;
  width: 17.0%;
  height: 22.0%;
  z-index: 91;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-action-hit {
  z-index: 94;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.profile-action-hit:active {
  opacity: 0.08;
  background: rgba(245, 205, 92, 0.75);
}

.star-hit {
  left: 46.0%;
  top: 22.7%;
  width: 8.2%;
  height: 4.0%;
  border-radius: 999px;
}

.text-me-hit {
  left: 40.5%;
  top: 42.6%;
  width: 19.0%;
  height: 4.6%;
  border-radius: 999px;
}

.premium-hit {
  left: 8.0%;
  top: 88.8%;
  width: 84.0%;
  height: 9.0%;
  border-radius: 8%;
}

.xxx-hit {
  left: 8.0%;
  top: 88.8%;
  width: 84.0%;
  height: 9.0%;
  border-radius: 8%;
}

.premium-text {
  top: 20.5%;
  height: 22.0%;
  font-size: clamp(10px, calc(var(--room-w, 390px) * 0.025), 18px);
  line-height: 1.08;
}

.upload-mode .profile-details-hit {
  pointer-events: auto;
}

.profile-edit.open .profile-edit-menu {
  display: grid;
  gap: 7px;
}

.profile-edit-menu button {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
}

.profile-details-modal {
  display: none;
  position: absolute;
  right: 4.5%;
  top: 14%;
  width: 44%;
  z-index: 90;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(245, 205, 92, 0.52);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.84);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.86);
  font-family: Georgia, "Times New Roman", serif;
}

.profile-details-modal[data-profile-text-modal] {
  top: 32%;
  width: 40%;
}

.profile-details-modal[data-profile-text-modal] textarea {
  min-height: 92px;
}

.profile-details-modal.open {
  display: grid;
  gap: 8px;
}

.profile-details-modal input,
.profile-details-modal select,
.profile-details-modal textarea,
.profile-details-modal button {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(245, 205, 92, 0.48);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(245, 225, 166, 0.98);
  font-family: inherit;
}

.profile-details-modal input,
.profile-details-modal select,
.profile-details-modal textarea {
  padding: 0 10px;
  font-size: 16px;
}

.profile-details-modal textarea {
  min-height: 130px;
  padding: 10px;
  resize: none;
}

.profile-details-modal button {
  font-size: 12px;
  font-weight: 700;
}
