:root {
  --bg: #f3efe7;
  --card: #ffffff;
  --text: #131313;
  --muted: #6a6a6a;
  --line: #e8e2d8;
  --grad-a: #ff7a18;
  --grad-b: #ff3b5c;
  --grad-c: #8e2de2;
  --success: #0f9d7a;
  --shadow: 0 20px 40px rgba(58, 30, 90, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 8%, #fff4dc 0%, #f3efe7 34%, #efe8dd 100%);
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 300px at 120% -10%, rgba(142, 45, 226, 0.2), transparent),
    radial-gradient(500px 280px at -10% 20%, rgba(255, 122, 24, 0.22), transparent);
  pointer-events: none;
  z-index: -1;
}

.app-shell {
  width: min(760px, 100% - 24px);
  margin: 18px auto 32px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  padding: 0;
}

.hero-cover {
  height: 180px;
  position: relative;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at 25% 10%, rgba(255, 255, 255, 0.12), transparent),
    url('./assets/duda-capa.jpg'),
    linear-gradient(45deg, #2e2a39, #4c1f4e 40%, #6e2b44 100%);
  background-size: cover;
  background-position: center;
}

.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: -36px;
  padding: 0 16px;
}

.cover-stats {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 14px;
  color: #f9f9f9;
  font-size: 0.9rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

.avatar-wrap {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff3f84 0%, #ff8a00 55%, #ffd55a 100%);
  box-shadow: 0 8px 20px rgba(255, 70, 113, 0.36);
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid #fff;
  background-image: url('./assets/duda-capa.jpg');
  background-size: cover;
  background-position: center;
}

.live-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -9px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a18, #ff4d6d, #ffbd55);
  border: 2px solid #fff;
  letter-spacing: 0.3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

h1 {
  font-size: 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 50%;
  color: #ff9d3d;
  border: 2px solid #ff9d3d;
  margin-left: 4px;
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.12);
}

.bio {
  margin: 12px 16px 18px;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.offer,
.plans {
  padding: 16px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff5e9;
  color: #be4e17;
  border: 1px solid #ffd6b4;
  font-weight: 700;
  font-size: 0.82rem;
}

.offer-copy {
  margin: 0;
  line-height: 1.4;
}

.promo-copy-card {
  margin: 10px 0 6px;
  border-radius: 14px;
  border: 1px solid #ece3d6;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.promo-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url('./assets/duda-capa.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid #f0c5ae;
}

.discount-chip {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #167956;
  background: #b9ffd8;
}

.original-price {
  margin: 6px 2px 0 0;
  text-align: right;
  font-size: 0.82rem;
  color: #6f6f6f;
}

.btn-gradient {
  border: 0;
  border-radius: 999px;
  width: 100%;
  padding: 13px 16px;
  color: #fff;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  cursor: pointer;
  box-shadow: 0 14px 22px rgba(255, 66, 73, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px rgba(255, 66, 73, 0.4);
}

.btn-gradient.small {
  width: auto;
  padding: 9px 16px;
  font-size: 0.82rem;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.plan-item {
  border: 1px solid #eddccd;
  background: #fffaf3;
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.plan-item.active {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.18), rgba(142, 45, 226, 0.2));
  border-color: #eb7a89;
}

.feed {
  display: grid;
  gap: 12px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.status-pill {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.status-pill.locked {
  background: #fff5e9;
  color: #be4e17;
}

.status-pill.unlocked {
  background: #e8fff6;
  color: var(--success);
}

.post {
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(30, 20, 40, 0.08);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  background: #fff;
}

.post-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image: url('./assets/duda-capa.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid #f2d1c0;
}

.post-author-meta {
  display: grid;
  line-height: 1.1;
}

.post-author-meta strong {
  font-size: 0.78rem;
  font-family: "Sora", sans-serif;
}

.post-author-meta small {
  color: #787878;
  font-size: 0.67rem;
}

.post-more {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: #555;
  cursor: pointer;
}

.post-media {
  height: 242px;
  position: relative;
  overflow: hidden;
  --post-image: none;
  background-image:
    linear-gradient(140deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.22)),
    var(--post-image),
    linear-gradient(45deg, #3d3148, #5f2d53 40%, #8c4138 100%);
  background-size: cover;
  background-position: center;
}

.post-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.post-media.alt {
  background-image:
    linear-gradient(140deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18)),
    var(--post-image),
    linear-gradient(45deg, #3a3a44, #6f2f45 40%, #9a4d2f 100%);
}

.post-media.locked-blur .post-video {
  filter: blur(13px) saturate(0.8) brightness(0.72);
  transform: scale(1.08);
}

.post-media:not(.locked-blur) .post-video {
  filter: none;
  transform: scale(1);
}

.locked-overlay {
  position: absolute;
  inset: 46px 0 auto;
  height: 242px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(5px);
  background: rgba(15, 14, 19, 0.42);
  padding: 20px;
}

.lock-icon {
  font-size: 1.5rem;
}

.feed-locked .btn-gradient.small {
  width: 195px;
  margin: 0 auto;
  padding: 10px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.6px;
}

.overlay-title {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 2px;
}

.overlay-metrics {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.95;
}

.overlay-cta {
  color: #ffcc8c;
  font-size: 0.68rem;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #ece8e2;
  color: #5f5f5f;
  font-size: 0.7rem;
}

.post-stats {
  padding: 8px 12px 2px;
  font-size: 0.79rem;
  color: #151515;
  font-weight: 600;
}

.post-body {
  padding: 8px 12px 12px;
}

.post-body h3 {
  font-size: 0.88rem;
}

.post-body .muted {
  font-size: 0.76rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 11, 19, 0.68);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal.hidden,
.processing.hidden {
  display: none;
}

.pix-result.hidden {
  display: none;
}

.modal-panel {
  width: min(450px, 100%);
  max-height: calc(100vh - 26px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f0e8da;
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2eee8;
  font-size: 1.2rem;
  cursor: pointer;
}

.signup-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  display: grid;
  gap: 6px;
}

input {
  height: 42px;
  border: 1px solid #ded7ca;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

input:focus {
  outline: 2px solid #ffd0b5;
  border-color: #ff8f63;
}

.summary {
  margin-top: 4px;
  background: #fffaf3;
  border: 1px solid #f0e0cc;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.processing {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
}

.pix-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f0e0cc;
  border-radius: 14px;
  background: #fffaf3;
  display: grid;
  gap: 10px;
}

#pix-code {
  width: 100%;
  min-height: 70px;
  border: 1px solid #ded7ca;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  resize: vertical;
}

.pix-qr {
  width: 190px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #efdfcd;
}

.pix-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-link {
  display: inline-block;
  font-size: 0.84rem;
  color: #2b5db3;
  text-decoration: underline;
  word-break: break-all;
}

.payment-link.hidden {
  display: none;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid #edd7c7;
  border-top-color: #ff6732;
  animation: spin 0.8s linear infinite;
}

.reveal {
  animation: rise 0.5s ease both;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 780px) {
  .app-shell {
    margin-top: 30px;
  }

  .hero-cover {
    height: 220px;
  }
}
