*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; background: #fff; }
a { text-decoration: none; color: inherit; }

/* Nav */
.nav { border-bottom: 1px solid #f0f0ee; position: sticky; top: 0; background: #fff; z-index: 50; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: #555; }

/* Botões */
.btn-primary { background: #1a1a1a; color: #fff; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; display: inline-block; border: none; cursor: pointer; transition: opacity .15s; }
.btn-primary:hover { opacity: .85; }
.btn-outline { border: 1px solid #d5d5d3; padding: 8px 18px; border-radius: 8px; font-size: 14px; color: #333; }
.btn-outline:hover { background: #f5f5f3; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 20px; }
.btn-green { background: #1D9E75; color: #ffffff !important; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; display: inline-block; transition: opacity .15s; }
.btn-green:hover { opacity: .85; }

/* Hero */
.hero { background: #f9f9f7; padding: 80px 24px; text-align: center; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.highlight { color: #1D9E75; }
.hero-sub { font-size: 18px; color: #555; line-height: 1.7; margin-bottom: 36px; }

/* Seções */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-inner h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 48px; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { text-align: center; }
.step-num { width: 44px; height: 44px; background: #1a1a1a; color: #fff; border-radius: 50%; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: #666; line-height: 1.6; }

/* Planos */
.planos { background: #f9f9f7; }
.planos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 900px; margin: 0 auto; }
.plano-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 12px; padding: 32px; position: relative; width: 300px; max-width: 100%; }
.plano-card.destaque { border-color: #1a1a1a; border-width: 2px; }
.badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px; white-space: nowrap; }
.plano-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.preco { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.preco span { font-size: 14px; font-weight: 400; color: #888; }
.plano-desc { font-size: 14px; color: #666; line-height: 1.6; }

/* Auth forms */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f9f9f7; padding: 24px; }
.auth-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 12px; padding: 40px; width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-card .sub { font-size: 14px; color: #888; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 500; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid #d5d5d3; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; }
.field input:focus, .field select:focus { border-color: #888; }
.erro { background: #fdf0ee; color: #c0392b; border: 1px solid #f5c0bc; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #888; }
.auth-footer a { color: #1a1a1a; font-weight: 500; }

/* Pagamento */
.pag-wrap { min-height: 100vh; background: #f9f9f7; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pag-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 12px; padding: 40px; max-width: 480px; width: 100%; }
.pag-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.pag-resumo { background: #f9f9f7; border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.pag-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.pag-row.total { font-weight: 600; font-size: 16px; border-top: 1px solid #e5e5e3; margin-top: 8px; padding-top: 8px; }
.pag-metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pag-metodo { border: 1px solid #d5d5d3; border-radius: 8px; padding: 14px; text-align: center; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s; }
.pag-metodo:hover, .pag-metodo.ativo { border-color: #1a1a1a; background: #f5f5f3; }

/* Sucesso */
.sucesso-wrap { min-height: 100vh; background: #f9f9f7; display: flex; align-items: center; justify-content: center; }
.sucesso-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 12px; padding: 48px; max-width: 480px; width: 100%; text-align: center; }
.check-icon { width: 60px; height: 60px; background: #1D9E75; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.check-icon svg { width: 28px; height: 28px; }
.sucesso-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.sucesso-card p { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 28px; }

/* Dashboard */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar { width: 220px; background: #fff; border-right: 1px solid #e5e5e3; padding: 20px 0; flex-shrink: 0; }
.dash-logo { padding: 0 20px 20px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #e5e5e3; margin-bottom: 12px; }
.dash-nav a { display: block; padding: 9px 20px; font-size: 14px; color: #555; border-radius: 6px; margin: 2px 8px; }
.dash-nav a:hover, .dash-nav a.ativo { background: #f5f5f3; color: #1a1a1a; font-weight: 500; }
.dash-main { flex: 1; background: #f9f9f7; padding: 32px; overflow-y: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dash-header h1 { font-size: 22px; font-weight: 700; }
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 10px; padding: 20px; }
.stat-label { font-size: 12px; color: #888; margin-bottom: 6px; }
.stat-val { font-size: 26px; font-weight: 700; }
.dash-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.dash-card-title { font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gasto-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0ee; }
.gasto-item:last-child { border-bottom: none; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.gasto-desc { font-size: 14px; }
.gasto-meta { font-size: 12px; color: #aaa; margin-top: 2px; }
.gasto-val { font-weight: 600; font-size: 14px; }
.del-btn { background: none; border: none; cursor: pointer; color: #ccc; font-size: 16px; padding: 2px 6px; border-radius: 4px; }
.del-btn:hover { color: #c0392b; }
.wpp-info { background: #E1F5EE; border: 1px solid #9FE1CB; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #085041; display: flex; align-items: center; gap: 10px; }

/* Footer */
.footer { background: #1a1a1a; color: #888; text-align: center; padding: 24px; font-size: 13px; }

/* Mobile nav bar (dashboard) */
.dash-mobile-bar { display: none; }

@media (max-width: 768px) {
  /* Nav: esconde links de texto, mantém só botões */
  .nav-links a:not(.btn-outline):not(.btn-primary):not(.btn-green):not(.btn-nav) { display: none; }
  .nav-links { gap: 10px; }

  .hero { padding: 56px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .planos-grid { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }

  /* Dashboard mobile */
  .dash-sidebar { display: none; }
  .dash-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5e3;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .dash-mobile-bar .logo { font-size: 16px; font-weight: 700; }
  .dash-mobile-bar a { font-size: 14px; color: #555; }
  .dash-main { padding: 16px; }
  .dash-header h1 { font-size: 18px; }
  .stat-val { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .wpp-info { font-size: 12px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .nav-links .btn-outline { display: none; }
  .hero h1 { font-size: 28px; }
}

@media (max-width: 400px) {
  .cards-row { grid-template-columns: 1fr; }
}
