#lovable-badge {
  display: none !important;
}

/*
  Sistema de tokens
  Cor:    #0F0E13 (fundo), #17151D (superfície), #C9A227 (dourado/VIP),
          #B33951 (rosa profundo/CTA), #EDE9E3 (texto claro), #8C8896 (muted)
  Tipo:   'Fraunces' (display, editorial), 'Inter' (corpo/UI), 'Space Mono' (labels/eyebrows)
  Layout: cartão de acesso (crachá) inclinado como elemento assinatura — "backstage pass"
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0F0E13;
  --surface: #17151D;
  --surface-2: #1F1C26;
  --gold: #C9A227;
  --gold-soft: #E4C55E;
  --rose: #B33951;
  --text: #EDE9E3;
  --muted: #8C8896;
  --border: #2A2732;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
}

a { color: inherit; }
.muted { color: var(--muted); }
img, video { max-width: 100%; display: block; }

/* ---------- Layout utilitário ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.grid { display: grid; gap: 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,14,19,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1160px; margin: 0 auto;
}
.logo { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.logo span { color: var(--gold); }
.logo img { height: 38px; width: auto; display: block; }
@media (max-width: 720px) { .logo img { height: 32px; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.94rem; transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: #17140C; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); }
.btn-mini { padding: 8px 16px; font-size: 0.82rem; border-radius: 999px; }
.btn-danger { background: transparent; border: 1px solid var(--rose); color: var(--rose); }
.btn-danger:hover { background: var(--rose); color: #fff; }

/* ---------- Hero: crachá inclinado (elemento-assinatura) ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin: 18px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.pass-card {
  position: relative; margin-left: auto; width: 320px; aspect-ratio: 5/7;
  background: linear-gradient(155deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: 20px;
  transform: rotate(-6deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  padding: 26px;
  transition: transform .4s ease;
}
.pass-card:hover { transform: rotate(-2deg) translateY(-4px); }
.pass-card::before {
  content: ""; position: absolute; top: 20px; right: -8px;
  width: 34px; height: 34px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 50%;
}
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pass-tag { font-family: 'Space Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--gold); border-radius: 6px; padding: 3px 8px; }
.pass-photo { margin-top: 22px; width: 100%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(160deg, #2b2733, #17151d); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--gold); }
.pass-name { font-family: 'Fraunces', serif; margin-top: 18px; font-size: 1.2rem; }
.pass-meta { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.pass-strip { position: absolute; bottom: 0; left: 0; right: 0; height: 14px; border-radius: 0 0 20px 20px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); opacity: 0.7; }

/* ---------- Features ---------- */
.features-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s;
}
.feature-card:hover { border-color: var(--gold); }
.feature-card .icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pass-card { margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- Planos ---------- */
.planos-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plano-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: left;
}
.plano-card .preco { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--gold); margin: 6px 0 10px; }
.plano-card .preco span { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--muted); }
.plano-card .btn { width: 100%; margin-top: 12px; }

/* ---------- Formulários (login/cadastro/admin) ---------- */
.auth-wrap {
  min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.radio-group { display: flex; gap: 16px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); }
.form-footer { margin-top: 20px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.form-footer a { color: var(--gold); text-decoration: none; }

/* ---------- Painel Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 74px); }
.admin-sidebar { border-right: 1px solid var(--border); padding: 28px 18px; }
.admin-sidebar a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: 0.92rem; margin-bottom: 4px;
}
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--surface); color: var(--text); }
.admin-main { padding: 36px; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }

.upload-box {
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 30px;
  background: var(--surface); margin-bottom: 28px;
}
.progress-track { display: none; height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.progress-track div { height: 100%; width: 0%; background: var(--gold); transition: width .2s; }
.upload-status { min-height: 22px; margin: 8px 0 14px; font-size: 0.85rem; }

.conteudos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.card-conteudo { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding-bottom: 12px; }
.card-conteudo .thumb { position: relative; max-height: 320px; overflow: hidden; background: #0d0b12; display: flex; align-items: center; justify-content: center; }
.card-conteudo .thumb img, .card-conteudo .thumb video { width: 100%; height: auto; max-height: 320px; object-fit: contain; display: block; }
.card-conteudo .legenda { font-size: 0.85rem; padding: 8px 12px 4px; color: var(--muted); }
.card-conteudo .btn-mini { margin: 4px 12px 0; }
.badge-vip, .badge-preview {
  position: absolute; top: 8px; left: 8px; font-family: 'Space Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px;
}
.badge-vip { background: var(--gold); color: #17140C; }
.badge-preview { background: rgba(255,255,255,0.12); color: var(--text); }

/* ---------- Feed VIP ---------- */
.feed-vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.post-vip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-media { position: relative; overflow: hidden; background: #0d0b12; display: flex; align-items: center; justify-content: center; max-height: 80vh; }
.post-media img, .post-media video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; }
.post-media.blur img, .post-media.blur video { filter: blur(22px) brightness(0.6); }
.lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: rgba(15,14,19,0.35);
}
.lock-overlay span { font-family: 'Space Mono', monospace; font-size: 0.82rem; }
.post-vip .legenda { padding: 12px 16px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Perfil do criador ---------- */
.perfil-capa { height: 260px; background: linear-gradient(160deg, var(--surface-2), var(--bg)); background-size: cover; background-position: center; }
.perfil-header { display: flex; gap: 24px; align-items: flex-end; margin-top: -60px; padding: 0 24px; }
.perfil-foto { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bg); background: var(--surface-2); object-fit: cover; }
.previa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 24px; grid-auto-flow: dense; }
.previa-item { position: relative; overflow: hidden; border-radius: 10px; background: #111; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.previa-item .previa-media { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.previa-item img, .previa-item video { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; }
.previa-item.previa-locked { aspect-ratio: 1; }
.previa-item.previa-locked .previa-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.previa-item.previa-locked img, .previa-item.previa-locked video { width: 100%; height: 100%; object-fit: cover; }
.previa-item.previa-locked { grid-column: span 2; grid-row: span 2; }
.previa-item.previa-locked .previa-media { filter: blur(28px) saturate(120%) brightness(0.7); transform: scale(1.15); }
.previa-item.previa-locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)); }
.previa-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 16px; gap: 6px; }
.previa-lock-icon { font-size: 34px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.previa-lock-title { font-weight: 700; font-size: 15px; margin: 0; letter-spacing: 0.2px; }
.previa-lock-sub { font-size: 12px; opacity: 0.85; margin: 0 0 8px; }
@media (max-width: 520px) {
  .previa-grid { grid-template-columns: repeat(2, 1fr); }
  .previa-item.previa-locked { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--gold); color: var(--text);
  padding: 14px 22px; border-radius: 12px; font-size: 0.9rem; opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 999; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { border-color: var(--rose); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 720px) {
  .admin-shell { grid-template-columns: 1fr; min-height: 0; }
  .admin-sidebar { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 12px; gap: 6px; }
  .admin-sidebar a { white-space: nowrap; margin-bottom: 0; padding: 8px 12px; }
  .admin-main { padding: 20px 16px; }
}

/* Google auth button + divider */
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted,#888);font-size:13px;}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--border,#e5e5e5);}
.btn-google{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#1f1f1f;border:1px solid #dadce0;font-weight:500;padding:11px 14px;border-radius:8px;cursor:pointer;transition:background .15s,box-shadow .15s;}
.btn-google:hover{background:#f7f8fa;box-shadow:0 1px 2px rgba(0,0,0,.06);}
.btn-google svg{flex-shrink:0;}

/* Preview de perfil no painel */
.perfil-preview { position: relative; margin-bottom: 24px; border-radius: 12px; overflow: hidden; background: #1a1a1a; }
.perfil-preview-capa { width: 100%; height: 140px; background: linear-gradient(135deg, #2a2a2a, #444); background-size: cover; background-position: center; }
.perfil-preview-foto { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #111; position: absolute; left: 20px; bottom: -20px; background: #333; }
.perfil-preview + form { margin-top: 32px; }

/* Skeleton de carregamento */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2) !important; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: skeleton-shimmer 1.2s infinite;
}
@keyframes skeleton-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.aviso-seguranca {
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.35);
  color: #ffcf70;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 18px;
}

/* Cabeçalho do autor no feed VIP */
.post-autor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 12px;
  text-decoration: none;
  color: inherit;
}
.post-autor:hover .post-autor-nome { text-decoration: underline; }
.post-autor-foto {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.post-autor-nome { font-weight: 600; font-size: 14px; }

/* Modal de assinatura / PIX */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px; backdrop-filter: blur(4px);
}
.modal-card {
  background: #17141d; border: 1px solid #2a2732; border-radius: 16px;
  padding: 24px; max-width: 420px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none;
  border: none; color: #999; font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-card .field { margin-bottom: 12px; }
.modal-card .field label { display:block; font-size:13px; color:#aaa; margin-bottom:4px; }
.modal-card .field input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: #0f0d14; border: 1px solid #2a2732; color: #fff; font-size: 14px;
}

/* Dashboard de vendas */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dash-card { background: #15121b; border: 1px solid #2a2732; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-card .dash-label { font-size: 12px; color: #9a94a5; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card .dash-value { font-size: 22px; font-weight: 700; color: #f5c86b; }
.dash-card small { color: #7d7788; font-size: 12px; }
.dash-card.dash-total { background: linear-gradient(135deg, #2a1f0f, #15121b); border-color: #f5c86b55; }
.dash-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 8px; background: #15121b; border: 1px solid #2a2732; border-radius: 12px; overflow-x: auto; }
.dash-bar { flex: 1; min-width: 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.dash-bar span { display: block; width: 100%; background: linear-gradient(180deg, #f5c86b, #b78a2c); border-radius: 3px 3px 0 0; min-height: 2px; }
.dash-bar em { font-style: normal; font-size: 9px; color: #7d7788; margin-top: 4px; white-space: nowrap; }
