/* ============================================================
   viewer.css — Design system do viewer público (PWA "OnlyVIP").

   Isolamento total: este stylesheet é carregado APENAS pelos
   templates de web/sites/<site>/templates/**. O painel admin continua
   usando exclusivamente web/admin/static/css/app.css (D6 do ADR-0001).

   Fonte da verdade: docs/frontend/viewer-design-system.md
   · Tokens: §1.1 – §1.10
   · Componentes: §2.1 – §2.15
   · Acessibilidade: §5
   Checklist: docs/frontend/onlyfans-visual-checklist.md

   Regras:
   · Nenhum hex fora dos blocos de token (exceções: #000 do
     player e #fff sobre imagem/overlay).
   · Prefixo `v-` em todos os blocos de componente.
   · Mobile-first: toda media query usa (min-width: …).
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. TOKENS
   ──────────────────────────────────────────────────────────── */

:root {
  /* Superfícies e texto — tema claro (padrão do produto) */
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f2f2f2;
  --surface-3: #ebebeb;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --border-input: #767676;
  --text: #000000;
  --text-secondary: #727272;
  --text-tertiary: #a3a3a3;
  /* Placeholder sobre --surface-2 (#f2f2f2): 4.81:1 (AA). */
  --text-placeholder: #6b6b6b;

  /* Marca e ação */
  --brand: #1677A8;
  --brand-hover: #0E6A94;
  --on-brand: #ffffff;
  /* Ação primária com texto branco: #0E6A94 (5,99:1 sobre #fff).
     O azul Telegram puro (#229ED9) não passa AA com branco. */
  --brand-strong: #0E6A94;
  --brand-strong-hover: #0A5B80;
  --on-brand-strong: #ffffff;
  --link: #0E6A94;
  --link-hover: #0A5B80;

  /* Semânticas */
  --like: #DC2626;
  --like-text: #B91C1C;
  --verified: #1677A8;
  --success: #0a7d33;
  --success-bg: #e8f5ee;
  --danger: #c92a2a;
  --danger-bg: #fdecec;
  --warning: #b45309;
  --warning-bg: #fdf3e7;

  /* Camadas */
  --overlay: rgba(0, 0, 0, 0.5);
  --scrollbar: #c9c9c9;

  /* Tipografia */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                "Liberation Mono", monospace;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --tracking-tight: -0.01em;
  --tracking-tightest: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;

  /* Espaçamento (base 4px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Raios */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  /* Sombras (só em camada flutuante) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .12);
  --shadow-modal: 0 24px 48px rgba(0, 0, 0, .18);

  /* Z-index */
  --z-0: 0;
  --z-10: 10;
  --z-100: 100;
  --z-200: 200;
  --z-300: 300;
  --z-400: 400;
  --z-500: 500;
  --z-600: 600;
  --z-700: 700;
  --z-800: 800;

  /* Movimento */
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --dur-4: 320ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --ease-standard: cubic-bezier(.2, 0, 0, 1);

  /* Layout */
  --bp-xs: 480px;
  --bp-sm: 768px;
  --bp-md: 1024px;
  --bp-lg: 1280px;
  --container-max: 1440px;
  --topbar-h: 56px;
  --topbar-h-desktop: 64px;
  --sidebar-w: 240px;
  --bottomnav-h: 56px;
  --gutter: var(--sp-4);
  /* Largura do feed de posts (home). Em telas largas o feed fica
     centralizado, como no OnlyFans. */
  --feed-width: 640px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1f1f23;
  --surface-3: #28282d;
  --border: #2a2a2f;
  --border-strong: #3d3d44;
  --border-input: #6b6b73;
  --text: #f2f2f5;
  --text-secondary: #a6a6ad;
  --text-tertiary: #7c7c85;
  --text-placeholder: #a6a6ad;

  --brand: #6CC7F0;
  --brand-hover: #8FD8F5;
  --on-brand: #061018;
  --brand-strong: #229ED9;
  --brand-strong-hover: #2AABEE;
  --on-brand-strong: #061018;
  --link: #8FD8F5;
  --link-hover: #B9EAFB;

  --like: #EF4444;
  --like-text: #F87171;
  --verified: #6CC7F0;
  --success: #4ade80;
  --success-bg: #16351f;
  --danger: #ff6b6b;
  --danger-bg: #3a1a1c;
  --warning: #fbbf24;
  --warning-bg: #3a2c10;

  --overlay: rgba(0, 0, 0, 0.7);
  --scrollbar: #3a3a40;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .45);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .55);
  --shadow-modal: 0 24px 48px rgba(0, 0, 0, .60);

  color-scheme: dark;
}

/* ────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* O reset acima zera o `margin: auto` que a UA usa para centralizar
   `dialog:modal` (com inset: 0). Restaurar só no modal mantém o reset
   global intacto e não interfere em diálogos abertos com show(). */
dialog:modal {
  margin: auto;
}

/* Fallback para motores sem suporte a :modal: os diálogos deste site são
   abertos com showModal(), então [open] preserva a centralização. */
@supports not selector(dialog:modal) {
  dialog[open] {
    margin: auto;
  }
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: 1.43;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(34, 158, 217, .2);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: var(--r-full);
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ────────────────────────────────────────────────────────────
   3. UTILITÁRIOS
   ──────────────────────────────────────────────────────────── */

.v-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v-skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-3);
  z-index: var(--z-800);
  padding: var(--sp-2) var(--sp-3);
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--r-sm);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
}

.v-skip-link:focus {
  top: var(--sp-2);
  text-decoration: none;
}

.v-link {
  color: var(--link);
  font-size: var(--fs-14);
}

.v-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.v-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.v-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--r-full);
  animation: v-spin 1s linear infinite;
}

.v-spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

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

/* ────────────────────────────────────────────────────────────
   4. BOTÕES (§2.14)
   ──────────────────────────────────────────────────────────── */

.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  /* Desktop compacto: 38px é confortável para mouse. O bloco
     @media (pointer: coarse) abaixo garante 44px no toque. */
  height: 38px;
  padding: 0 var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color var(--dur-1) var(--ease-in-out),
              border-color var(--dur-1) var(--ease-in-out),
              color var(--dur-1) var(--ease-in-out),
              opacity var(--dur-1) var(--ease-in-out),
              transform var(--dur-1) var(--ease-out);
}

.v-btn:hover {
  text-decoration: none;
}

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

.v-btn:disabled,
.v-btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Botão secundário desabilitado (OnlyFans): cinza claro e legível,
   sem a opacidade excessiva do estado genérico. */
.v-btn.v-btn--secondary[aria-disabled="true"] {
  opacity: 1;
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  cursor: not-allowed;
}

.v-btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.v-btn--primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.v-btn--secondary {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--text);
}

.v-btn--secondary:hover:not(:disabled) {
  background: var(--surface-2);
}

.v-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.v-btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.v-btn--danger {
  background: var(--danger);
  color: #fff;
}

.v-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-md);
  color: var(--text);
}

.v-btn--icon:hover:not(:disabled) {
  background: var(--surface-2);
}

.v-btn--block {
  width: 100%;
}

.v-btn--lg {
  /* CTA de destaque: 40px no desktop, 44px no toque (min-height). */
  height: 40px;
  font-size: var(--fs-16);
}

.v-btn--subscribed {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.v-btn--subscribed:hover:not(:disabled) {
  background: var(--surface-2);
}

@media (pointer: coarse) {
  .v-btn {
    min-height: 44px;
  }

  .v-btn--icon {
    min-width: 44px;
    min-height: 44px;
  }

  /* O "X" do modal continua 40px visualmente, mas ganha 44×44 de área
     tocável — mesmo padrão dos ícones da topbar. */
  .v-modal__close {
    position: relative;
  }

  .v-modal__close::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
  }
}

/* ────────────────────────────────────────────────────────────
   5. CAMPOS (§2.15)
   ──────────────────────────────────────────────────────────── */

.v-field {
  display: block;
}

.v-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.v-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.5;
  transition: border-color var(--dur-1) var(--ease-in-out),
              box-shadow var(--dur-1) var(--ease-in-out);
}

.v-input::placeholder {
  color: var(--text-tertiary);
}

.v-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, .18);
  outline: none;
}

.v-input[aria-invalid="true"] {
  border-color: var(--danger);
}

.v-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(201, 42, 42, .16);
}

.v-error {
  display: block;
  margin-top: var(--sp-2);
  color: var(--danger);
  font-size: var(--fs-13);
  line-height: 1.38;
}

.v-hint {
  display: block;
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-12);
  line-height: 1.33;
}

/* ────────────────────────────────────────────────────────────
   6. BADGES (§2.13)
   ──────────────────────────────────────────────────────────── */

.v-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
  white-space: nowrap;
}

.v-badge--free {
  background: rgba(34, 158, 217, .12);
  color: var(--link);
}

.v-badge--premium {
  background: linear-gradient(135deg, #0E6A94, #1677A8);
  color: #fff;
}

.v-badge--locked {
  background: rgba(0, 0, 0, .6);
  color: #fff;
}

.v-badge--discount {
  background: var(--success-bg);
  color: var(--success);
}

.v-badge--status {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.v-badge__icon {
  width: 12px;
  height: 12px;
}

/* ────────────────────────────────────────────────────────────
   7. TOPBAR (§2.1)
   ──────────────────────────────────────────────────────────── */

.v-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-100);
  height: var(--topbar-h);
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.v-topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  height: 100%;
  padding: 0 var(--gutter);
}

/* Wordmark único (sem a marca quadrada): "OnlyVIP" em --brand, 20px/700. */
.v-topbar__logo {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tightest);
  line-height: 1;
  text-decoration: none;
}

.v-topbar__logo:hover {
  color: var(--brand);
  text-decoration: none;
}

.v-topbar__search {
  display: none;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.v-topbar__search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.v-topbar__search-icon {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.v-topbar__search-input {
  width: 100%;
  height: 36px;
  padding: 0 var(--sp-3) 0 34px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-14);
  transition: border-color var(--dur-1) var(--ease-in-out),
              box-shadow var(--dur-1) var(--ease-in-out);
}

.v-topbar__search-input::placeholder {
  color: var(--text-placeholder);
}

.v-topbar__search-input:focus {
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, .18);
  outline: none;
}

.v-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  justify-self: end;
}

.v-topbar__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-topbar__icon-btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.v-topbar__icon-btn:active {
  background: var(--surface-3);
}

/* Página atual (ex.: /messages): mesmo estado da sidebar/bottom nav. */
.v-topbar__icon-btn[aria-current="page"] {
  background: var(--surface-2);
  color: var(--brand);
}

.v-topbar__icon-btn .v-icon {
  width: 22px;
  height: 22px;
}

/* Coração de "Curtidos" (OnlyFans): preenchido em vermelho. */
.v-topbar__like .v-icon {
  fill: var(--like);
  stroke: var(--like);
  color: var(--like);
}

.v-topbar__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg);
  border-radius: var(--r-full);
  background: var(--like);
}

.v-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  border: none;
  cursor: pointer;
  padding: 0;
}

.v-topbar__avatar--guest {
  background: var(--surface-3);
  color: var(--text-secondary);
  text-shadow: none;
}

/* Alvos de toque: o visual continua 40px/32px, mas a área tocável
   cresce para 44×44 em ponteiros grossos (design system §5.2). */
@media (pointer: coarse) {
  .v-topbar__icon-btn::after,
  .v-topbar__avatar::after {
    content: "";
    position: absolute;
    pointer-events: auto;
  }

  .v-topbar__icon-btn::after {
    inset: -2px;
  }

  .v-topbar__avatar::after {
    inset: -6px;
  }
}

/* Dropdown do avatar (mobile: menu completo; desktop: atalho) */
.v-menu {
  position: relative;
}

.v-menu__panel {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: var(--z-300);
  min-width: 220px;
  padding: var(--sp-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}

.v-menu__head {
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}

.v-menu__label {
  display: block;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-menu__tier {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-1);
}

.v-menu__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
}

.v-menu__item:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.v-menu__item .v-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

/* Overlay de busca (mobile) */
.v-searchoverlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-500);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0 var(--gutter);
  padding-top: calc(var(--sp-2) + env(safe-area-inset-top));
}

.v-searchoverlay__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
}

.v-searchoverlay__form {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.v-searchoverlay__form .v-topbar__search-icon {
  left: 12px;
}

.v-searchoverlay__input {
  width: 100%;
  height: 40px;
  padding: 0 var(--sp-3) 0 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-16);
}

.v-searchoverlay__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, .18);
  outline: none;
}

.v-searchoverlay__cancel {
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  color: var(--link);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.v-searchoverlay__results {
  padding-top: var(--sp-4);
  overflow-y: auto;
  height: calc(100dvh - var(--topbar-h) - var(--sp-4));
}

/* ────────────────────────────────────────────────────────────
   8. SIDEBAR (§2.2)
   ──────────────────────────────────────────────────────────── */

.v-sidebar {
  display: none;
}

.v-sidebar__group {
  padding: var(--sp-4) var(--sp-3) var(--sp-1);
}

.v-sidebar__group + .v-sidebar__list {
  padding-top: 0;
}

.v-sidebar__label {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.v-sidebar__list {
  padding: 0 var(--sp-3);
}

.v-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-sidebar__item:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.v-sidebar__item[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.v-sidebar__item[aria-current="page"] .v-icon {
  color: var(--brand);
}

.v-sidebar__item .v-icon {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
}

.v-sidebar__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.v-sidebar__avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-full);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.v-sidebar__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-sidebar__name {
  font-size: var(--fs-13);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-sidebar__plan {
  align-self: flex-start;
  font-size: 11px;
}

/* ────────────────────────────────────────────────────────────
   9. BOTTOM NAV (§2.3)
   ──────────────────────────────────────────────────────────── */

.v-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-400);
  display: flex;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--border);
  user-select: none;
}

.v-bottomnav__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.v-bottomnav__item:hover {
  text-decoration: none;
}

.v-bottomnav__item .v-icon {
  width: 24px;
  height: 24px;
}

.v-bottomnav__item[aria-current="page"] {
  color: var(--brand);
}

/* ────────────────────────────────────────────────────────────
   10. LAYOUT DA PÁGINA
   ──────────────────────────────────────────────────────────── */

.v-main {
  display: block;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + var(--sp-4));
}

.v-page {
  padding-top: var(--sp-4);
}

.v-page__title {
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.v-section {
  padding: var(--sp-4) 0 0;
}

.v-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.v-section__title {
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}

.v-section__count {
  font-size: var(--fs-12);
  color: var(--text-tertiary);
}

/* Área do botão "Carregar mais" (no fim da grade / da seção). */
.v-section__more {
  display: flex;
  justify-content: center;
  padding: var(--sp-4) 0 var(--sp-2);
}

.v-section__more:empty {
  display: none;
  padding: 0;
}

.v-loadmore {
  max-width: 320px;
}

.v-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.v-discover__search {
  max-width: 520px;
  margin-bottom: var(--sp-4);
}

.v-banner__icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
}

.v-banner__text {
  font-size: var(--fs-14);
  color: var(--text);
}

.v-banner__text strong {
  font-weight: var(--fw-semibold);
}

/* ────────────────────────────────────────────────────────────
   11. CREATOR CARD (§2.4)
   ──────────────────────────────────────────────────────────── */

.v-ccard {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-ccard:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.v-ccard__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-full);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-gradient, var(--surface-3));
  color: #fff;
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.v-ccard__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.v-ccard__name {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  min-width: 0;
}

.v-ccard__name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-ccard__name .v-badge {
  flex: none;
}

.v-ccard__verified {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--verified);
}

.v-ccard__handle {
  font-size: var(--fs-13);
  color: var(--text-secondary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-ccard__meta {
  font-size: var(--fs-12);
  color: var(--text-tertiary);
  line-height: 1.33;
}

.v-cgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-2);
}

/* ────────────────────────────────────────────────────────────
   11.1 CREATOR CARD — CAPA (estilo Discover do OnlyFans)

   Anatomia: capa 1:1 no topo (cover_url ou gradiente derivado +
   iniciais) e, abaixo, nome / @handle / contagem de assinantes.
   ──────────────────────────────────────────────────────────── */

.v-ccard--cover {
  display: block;
  padding: 0;
  border-radius: 0;
}

.v-ccard--cover:hover,
.v-ccard--cover:focus-visible {
  background: transparent;
}

.v-ccard__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--avatar-gradient, var(--surface-3));
  color: #fff;
  transition: box-shadow var(--dur-1) var(--ease-in-out);
}

.v-ccard--cover:hover .v-ccard__cover,
.v-ccard--cover:focus-visible .v-ccard__cover {
  box-shadow: var(--shadow-1);
}

.v-ccard__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 150ms var(--ease-out);
}

.v-ccard--cover:hover .v-ccard__cover-img,
.v-ccard--cover:focus-visible .v-ccard__cover-img {
  transform: scale(1.03);
}

.v-ccard__cover-initials {
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.v-ccard__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding-top: var(--sp-2);
}

/* Linha horizontal rolável (seção "Assinados" da home). */
.v-crow {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--sp-1);
  scrollbar-width: thin;
}

.v-crow > .v-ccard {
  flex: 0 0 auto;
  width: 240px;
  padding: var(--sp-2) var(--sp-3);
  scroll-snap-align: start;
}

/* ────────────────────────────────────────────────────────────
   11.2 FAIXA DE CRIADORES (avatares verticais)

   Topo da home, abaixo do banner: avatar circular de 56px e nome
   de uma linha, item de 88px. Rolagem horizontal com snap e sem
   barra visível (como no OnlyFans).
   ──────────────────────────────────────────────────────────── */

.v-strip {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: var(--sp-1) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.v-strip::-webkit-scrollbar {
  display: none;
}

.v-strip__item {
  flex: 0 0 88px;
  width: 88px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 2px;
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}

.v-strip__item:hover {
  background: var(--surface);
  text-decoration: none;
}

.v-strip__avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  background: var(--avatar-gradient, var(--surface-3));
  color: #fff;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

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

/* line-clamp: 1 — o nome ocupa UMA linha (o item tem duas linhas:
   avatar + nome). O title guarda o nome completo. */
.v-strip__name {
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
}

/* Faixa horizontal de cards de capa 240px (Recomendados, abaixo do feed). */
.v-covers {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--sp-1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.v-covers::-webkit-scrollbar {
  display: none;
}

.v-covers > .v-ccard--cover {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
}

/* ────────────────────────────────────────────────────────────
   11.3 FEED DE POSTS (home)

   Card de post do OnlyFans: cabeçalho (avatar 40px + nome/handle +
   horário + "…"), mídia 4:5 com raio de 8px, barra de ações e meta.
   O feed fica centralizado em --feed-width (640px).
   ──────────────────────────────────────────────────────────── */

.v-section--feed {
  padding-top: var(--sp-2);
}

.v-feed {
  width: 100%;
  max-width: var(--feed-width);
  margin: 0 auto;
}

.v-post {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}

.v-post__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.v-post__avatar-link {
  flex: none;
  display: inline-flex;
  border-radius: var(--r-full);
}

.v-post__avatar-link:hover {
  text-decoration: none;
}

.v-post__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--avatar-gradient, var(--surface-3));
  color: #fff;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

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

.v-post__identity {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.v-post__name {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 0;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.v-post__name-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.v-post__name-link:hover {
  text-decoration: underline;
}

.v-post__verified {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--verified);
}

.v-post__handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-13);
  line-height: 1.3;
  color: var(--text-secondary);
}

.v-post__side {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: none;
  margin-left: auto;
}

/* Horário: 12px. Usa --text-secondary (4.81:1) em vez do terciário
   (2.52:1) — é informação, não decoração; AA prevalece. */
.v-post__time {
  white-space: nowrap;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

.v-post__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-post__more:hover {
  background: var(--surface-2);
}

.v-post__more .v-icon {
  width: 20px;
  height: 20px;
}

.v-post__media {
  position: relative;
  display: block;
  width: 100%;
  margin-top: var(--sp-3);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.v-post__media:hover {
  text-decoration: none;
}

.v-post__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-post__media--locked .v-post__thumb {
  filter: blur(18px);
  transform: scale(1.08);
}

.v-post__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  pointer-events: none;
}

.v-post__play .v-icon {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.v-post__duration {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.v-post__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  text-align: center;
}

.v-post__lock-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
}

.v-post__lock-icon .v-icon {
  width: 24px;
  height: 24px;
}

.v-post__lock-text {
  padding: 3px 10px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.v-post__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--sp-1);
}

.v-post__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-in-out),
              color var(--dur-1) var(--ease-in-out);
}

.v-post__action:not([aria-disabled="true"]):not(:disabled):hover {
  background: var(--surface-2);
  text-decoration: none;
}

.v-post__action[aria-disabled="true"],
.v-post__action:disabled {
  cursor: not-allowed;
}

/* Enquanto o POST da curtida está no ar o botão fica ocupado. */
.v-post__action[aria-busy="true"] {
  cursor: progress;
  opacity: .7;
}

.v-post__action .v-icon {
  width: 24px;
  height: 24px;
}

/* No post do OnlyFans o coração é CONTORNO por padrão; ele fica
   VERMELHO e preenchido depois de curtido. O contador só aparece
   quando há curtidas (>0). */
.v-post__action--like {
  width: auto;
  min-width: 44px;
  gap: 2px;
  padding: 0 var(--sp-2);
  color: var(--text);
}

.v-post__action--like .v-icon {
  stroke: var(--text);
  fill: none;
}

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

.v-post__action--like.is-liked .v-icon {
  stroke: var(--like);
  fill: var(--like);
}

.v-post__like-count {
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: inherit;
}

/* Feedback curto da curtida (só transform → sem reflow). O bloco
   global de `prefers-reduced-motion` desliga a animação. */
.v-post__action--like.is-bumping .v-icon {
  animation: v-post-like-pop 220ms var(--ease-out);
}

@keyframes v-post-like-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* O bookmark fecha a barra, à direita (como no post do OnlyFans). */
.v-post__action--bookmark {
  margin-left: auto;
}

.v-post__meta {
  margin-top: 2px;
}

.v-post__views {
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.v-post__caption {
  margin-top: 2px;
  font-size: var(--fs-14);
  line-height: 1.45;
  color: var(--text);
}

.v-post__caption-name {
  font-weight: var(--fw-semibold);
}

/* Skeleton do post (2 blocos, antes do feed real). */
.v-post-skel {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}

.v-post-skel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.v-post-skel__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-full);
}

.v-post-skel__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-post-skel__line {
  width: 45%;
}

.v-post-skel__line--short {
  width: 30%;
}

.v-post-skel__media {
  margin-top: var(--sp-3);
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--r-md);
}

@media (pointer: coarse) {
  .v-post__more::after {
    content: "";
    position: absolute;
    inset: -2px;
  }
}

/* ────────────────────────────────────────────────────────────
   12. PERFIL DO CRIADOR (§2.5)
   ──────────────────────────────────────────────────────────── */

.v-profile__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  overflow: hidden;
  background: var(--avatar-gradient, var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-profile__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.v-profile__cover-name {
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  color: #fff;
  opacity: .9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  padding: 0 var(--sp-4);
  text-align: center;
}

.v-profile__head {
  padding: 0 var(--gutter);
}

.v-profile__identity {
  min-width: 0;
}

/* O avatar fica ACIMA da capa (position + z-index): sem isso a capa,
   pintada depois no fluxo, encobre o topo do círculo e corta as
   iniciais. O deslocamento de -48px/-60px é preservado. */
.v-profile__avatar {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  border: 4px solid var(--bg);
  border-radius: var(--r-full);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-gradient, var(--surface-3));
  color: #fff;
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* A imagem do avatar ocupa o círculo inteiro (object-fit: cover). */
.v-ccard__avatar img,
.v-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-profile__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.v-profile__verified {
  width: 18px;
  height: 18px;
  color: var(--verified);
}

.v-profile__handle {
  margin-top: 2px;
  font-size: var(--fs-16);
  color: var(--text-secondary);
}

/* Linha de estatísticas: sempre em linha única (mobile e desktop),
   como no OnlyFans ("3 Publicações · 1 Fotos · 2 Vídeos · 1 Assinantes").
   O divisor de 1px é um pseudo-elemento do contador — assim ele
   acompanha o contador quando a linha quebra. */
.v-profile__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1) 0;
  margin-top: var(--sp-3);
}

.v-profile__stat {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-13);
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* O espaço entre número e rótulo é um espaço real (preservado por
   white-space: pre) — assim o leitor de tela anuncia "6 Publicações". */
.v-profile__stat-value {
  white-space: pre;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* Divisor vertical de 1px entre os contadores (estilo OnlyFans). */
.v-profile__stat + .v-profile__stat::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 var(--sp-2);
  background: var(--border);
  flex: none;
}

.v-profile__bio {
  margin-top: var(--sp-3);
  max-width: 640px;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text);
  white-space: pre-line;
}

/* Mobile (<768px): barra full-width sticky logo abaixo da topbar
   (3 botões iguais). No desktop ela sai do fluxo sticky e fica
   alinhada à direita, na mesma faixa do nome/handle/stats. */
.v-profile__actions {
  position: sticky;
  top: var(--topbar-h);
  z-index: var(--z-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.v-profile__actions .v-btn {
  width: 100%;
  height: 44px;
}

.v-profile__actions .v-btn--icon {
  width: 100%;
  justify-self: stretch;
}

/* Assinar: azul profundo com texto branco (--brand-strong = #0E6A94,
   5,99:1 sobre branco — AA). */
.v-btn--subscribe {
  background: var(--brand-strong);
  color: var(--on-brand-strong);
}

.v-btn--subscribe:hover:not(:disabled) {
  background: var(--brand-strong-hover);
}

/* "Assinado": cinza com borda e check. */
.v-btn--subscribed .v-icon {
  width: 16px;
  height: 16px;
}

.v-profile__media {
  margin-top: var(--sp-1);
}

/* ────────────────────────────────────────────────────────────
   12.1 ABAS DE CONTEÚDO DO PERFIL (§2.5)

   Filtro client-side da grade já carregada (sem requisição).
   ──────────────────────────────────────────────────────────── */

.v-tabs {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.v-tabs::-webkit-scrollbar {
  display: none;
}

.v-tabs__tab {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-secondary);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-in-out),
              border-color var(--dur-1) var(--ease-in-out);
}

.v-tabs__tab:hover:not([aria-disabled="true"]) {
  color: var(--text);
}

/* Aba ativa: azul da marca no traço e tom de link no texto
   (--link garante 5,58:1 sobre branco — AA para texto normal). */
.v-tabs__tab[aria-selected="true"] {
  color: var(--link);
  border-bottom-color: var(--brand);
  font-weight: var(--fw-semibold);
}

.v-tabs__tab[aria-disabled="true"] {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.v-tabs__count {
  margin-left: var(--sp-1);
  font-size: var(--fs-12);
  font-weight: var(--fw-regular);
  color: var(--text-tertiary);
}

.v-tabs__tab[aria-selected="true"] .v-tabs__count {
  color: var(--text-secondary);
}

/* ────────────────────────────────────────────────────────────
   12.2 RANKING DE FÃS DO PERFIL

   Conteúdo complementar carregado depois do perfil
   (GET /api/creators/{slug}/fans). Fica no fim do wrapper e ocupa a
   linha inteira do grid do perfil no desktop — a grade de mídia não
   é interrompida. Sem cor como único sinal: a posição é sempre texto.
   ──────────────────────────────────────────────────────────── */

.v-fans {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  margin-top: var(--sp-8);
  padding: var(--sp-5) var(--gutter) 0;
  border-top: 1px solid var(--border);
}

.v-fans__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.v-fans__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.v-fans__title-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.v-fans__subtitle {
  margin-top: 2px;
  font-size: var(--fs-12);
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Pódio: 3 colunas no mobile (rótulos com elipse; valores em linha).
   O 1º lugar mantém borda/medalha da marca, mas o "1º" também é texto. */
.v-fans__podium {
  display: flex;
  align-items: stretch;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.v-fans__top {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: var(--sp-4) var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}

.v-fans__top--1 {
  border-color: var(--brand);
}

.v-fans__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 var(--sp-1);
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.v-fans__top .v-fans__rank {
  margin-bottom: var(--sp-1);
}

/* Medalha do 1º lugar: fundo da marca + texto de contraste AA. */
.v-fans__top--1 .v-fans__rank {
  background: var(--brand);
  color: var(--on-brand);
}

.v-fans__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.v-fans__amount {
  color: var(--text);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}

.v-fans__top .v-fans__amount {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.v-fans__gifts {
  color: var(--text-secondary);
  font-size: var(--fs-12);
  line-height: 1.35;
}

/* Lista 4–10: posição, label e bloco de valores alinhado à direita. */
.v-fans__list {
  margin-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.v-fans__row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.v-fans__row:last-child {
  border-bottom: 0;
}

.v-fans__row .v-fans__rank {
  min-width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
}

.v-fans__row .v-fans__label {
  font-weight: var(--fw-medium);
}

.v-fans__row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  text-align: right;
}

.v-fans__summary {
  margin-top: var(--sp-3);
  color: var(--text-secondary);
  font-size: var(--fs-12);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

/* Skeleton do ranking (mesma silhueta do conteúdo final). */
.v-fans__top--skel {
  pointer-events: none;
}

.v-fans__skel-rank {
  width: 28px;
  height: 24px;
  border-radius: var(--r-full);
}

.v-fans__skel-line {
  width: 72%;
  height: 10px;
  margin-top: 6px;
  border-radius: var(--r-full);
}

.v-fans__skel-line--short {
  width: 48%;
}

.v-fans__list--skel {
  border-top: 1px solid var(--border);
}

.v-fans__skel-rank--sm {
  width: 24px;
  height: 24px;
}

.v-fans__skel-amount {
  justify-self: end;
  width: 64px;
  height: 10px;
  border-radius: var(--r-full);
}

/* Entrada curta: só opacity/transform (sem reflow). O skeleton não
   anima aqui — o shimmer já sinaliza o carregamento. */
@keyframes v-fans-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v-fans__body {
  animation: v-fans-in var(--dur-3) var(--ease-out) both;
}

.v-fans__body[data-fans-skeleton] {
  animation: none;
}

/* ────────────────────────────────────────────────────────────
   13. GRADE DE MÍDIA (§2.6)
   ──────────────────────────────────────────────────────────── */

.v-mgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-1);
}

/* Estado vazio dentro de uma grade: ocupa a linha inteira (não fica
   espremido na primeira coluna). */
.v-mgrid > .v-empty,
.v-cgrid > .v-empty {
  grid-column: 1 / -1;
}

.v-mcard {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: #fff;
  text-decoration: none;
}

.v-mcard:hover {
  text-decoration: none;
}

.v-mcard__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms var(--ease-out);
}

.v-mcard:hover .v-mcard__thumb {
  transform: scale(1.03);
}

.v-mcard__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.v-mcard__badge {
  position: absolute;
  bottom: var(--sp-1);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
}

.v-mcard__badge--duration {
  left: var(--sp-1);
}

.v-mcard__badge--views {
  right: var(--sp-1);
}

/* Nome do criador no card do feed (discreto, no canto superior). */
.v-mcard__creator {
  position: absolute;
  top: var(--sp-1);
  left: var(--sp-1);
  max-width: calc(100% - var(--sp-4));
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-mcard__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.9);
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}

.v-mcard__play .v-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.v-mcard__like {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.v-mcard__like .v-icon {
  width: 18px;
  height: 18px;
}

.v-mcard__like--on .v-icon {
  fill: var(--like);
  stroke: var(--like);
}

/* Item bloqueado */
.v-mcard--locked .v-mcard__thumb {
  filter: blur(18px);
  transform: scale(1.08);
}

.v-mcard__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  text-align: center;
}

.v-mcard__lock-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-mcard__lock-icon .v-icon {
  width: 24px;
  height: 24px;
}

.v-mcard__lock-text {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.v-mcard--locked:hover .v-mcard__thumb {
  transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .v-mcard:hover .v-mcard__play,
  .v-mcard:focus-visible .v-mcard__play {
    opacity: 1;
    transform: scale(1);
  }
}

@media (pointer: coarse) {
  .v-mcard__play {
    opacity: 1;
    transform: scale(1);
  }
}

/* ────────────────────────────────────────────────────────────
   14. MODAL (§2.7)
   ──────────────────────────────────────────────────────────── */

.v-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-600);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.v-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-500);
  background: var(--overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.v-modal__dialog {
  position: relative;
  z-index: var(--z-600);
  width: calc(100vw - 32px);
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: var(--sp-6);
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  animation: v-modal-in var(--dur-3) var(--ease-out);
}

@keyframes v-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.v-modal__title {
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.v-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.v-modal__subtitle {
  margin-top: var(--sp-1);
  font-size: var(--fs-14);
  color: var(--text-secondary);
}

.v-modal__plans {
  margin-top: var(--sp-4);
  border: 0;
  padding: 0;
}

.v-modal__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-in-out),
              background-color var(--dur-1) var(--ease-in-out);
}

.v-modal__plan:hover {
  background: var(--surface);
}

.v-modal__plan input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.v-modal__plan:has(input:checked) {
  border: 2px solid var(--brand);
  padding: 11px;
  background: rgba(34, 158, 217, .06);
}

.v-modal__plan:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.v-modal__plan-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.v-modal__plan-name {
  display: block;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.v-modal__plan-period {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-13);
  color: var(--text-secondary);
}

/*
  "2 PIX de R$ 99,98 cada" no cartão do plano.

  Existe porque o gateway recusa cobrança acima de R$ 100 sem CPF e a decisão
  foi dividir em vez de pedir documento: o cliente PRECISA saber disso antes
  de escolher, não depois de já ter clicado em pagar. Fica na coluna do nome
  (com o período) para não espremer o preço no celular.
*/
.v-modal__plan-split {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  line-height: 1.3;
}

.v-modal__plan-price {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.v-modal__plan-value {
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--text);
}

.v-modal__note {
  margin-top: var(--sp-1);
  font-size: var(--fs-12);
  color: var(--text-secondary);
  line-height: 1.4;
}

.v-modal__footer {
  margin-top: var(--sp-4);
}

.v-modal__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0 var(--sp-2);
  text-align: center;
}

.v-modal__done-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-modal__done-icon .v-icon {
  width: 22px;
  height: 22px;
}

.v-modal__done-text {
  font-size: var(--fs-14);
  color: var(--text-secondary);
}

.v-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

/* ── Checkout PIX (estado dentro do modal de assinatura) ── */

.v-checkout {
  margin-top: var(--sp-4);
  animation: v-checkout-in 200ms var(--ease-out);
}

@keyframes v-checkout-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v-checkout__title {
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.v-checkout__title:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/*
  Linha "PIX 1/2 de R$ 99,98 — pague os 2 para liberar o acesso".

  É a primeira informação do painel, acima até do valor: num pedido dividido o
  valor de cima é de UMA das cobranças, e sozinho ele não diz que existe outra.
  Sem esta linha o cliente paga R$ 99,98, vê o acesso fechado e conclui que
  foi enganado.
*/
.v-checkout__split {
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-left-width: 3px;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.v-checkout__split[data-tone="done"] {
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}

/*
  Progresso do pedido dividido ("1 de 2 pagos — falta o PIX 2").

  A caixa acima já avisa que existem dois PIX; aqui é só o ANDAMENTO, então
  não repete a moldura (duas caixas iguais pareciam avisos concorrentes).
*/
.v-checkout__note {
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.v-checkout__note--progress {
  color: var(--success);
  font-weight: var(--fw-semibold);
}

.v-checkout__amount {
  margin-top: var(--sp-1);
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.v-checkout__plan {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: var(--fs-13);
}

/* Gerando a cobrança: skeleton com scanline + spinner no lugar do QR. */
.v-checkout__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.v-checkout__loading-qr {
  position: relative;
  width: 180px;
  height: 180px;
  max-width: 100%;
  border-radius: var(--r-md);
}

.v-checkout__loading-scan {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 2px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 12px var(--brand);
  animation: v-checkout-scan 1.7s var(--ease-in-out) infinite;
}

@keyframes v-checkout-scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  55% {
    opacity: 1;
    transform: translateY(150px);
  }
  85% {
    opacity: .35;
    transform: translateY(158px);
  }
  100% {
    opacity: 0;
    transform: translateY(158px);
  }
}

.v-checkout__loading-text {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-13);
}

.v-checkout__loading-text .v-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.v-checkout__loading-line {
  width: 100%;
  height: 44px;
  border-radius: var(--r-md);
}

.v-checkout__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.v-checkout__qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  transition: opacity var(--dur-2) var(--ease-out);
}

.v-checkout__qr.is-expired {
  opacity: .35;
}

.v-checkout__qr-fallback {
  color: var(--danger);
  font-size: var(--fs-13);
  line-height: 1.4;
  text-align: center;
}

.v-checkout__code {
  margin-top: var(--sp-3);
}

.v-checkout__label {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
}

.v-checkout__textarea {
  width: 100%;
  min-height: 64px;
  margin-bottom: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  line-height: 1.5;
  overflow-wrap: anywhere;
  resize: vertical;
}

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

/* Feedback do copiar: um único arco fino circulando ao redor do botão. */
@property --v-copy-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.v-checkout__copy-wrap {
  --v-copy-orbit-angle: 0deg;
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--r-md) + 2px);
}

.v-checkout__copy-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  /* Halo de 2px: mantém a leitura do arco sem inflar o alvo visual. */
  inset: -2px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--v-copy-orbit-angle),
    transparent 0deg 300deg,
    var(--brand) 330deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}

.v-checkout__copy-wrap > .v-checkout__copy {
  position: relative;
  z-index: 1;
}

.v-checkout__copy-wrap.is-ready::before {
  opacity: 1;
  animation: v-checkout-copy-orbit 3.2s linear infinite;
}

.v-checkout__copy {
  position: relative;
  overflow: hidden;
}

.v-checkout__copy-check {
  display: none;
  width: 18px;
  height: 18px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.v-checkout__copy-check .v-icon {
  width: 18px;
  height: 18px;
}

.v-checkout__copy.is-copied {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.v-checkout__copy.is-copied .v-checkout__copy-check {
  display: inline-flex;
  animation: v-checkout-check-in 240ms var(--ease-out);
}

.v-checkout__copy.is-error {
  border-color: var(--danger);
  color: var(--danger);
  animation: v-checkout-copy-shake 320ms var(--ease-out);
}

@keyframes v-checkout-check-in {
  from {
    opacity: 0;
    transform: scale(.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes v-checkout-copy-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

@keyframes v-checkout-copy-orbit {
  to {
    --v-copy-orbit-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-checkout__copy-wrap.is-ready::before {
    opacity: .55;
    animation: none;
  }

  .v-checkout__copy.is-copied .v-checkout__copy-check {
    animation: none;
  }
}

/* Spinner dentro do CTA desabilitado enquanto a cobrança é criada. */
#v-checkout-primary[data-loading="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--r-full);
  animation: v-spin 800ms linear infinite;
}

.v-checkout__expiry {
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-12);
  line-height: 1.4;
}

.v-checkout__status {
  min-height: 1.4em;
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.v-checkout__status[data-tone="error"] {
  color: var(--danger);
}

.v-checkout__status[data-tone="success"] {
  color: var(--success);
}

.v-checkout__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

/* No celular, só o CTA principal ocupa a largura toda. Copiar/voltar
   viram botões compactos e centrados; a altura de toque continua 44px. */
@media (max-width: 767px) {
  .v-checkout__copy-wrap {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

  .v-checkout__copy-wrap > .v-checkout__copy {
    width: auto;
    min-width: 200px;
  }

  .v-checkout__actions .v-btn--secondary,
  .v-checkout__actions .v-btn--ghost {
    width: auto;
    min-width: 0;
    align-self: center;
    padding-inline: var(--sp-5);
  }
}

/* ────────────────────────────────────────────────────────────
   15. LOGIN (§2.8)
   ──────────────────────────────────────────────────────────── */

.v-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: var(--bg);
}

.v-login__card {
  width: min(400px, 100%);
}

.v-login__brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.v-login__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #0E6A94, #1677A8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.v-login__title {
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  text-align: center;
  letter-spacing: var(--tracking-tight);
}

.v-login__subtitle {
  margin-top: var(--sp-1);
  font-size: var(--fs-14);
  color: var(--text-secondary);
  text-align: center;
}

.v-login__form {
  margin-top: var(--sp-5);
}

/* Espaço entre o campo de senha e o próximo rótulo (form de 2 campos). */
.v-login__form .v-input + .v-label {
  margin-top: var(--sp-4);
}

/* Separador "ou" entre entrar e criar conta (visual, sem papel semântico). */
.v-login__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.v-login__divider::before,
.v-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Cadastro na mesma página (sempre visível, inclusive sem JavaScript). */
.v-login__register {
  margin-top: var(--sp-5);
}

.v-login__section-title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}

.v-login__form--register {
  margin-top: var(--sp-3);
}

.v-login__hint {
  margin: var(--sp-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-12);
  line-height: 1.5;
}

/* O hint fica entre a senha e o rótulo de confirmação. */
.v-login__form .v-login__hint + .v-label {
  margin-top: var(--sp-4);
}

.v-login__alt {
  margin: var(--sp-2) 0 0;
  text-align: center;
  font-size: var(--fs-13);
  color: var(--text-secondary);
  line-height: 1.5;
}

.v-login__alt .v-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.v-login__submit {
  margin-top: var(--sp-4);
}

.v-login__footer {
  margin-top: var(--sp-6);
  font-size: var(--fs-13);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.v-login__back {
  display: block;
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-13);
}

/* Destino do login (aparece só quando há um `?next=` interno válido). */
.v-login__next {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-13);
  color: var(--text-secondary);
  text-align: center;
  word-break: break-word;
}

/* ────────────────────────────────────────────────────────────
   16. PLAYER (§2.9)
   ──────────────────────────────────────────────────────────── */

.v-player {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.v-player__stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: #000;
}

.v-player__video {
  max-width: 100%;
  max-height: 100dvh;
  width: auto;
  height: auto;
  background: #000;
}

.v-player__image {
  max-width: 100%;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.v-player__back {
  position: absolute;
  top: calc(var(--sp-2) + env(safe-area-inset-top));
  left: var(--sp-2);
  z-index: var(--z-10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: #fff;
  background: rgba(0, 0, 0, .45);
  cursor: pointer;
  text-decoration: none;
}

.v-player__back:hover {
  background: rgba(0, 0, 0, .65);
  text-decoration: none;
}

/* O chevron aponta para a direita por padrão; no botão "voltar" gira. */
.v-player__back .v-icon {
  transform: rotate(180deg);
}

.v-player__caption {
  position: absolute;
  top: calc(var(--sp-2) + env(safe-area-inset-top));
  left: calc(var(--sp-2) + 44px + var(--sp-3));
  z-index: var(--z-10);
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: var(--fs-13);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* Estado "entre para assistir" (visitante): o botão "Entrar" leva para a
   página de login, que concentra login por e-mail/senha e cadastro. */
.v-player__auth-login {
  text-decoration: none;
}

/* Dentro do player o texto de erro precisa de contraste sobre preto. */
.v-player__state .v-error {
  color: #fff;
}

.v-player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-10);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
  opacity: 1;
  transition: opacity var(--dur-2) var(--ease-in-out);
}

.v-player__controls.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.v-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-md);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.v-player__btn:hover {
  background: rgba(255, 255, 255, .12);
}

.v-player__btn .v-icon {
  width: 24px;
  height: 24px;
}

.v-player__progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.v-player__seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
}

.v-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: var(--r-full);
  background: #fff;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-in-out);
}

.v-player__seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: var(--r-full);
  background: #fff;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-in-out);
}

.v-player__seek:hover::-webkit-slider-thumb,
.v-player__seek:focus-visible::-webkit-slider-thumb,
.v-player__seek:hover::-moz-range-thumb,
.v-player__seek:focus-visible::-moz-range-thumb {
  opacity: 1;
}

.v-player__time {
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.v-player__bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding-left: 4px; /* compensação óptica do triângulo */
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.v-player__bigplay:hover {
  background: rgba(0, 0, 0, .75);
}

.v-player__bigplay .v-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.v-player__state {
  position: absolute;
  inset: 0;
  z-index: var(--z-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  text-align: center;
  background: rgba(0, 0, 0, .72);
  color: #fff;
}

.v-player__state-text {
  font-size: var(--fs-14);
  color: #fff;
  max-width: 320px;
  line-height: 1.5;
}

.v-player__state .v-btn {
  background: #fff;
  color: #000;
}

.v-player :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────
   17. TOASTS (§2.10)
   ──────────────────────────────────────────────────────────── */

.v-toasts {
  position: fixed;
  z-index: var(--z-700);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.v-toasts--desktop {
  right: var(--sp-4);
  bottom: var(--sp-4);
  align-items: flex-end;
}

.v-toasts--mobile {
  top: calc(var(--topbar-h) + env(safe-area-inset-top));
  left: var(--sp-3);
  right: var(--sp-3);
  align-items: stretch;
}

.v-toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 280px;
  max-width: 360px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  font-size: var(--fs-14);
  line-height: 1.43;
  pointer-events: auto;
  animation: v-toast-in var(--dur-3) var(--ease-out);
}

.v-toast--light {
  background: #1a1a1a;
  color: #fff;
}

.v-toast--dark {
  background: #f2f2f5;
  color: #111114;
}

.v-toast__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.v-toast__icon--success { color: var(--success); }
.v-toast__icon--info { color: var(--brand); }
.v-toast__icon--error { color: var(--danger); }

.v-toast.is-leaving {
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-in-out);
}

@keyframes v-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ────────────────────────────────────────────────────────────
   18. SKELETONS (§2.11)
   ──────────────────────────────────────────────────────────── */

.v-skel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--surface-3);
}

.v-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: v-shimmer 1.4s infinite linear;
  transform: translateX(-100%);
}

@keyframes v-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.v-skel--avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  flex: none;
}

.v-skel--line {
  height: 12px;
  border-radius: var(--r-full);
}

.v-skel--media {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.v-skel--cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--r-md);
}

.v-skel-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}

/* Skeleton do card de criador com capa (grid da home/descobrir). */
.v-skel-cover {
  display: block;
}

.v-skel-cover > .v-skel--line:nth-child(2) {
  margin-top: var(--sp-2);
}

.v-skel-cover > .v-skel--line:nth-child(3) {
  margin-top: var(--sp-1);
}

/* ────────────────────────────────────────────────────────────
   19. EMPTY STATE (§2.12)
   ──────────────────────────────────────────────────────────── */

.v-empty {
  padding: var(--sp-12) var(--sp-4);
  text-align: center;
}

/* Variação compacta: estado vazio dentro de uma seção da página
   (ex.: "Você ainda não assinou ninguém") — mesmo linguagem visual,
   com menos peso na página. */
.v-empty--compact {
  padding: var(--sp-6) var(--sp-4);
}

.v-empty__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-empty__icon .v-icon {
  width: 48px;
  height: 48px;
}

.v-empty__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.v-empty__text {
  margin: var(--sp-2) auto 0;
  max-width: 320px;
  font-size: var(--fs-14);
  color: var(--text-secondary);
  line-height: 1.5;
}

.v-empty__action {
  margin-top: var(--sp-4);
}

/* Duas ações no mesmo estado vazio (ex.: "Descobrir" + "Entrar"). */
.v-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.v-empty__actions .v-empty__action {
  margin-top: 0;
}

/* ────────────────────────────────────────────────────────────
   20. RESPONSIVIDADE (§8)
   ──────────────────────────────────────────────────────────── */

/* Grade de criadores (card de capa): 2 col no mobile · 3 em ≥768px
   · 4 em ≥1024px · 5 em ≥1280px. */
@media (min-width: 768px) {
  :root {
    --gutter: var(--sp-6);
    --topbar-h: var(--topbar-h-desktop);
  }

  .v-topbar__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .v-topbar__search {
    display: block;
    width: 400px;
    max-width: min(400px, 100%);
  }

  .v-topbar__search-mobile {
    display: none;
  }

  .v-cgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v-mgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Perfil: cabeçalho (avatar + identidade) à esquerda e ações à
     direita, na mesma faixa do nome/handle/stats. */
  .v-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--sp-6);
  }

  .v-profile__cover,
  .v-profile__media {
    grid-column: 1 / -1;
  }

  .v-profile__head {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: start;
    padding: 0 var(--gutter);
  }

  .v-profile__avatar {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 120px;
    margin-top: -60px;
    font-size: 40px;
  }

  .v-profile__identity {
    grid-column: 2;
    grid-row: 1;
  }

  .v-profile__title {
    font-size: var(--fs-24);
  }

  /* Linha única de contadores (o avatar de 128px libera a largura). */
  .v-profile__stats {
    flex-wrap: nowrap;
    gap: var(--sp-1) 0;
  }

  /* Desktop: sem sticky/full-width. Os botões alinham com o título
     (12px abaixo do topo do head, como a margem do título). */
  .v-profile__actions {
    position: relative;
    top: auto;
    grid-column: 2;
    display: flex;
    flex-wrap: nowrap;
    align-self: start;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-2);
    margin: 12px var(--gutter) 0 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .v-profile__actions .v-btn {
    width: auto;
    height: 40px;
  }

  .v-profile__actions .v-btn--icon {
    width: 40px;
    height: 40px;
    flex: none;
  }

  .v-fans {
    margin-top: var(--sp-10);
    padding-top: var(--sp-6);
  }

  .v-fans__podium {
    gap: var(--sp-3);
  }

  .v-fans__top {
    padding: var(--sp-5) var(--sp-3) var(--sp-4);
  }

  .v-toasts--desktop {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .v-sidebar {
    display: block;
    position: fixed;
    top: var(--topbar-h-desktop);
    bottom: 0;
    left: 0;
    width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    background: var(--bg);
    z-index: var(--z-200);
    overflow-y: auto;
  }

  .v-bottomnav {
    display: none;
  }

  .v-main {
    margin-left: var(--sidebar-w);
    padding-bottom: var(--sp-8);
  }

  .v-cgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .v-mgrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-2);
  }

  .v-topbar__inner {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
}

@media (min-width: 1280px) {
  .v-cgrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .v-mgrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .v-topbar__search {
    max-width: 400px;
  }
}

@media (max-width: 767px) {
  .v-toasts--desktop {
    display: none;
  }
}

/* Telas muito estreitas (320px): aperta a topbar (ícones de 36px e
   gutter de 8px) para a wordmark + 6 ações caberem sem overflow. */
@media (max-width: 359px) {
  :root {
    --gutter: var(--sp-2);
  }

  .v-topbar__inner {
    gap: var(--sp-1);
  }

  .v-topbar__logo {
    font-size: 18px;
  }

  .v-topbar__actions {
    gap: 0;
  }

  .v-topbar__icon-btn,
  .v-topbar__login {
    width: 36px;
    padding: 0;
  }

  .v-topbar__icon-btn .v-icon {
    width: 20px;
    height: 20px;
  }
}

/* ────────────────────────────────────────────────────────────
   21. MOVIMENTO REDUZIDO (§5.5)
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .v-skel::after {
    animation: none;
    display: none;
  }

  .v-fans__body {
    animation: none;
  }

  .v-spinner {
    animation: none;
    border-right-color: currentColor;
    opacity: .6;
  }
}

/* ────────────────────────────────────────────────────────────
   22. MODO VISITANTE (§2.16)

   Quem navega sem token (ou com um token expirado) NÃO vai para a
   tela de login: vê o conteúdo público e um convite para entrar.
   O chrome troca o avatar pelo botão "Entrar" (topbar), o bloco de
   usuário pelo item "Entrar" (sidebar) e a aba "Perfil" pela aba
   "Entrar" (bottom nav).

   Nenhuma cor nova: só --brand (azul da marca), --text-secondary,
   --surface-2 e os tokens já existentes.
   ──────────────────────────────────────────────────────────── */

/* Topbar: pill "Entrar" (40px, --r-full, fundo --brand). */
.v-topbar__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--on-brand);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-in-out);
}

.v-topbar__login:hover {
  background: var(--brand-hover);
  text-decoration: none;
}

.v-topbar__login .v-icon {
  width: 18px;
  height: 18px;
}

/* Telas estreitas: o "Entrar" vira botão de ícone 40×40 (o mesmo
   formato dos outros) para a topbar não estourar — o texto continua
   visível na bottom nav, na sidebar e no banner. */
@media (max-width: 479px) {
  .v-topbar__login {
    width: 40px;
    padding: 0;
  }

  .v-topbar__login span {
    display: none;
  }
}

/* Sidebar: o item "Entrar" ocupa o rodapé inteiro — mesmo ícone e
   mesmo estilo dos demais itens da lista. */
.v-sidebar__login {
  width: 100%;
}

/* Itens que só existem com sessão (Perfil, Sair) saem de cena no modo
   visitante — o item "Entrar" do rodapé os substitui. */
.v-is-guest [data-guest-hide] {
  display: none !important;
}

/* Banner de visitante: o texto cresce e o CTA "Entrar" fica à direita
   (empilha no mobile). */
.v-banner--guest {
  flex-wrap: wrap;
}

.v-banner--guest .v-banner__text {
  flex: 1 1 240px;
  min-width: 0;
}

.v-banner__action {
  flex: none;
  margin-left: auto;
}

.v-banner__action .v-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .v-banner--guest .v-banner__action {
    width: 100%;
    margin-left: 0;
  }
}

/* ────────────────────────────────────────────────────────────
   23. TELA DE INSTALAÇÃO (§2.17)

   O conteúdo gratuito só existe dentro do app INSTALADO. Quem
   abre no navegador comum vê esta tela no lugar do conteúdo — e
   as APIs de feed nem são chamadas.

   Nenhuma cor nova: só --brand, --on-brand, --text, --text-secondary,
   --text-tertiary, --surface, --border e --r-*.
   ──────────────────────────────────────────────────────────── */

.v-install {
  max-width: 420px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v-install__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

.v-install__brand {
  margin-top: var(--sp-3);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.v-install__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.v-install__text {
  margin-top: var(--sp-3);
  max-width: 360px;
  font-size: var(--fs-14);
  color: var(--text-secondary);
  line-height: 1.5;
}

.v-install__actions {
  margin-top: var(--sp-6);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.v-install__actions .v-btn {
  min-width: 160px;
}

/* Instruções manuais de instalação (iOS / navegadores sem o evento). */
.v-install__hint {
  margin-top: var(--sp-4);
  width: 100%;
  min-height: 1px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-13);
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.5;
}

/* Região viva: começa VAZIA (sem caixa, 1px) e ganha a caixa quando o
   texto aparece — um elemento com `hidden` não seria anunciado pelo
   leitor de tela. */
.v-install__hint:empty {
  margin-top: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.v-install__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-12);
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Telas estreitas: os botões empilham (um por linha). */
@media (max-width: 479px) {
  .v-install {
    padding: var(--sp-6) var(--sp-2);
  }

  .v-install__actions .v-btn {
    width: 100%;
  }
}

/* ────────────────────────────────────────────────────────────
   24. CTA DE CHAT DA CRIADORA

   Vive FORA de #v-main (creator.html): o viewer.js re-renderiza o
   perfil inteiro, mas o shell permanece. O roteador esconde o link
   quando a rota deixa de ser /creator/{slug} (ver syncChatCta).
   ──────────────────────────────────────────────────────────── */

.v-chat-cta {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + var(--sp-4));
  z-index: var(--z-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-full);
  background: var(--brand-strong);
  color: var(--on-brand-strong);
  box-shadow: var(--shadow-3);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color var(--dur-1) var(--ease-in-out),
              transform var(--dur-1) var(--ease-out);
}

.v-chat-cta:hover {
  background: var(--brand-strong-hover);
  color: var(--on-brand-strong);
  text-decoration: none;
}

.v-chat-cta:active {
  transform: scale(.98);
}

.v-chat-cta .v-icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .v-chat-cta {
    right: var(--sp-6);
    bottom: var(--sp-6);
  }
}

/* ────────────────────────────────────────────────────────────
   25. CURTIDOS (/likes)

   Página server-rendered que lista as mídias curtidas pelo viewer.
   Mobile-first: cards em uma coluna; duas colunas a partir de 768px.
   Todas as cores vêm dos tokens (tema claro/escuro automáticos).
   ──────────────────────────────────────────────────────────── */

.v-likes {
  max-width: 960px;
  margin: 0 auto;
}

.v-likes__head {
  margin-bottom: var(--sp-2);
}

.v-likes__intro {
  margin-top: var(--sp-1);
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

.v-likes__state {
  margin: var(--sp-5) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

.v-likes__state--error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  color: var(--danger);
}

/* O erro recebe foco no retry (tabindex="-1"): o contorno garante que
   o foco programático continua visível. */
.v-likes__state--error:focus {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.v-likes__list {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2);
}

.v-likes__item {
  min-width: 0;
}

.v-likes__card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 96px;
  padding: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-in-out),
              border-color var(--dur-1) var(--ease-in-out),
              transform var(--dur-1) var(--ease-out);
}

.v-likes__card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.v-likes__card:active {
  transform: scale(.995);
}

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

.v-likes__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--text-tertiary);
}

.v-likes__thumb-fallback .v-icon {
  width: 24px;
  height: 24px;
}

.v-likes__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Item bloqueado: a thumb desfocada evita entregar o conteúdo. */
.v-likes__card--locked .v-likes__thumb-img {
  filter: blur(8px);
  transform: scale(1.08);
}

.v-likes__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.v-likes__creator {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-likes__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v-likes__meta {
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: var(--fs-12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Coração da direita: reforça que aquele item está curtido. */
.v-likes__heart {
  display: inline-flex;
  flex: none;
  padding: var(--sp-2);
  color: var(--like);
}

.v-likes__heart .v-icon {
  width: 18px;
  height: 18px;
  fill: var(--like);
  stroke: var(--like);
}

@media (min-width: 480px) {
  .v-likes__thumb {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 768px) {
  .v-likes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .v-likes__thumb {
    width: 96px;
    height: 96px;
  }
}

/* ────────────────────────────────────────────────────────────
   22. MODAL DE ASSINATURA — oferta, combo e indisponibilidade
   ──────────────────────────────────────────────────────────── */
.v-modal__plan-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  min-width: 0;
}

.v-modal__plan-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: var(--fs-12);
  line-height: 1.35;
  /* 12px pede um tom mais firme: o secundário mantém a hierarquia e
     melhora a leitura da descrição do plano no celular. */
  color: var(--text-secondary);
}

.v-modal__plan-per {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

.v-modal__plan-value--soft {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
}

.v-modal__plan-value--free {
  font-size: var(--fs-16);
  color: var(--link);
}

.v-modal__plan--disabled {
  opacity: .62;
  cursor: not-allowed;
}

.v-modal__plan--disabled:hover {
  background: transparent;
}

@media (max-width: 420px) {
  .v-modal__plan {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .v-modal__plan-price {
    width: 100%;
    justify-content: flex-end;
  }
}

/* 320px: com 16px de margem + 24px de padding sobram 238px de conteúdo
   no diálogo — apertado para o QR de 220px e para o botão de 200px do
   copiar PIX. 8px de margem + 16px de padding devolvem 32px sem mexer
   nos componentes. */
@media (max-width: 359px) {
  .v-modal {
    padding: var(--sp-2);
  }

  /* O dialog nasce com width: calc(100vw - 32px). Em 320px isso deixa
     o conteúdo com 240px; 100% do padding-box do modal devolve os 16px
     da margem externa (304px de dialog, 272px de conteúdo). */
  .v-modal__dialog {
    width: 100%;
    padding: var(--sp-4);
    max-height: calc(100dvh - 16px);
  }
}

/* Copia e cola PIX: 12px é pequeno demais no celular. A quebra em
   qualquer ponto (overflow-wrap) mantém o textarea dentro do card. */
@media (max-width: 480px) {
  .v-checkout__textarea {
    font-size: var(--fs-13);
  }
}
