/* =========================================================
   WowChicas — Model Profile (/models/{slug})
   ========================================================= */

.model-profile {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- Stream block ---------- */
.model-stream {
  margin: 0 -16px 32px;
  background: #121218;
  color: #f0eef3;
}

.model-stream__inner {
  min-height: 0;
  height: auto;
  border: 0;
}

.model-stream__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  padding: 0;
}

.model-stream__video,
.model-stream__chat {
  border-radius: 0;
  border: 0;
}

.model-stream__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  min-height: 0;
}

.model-stream__stage .studio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.model-stream__chat {
  min-height: 420px;
  max-height: calc(56.25vw + 120px);
  border-left: 1px solid rgba(255,255,255,.08);
  background: #1a1a24;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .model-stream__grid {
    grid-template-columns: 1fr;
  }
  .model-stream__chat {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    min-height: 360px;
    max-height: none;
  }
}

/* Stream player controls */
.room__playbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.room__playbar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(0,0,0,.62);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.room__playbar button:hover {
  background: rgba(255,125,90,.32);
  border-color: rgba(255,125,90,.6);
}

.room__playbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.room__playbar .room__watch-play { display: none; }
.room__playbar .is-stopped .room__watch-stop { display: none; }
.room__playbar .is-stopped .room__watch-play { display: block; }
.room__playbar .room__sound-off { display: none; }
.room__playbar .is-muted .room__sound-wave { display: none; }
.room__playbar .is-muted .room__sound-off { display: block; }

.bonga__stage:fullscreen,
.bonga__stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.bonga__stage:fullscreen .studio-video,
.bonga__stage:-webkit-full-screen .studio-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Stream overlay */
.studio-stage__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(231,76,60,.4);
}

.studio-stage__idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-weight: 600;
  background: radial-gradient(circle at 30% 20%, rgba(255,125,90,.12), transparent 45%), #0d0d12;
  z-index: 5;
}

.studio-stage__idle.is-hidden { display: none; }

.room__private-cover {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.room__overlay {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  pointer-events: none;
}

.room__overlay > * { pointer-events: auto; }

.room__overlay-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.room__name {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.room__topic {
  margin: 6px 0 0;
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  max-width: 520px;
}

.room__topic[hidden] { display: none; }

.room__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: rgba(255,255,255,.8);
  font-size: .84rem;
  flex-shrink: 0;
}

.room__live {
  color: #2ecc71;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.room__viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}

.room__viewers strong { color: #fff; }

.room__goal {
  max-width: 520px;
}

.room__goal[hidden] { display: none; }

.room__goal-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f3d48a;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.room__goal-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

.room__goal-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e0b15a, #ff7d5a);
}

/* Chat */
.bonga__topic {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  background: #121218;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.62);
  font-size: .86rem;
}

.bonga__topic strong {
  color: #ffb199;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.studio-chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  line-height: 1.4;
}

.studio-chat__row {
  line-height: 1.35;
  word-break: break-word;
  margin-bottom: 6px;
}

.studio-chat__row strong {
  color: #ffb199;
  margin-right: 4px;
}

.studio-chat__row--host strong {
  color: #ff7d9a;
}

.studio-chat__row--tip {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(224,177,90,.16);
  color: #f3d48a;
  font-weight: 700;
}

.room__king {
  margin: 0 12px 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(224,177,90,.16);
  border: 1px solid rgba(224,177,90,.32);
  color: #f3d48a;
  font-size: .82rem;
  font-weight: 800;
}

.room__king[hidden] { display: none; }

.room__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: #121218;
  border-top: 1px solid rgba(255,255,255,.08);
}

.room__menu[hidden] { display: none; }

.room__tip--menu {
  padding: 6px 10px;
  min-height: 0;
  font-size: .78rem;
  background: rgba(255,125,90,.12);
  border: 1px solid rgba(255,125,90,.32);
  color: #ffb199;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.room__tip--menu:hover {
  background: rgba(255,125,90,.24);
  color: #fff;
}

.room__tips {
  padding: 12px;
  background: #121218;
  border-top: 1px solid rgba(255,255,255,.08);
}

.room__tips[hidden] { display: none; }

.room__tips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.room__tip,
.room__tip-toggle {
  min-height: 38px;
  border: 1px solid rgba(224,177,90,.4);
  background: rgba(224,177,90,.1);
  color: #f3d48a;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s ease;
}

.room__tip:hover,
.room__tip-toggle:hover,
.room__tip-toggle.is-on {
  background: rgba(224,177,90,.25);
  border-color: #f3d48a;
  color: #fff;
}

.room__balance {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.62);
}

.room__balance strong { color: #fff; }
.room__balance a { color: #ff7d5a; font-weight: 800; }

.room__private-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(240,180,196,.32);
  background: rgba(240,180,196,.12);
  color: #f6d5e2;
  font-size: .84rem;
}

.room__private-bar[hidden] { display: none; }

.room__private-bar button {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}

.room__composer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #121218;
}

.studio-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.studio-chat__form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 0 12px;
  background: #121218;
  color: #fff;
  font-size: .9rem;
}

.studio-chat__form input::placeholder {
  color: rgba(255,255,255,.42);
}

.studio-chat__form button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--peach);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.studio-chat__form button[type="submit"]:hover {
  background: var(--peach-dark);
}

.room__actions {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.room__private-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(240,180,196,.4);
  background: rgba(240,180,196,.1);
  color: #f6d5e2;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-size: .82rem;
  line-height: 1.15;
}

.room__private-btn small {
  font-size: .68rem;
  font-weight: 700;
  opacity: .8;
}

.room__private-btn:hover,
.room__private-btn.is-on {
  background: rgba(240,180,196,.22);
  color: #fff;
}

.room__private-btn:disabled {
  opacity: .55;
  cursor: default;
}

.room__guest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.room__guest p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}

.room__guest a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--peach);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.room__guest a:hover {
  background: var(--peach-dark);
}

/* ---------- Hero ---------- */
.model-hero {
  margin-bottom: 32px;
}

.model-hero__cover {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}

.model-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.28) 55%, transparent 100%);
}

.model-hero__content {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 28px;
  width: 100%;
  flex-wrap: wrap;
}

.model-hero__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  flex-shrink: 0;
}

.model-hero__info {
  flex: 1;
  min-width: 220px;
  color: #fff;
}

.model-hero__name {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.model-hero__username {
  margin: 0 0 12px;
  opacity: .85;
  font-size: .95rem;
  font-weight: 600;
}

.model-hero__bio {
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 620px;
  font-size: .95rem;
}

.model-hero__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.model-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.model-hero__stat svg {
  flex-shrink: 0;
  opacity: .9;
}

.model-hero__stat--price {
  background: rgba(255,125,90,.28);
}

.model-hero__stat--free {
  background: rgba(46,200,98,.22);
}

.model-hero__stat--live {
  background: rgba(231,76,60,.32);
}

.model-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: model-live-pulse 1.6s infinite;
}

@keyframes model-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.25); }
}

.model-hero__actions {
  flex-shrink: 0;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,125,90,.35);
}

.btn--primary:hover {
  background: var(--peach-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255,125,90,.45);
}

.btn--subscribed {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  cursor: default;
}

.btn--live {
  background: #e74c3c;
  color: #fff;
  animation: model-btn-live 2s infinite;
}

@keyframes model-btn-live {
  0% { box-shadow: 0 0 0 0 rgba(231,76,60,.5); }
  70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

/* ---------- Section titles ---------- */
.model-section-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--peach), transparent);
}

/* ---------- Gallery ---------- */
.model-gallery {
  margin-bottom: 40px;
}

.model-gallery__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 24px 0 12px;
}

.model-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.model-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.model-gallery__item img,
.model-gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-gallery__item--locked {
  cursor: pointer;
}

.model-gallery__item--locked img,
.model-gallery__item--locked video {
  filter: blur(12px) brightness(.75);
  transform: scale(1.08);
}

.model-gallery__unlock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background: var(--peach);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}

.model-gallery__unlock:hover {
  background: var(--peach-dark);
}

.model-gallery__paid {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

/* ---------- Posts ---------- */
.model-posts {
  max-width: 860px;
  margin: 0 auto;
}

.model-posts__empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: var(--bg-card);
  color: var(--text-muted);
}

.model-posts__empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: .6;
}

.model-posts__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.model-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.model-post__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: .82rem;
  color: var(--text-muted);
}

.model-post__badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.model-post__badge--free {
  background: rgba(46,200,98,.14);
  color: var(--green-dark);
}

.model-post__badge--subscribers {
  background: rgba(255,125,90,.14);
  color: var(--peach-dark);
}

.model-post__badge--paid {
  background: rgba(240,180,41,.16);
  color: #b7791f;
}

.model-post__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.model-post__body {
  line-height: 1.65;
  margin-bottom: 16px;
  color: var(--text);
  white-space: pre-wrap;
}

.model-post__media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.model-post__media img,
.model-post__media video {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 420px;
  border: 1px solid var(--border);
}

.model-post__locked {
  position: relative;
}

.model-post__blur {
  filter: blur(10px);
  opacity: .55;
  user-select: none;
  pointer-events: none;
  max-height: 140px;
  overflow: hidden;
  color: var(--text);
}

.model-post__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 16px;
}

[data-theme="dark"] .model-post__lock-overlay {
  background: rgba(18,18,24,.82);
}

.model-post__lock-overlay p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .model-hero__cover {
    min-height: 400px;
  }
  .model-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .model-hero__avatar {
    width: 96px;
    height: 96px;
  }
  .model-hero__actions {
    margin-left: 0;
    width: 100%;
  }
  .model-hero__actions .btn,
  .model-hero__actions form,
  .model-hero__actions button {
    width: 100%;
  }
  .model-hero__actions form {
    display: block;
  }
  .model-hero__actions button {
    display: flex;
  }
  .model-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-post {
    padding: 16px;
  }
}
