:root {
  --page-bg: #faf7f2;
  --surface: #ffffff;
  --border: #e7ddd2;
  --text: #353535;
  --muted: #706864;
  --accent: #f5a14c;
  --accent-soft: #ffb19e;
  --accent-green: #54b245;
  --lock: #7a88a8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

img,
.protected-media {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
}

.page {
  width: min(100%, 548px);
  margin: 26px auto 0;
  padding: 0 8px 32px;
}

.profile-card,
.media-tabs,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  position: relative;
  height: 98px;
  overflow: hidden;
}

.profile-cover__image,
.profile-cover::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 12, 0.12), rgba(20, 15, 12, 0.18));
}

.profile-stats {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #605a55;
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-stats--below {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.stat-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.stat-item svg {
  width: 14px;
  height: 14px;
}

.profile-body {
  position: relative;
  padding: 44px 10px 10px;
}

.profile-avatar-wrap {
  position: absolute;
  top: -18px;
  left: 10px;
  width: 58px;
  height: 58px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

.profile-avatar,
.post-author__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 3px;
}

.profile-heading h1,
.plans-card h2 {
  margin: 0;
}

.profile-heading h1 {
  font-size: 0.98rem;
  font-weight: 800;
}

.verified-badge {
  width: 16px;
  height: 16px;
  color: #ff8a56;
}

.profile-handle {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-bio {
  margin: 6px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.18;
  color: #4d4844;
}

.read-more {
  margin: 1px 0 8px;
  padding: 0;
  color: #ff8a56;
  font-size: 0.78rem;
  font-weight: 800;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #625b55;
}

.location-row svg {
  width: 14px;
  height: 14px;
}

.social-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.social-pill {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6c625c;
  background: #f6f1ea;
  font-size: 0.82rem;
}

.offer-card {
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: #fcf8f3;
}

.offer-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 800;
}

.offer-title__spark {
  color: #ff944f;
}

.offer-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f2e9df;
  color: #5e5862;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.18;
}

.cta-wrap {
  position: relative;
  margin-top: 10px;
  padding-top: 14px;
}

.discount-badge {
  position: absolute;
  left: 10px;
  top: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-green);
  background: #ebf8da;
}

.subscribe-button,
.plan-option {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a31, #ffbf78 48%, #ff9f94);
  color: #3e2c1d;
}

.subscribe-button {
  height: 36px;
  font-size: 0.92rem;
  font-weight: 800;
}

.price-caption {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #7a736d;
  text-align: right;
}

.plans-card {
  margin-top: 10px;
}

.plans-card h2 {
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.plan-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
}

.pay-trigger:active {
  transform: scale(0.992);
}

.media-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
}

.media-tabs__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  color: #615c58;
  font-size: 0.82rem;
  font-weight: 700;
}

.media-tabs__button + .media-tabs__button {
  border-left: 1px solid #efe5d9;
}

.media-tabs__button svg {
  width: 14px;
  height: 14px;
}

.media-tabs__button--active {
  color: #f09b45;
}

.media-tabs__button--active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  background: #f09b45;
}

.post-card {
  margin-top: 10px;
  overflow: hidden;
}

.post-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 8px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.post-author__avatar {
  width: 28px;
  height: 28px;
}

.post-author__name {
  font-size: 0.72rem;
  font-weight: 800;
}

.post-author__name span {
  color: #ff8a56;
}

.post-author__handle {
  font-size: 0.66rem;
  color: var(--muted);
}

.post-more {
  color: #6d6761;
  font-size: 1rem;
}

.locked-media {
  position: relative;
  display: block;
  height: 258px;
  background: linear-gradient(180deg, #f4ecde 0%, #efe6d8 100%);
  overflow: hidden;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.locked-media__image {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  object-fit: cover;
  filter: blur(11px) saturate(0.95) brightness(0.97);
  transform: scale(1.08);
  pointer-events: none;
}

.locked-media__shape {
  position: absolute;
  inset: -28px 10px -28px 10px;
  z-index: 1;
}

.locked-media__shape::before,
.locked-media__shape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 62%;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.75);
}

.locked-media__shape::before {
  left: -28%;
}

.locked-media__shape::after {
  right: -28%;
}

.locked-media__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  z-index: 1;
}

.lock-wrap {
  position: relative;
  width: 38px;
  height: 32px;
  display: block;
}

.lock-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 15px;
  border: 3px solid var(--lock);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
}

.lock-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 20px;
  border-radius: 7px;
  border: 3px solid var(--lock);
  transform: translateX(-50%);
}

.lock-body::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--lock);
  transform: translateX(-50%);
}

.locked-media__stats {
  display: flex;
  gap: 12px;
  color: #7a879f;
  font-size: 0.7rem;
  font-weight: 700;
}

.locked-media.has-image {
  background-size: cover;
  background-position: center;
}

.locked-media.has-image .locked-media__shape,
.locked-media.has-image .locked-media__center,
.locked-media.has-image .locked-media__image {
  opacity: 0;
}

.pix-modal[hidden] {
  display: none;
}

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.pix-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 30, 18, 0.28);
  backdrop-filter: blur(16px);
}

.pix-modal__card {
  position: relative;
  width: min(100%, 380px);
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(84, 45, 11, 0.18);
}

.pix-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #6a5a4f;
  font-size: 1.35rem;
}

.pix-modal__eyebrow {
  margin: 0;
  color: #f09b45;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pix-modal__title {
  margin: 8px 0 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.pix-modal__price {
  margin: 6px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #2f251d;
}

.pix-modal__qr-wrap {
  display: grid;
  place-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

#pixQrCode {
  width: min(100%, 220px);
  height: auto;
}

.pix-modal__code-label {
  display: block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #6a5a4f;
}

.pix-modal__code {
  width: 100%;
  min-height: 102px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #eddcc8;
  border-radius: 16px;
  resize: none;
  background: rgba(255, 255, 255, 0.86);
  color: #57483d;
  line-height: 1.35;
}

.pix-modal__copy {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a31, #ffbf78 48%, #ff9f94);
  color: #3e2c1d;
  font-size: 0.92rem;
  font-weight: 800;
}

.pix-modal__copy[disabled] {
  opacity: 0.52;
  cursor: wait;
}

.locked-media.has-image:hover .locked-media__shape,
.locked-media.has-image:hover .locked-media__center,
.locked-media.has-image:hover .locked-media__image {
  opacity: 1;
}

.locked-media.has-image:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 21, 18, 0.22);
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #6d6761;
  font-size: 0.88rem;
}

.gallery-section {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.gallery-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gallery-section__header h2 {
  margin: 0;
  font-size: 0.9rem;
}

.gallery-section__header span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7b726b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  border-radius: 10px;
  background: #efe6d8;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(0.96) brightness(0.97);
  transform: scale(1.12);
  pointer-events: none;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(38, 27, 20, 0.12));
  z-index: 1;
}

.gallery-item__badge {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(24, 16, 12, 0.42);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.gallery-item__badge .lock-wrap {
  width: 22px;
  height: 18px;
}

.gallery-item__badge .lock-wrap::before {
  width: 10px;
  height: 9px;
  border-width: 2px;
}

.gallery-item__badge .lock-body {
  width: 18px;
  height: 12px;
  border-width: 2px;
  border-radius: 5px;
}

.gallery-item__badge .lock-body::after {
  top: 3px;
  height: 4px;
}

@media (max-width: 640px) {
  .page {
    margin-top: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
