/* ════════════════════════════════════════════════════════════════════
   UPALPITE.COM.BR — Estilos globais
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0f14;
  --bg2: #13161d;
  --bg3: #1a1e28;
  --bg4: #212636;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f2f8;
  --text2: #8892a4;
  --text3: #505870;
  --accent: #4f8ef7;
  --accent2: #6c63ff;
  --gold: #f5c842;
  --green: #3ecf8e;
  --red: #f56565;
  --orange: #f6ad55;
  --purple: #9b8afb;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ─── Header ─── */
.header {
  position: relative; z-index: 10;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 20px; align-items: center;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ─── Main / Container ─── */
.container {
  position: relative; z-index: 1;
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
}
.container-wide { max-width: 1100px; }

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.subtitle {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ─── Form ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color .15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--bg4); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: #3a7de8; border-color: #3a7de8; }

.btn-block { width: 100%; }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1200;
  font-weight: 600;
}
.btn-gold:hover { background: #e8b828; }

/* ─── Alerts ─── */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.5;
}
.alert.show { display: block; }
.alert-error {
  background: rgba(245,101,101,0.1);
  color: var(--red);
  border: 1px solid rgba(245,101,101,0.3);
}
.alert-success {
  background: rgba(62,207,142,0.1);
  color: var(--green);
  border: 1px solid rgba(62,207,142,0.3);
}

/* ─── Links auxiliares ─── */
.helper-text {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  margin-top: 20px;
}
.helper-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.helper-text a:hover { text-decoration: underline; }

/* ─── Loading spinner ─── */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Divider com texto ─── */
.divider {
  display: flex; align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Avatar do usuário (header logado) ─── */
.user-menu {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: border-color .15s;
}
.user-menu:hover { border-color: var(--border2); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: #fff;
}
.user-name {
  font-size: 13px;
  color: var(--text);
}

/* ─── Hero (página inicial) ─── */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero .gradient {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}

/* ─── Cards de planos ─── */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative; z-index: 1;
}
.plano-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .2s;
  position: relative;
}
.plano-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
}
.plano-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(79,142,247,0.15);
}
.plano-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plano-nome {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.plano-preco {
  font-family: 'Syne', sans-serif;
  font-size: 36px; font-weight: 800;
  margin-bottom: 4px;
}
.plano-preco .moeda { font-size: 16px; color: var(--text2); }
.plano-preco .periodo { font-size: 13px; color: var(--text3); font-weight: 400; }
.plano-features {
  list-style: none;
  margin: 20px 0;
}
.plano-features li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.plano-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 600;
}
.plano-features li.x { color: var(--text3); }
.plano-features li.x::before { content: '✕'; color: var(--text3); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .header { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .container { margin: 30px auto; }
  .card { padding: 24px 20px; }
}
