/* ReelsFans — interface focada no celular, fundo preto. */

:root {
  --bg: #000;
  --surface: #121214;
  --surface-2: #1c1c20;
  --surface-3: #26262b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  /* Cores da marca (roxo da logo). */
  --brand-1: #6a1bf0;
  --brand-2: #ab42fc;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --brand-glow: 123, 47, 247;
  --like: #ff2e63;
  --ok: #2ee59d;
  --warn: #ffc247;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-fill,
.ic .ic-solid {
  fill: currentColor;
  stroke: none;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ---- Estrutura -------------------------------------------------------------- */

.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* Tablet/computador: coluna no formato de celular, centralizada. */
@media (min-width: 600px) {
  .app {
    width: min(100%, max(360px, calc(100dvh * 0.5625)));
    border-left: 1px solid #111;
    border-right: 1px solid #111;
  }
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: calc(var(--safe-top) + 10px) 12px 28px;
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.topbar-logo {
  height: 40px;
  width: auto;
  visibility: hidden;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.topbar-logo.is-visible {
  visibility: visible;
}

.feed-root {
  position: absolute;
  inset: 0;
}

/* ---- Abertura (logo) ------------------------------------------------------------ */

.splash {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
}

.splash-logo {
  width: min(82%, 380px);
  height: auto;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

.splash.is-done {
  opacity: 0;
  transition: opacity 0.2s;
}

/* ---- Confirmação de idade ---------------------------------------------------------- */

.age-gate {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top) + 24px) 22px calc(var(--safe-bottom) + 24px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--brand-glow), 0.28), transparent 60%),
    radial-gradient(100% 50% at 50% 100%, rgba(171, 66, 252, 0.14), transparent 60%), #000;
  transition: opacity 0.26s ease;
}

.age-gate.is-leaving {
  opacity: 0;
}

.age-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: rise 0.5s var(--ease) both;
}

.age-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--brand);
  box-shadow: 0 10px 40px rgba(var(--brand-glow), 0.5);
}

.age-card h1 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.age-card > p {
  color: var(--muted);
  margin: 0 0 26px;
}

.age-card .btn + .btn {
  margin-top: 10px;
}

.age-card .age-note {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--faint);
}

.age-error {
  color: #ff8a8a;
  font-size: 13px;
  margin-top: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---- Botões ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition:
    transform 0.12s ease,
    opacity 0.2s;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
}

.btn .ic {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 26px rgba(var(--brand-glow), 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  min-height: 54px;
  font-size: 17px;
}

.btn.is-loading {
  color: transparent;
  position: relative;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.icon-btn-spacer {
  width: 40px;
}

.link-btn {
  display: block;
  margin: 14px auto 0;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--muted);
}

.link-btn u {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

/* ---- Feed --------------------------------------------------------------------------- */

.feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #0a0a0a;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  contain: strict;
}

.slide-media,
.slide-poster,
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-poster,
.slide-video {
  object-fit: cover;
}

.slide-video {
  opacity: 0;
  transition: opacity 0.18s ease;
  background: transparent;
}

.slide.is-playing .slide-video,
.slide.is-paused .slide-video {
  opacity: 1;
}

.slide-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.slide-paused {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(1.3);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

.slide-paused .ic {
  width: 72px;
  height: 72px;
}

.slide.is-paused .slide-paused {
  opacity: 1;
  transform: scale(1);
}

.slide-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  animation: spin 0.8s linear infinite;
  transition: opacity 0.2s;
}

.slide.is-buffering .slide-spinner {
  opacity: 1;
}

.slide-info {
  position: absolute;
  left: 16px;
  right: 84px;
  bottom: calc(var(--safe-bottom) + 22px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.slide-info button {
  pointer-events: auto;
  text-align: left;
}

.info-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.info-user {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.info-caption {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-caption b {
  font-weight: 700;
}

.verified {
  display: inline-grid;
  color: #3aa0ff;
}

.verified .ic {
  width: 16px;
  height: 16px;
}

.verified .ic-check {
  stroke: #fff;
  stroke-width: 2.2;
}

.rail {
  position: absolute;
  right: 8px;
  bottom: calc(var(--safe-bottom) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rail-avatar {
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

.rail-avatar:active {
  transform: scale(0.92);
}

.rail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.rail-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  transition: transform 0.12s;
}

.rail-btn:active .rail-ic {
  transform: scale(0.88);
}

.rail-ic .ic {
  width: 34px;
  height: 34px;
}

.rail-count {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
}

.rail-like.is-liked {
  color: var(--like);
}

.rail-like.is-liked .rail-count {
  color: #fff;
}

.rail-sound .ic {
  width: 30px;
  height: 30px;
}

.rail-sound .when-muted,
.app.is-muted .rail-sound .when-sound {
  display: none;
}

.app.is-muted .rail-sound .when-muted {
  display: grid;
}

.app.is-sound-blocked .slide.is-playing .rail-sound .rail-ic {
  animation: pulse 1.6s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.slide-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--safe-bottom);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.slide-progress i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
}

.slide.is-playing .slide-progress,
.slide.is-paused .slide-progress {
  opacity: 1;
}

.heart-burst {
  position: absolute;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  color: var(--like);
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(255, 46, 99, 0.5));
  animation: heart-burst 0.85s var(--ease) forwards;
}

.heart-burst .ic {
  width: 100%;
  height: 100%;
}

@keyframes heart-burst {
  0% {
    opacity: 0;
    transform: rotate(var(--tilt)) scale(0.3);
  }
  18% {
    opacity: 1;
    transform: rotate(var(--tilt)) scale(1.12);
  }
  32% {
    transform: rotate(var(--tilt)) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: rotate(var(--tilt)) scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--tilt)) scale(1.2) translateY(-60px);
  }
}

/* Vídeo bloqueado (limite gratuito / conteúdo exclusivo) */

.slide.is-locked .slide-poster {
  filter: blur(22px) brightness(0.55);
  transform: scale(1.15);
}

.slide.is-locked .slide-info,
.slide.is-locked .rail-btn:not(.rail-like) {
  opacity: 0.55;
}

.slide-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px 190px;
  text-align: center;
}

/* Estreito o suficiente para não encostar na coluna de botões à direita. */
.lock-card {
  max-width: 252px;
  animation: rise 0.4s var(--ease) both;
}

.lock-cta {
  padding: 0 16px;
  font-size: 15px;
}

.lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  box-shadow: 0 10px 34px rgba(var(--brand-glow), 0.5);
}

.lock-icon .ic {
  width: 30px;
  height: 30px;
}

.lock-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lock-text {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
  font-size: 14.5px;
}

.slide-end {
  display: grid;
  place-items: center;
  background: radial-gradient(80% 50% at 50% 40%, rgba(var(--brand-glow), 0.2), transparent 70%), #050505;
}

.end-card {
  text-align: center;
  padding: 0 32px;
}

.end-emoji {
  font-size: 42px;
  margin: 0;
}

.end-card h2 {
  margin: 8px 0 4px;
  font-size: 21px;
}

.end-card .btn {
  margin-top: 18px;
}

/* ---- Painel inferior (sheet) -------------------------------------------------------- */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 50;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 22px calc(var(--safe-bottom) + 22px);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.34s var(--ease);
}

.sheet-layer.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-layer.is-open .sheet {
  transform: translateY(0);
}

.sheet-grabber {
  display: flex;
  justify-content: center;
  padding: 6px 0 12px;
  margin: 0 60px;
  touch-action: none;
  cursor: grab;
}

.sheet-grabber span {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.sheet-close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--muted);
}

.sheet-close .ic {
  width: 20px;
  height: 20px;
}

.step-title {
  font-size: 21px;
  line-height: 1.25;
  margin: 6px 0 14px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Oferta */

.offer {
  text-align: center;
  padding-top: 4px;
}

.offer-mark img {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(var(--brand-glow), 0.55));
}

.offer-creator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px auto 16px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  text-align: left;
}

.offer-creator img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.offer-creator b {
  display: block;
  font-size: 14px;
}

.offer-creator span {
  font-size: 12.5px;
  color: var(--muted);
}

.offer-title {
  font-size: 23px;
  line-height: 1.22;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.offer-text {
  margin: 0 auto 22px;
  max-width: 320px;
  color: var(--muted);
  font-size: 15.5px;
}

.offer-terms {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* Checkout */

.plan-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.plan-name {
  font-weight: 700;
  font-size: 15px;
}

.plan-price {
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.plan-kind {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(46, 229, 157, 0.14);
  color: var(--ok);
}

.plan-kind.is-recurring {
  background: rgba(58, 160, 255, 0.16);
  color: #7cc0ff;
}

.plan-kind.is-unset {
  background: rgba(255, 194, 71, 0.15);
  color: var(--warn);
}

.plan-headline {
  margin: 10px 0 2px;
  font-weight: 600;
}

.plan-terms {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.plan-includes {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.plan-includes li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-includes .ic {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--ok);
  stroke-width: 2.6;
}

.field {
  display: block;
}

.field + .field {
  margin-top: 14px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-color: var(--brand-2);
}

.code-input {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 22px !important;
  font-weight: 700;
}

.field-hint {
  margin: 8px 0 16px;
  font-size: 12.5px;
  color: var(--faint);
}

.form-error {
  margin: -6px 0 14px;
  color: #ff8a8a;
  font-size: 13.5px;
}

.checkout .muted {
  text-align: center;
  margin: -6px 0 18px;
}

.checkout .field + .btn,
.checkout .field + .form-error {
  margin-top: 16px;
}

.demo-checkout .step-title {
  margin-bottom: 12px;
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 4px 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: repeating-linear-gradient(-45deg, #ffc247 0 14px, #ffd36e 14px 28px);
}

.demo-banner .ic {
  width: 18px;
  height: 18px;
}

.demo-banner.is-inline {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 14px;
}

.demo-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.demo-text b {
  color: #fff;
}

.summary {
  margin: 0 0 18px;
  padding: 4px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
}

.summary div + div {
  border-top: 1px solid var(--line);
}

.summary dt {
  color: var(--muted);
  flex: none;
}

.summary dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.demo-checkout .btn + .btn {
  margin-top: 10px;
}

.confirming,
.success {
  text-align: center;
  padding: 18px 0 6px;
}

.success-ic {
  width: 72px;
  height: 72px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 229, 157, 0.15);
  color: var(--ok);
  animation: pop 0.5s var(--ease) both;
}

.success.is-error .success-ic {
  background: rgba(255, 90, 90, 0.14);
  color: #ff7a7a;
}

.success-ic .ic {
  width: 36px;
  height: 36px;
  stroke-width: 2.6;
}

.success p {
  margin: 0 0 10px;
}

.success .btn {
  margin-top: 14px;
}

@keyframes pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 10px auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--brand-1);
  animation: spin 0.8s linear infinite;
}

.spinner.is-small {
  width: 26px;
  height: 26px;
  margin: 30px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* PIX */

.pix {
  text-align: center;
}

.pix-qr {
  width: min(196px, 56vw);
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}

.pix-qr img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.pix-amount {
  margin: 0;
  font-size: 16px;
}

.pix-terms {
  margin: 2px 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.pix-copy input {
  width: 100%;
  height: 44px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
}

.pix-steps {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  text-align: left;
  color: var(--muted);
  font-size: 13.5px;
  display: grid;
  gap: 4px;
}

.pix-steps b {
  color: #fff;
}

.pix-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  font-weight: 600;
}

.spinner.is-inline {
  width: 18px;
  height: 18px;
  margin: 0;
  border-width: 2.5px;
}

/* Comentários */

.comments-sheet .sheet {
  height: 70%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.comments-sheet .sheet-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

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

.comments-title {
  text-align: center;
  font-size: 15px;
  margin: 0 0 8px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  overflow-y: auto;
  flex: 1;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

.comment-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface-3);
}

.comment-author {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.comment-author time {
  font-weight: 400;
  color: var(--faint);
  margin-left: 4px;
}

.comment-body p {
  margin: 2px 0 0;
  font-size: 14.5px;
  word-break: break-word;
}

.comment-empty {
  margin: auto 0;
}

.comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 -22px;
  padding: 10px 14px calc(var(--safe-bottom) + 10px) 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.comment-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 0;
  background: var(--surface-2);
  font-size: 15px;
  outline: none;
}

.comment-send {
  color: var(--brand-1);
}

.comment-cta {
  margin: 8px 0 calc(var(--safe-bottom) + 16px);
}

/* ---- Perfil ---------------------------------------------------------------------------- */

.profile-view,
.player-view {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}

.profile-view.is-open,
.player-view.is-open {
  transform: translateX(0);
}

.player-view {
  z-index: 35;
}

.profile-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 6px) 8px 6px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-bar-title {
  font-weight: 700;
  font-size: 15px;
}

.profile-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--safe-top) + 52px);
  padding-bottom: calc(var(--safe-bottom) + 24px);
}

.profile-loading,
.profile-empty {
  display: grid;
  place-items: center;
  min-height: 60%;
  color: var(--muted);
  padding-top: 80px;
}

.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 24px 20px;
  animation: rise 0.4s var(--ease) both;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #000;
  object-fit: cover;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 21px;
  margin: 12px 0 0;
  letter-spacing: -0.01em;
}

.profile-user {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin: 14px 0 0;
}

.profile-stats div {
  display: flex;
  flex-direction: column;
}

.profile-stats b {
  font-size: 17px;
}

.profile-stats span {
  font-size: 12.5px;
  color: var(--muted);
}

.profile-bio {
  margin: 12px 0 0;
  max-width: 320px;
  font-size: 14.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
}

.chip .ic {
  width: 14px;
  height: 14px;
}

.chip-ok {
  color: var(--ok);
  background: rgba(46, 229, 157, 0.12);
}

.profile-cta {
  margin-top: 16px;
  max-width: 320px;
}

.profile-note {
  margin: 14px 0 0;
  color: var(--warn);
  font-size: 13.5px;
}

.profile-tabs {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

.profile-tabs .ic {
  width: 20px;
  height: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tile {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--surface-2);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-locked .tile-blur {
  filter: blur(18px) saturate(1.3) hue-rotate(var(--h, 0deg)) brightness(0.6);
  transform: scale(1.4);
}

.tile-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.tile-lock .ic {
  width: 26px;
  height: 26px;
}

.profile-grid.is-locked .tile {
  cursor: pointer;
}

.tile-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--brand);
}

.tile-badge-free {
  background: #16a34a;
}

.tile-likes {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.tile-likes .ic {
  width: 13px;
  height: 13px;
}

.player-back {
  position: absolute;
  z-index: 5;
  top: calc(var(--safe-top) + 10px);
  left: 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Diversos --------------------------------------------------------------------------- */

.toast {
  position: absolute;
  z-index: 80;
  left: 50%;
  top: calc(var(--safe-top) + 64px);
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 30, 34, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s,
    transform 0.22s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fatal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #000;
}

.fatal-ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: #ff7a7a;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: #000;
  z-index: 100;
}

/* Navegação por setas no computador */
.desk-nav {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 760px) {
  .desk-nav {
    position: fixed;
    top: 50%;
    right: max(24px, calc(50vw - (100dvh * 0.5625) / 2 - 84px));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
  }

  .desk-nav-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1a1a1d;
    color: #fff;
    transition: background 0.15s;
  }

  .desk-nav-btn:hover {
    background: #2a2a2e;
  }

  .desk-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Aviso "deslize para cima" (primeiro vídeo) ------------------------------------------ */

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 170px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: #fff;
  pointer-events: none;
  animation: swipe-hint-in 0.5s ease 0.6s both;
  transition: opacity 0.3s ease;
}

.swipe-hint.is-hiding {
  opacity: 0;
}

.swipe-hint-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swipe-hint-arrows svg {
  width: 38px;
  height: 38px;
  margin-top: -18px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  animation: swipe-hint-arrow 1.5s ease-in-out infinite;
}

.swipe-hint-arrows svg:nth-child(1) {
  animation-delay: 0.3s;
}

.swipe-hint-arrows svg:nth-child(2) {
  animation-delay: 0.15s;
}

.swipe-hint-text {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

@keyframes swipe-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes swipe-hint-arrow {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint-arrows svg {
    animation: none;
  }
}

/* ---- Modo administrador ---------------------------------------------------------------------- */

.admin-pill {
  position: absolute;
  top: calc(var(--safe-top) + 18px);
  right: 12px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(22, 163, 74, 0.85);
  pointer-events: auto;
  cursor: pointer;
}
