/* ============================================================
   Gaby Liiz — link-in-bio
   ============================================================ */

:root {
  --bg: #16060F;
  --surface: #220B19;
  --text: #FFF1F6;
  --muted: rgba(255, 228, 238, .68);
  --faint: rgba(255, 228, 238, .45);
  --accent: #FF7AB6;        /* rosa choque claro: textos, setas, bordas */
  --accent-strong: #D81B6A; /* pink do botão principal */
  --accent-grad: linear-gradient(135deg, #C2185B 0%, #E0287A 55%, #E8336F 100%);
  --accent-ink: #FFFFFF;
  --border: rgba(255, 170, 205, .16);
  --border-strong: rgba(255, 170, 205, .32);
  --line: rgba(255, 170, 205, .12);
  --card: rgba(255, 140, 190, .04);
  --card-hover: rgba(255, 140, 190, .08);
  --radius: 15px;
  --radius-lg: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Profundidade: brilho radial no topo + vinheta nas laterais */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(224, 40, 122, .26), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 77, 109, .12), transparent 70%),
    linear-gradient(90deg, rgba(8, 0, 5, .55), transparent 22%, transparent 78%, rgba(8, 0, 5, .55));
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Topbar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  padding: 18px 16px 16px;
  text-align: center;
}

.logo {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.logo sup {
  font-size: .62em;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(224, 40, 122, .8);
  margin-left: .12em;
  vertical-align: super;
  line-height: 0;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 426px;
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap { padding-top: 40px; padding-bottom: 32px; }

.stack > * + * { margin-top: 14px; }

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

.profile { text-align: center; }

.avatar {
  width: 126px;
  height: 126px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  background: #2a0f1f;
  box-shadow:
    0 0 0 6px rgba(224, 40, 122, .22),
    0 0 36px rgba(224, 40, 122, .45),
    0 14px 44px rgba(0, 0, 0, .55);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.name {
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.handle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tagline {
  margin: 30px 0 18px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
}

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

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, filter .2s;
}

.btn--primary {
  background: var(--accent-strong);
  background-image: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 8px 26px rgba(224, 40, 122, .28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 34px rgba(224, 40, 122, .42);
}
.btn--primary .btn__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}
.btn--primary.has-arrow { padding-left: 42px; padding-right: 42px; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  font-weight: 400;
  font-size: 15px;
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--card-hover); }

.text-link {
  display: inline-block;
  padding: 6px 4px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 228, 238, .3);
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-link:hover { color: var(--text); text-decoration-color: var(--accent); }

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

/* ---------- Cards de link ---------- */

.link-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.link-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.link-card__body { min-width: 0; }
.link-card__title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.link-card__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.link-card__arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform .2s var(--ease);
}
.link-card:hover .link-card__arrow { transform: translate(2px, -2px); }

.link-card--featured {
  border-color: rgba(255, 122, 182, .48);
  background: rgba(255, 122, 182, .06);
}
.link-card--featured:hover {
  border-color: rgba(255, 122, 182, .8);
  background: rgba(255, 122, 182, .1);
}
.link-card--featured .link-card__icon {
  background: rgba(255, 122, 182, .16);
  color: var(--accent);
}

.cards { margin-top: 28px; }

/* ---------- Avisos de navegador interno ---------- */

.webview-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 16px;
  background: rgba(255, 122, 182, .1);
  border-bottom: 1px solid rgba(255, 122, 182, .2);
  font-size: 13px;
  color: var(--text);
  text-align: center;
}
.webview-bar button {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.notice {
  margin: 6px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 122, 182, .45);
  background: rgba(255, 122, 182, .05);
  font-size: 14px;
  text-align: center;
}
.notice p { margin: 0 0 10px; }
.notice .btn { padding: 11px 16px; font-size: 14px; }

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

.gate-card {
  margin-top: 34px;
  padding: 30px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.age-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
}

.dialog-title {
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}
.dialog-text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.gate-card .text-link, .modal .text-link { margin-top: 10px; }

.status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--accent);
}
.status:empty { margin: 0; min-height: 0; }

.btn.is-loading { pointer-events: none; opacity: .8; }

/* ---------- Rodapé ---------- */

.footer {
  padding: 30px 16px 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 3, 9, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding: 34px 22px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  text-align: center;
}
.modal__card:focus { outline: none; }

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.modal .btn--ghost { margin-top: 10px; }

.steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 12px 38px;
  font-size: 15px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 122, 182, .16);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.steps small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.copy-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-align: left; }
.copy-field {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  font: 14px/1.3 var(--sans);
}

@media (max-width: 360px) {
  .name { font-size: 36px; }
  .logo { font-size: 21px; }
}

/* ---------- Animação de entrada ---------- */

.reveal {
  animation: rise .65s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}
