/* Portal de Desenvolvedores L.I.F.O. — complementa style.css (mesmas variáveis) */
.dev-hero { padding: 72px 0 24px; }
.dev-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; line-height: 1.15; }
.dev-hero p.sub { color: var(--muted); max-width: 640px; margin-top: 12px; font-size: 1.05rem; }

.dev-grid { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); margin: 28px 0 64px; }
.dev-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.dev-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dev-card .hint { color: var(--muted); font-size: .88rem; }
.span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
@media (max-width: 860px) { .span-5, .span-7 { grid-column: span 12; } }

.balance { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy-deep); line-height: 1.1; margin: 10px 0 2px; }
.balance small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

.key-row { display: flex; gap: 8px; margin-top: 14px; }
.key-box { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.btn-ghost:hover { background: var(--bg-subtle); }
.btn-danger { color: var(--red); }
.logo-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; border: 1px solid #DCE7FF; }
button.btn { border: 0; cursor: pointer; font: inherit; }
button.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Login */
.login-card { max-width: 420px; margin: 24px auto 80px; }
.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-secondary); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--bg); }
.field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.msg { margin-top: 14px; font-size: .88rem; padding: 10px 12px; border-radius: var(--radius-sm); display: none; }
.msg.err { display: block; background: var(--red-soft); color: var(--red); }
.msg.ok { display: block; background: var(--green-soft); color: var(--green); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; margin-top: 12px; }

/* Calculadora */
.calc-values { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 6px; }
.calc-reqs { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--navy-deep); letter-spacing: -0.02em; }
.calc-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--brand); }
input[type=range].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--line); outline: none; margin: 14px 0 6px; }
input[type=range].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(29,99,255,.45); cursor: pointer; }
input[type=range].slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(29,99,255,.45); cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

.pix-box { display: none; margin-top: 18px; padding: 18px; background: var(--bg-subtle); border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }
.pix-box img { width: 190px; height: 190px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pix-code { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; word-break: break-all; color: var(--ink-secondary); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; margin: 10px 0; max-height: 72px; overflow: auto; text-align: left; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 80px; }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; gap: 20px; } .docs-toc { position: static !important; } }
.docs-toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; }
.docs-toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-weight: 500; }
.docs-toc a:hover { color: var(--brand); }
.docs-body h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
.docs-body h2 { font-size: 1.4rem; margin: 44px 0 10px; padding-top: 8px; }
.docs-body p { color: var(--ink-secondary); margin: 8px 0; }
.docs-body ul { margin: 8px 0 8px 20px; color: var(--ink-secondary); }
.docs-body code.inline { background: var(--bg-subtle); border: 1px solid var(--line-subtle); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.code-wrap { position: relative; margin: 14px 0; }
.code-wrap pre { background: var(--navy-deep); color: #E2E8F0; border-radius: var(--radius-md); padding: 18px 18px; overflow-x: auto; font-size: .82rem; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-wrap .copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 4px 10px; font-size: .75rem; cursor: pointer; }
.code-wrap .copy:hover { background: rgba(255,255,255,.2); }
.note { background: var(--brand-soft); border: 1px solid #DCE7FF; border-radius: var(--radius-md); padding: 14px 16px; color: var(--ink-secondary); font-size: .92rem; margin: 14px 0; }


/* Google */
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.btn-google:hover { background: var(--bg-subtle); }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 14px 0 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Bônus Unificado (App 15 dias + API 30 dias) */
.bonus-banner {
  background: linear-gradient(135deg, #0A1E46 0%, #0F2B66 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(10, 30, 70, 0.15);
}
.bonus-badge {
  display: inline-block;
  background: rgba(29, 99, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.bonus-content h2 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.bonus-content p {
  color: #CBD5E1;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 680px;
}
.bonus-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
}
.bonus-meta strong {
  color: #38BDF8;
}
.bonus-action .btn {
  white-space: nowrap;
  background: var(--brand);
  color: #FFFFFF;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(29, 99, 255, 0.4);
}
.bonus-action .btn:hover {
  background: var(--brand-hover);
}
@media (max-width: 860px) {
  .bonus-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Menu Hambúrguer & Drawer Mobile */
.menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.menu-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  padding: 14px 20px 20px;
}
.mobile-drawer.active {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: block;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.drawer-divider {
  height: 1px;
  background: var(--line-subtle);
  margin: 6px 0;
}
.drawer-btn {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none !important;
  }
  .nav-right .nav-link-secondary,
  .nav-right #btnLogout {
    display: none !important;
  }
  header nav {
    height: 64px !important;
  }
  .dev-hero {
    padding: 32px 0 16px;
  }
  .dev-hero h1 {
    font-size: 1.85rem;
  }
}
