* {
  box-sizing: border-box;
}

:root {
  --pink: #f5188d;
  --pink-dark: #e10c79;
  --black: #000;
  --panel: #24262f;
  --white: #fff;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #000;
  min-height: 100vh;
}

/* PROFILE */

.profile {
  padding: 34px 7.5% 54px;
  background: #000;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 190px;
}

.avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow:
    0 0 10px var(--pink),
    0 0 35px rgb(245, 24, 135);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #5b164e, #17121b);
  color: #ddd;
  font-size: 20px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.avatar:active,
.avatar:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 14px rgba(255, 90, 180, 0.9),
    0 0 38px rgba(245, 24, 141, 0.8),
    0 0 60px rgba(245, 24, 141, 0.6);
  filter: brightness(1.08) saturate(1.12);
}

.online {
  position: absolute;
  right: 5px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #16e000;
  border: 3px solid #000;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-info h1 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.profile-info h1 > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag {
  font-size: .65em;
  line-height: 1;
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5140ed;
  font-size: 17px;
  line-height: 1;
  vertical-align: middle;
}

.stars {
  color: #ffae00;
  font-size: 31px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  line-height: 1;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.stat strong,
.stat small {
  display: block;
}

.stat strong {
  font-size: 25px;
}

.stat small {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}

.promo-banner {
  margin: 70px auto 50px;
  width: 70%;
  min-height: 175px;
  border: 3px solid var(--pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 30%, #6e246d, transparent 40%),
    radial-gradient(circle at 80% 70%, #4b1b60, transparent 40%),
    #3b1d45;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: clamp(45px, 8vw, 82px);
  line-height: .8;
  letter-spacing: -3px;
}

.promo-banner span {
  font-size: .55em;
  margin-top: 15px;
  letter-spacing: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.action-btn {
  width: 100%;
  height: 82px;
  border: 2px solid rgb(255, 254, 254);
  border-radius: 18px;
  background: linear-gradient(135deg, #ff2a9c00, #d1007000);
  color: white;
  font-size: clamp(20px, 4vw, 31px);
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(245, 24, 141, 0.7),
    0 0 42px rgba(245, 24, 141, 0.45);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.action-btn:hover {
  background: linear-gradient(135deg, #ff43b0, #e4007c);
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 24px rgba(245, 24, 141, 0.9),
    0 0 54px rgba(245, 24, 141, 0.65);
  filter: saturate(1.15);
}

.action-btn:active {
  transform: scale(.98);
}

.promo-banner-link {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}

.promo-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 244px;
  object-fit: cover;
}

/* MEDIA */

.media-card {
  width: 100%;
  background: #000;
  padding: 0 0 18px;
}

.gallery-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 14px 32px rgba(0,0,0,0.38);
}

.gallery-track {
  display: flex;
  width: 400%;
  animation: gallerySlide 12s infinite ease-in-out;
}

.gallery-slide {
  flex: 0 0 25%;
  width: 25%;
  aspect-ratio: 1.2 / 1;
  border: 0;
  margin: 0;
  padding: 0;
  background: #111;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gallery-slide:active,
.gallery-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(255, 78, 170, 0.65), 0 0 28px rgba(255, 78, 170, 0.45);
  filter: brightness(1.08) saturate(1.12);
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes gallerySlide {
  0%, 20% {
    transform: translateX(0%);
  }
  25%, 45% {
    transform: translateX(-25%);
  }
  50%, 70% {
    transform: translateX(-50%);
  }
  75%, 95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0%);
  }
}

footer {
  padding: 90px 20px 40px;
  text-align: center;
  color: #555;
  font-size: 22px;
}

/* POPUP */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .70);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.ad-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #24262f;
  padding: 58px 7% 72px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,.65);
  transform: translateY(15px) scale(.98);
  transition: transform .2s ease;
}

.modal-backdrop.show .ad-modal {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 3px solid white;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 34px;
  line-height: 34px;
  cursor: pointer;
}

.ad-modal h2 {
  margin: 0 0 42px;
  color: var(--pink);
  font-size: clamp(35px, 8vw, 60px);
  font-weight: 400;
}

.ad-lead {
  margin: 0 0 12px;
  font-size: clamp(19px, 4vw, 28px);
}

.steps {
  font-size: clamp(17px, 3.5vw, 25px);
  line-height: 1.5;
  color: #eee;
  margin-bottom: 38px;
}

.ad-image {
  width: min(78%, 420px);
  aspect-ratio: 1.2;
  margin: 0 auto 35px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #321b86, #15104e);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.ad-image-content {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-image-text {
  color: white;
  font-size: clamp(28px, 7vw, 50px);
  line-height: .9;
  font-weight: 900;
}

.join-btn {
  width: 100%;
  height: 112px;
  border: 0;
  border-radius: 60px;
  background: #f2f2f2;
  color: #292a2d;
  font-size: clamp(25px, 5vw, 39px);
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.join-btn:hover {
  background: white;
  transform: scale(1.01);
}

.join-btn:active {
  transform: scale(.98);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 840px) {
  .profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .profile-info {
    width: 100%;
  }

  .profile-info h1 {
    justify-content: center;
    white-space: normal;
    line-height: 1.1;
    gap: 8px;
  }

  .stars {
    text-align: center;
  }

  .stats {
    justify-content: center;
    gap: 12px;
  }

  .stat {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page {
    max-width: 100%;
  }

  .profile {
    padding: 22px 7.5% 48px;
  }

  .avatar-wrap {
    flex-basis: 145px;
  }

  .avatar {
    width: 145px;
    height: 145px;
    font-size: 15px;
  }

  .online {
    width: 24px;
    height: 24px;
  }

  .profile-info h1 {
    font-size: clamp(22px, 7vw, 32px);
  }

  .flag {
    font-size: .8em;
  }

  .verified {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .stars {
    font-size: 25px;
    margin-bottom: 18px;
  }

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

  .stat {
    gap: 7px;
    justify-content: center;
    text-align: center;
  }

  .stat-icon {
    font-size: 31px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat small {
    font-size: 15px;
  }

  .promo-banner {
    width: 83%;
    min-height: 135px;
    margin: 55px auto 50px;
    font-size: 48px;
  }

  .actions {
    gap: 42px;
  }

  .action-btn {
    height: 76px;
    font-size: clamp(17px, 5vw, 24px);
    padding: 0 18px;
  }

  .gallery-frame {
    border-radius: 14px;
  }

  .gallery-slide {
    aspect-ratio: 1.05 / 4;
  }

  .ad-modal {
    padding: 54px 7% 52px;
  }

  .ad-modal h2 {
    margin-bottom: 34px;
  }

  .ad-image {
    width: 88%;
  }

  .join-btn {
    height: 92px;
  }
}

@media (max-width: 420px) {
  .profile {
    padding-left: 18px;
    padding-right: 18px;
  }

  .action-btn {
    height: 68px;
    border-radius: 22px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    min-width: 0;
  }

  footer {
    padding-top: 50px;
    font-size: 18px;
  }
}


/* Make every content target behave like the screen-recording CTA */
.avatar-button,
.stat-button,
.media-button,
.footer-btn {
  font: inherit;
  color: inherit;
}

.avatar-button {
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.stat-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.media-button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #fff;
}

.footer-btn {
  border: 0;
  background: transparent;
  color: #555;
  font-size: inherit;
  cursor: pointer;
  padding: 4px 8px;
}

.footer-btn:hover {
  color: #aaa;
}

.avatar-button { overflow:hidden; padding:0; cursor:pointer; }
.avatar-button img { width:100%; height:100%; display:block; object-fit:cover; border-radius:50%; }
