/* =========================================================
   OnlyGayStars — Conta, autenticação e páginas de texto
   (redesign cinematográfico do site público)

   Páginas e classes de âmbito:
   - .auth-page        login, register, forgot, reset, redeem, subscription_return
   - .membership-page  membership.php (não-membros)
   - .account-page     account.php
   - .upload-page      upload.php
   - .help-page        help.php (inclui os tickets de partials/ticket-view.php)
   - .legal-page       terms.php, privacy.php, dmca.php

   Esta folha é carregada em TODAS as páginas públicas (head.php): cada regra
   fica debaixo de html.is-public E da classe da página, para não mexer nas
   outras páginas nem no backoffice, que reutiliza .account-card, .page-head,
   .form-*, .badge-*, .ticket-*, .admin-table, .thumb-*, .multiselect-*.
   Os botões brancos (.btn-accent em .auth-page, .membership-page e
   .help-page) vêm do app.css; aqui só se ajusta o tamanho e o acabamento.

   Índice:
   01. Tokens locais
   02. Campos, botões e alertas partilhados
   03. Autenticação (.auth-page)
   04. Membership (.membership-page)
   05. Conta (.account-page)
   06. Upload (.upload-page)
   07. Ajuda e tickets (.help-page)
   08. Texto corrido e páginas legais (.help-page, .legal-page)
   ========================================================= */

/* ---------- 01. Tokens locais ---------- */

html.is-public :is(.auth-page, .membership-page, .account-page, .upload-page, .help-page, .legal-page) {
  --pa-panel: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  --pa-line: rgba(255, 255, 255, .09);
  --pa-line-strong: rgba(255, 255, 255, .16);
  /* Texto secundário: o --text-3 do tema fica abaixo de 4.5:1 sobre os
     painéis; este passa (≈5.5:1) e continua abaixo do --text-2 */
  --pa-muted: #8e8e9a;
  --pa-body: #c9c9d2;             /* texto corrido (ajuda, páginas legais) */
  --pa-field: rgba(255, 255, 255, .055);
  --pa-field-hover: rgba(255, 255, 255, .08);
  --pa-radius: 14px;
  /* Grão de película (ruído SVG), por cima dos fundos de gradiente */
  --pa-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 02. Campos, botões e alertas partilhados ---------- */

html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) :is(.form-control, .form-select) {
  min-height: 48px;
  background-color: var(--pa-field);
  border: 1px solid var(--pa-line-strong);
  border-radius: 10px;
  color: var(--text-1);
  font-size: 15px;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) .form-control { padding: 11px 14px; }
html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) .form-select { padding-top: 11px; padding-bottom: 11px; padding-left: 14px; }

html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) :is(.form-control, .form-select):hover:not(:focus):not(:disabled) {
  background-color: var(--pa-field-hover);
}

html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) :is(.form-control, .form-select):focus {
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
  outline: none;
}

html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) .form-control::placeholder { color: var(--pa-muted); }

/* Telemóvel: 16px nos campos, senão o Safari do iPhone faz zoom ao focar */
@media (max-width: 767.98px) {
  html.is-public :is(.auth-page, .account-page, .upload-page, .help-page) :is(.form-control, .form-select) { font-size: 16px; }
}

/* Selecção de ficheiro: o botão nativo ocupa a altura toda do campo */
html.is-public :is(.account-page, .upload-page, .help-page) .form-control[type="file"] { line-height: 24px; }

html.is-public :is(.account-page, .upload-page, .help-page) .form-control::file-selector-button {
  margin: -11px 14px -11px -14px;
  padding: 11px 16px;
  background-color: rgba(255, 255, 255, .1);
  border-right: 1px solid var(--pa-line-strong);
  color: var(--text-1);
  font-weight: 600;
}

html.is-public :is(.account-page, .upload-page, .help-page) .form-control:hover:not(:disabled)::file-selector-button {
  background-color: rgba(255, 255, 255, .16);
}

html.is-public :is(.account-page, .upload-page, .help-page) .form-group { margin-bottom: 20px; }

html.is-public :is(.account-page, .upload-page, .help-page) .form-group > label {
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--text-2);
  margin-bottom: 8px;
}

html.is-public :is(.account-page, .upload-page, .help-page, .auth-page) .form-check-input {
  background-color: var(--pa-field);
  border-color: rgba(255, 255, 255, .28);
}

html.is-public :is(.account-page, .upload-page, .help-page, .auth-page) .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Botões (o vermelho/branco de cada página fica como estava) */
html.is-public :is(.account-page, .upload-page, .help-page) :is(.btn-accent, .btn-ghost):not(.btn-sm) {
  min-height: 46px;
  padding: 11px 22px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

html.is-public :is(.account-page, .upload-page, .help-page) .btn-ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--pa-line-strong);
  color: var(--text-1);
  font-weight: 600;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

html.is-public :is(.account-page, .upload-page, .help-page) .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

html.is-public :is(.account-page, .upload-page, .help-page) :is(.btn-accent, .btn-ghost):active:not(:disabled) { transform: scale(.98); }

html.is-public :is(.account-page, .upload-page, .help-page) :is(.btn-accent, .btn-ghost).btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Texto secundário legível (o utilitário do tema traz !important) */
html.is-public :is(.account-page, .upload-page, .help-page) .text-muted-3 { color: var(--pa-muted) !important; }

html.is-public :is(.account-page, .upload-page, .help-page) .alert { border-radius: 12px; font-size: 14.5px; }

/* O app.css não traz o alerta amarelo para o tema escuro (fila de upload
   cheia, limite de tickets, aviso de duplicado do similar-videos.js) */
html.is-public :is(.upload-page, .help-page) .alert-warning {
  background-color: rgba(255, 193, 7, .1);
  border-color: rgba(255, 193, 7, .35);
  color: #ffd36b;
}

html.is-public .upload-page .similar-alert a:hover { color: #fff; }

html.is-public :is(.account-page, .upload-page, .help-page) .account-msg { border-radius: 10px; }

/* Contagem ao lado dos títulos de secção ("Your uploads 3", "Your tickets 2") */
html.is-public :is(.upload-page, .help-page) .section-count {
  display: inline-block;
  min-width: 28px;
  padding: 5px 9px;
  margin-left: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  color: var(--text-2);
  vertical-align: middle;
}

/* Cabeçalho das páginas de conta: título grande na letra condensada */
html.is-public :is(.account-page, .upload-page, .help-page, .legal-page) .page-head {
  padding: clamp(32px, 6vh, 64px) 0 clamp(22px, 3.5vh, 36px);
}

html.is-public :is(.account-page, .upload-page, .help-page, .legal-page) .page-title {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: .95;
}

html.is-public :is(.account-page, .upload-page, .help-page, .legal-page) .page-sub {
  margin-top: 12px;
  max-width: 60ch;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.55;
  color: var(--pa-muted);
}

/* Painel: cartões de conta, formulário de upload, ticket, contacto */
html.is-public :is(.account-page, .help-page) .account-card,
html.is-public .upload-page .form-page,
html.is-public .help-page #contact {
  background: var(--pa-panel);
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius);
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}

html.is-public :is(.account-page, .help-page) .account-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1;
}

/* Marca vermelha antes do título do painel */
html.is-public :is(.account-page, .help-page) .account-card-title::before {
  content: "";
  flex: none;
  width: 4px;
  height: .78em;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- 03. Autenticação (.auth-page) ----------
   Fundo só de luz: brilho vermelho em cima, um cone de luz, vinheta e grão.
   Sem thumbnails nem imagens (páginas públicas, sem sessão). */

html.is-public .auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 6vh, 64px) var(--gutter);
  background-color: var(--bg-0);
  background-image:
    linear-gradient(to bottom, rgba(11, 11, 13, 0) 80%, var(--bg-0) 100%),
    radial-gradient(130% 95% at 50% 40%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .62) 100%),
    conic-gradient(from 0deg at 50% -12%, rgba(255, 255, 255, 0) 166deg, rgba(255, 255, 255, .05) 180deg, rgba(255, 255, 255, 0) 194deg),
    radial-gradient(60% 48% at 50% -8%, rgba(var(--accent-rgb), .38) 0%, rgba(var(--accent-rgb), .1) 48%, rgba(var(--accent-rgb), 0) 78%),
    radial-gradient(44% 40% at 100% 100%, rgba(var(--accent-rgb), .16) 0%, rgba(var(--accent-rgb), 0) 72%),
    radial-gradient(40% 36% at 0% 80%, rgba(150, 18, 60, .17) 0%, rgba(150, 18, 60, 0) 72%),
    linear-gradient(180deg, #130c0f 0%, var(--bg-0) 66%);
}

/* Halo atrás do cartão */
html.is-public .auth-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(900px, 160vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .06) 55%, rgba(var(--accent-rgb), 0));
  pointer-events: none;
}

/* Grão de película */
html.is-public .auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pa-grain);
  background-size: 180px 180px;
  opacity: .06;
  pointer-events: none;
}

/* O cartão como painel de vidro, com um fio de luz vermelho no topo */
html.is-public .auth-page .auth-card {
  position: relative;
  max-width: 424px;
  padding: 40px 36px 34px;
  background: linear-gradient(180deg, rgba(30, 30, 36, .74), rgba(16, 16, 20, .8));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

html.is-public .auth-page .auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), 0));
}

html.is-public .auth-page .auth-logo {
  font-size: 38px;
  margin-bottom: 26px;
}

html.is-public .auth-page .auth-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  text-wrap: balance;
}

html.is-public .auth-page .auth-sub {
  margin-bottom: 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--pa-muted);
}

html.is-public .auth-page .auth-sub strong { color: var(--text-1); font-weight: 600; }

html.is-public .auth-page .form-group { margin-bottom: 14px; }
html.is-public .auth-page .form-control { min-height: 50px; }

/* "Forgot password?" (login) */
html.is-public .auth-page .auth-forgot {
  text-align: right;
  margin-top: 4px;
  font-size: 13px;
}

html.is-public .auth-page .auth-forgot a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
}

html.is-public .auth-page .auth-forgot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Área de toque de 44px sem mudar o espaço que o link ocupa */
@media (max-width: 767.98px) {
  html.is-public .auth-page .auth-forgot a { padding: 12px 0 12px 16px; margin: -6px 0; }
}

/* "Keep me signed in" à esquerda do "Forgot password?" (login) */
html.is-public .auth-page .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

html.is-public .auth-page .auth-options .auth-forgot { margin-top: 0; }

html.is-public .auth-page .auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

html.is-public .auth-page .auth-remember .form-check-input {
  float: none;
  flex: none;
  margin: 0;
  cursor: pointer;
}

html.is-public .auth-page .auth-remember .form-check-label {
  padding: 6px 0;
  color: var(--text-2);
  cursor: pointer;
}

@media (max-width: 767.98px) {
  html.is-public .auth-page .auth-remember .form-check-label { padding: 12px 16px 12px 0; margin: -6px 0; }
}

/* Botão principal: branco com texto preto (decisão de 2026-10-21), no
   tamanho do .btn-play */
html.is-public .auth-page .btn-accent {
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 24px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #0b0b0d;
  box-shadow: 0 10px 26px -16px rgba(255, 255, 255, .4);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

html.is-public .auth-page .btn-accent:hover { background: rgba(255, 255, 255, .86); color: #000; }
html.is-public .auth-page .btn-accent:active:not(:disabled) { background: rgba(255, 255, 255, .78); transform: scale(.98); }
html.is-public .auth-page .btn-accent:disabled { box-shadow: none; }

/* Secundário: vidro (o .btn-glass do sistema novo) */
html.is-public .auth-page .btn-outline-accent {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

html.is-public .auth-page .btn-outline-accent:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

html.is-public .auth-page .btn-outline-accent:active { transform: scale(.98); }

html.is-public .auth-page .auth-divider {
  margin: 26px 0 16px;
  color: var(--pa-muted);
  font-size: 13px;
}

html.is-public .auth-page .auth-divider::before,
html.is-public .auth-page .auth-divider::after { background: rgba(255, 255, 255, .1); }

html.is-public .auth-page #message .alert {
  margin: 0;
  border-radius: 10px;
  font-size: 14px;
  padding: 12px 14px;
}

html.is-public .auth-page #message:empty { display: none; }

/* Aviso dos 18 anos e termos (register) */
html.is-public .auth-page .auth-legal {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  color: var(--pa-muted);
}

html.is-public .auth-page .auth-legal a,
html.is-public .auth-page .auth-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

html.is-public .auth-page .auth-legal a:hover,
html.is-public .auth-page .auth-link:hover { color: #fff; text-decoration-color: #fff; }

/* O "Log out" do redeem é um botão (POST com CSRF) com o aspecto do link */
html.is-public .auth-page button.auth-link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Notas por baixo dos botões (redeem) */
html.is-public .auth-page .auth-note { margin: 20px 0 0; }

html.is-public .auth-page .auth-fineprint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pa-muted);
}

/* Resumo do resgate (redeem, estado confirm): Account / Access until */
html.is-public .auth-page .account-row {
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 14.5px;
}

html.is-public .auth-page .auth-sub + .account-row { border-top: 1px solid rgba(255, 255, 255, .08); }
html.is-public .auth-page .account-row > span:last-child { color: var(--text-1); font-weight: 600; }
html.is-public .auth-page .account-label { color: var(--pa-muted); }
html.is-public .auth-page .auth-form-confirm { margin-top: 20px; }

@media (max-width: 575.98px) {
  html.is-public .auth-page .auth-card { padding: 32px 22px 26px; border-radius: 16px; }
  html.is-public .auth-page .auth-logo { font-size: 33px; margin-bottom: 22px; }
  html.is-public .auth-page .auth-card h1 { font-size: 30px; }
}

/* ---------- 04. Membership (.membership-page) ----------
   Estrutura e lógica intactas (app.css): colagem = 4 primeiros da montra,
   a grelha esconde os filhos 1–4 a partir de 768px (nth-child), colagem
   escondida no telemóvel. Aqui não se mexe no display dos cartões. */

html.is-public .membership-page {
  position: relative;
  isolation: isolate;
  /* o brilho por trás da colagem sai da coluna: sem scroll horizontal */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4.5vh, 48px) var(--gutter) 80px;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(46% 62% at 80% 34%, rgba(var(--accent-rgb), .24) 0%, rgba(var(--accent-rgb), .07) 50%, rgba(var(--accent-rgb), 0) 78%),
    radial-gradient(40% 46% at 6% 0%, rgba(150, 18, 60, .18) 0%, rgba(150, 18, 60, 0) 70%),
    linear-gradient(180deg, #130c0f 0%, var(--bg-0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 1100px;
}

/* Grão só na zona do hero, a desvanecer para baixo */
html.is-public .membership-page::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: -1;
  background-image: var(--pa-grain);
  background-size: 180px 180px;
  opacity: .05;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}

html.is-public .membership-page > section {
  max-width: 1360px;
  margin-inline: auto;
}

html.is-public .membership-page .membership-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 96px);
  min-height: min(78vh, 760px);
}

html.is-public .membership-page .membership-brand {
  font-size: 32px;
  margin-bottom: clamp(28px, 6vh, 64px);
}

html.is-public .membership-page .membership-eyebrow { display: flex; }

html.is-public .membership-page .membership-title {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.2vw, 96px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .9;
  text-wrap: balance;
}

html.is-public .membership-page .membership-title span { color: var(--accent); }

html.is-public .membership-page .membership-title-sub {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--pa-body);
}

html.is-public .membership-page .membership-benefits {
  gap: 14px;
  margin: 0 0 36px;
}

html.is-public .membership-page .membership-benefits li {
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--pa-body);
}

html.is-public .membership-page .membership-benefits i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 17px;
  line-height: 1;
  color: #fff;
}

/* CTA: branco com texto preto (app.css), no tamanho de um .btn-play grande */
html.is-public .membership-page .membership-cta {
  min-height: 58px;
  padding: 0 46px;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px -14px rgba(255, 255, 255, .45);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

html.is-public .membership-page .membership-cta .bi { font-size: 19px; }
html.is-public .membership-page .membership-cta:hover { background: rgba(255, 255, 255, .86); color: #000; }
html.is-public .membership-page .membership-cta:active { transform: scale(.98); }

html.is-public .membership-page .membership-secondary {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--pa-muted);
}

html.is-public .membership-page .membership-secondary a,
html.is-public .membership-page .membership-secondary button {
  color: var(--pa-body);
  text-decoration-color: rgba(255, 255, 255, .3);
}

html.is-public .membership-page .membership-secondary a:hover,
html.is-public .membership-page .membership-secondary button:hover:not(:disabled) { color: #fff; text-decoration-color: #fff; }

html.is-public .membership-page .membership-refresh-msg {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--pa-body);
}

/* Colagem: 2×2 desfasada, com brilho vermelho por trás */
html.is-public .membership-page .membership-collage {
  position: relative;
  gap: clamp(10px, 1.1vw, 16px);
  padding-bottom: 44px;
}

html.is-public .membership-page .membership-collage::before {
  content: "";
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), 0));
  pointer-events: none;
}

html.is-public .membership-page .membership-collage .video-card--compact:nth-child(even) { transform: translateY(44px); }

html.is-public .membership-page .membership-collage .video-card-thumb {
  border-radius: 10px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07);
}

/* Até 1200px os cartões da colagem são pequenos: cadeado mais pequeno,
   para não tapar a imagem nem encostar à duração */
@media (min-width: 768px) and (max-width: 1199.98px) {
  html.is-public .membership-page .membership-collage .video-card-lock { font-size: 14px; }
  html.is-public .membership-page .membership-collage .video-card-lock i { width: 36px; height: 36px; }
}

/* Cartões bloqueados no estilo novo: cadeado num círculo de vidro, que
   fica branco no hover (como o botão de play) */
html.is-public .membership-page .video-card-thumb { border-radius: 8px; }
html.is-public .membership-page .video-card-duration { z-index: 3; }

html.is-public .membership-page .video-card-lock {
  z-index: 2;
  font-size: 18px;
}

html.is-public .membership-page .video-card-lock i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(11, 11, 13, .5);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  filter: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}

html.is-public .membership-page .video-card--locked:hover .video-card-lock { background: rgba(0, 0, 0, .35); }

html.is-public .membership-page .video-card--locked:hover .video-card-lock i {
  background: #fff;
  border-color: #fff;
  color: #0b0b0d;
  transform: scale(1.08);
}

html.is-public .membership-page .video-card--locked:focus-visible { outline: none; }

html.is-public .membership-page .video-card--locked:focus-visible .video-card-thumb {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html.is-public .membership-page .video-card--locked .video-card-title { color: var(--text-1); }
html.is-public .membership-page .video-card--locked:hover .video-card-title { color: #fff; }

html.is-public .membership-page .membership-teasers {
  width: 100%;
  margin-top: clamp(56px, 8vh, 96px);
}

html.is-public .membership-page .membership-teasers .section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 800;
}

@media (max-width: 767.98px) {
  html.is-public .membership-page {
    padding: 22px var(--gutter) 56px;
    background-size: 100% 760px;
  }

  html.is-public .membership-page .membership-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  html.is-public .membership-page .membership-brand { font-size: 28px; margin-bottom: 30px; }
  html.is-public .membership-page .membership-title { font-size: clamp(44px, 13vw, 60px); margin-top: 14px; }
  html.is-public .membership-page .membership-title-sub { margin-bottom: 26px; }
  html.is-public .membership-page .membership-benefits { margin-bottom: 30px; }
  html.is-public .membership-page .membership-benefits li { font-size: 15px; }
  html.is-public .membership-page .membership-cta { width: 100%; padding: 0 20px; }

  /* "Refresh status", "Log out": o padding de um elemento inline alarga a
     área de toque (até ~44px) sem mexer na altura das linhas */
  html.is-public .membership-page .membership-secondary :is(a, button) { padding: 9px 2px; margin-block: -9px; }
  html.is-public .membership-page .video-card-lock { font-size: 15px; }
  html.is-public .membership-page .video-card-lock i { width: 38px; height: 38px; }
  html.is-public .membership-page .membership-teasers { margin-top: 48px; }
  html.is-public .membership-page .membership-teasers .section-title { text-align: left; margin-bottom: 18px; }
}

/* ---------- 05. Conta (.account-page) ---------- */

html.is-public .account-page .account-wrap { max-width: calc(760px + 2 * var(--gutter)); }

html.is-public .account-page .account-card { margin-bottom: 18px; }

html.is-public .account-page .account-row {
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--pa-line);
  font-size: 15px;
}

html.is-public .account-page .account-card-title + .account-row,
html.is-public .account-page .account-note--first + .account-row { border-top: 0; padding-top: 4px; }

html.is-public .account-page .account-row > span:last-child {
  min-width: 0;
  margin-left: auto;
  text-align: right;
  overflow-wrap: anywhere;
}

html.is-public .account-page .account-label { color: var(--pa-muted); }

html.is-public .account-page .account-row a,
html.is-public .account-page .account-note a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

html.is-public .account-page .account-row a:hover,
html.is-public .account-page .account-note a:hover { color: #fff; text-decoration-color: #fff; }

html.is-public .account-page .account-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

html.is-public .account-page .account-badge-off { background: rgba(255, 255, 255, .08); color: var(--text-2); }

html.is-public .account-page .account-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pa-muted);
}

html.is-public .account-page .account-note--first { margin: 0 0 12px; }
html.is-public .account-page .account-note--small { font-size: 12.5px; }
html.is-public .account-page .account-actions { gap: 10px; margin-top: 18px; }
html.is-public .account-page .account-cta { margin: 18px 0 0; }
html.is-public .account-page #password-form .btn-accent { margin-top: 4px; }

@media (max-width: 575.98px) {
  /* Etiqueta e valor em linhas próprias: emails longos não ficam espremidos */
  html.is-public .account-page .account-row { flex-direction: column; align-items: flex-start; }
  html.is-public .account-page .account-row > span:last-child { margin-left: 0; text-align: left; }
  html.is-public .account-page .account-actions > * { flex: 1 1 100%; }
}

/* ---------- 06. Upload (.upload-page) ----------
   Atenção: o modal de performers (#performerModal, Bootstrap, position
   fixed) vive DENTRO do formulário. Nada de transform, filter,
   backdrop-filter nem z-index nos antepassados dele (main, .page-wrap,
   .form-page, .form-group), senão o modal fica preso ao painel. */

html.is-public .upload-page .page-wrap { max-width: calc(920px + 2 * var(--gutter)); }

html.is-public .upload-page .form-page { max-width: none; }

html.is-public .upload-page .form-page > .form-group {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--pa-line);
}

html.is-public .upload-page .upload-progress {
  height: 6px;
  background: rgba(255, 255, 255, .08);
}

html.is-public .upload-page .upload-progress-bar { box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); }

/* Thumbnail: o app.css usa --radius-md e --text-muted, que não existem */
html.is-public .upload-page #thumb-preview,
html.is-public .upload-page .thumb-grid img,
html.is-public .upload-page .thumb-grid .thumb-slot { border-radius: 8px; }

html.is-public .upload-page #thumb-preview { border-color: var(--pa-line-strong); }
html.is-public .upload-page .thumb-grid img:not(.selected):hover { border-color: rgba(255, 255, 255, .55); }

/* Categorias como fichas: a ficha inteira é clicável (a etiqueta estica) */
html.is-public .upload-page .check-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

html.is-public .upload-page .check-grid .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

html.is-public .upload-page .check-grid .form-check:hover { border-color: var(--pa-line-strong); background: rgba(255, 255, 255, .05); }

html.is-public .upload-page .check-grid .form-check-input {
  float: none;
  flex: none;
  margin: 0;
}

html.is-public .upload-page .check-grid .form-check-label {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

html.is-public .upload-page .check-grid .form-check:has(.form-check-input:checked) {
  border-color: rgba(var(--accent-rgb), .65);
  background: rgba(var(--accent-rgb), .1);
}

/* "Select all": linha de 44px, com a etiqueta toda clicável */
html.is-public .upload-page .form-check:has(> #check_all) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-left: 0;
}

html.is-public .upload-page .form-check:has(> #check_all) .form-check-input { float: none; flex: none; margin: 0; }
html.is-public .upload-page .form-check:has(> #check_all) .form-check-label { padding: 11px 12px 11px 0; cursor: pointer; }

/* Telemóvel: duas colunas de fichas (numa só, as 29 categorias davam um
   ecrã e meio de lista) */
@media (max-width: 575.98px) {
  html.is-public .upload-page .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.is-public .upload-page .check-grid .form-check { gap: 8px; padding: 0 10px; }
  html.is-public .upload-page .check-grid .form-check-label { font-size: 13.5px; overflow-wrap: anywhere; }
}

/* Multiselect de performers (markup e JS do app.js intactos) */
html.is-public .upload-page .multiselect-selected {
  padding-right: 40px;
  background-position: right 14px center;
  line-height: 1.6;
}

html.is-public .upload-page .multiselect-options-wrapper {
  top: calc(100% + 6px);
  padding: 12px;
  background: #17171c;
  border: 1px solid var(--pa-line-strong);
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .65);
}

html.is-public .upload-page #performers-checkbox-list .form-check { padding-top: 6px; padding-bottom: 6px; }

html.is-public .upload-page #submit-btn { min-height: 52px; padding: 12px 28px; font-size: 15.5px; }

/* Modal "Propose a performer" (partials/performer-modal.php). O script do
   modal muda-o para o <body>, fora do .upload-page: o âmbito é o id, só
   debaixo de html.is-public (no admin — add, edit-video, admin/upload — o
   mesmo modal tem html.is-admin e fica como estava). */
html.is-public #performerModal .modal-content {
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85);
}

html.is-public #performerModal .modal-header { padding: 18px 22px; border-bottom-color: rgba(255, 255, 255, .09); }
html.is-public #performerModal .modal-body { padding: 20px 22px 22px; }

html.is-public #performerModal .modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
}

/* O --text-3 do tema não chega a 4.5:1 sobre o modal */
html.is-public #performerModal .text-muted-3 { color: #8e8e9a !important; }

/* Tabelas "Your uploads" / "Your proposed performers" */
html.is-public .upload-page .section-title { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 18px; }

html.is-public .upload-page .table-responsive {
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius);
  background: var(--pa-panel);
}

html.is-public .upload-page .admin-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, .025);
  --bs-table-border-color: var(--pa-line);
  margin: 0;
  border-radius: 0;
}

html.is-public .upload-page .admin-table thead th {
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--pa-muted);
}

html.is-public .upload-page .admin-table td { padding: 13px 16px; font-size: 14.5px; }
html.is-public .upload-page .admin-table tbody tr:last-child > * { border-bottom-width: 0; }
html.is-public .upload-page .admin-table img.row-thumb { width: 96px; height: 54px; border-radius: 6px; }

html.is-public .upload-page .admin-table a:not(.btn-ghost) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
}

html.is-public .upload-page .admin-table a:not(.btn-ghost):hover { text-decoration-color: #fff; }

html.is-public .upload-page .empty-state {
  padding: 44px 20px;
  border: 1px dashed var(--pa-line-strong);
  border-radius: var(--pa-radius);
  color: var(--pa-muted);
}

/* ---------- 07. Ajuda e tickets (.help-page) ----------
   O markup dos tickets vem de partials/ticket-view.php (partilhado com o
   admin/ticket.php): estilos só aqui, debaixo de .help-page. */

html.is-public .help-page .prose-wrap { max-width: calc(820px + 2 * var(--gutter)); }

/* Atalhos para as secções */
html.is-public .help-page .help-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

html.is-public .help-page .help-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

html.is-public .help-page .help-jump a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05); }

html.is-public .help-page .prose-section { margin-bottom: 52px; }

html.is-public .help-page .help-cta { gap: 10px; margin-top: 18px; }

html.is-public .help-page #support > .account-card { margin-bottom: 8px; }

/* "Your tickets" é um h3 com o estilo de título de secção */
html.is-public .help-page #support .section-title {
  font-size: clamp(22px, 1.9vw, 28px);
  margin-bottom: 16px;
}

html.is-public .help-page .empty-state {
  border: 1px dashed var(--pa-line-strong);
  border-radius: var(--pa-radius);
  color: var(--pa-muted);
}

/* Bloco de um ticket (details.ticket dentro do #support) */
html.is-public .help-page .ticket .ticket-subject { font-size: 15.5px; }
html.is-public .help-page .ticket .ticket-meta { color: var(--pa-muted); }

html.is-public .help-page .ticket-thread { gap: 10px; padding: 4px 0 16px; }

html.is-public .help-page .ticket-msg {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

/* Conversa: as mensagens do suporte à esquerda, com a barra vermelha;
   as do utilizador à direita */
html.is-public .help-page .ticket-msg--admin {
  margin-right: clamp(16px, 8%, 56px);
  background: rgba(var(--accent-rgb), .07);
  border-left: 3px solid var(--accent);
}

html.is-public .help-page .ticket-msg--user {
  margin-left: clamp(16px, 8%, 56px);
  background: rgba(255, 255, 255, .07);
}

html.is-public .help-page .ticket-msg-head { color: var(--pa-muted); margin-bottom: 6px; }
html.is-public .help-page .ticket-msg-head strong { color: var(--text-1); }
html.is-public .help-page .ticket-msg-body { color: var(--text-1); font-size: 15px; }
html.is-public .help-page .ticket-reply-form { padding-bottom: 18px; }
html.is-public .help-page .ticket-reply-form .account-actions { margin-top: 0; }
html.is-public .help-page .prose-section .ticket-closed-note { padding-bottom: 16px; }

@media (max-width: 575.98px) {
  html.is-public .help-page .help-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }

  html.is-public .help-page .help-jump::-webkit-scrollbar { display: none; }
  html.is-public .help-page .help-jump a { flex: none; min-height: 44px; }
  html.is-public .help-page :is(.btn-accent, .btn-ghost).btn-sm { min-height: 44px; }
}

/* ---------- 08. Texto corrido e páginas legais ---------- */

html.is-public :is(.help-page, .legal-page) .prose-section { scroll-margin-top: calc(var(--header-h) + 24px); }

html.is-public :is(.help-page, .legal-page) .prose-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  text-wrap: balance;
}

html.is-public :is(.help-page, .legal-page) .prose-section :is(p, li) {
  font-size: 16px;
  line-height: 1.75;
  color: var(--pa-body);
}

html.is-public :is(.help-page, .legal-page) .prose-section p { margin: 0 0 14px; }
html.is-public :is(.help-page, .legal-page) .prose-section :is(ul, ol) { padding-left: 1.3em; margin: 0 0 16px; }
html.is-public :is(.help-page, .legal-page) .prose-section li { margin-bottom: 8px; padding-left: .2em; }
html.is-public :is(.help-page, .legal-page) .prose-section li::marker { color: var(--accent); }
html.is-public :is(.help-page, .legal-page) .prose-section :is(strong, b) { color: var(--text-1); font-weight: 600; }
html.is-public :is(.help-page, .legal-page) .prose-section em { color: #e4e4ea; }

html.is-public :is(.help-page, .legal-page) .prose-section code {
  font-size: .86em;
  color: var(--text-1);
  background: rgba(255, 255, 255, .08);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

html.is-public :is(.help-page, .legal-page) .prose-section a:not(.btn-ghost):not(.btn-accent) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

html.is-public :is(.help-page, .legal-page) .prose-section a:not(.btn-ghost):not(.btn-accent):hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

/* Acordeões (FAQ e tickets): painel, seta em vez de +/− */
html.is-public .help-page .prose-section details {
  margin-bottom: 10px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

html.is-public .help-page .prose-section details:hover { border-color: var(--pa-line-strong); }
html.is-public .help-page .prose-section details[open] { background: rgba(255, 255, 255, .05); border-color: var(--pa-line-strong); }

html.is-public .help-page .prose-section summary {
  min-height: 56px;
  padding: 15px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-1);
}

html.is-public .help-page .prose-section summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 6px;
}

html.is-public .help-page .prose-section summary::after,
html.is-public .help-page .prose-section details[open] summary::after {
  content: "\f282";   /* bi-chevron-down */
  flex: none;
  font-family: bootstrap-icons;
  font-size: 14px;
  color: var(--text-2);
  transition: transform var(--dur) var(--ease-out);
}

html.is-public .help-page .prose-section details[open] > summary::after { transform: rotate(180deg); }
html.is-public .help-page .prose-section details > p { padding-bottom: 18px; margin: 0; }

/* Páginas legais: coluna de leitura de ~72 caracteres */
html.is-public .legal-page .prose-wrap { max-width: calc(760px + 2 * var(--gutter)); }

html.is-public .legal-page .page-head {
  margin-bottom: 44px;
  border-bottom: 1px solid var(--pa-line);
}

html.is-public .legal-page .prose-section {
  max-width: 72ch;
  margin: 0 0 48px;
  font-size: 16px;
}

html.is-public .legal-page .prose-section :is(p, li) { font-size: 16.5px; }

/* DMCA: os três passos como etapas numeradas */
html.is-public .legal-page #request ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

html.is-public .legal-page #request ol > li {
  counter-increment: step;
  position: relative;
  margin-bottom: 14px;
  padding: 16px 18px 16px 64px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--pa-line);
  border-radius: 12px;
}

html.is-public .legal-page #request ol > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

html.is-public .legal-page #request ol > li > strong:first-child { display: block; margin-bottom: 2px; }

@media (max-width: 575.98px) {
  /* Mais largura para o texto: o número passa a ocupar menos */
  html.is-public .legal-page #request ol > li { padding: 14px 14px 14px 52px; }
  html.is-public .legal-page #request ol > li::before { left: 12px; top: 15px; width: 28px; height: 28px; font-size: 16px; }
}

/* Declaração do contra-aviso, como citação */
html.is-public .legal-page #counter li > em {
  display: block;
  margin-top: 10px;
  padding: 14px 18px;
  border-left: 3px solid var(--pa-line-strong);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .03);
}

/* Índice lateral fixo: só em ecrãs largos, e sem JS (lista estática) */
html.is-public .legal-page .legal-toc { display: none; }

@media (min-width: 1200px) {
  html.is-public .legal-page .prose-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: clamp(48px, 5vw, 96px);
    max-width: calc(220px + 96px + 760px + 2 * var(--gutter));
  }

  html.is-public .legal-page .prose-wrap > * { grid-column: 2; }
  html.is-public .legal-page .prose-wrap > .page-head { grid-column: 1 / -1; }

  html.is-public .legal-page .prose-wrap > .legal-toc {
    display: block;
    grid-column: 1;
    grid-row: 2 / span 30;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

html.is-public .legal-page .legal-toc-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--pa-muted);
}

html.is-public .legal-page .legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--pa-line);
}

html.is-public .legal-page .legal-toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--pa-muted);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

html.is-public .legal-page .legal-toc a:hover { color: #fff; border-left-color: rgba(255, 255, 255, .5); }
html.is-public .legal-page .legal-toc a:focus-visible { outline-offset: 0; }
