/* ============================================================
   ESTILO — dark, moderno, mobile-first, leve.
   Cores de destaque vêm do config.js (theme.accent / accent2).
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-soft: #131316;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --accent: #F5A524;
  --accent-2: #FF7A1A;
  --radius: 16px;
  --maxw: 520px;
}

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

/* Garante que o atributo [hidden] esconda mesmo elementos com display custom
   (.modal e .cookie usam display:flex, que sobrescreveria o hidden). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Brilho de fundo decorativo */
.bg-glow {
  position: fixed;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 900px;
  height: 480px;
  background: radial-gradient(circle at 50% 0%,
              color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ---------- Header ---------- */
.profile { text-align: center; margin-bottom: 28px; }

.profile__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 12px 30px rgba(0,0,0,0.5);
}
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.profile__initials { font-size: 36px; font-weight: 700; color: #0a0a0b; }

.profile__name {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
}
.profile__badge { width: 18px; height: 18px; color: var(--accent); flex: none; }

.profile__headline {
  font-size: 16px; font-weight: 600; margin-top: 8px; color: var(--text);
}
.profile__sub { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Botões / Links ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }

.link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.link:hover { background: var(--card-hover); transform: translateY(-2px); }
.link:active { transform: translateY(0) scale(.99); }

.link__icon {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
}
.link__icon svg { width: 21px; height: 21px; }

.link__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link__title { font-size: 15.5px; font-weight: 600; }
.link__subtitle { font-size: 12.5px; color: var(--text-dim); margin-top: 1px; }

.link__arrow { width: 18px; height: 18px; color: var(--text-dim); flex: none; transition: transform .15s ease; }
.link:hover .link__arrow { transform: translateX(3px); }

/* Botão em destaque */
.link--featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.link--featured .link__title,
.link--featured .link__subtitle,
.link--featured .link__arrow { color: #0a0a0b; }
.link--featured .link__subtitle { opacity: .75; }
.link--featured .link__icon { background: rgba(0,0,0,0.14); color: #0a0a0b; }
.link--featured:hover { filter: brightness(1.05); }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 32px; text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.footer__link { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.footer__link:hover { color: var(--text); text-decoration: underline; }
.footer__copy { color: var(--text-dim); font-size: 12px; opacity: .7; }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 12px;
  animation: slideUp .35s ease;
}
.cookie__text { font-size: 13px; color: var(--text-dim); }
.cookie__text a { color: var(--accent); }
.cookie__actions { display: flex; gap: 10px; }

@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Botões base ---------- */
.btn-accent, .btn-ghost {
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: filter .15s ease, background .15s ease;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0b; flex: 1;
}
.btn-accent:hover { filter: brightness(1.06); }
.btn-accent:disabled { opacity: .6; cursor: default; }
.btn-ghost {
  background: transparent; border-color: var(--border); color: var(--text-dim); flex: 1;
}
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-block { width: 100%; flex: none; margin-top: 6px; }

/* ---------- Modal de captura ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(2px); }
.modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  animation: slideUp .3s ease;
}
.modal__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-dim);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.modal__title { font-size: 19px; font-weight: 700; }
.modal__subtitle { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; margin-bottom: 18px; }

.form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12.5px; color: var(--text-dim); }
.field small { opacity: .7; }
.field input {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; outline: none;
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--accent); }
.form__hint { font-size: 12.5px; color: var(--text-dim); text-align: center; min-height: 16px; }

/* ---------- Telas maiores ---------- */
@media (min-width: 600px) {
  .page { padding-top: 72px; }
  .modal { align-items: center; }
  .modal__card { border-radius: 22px; }
}
