/* ==========================================================================
   UaiCash Android Install - Estilo Idêntico ao da Página de Ajuda (help.css)
   Clean, Moderno, Editorial, Tipografia Refinada, Sem Neon / Sem Cyberpunk
   Paleta: #101b2d (Navy escuro), #c9f98b (Verde limão suave), #a78bfa (Lilás sutil)
   ========================================================================== */

:root {
  --help-ink: #17253b;
  --help-muted: #69788c;
  --help-line: #e2e8f0;
  --help-paper: #fff;
  --help-bg: #f5f7fa;
  --help-purple: #6d28d9;
  --help-lime: #c9f98b;
  --help-dark-hero: #101b2d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body.install-page {
  margin: 0;
  background: var(--help-bg);
  color: var(--help-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 4px;
}

.install-shell {
  max-width: 1080px;
  margin: auto;
  padding: 28px 32px 40px;
}

/* Header Top */
.help-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.help-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.help-brand span {
  margin-left: 4px;
  border-left: 1px solid #cbd5e1;
  padding-left: 14px;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--help-muted);
}

.help-back {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  min-height: 44px;
  color: var(--help-muted);
}

.help-back:hover {
  color: var(--help-purple);
}

/* Hero Section (Igual a ajuda.html) */
.help-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 48px 44px;
  border-radius: 28px;
  background: var(--help-dark-hero);
  color: white;
  margin-bottom: 40px;
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #c0cfde;
}

.help-eyebrow span {
  font-size: 19px;
  color: var(--help-lime);
}

.help-hero h1 {
  font-size: 64px;
  line-height: 1.03;
  letter-spacing: -3.5px;
  margin: 23px 0 20px;
  font-weight: 800;
}

.help-hero h1 > span {
  color: var(--help-lime);
}

.help-hero p {
  font-size: 14px;
  line-height: 1.8;
  color: #bdcbdc;
  max-width: 490px;
  margin: 0 0 24px;
}

.install-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.help-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--help-lime);
  color: #17272b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease;
}

.help-primary:hover {
  background: #b8ee70;
}

.hero-meta-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Hero Art (Balão "app!" e formas geométricas da página de ajuda) */
.hero-art {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 270px;
  height: 280px;
  pointer-events: none;
}

.art-ring {
  position: absolute;
  width: 235px;
  height: 235px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

.art-ring:after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
}

.art-bubble {
  position: absolute;
  left: 30px;
  top: 40px;
  width: 166px;
  height: 145px;
  border-radius: 40px 40px 40px 8px;
  transform: rotate(-12deg);
  background: #a78bfa;
  color: #18223d;
  font-size: 64px;
  line-height: 145px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -4px;
  box-shadow: 14px 16px 0 #7462ab25;
}

.art-bubble > span {
  position: absolute;
  font-size: 44px;
  right: -48px;
  top: -58px;
  color: var(--help-lime);
  letter-spacing: 0;
  transform: rotate(8deg);
}

.art-note {
  position: absolute;
  left: 85px;
  top: 195px;
  background: #fff;
  color: #273246;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 11px;
  transform: rotate(8deg);
  white-space: nowrap;
  box-shadow: 0 8px 20px #0002;
}

.art-note span {
  margin-left: 15px;
  color: #6d28d9;
  font-size: 16px;
}

/* Steps Section (Cards idênticos ao layout da página de ajuda) */
.install-section-heading {
  margin-bottom: 24px;
}

.help-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--help-muted);
  text-transform: uppercase;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 6px 0 0;
  font-weight: 800;
}

.install-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.install-card {
  background: var(--help-paper);
  border: 1px solid var(--help-line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.install-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ede9fe;
  color: var(--help-purple);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.install-card h3 {
  font-size: 17px;
  font-weight: 750;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.install-card p {
  margin: 0;
  font-size: 13px;
  color: var(--help-muted);
  line-height: 1.7;
}

/* Banner de alternativa (PWA/Navegador) */
.install-alternative {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--help-line);
  background: var(--help-paper);
  border-radius: 24px;
  margin-bottom: 40px;
}

.install-alternative h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 4px 0 6px;
}

.install-alternative p {
  margin: 0;
  font-size: 13px;
  color: var(--help-muted);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #ede9fe;
  color: var(--help-purple);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #ddd6fe;
}

/* Footer Corporativo Padrão Uai Technology */
.help-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin-top: 36px;
  border: 1px solid var(--help-line);
  background: var(--help-paper);
  border-radius: 20px;
  color: var(--help-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.help-footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-footer .footer-left strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--help-ink);
  letter-spacing: -0.3px;
}

.help-footer .footer-left span {
  font-size: 13px;
  color: var(--help-muted);
}

.help-footer .footer-left small {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.help-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.help-footer nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--help-muted);
  transition: color 0.15s ease;
}

.help-footer nav a:hover {
  color: var(--help-purple);
}

html.dark .help-footer {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.dark .help-footer .footer-left strong {
  color: #f8fafc;
}

/* Dark mode suporte herdado */
html.dark {
  --help-ink: #e4eaf4;
  --help-muted: #a1aec1;
  --help-line: #2b374b;
  --help-paper: #172132;
  --help-bg: #0c1422;
  --help-purple: #c4b5fd;
}

html.dark .install-step-badge {
  background: #302646;
  color: #e4d9ff;
}

html.dark .btn-secondary {
  background: #302646;
  color: #e4d9ff;
}

/* Responsivo */
@media (max-width: 768px) {
  .install-shell {
    padding: 20px 18px;
  }
  .help-hero {
    padding: 36px 26px;
  }
  .help-hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero-art {
    display: none;
  }
  .install-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .install-alternative {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .help-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ==========================================================================
   Banner Suspenso de Instalação do APK (#uai-android-offer)
   ========================================================================== */
#uai-android-offer {
  position: fixed !important;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  right: 16px !important;
  left: 16px !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  color: #17253b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
  padding: 16px 18px !important;
  z-index: 99999 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  #uai-android-offer {
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 380px !important;
  }
}

#uai-android-offer .uai-offer-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

#uai-android-offer .uai-offer-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  background: #101b2d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#uai-android-offer .uai-offer-icon img {
  width: 26px !important;
  height: 26px !important;
}

#uai-android-offer .uai-offer-content {
  flex: 1 !important;
  min-width: 0 !important;
}

#uai-android-offer .uai-offer-content strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  color: #17253b !important;
  line-height: 1.3 !important;
}

#uai-android-offer .uai-offer-content p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

#uai-android-offer .uai-offer-close {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 1 !important;
  align-self: flex-start !important;
}

#uai-android-offer .uai-offer-close:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

#uai-android-offer .uai-offer-actions {
  display: flex !important;
  gap: 10px !important;
}

#uai-android-offer .uai-offer-btn-primary {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #101b2d !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

#uai-android-offer .uai-offer-btn-primary:hover {
  background: #1e2e4a !important;
}

#uai-android-offer .uai-offer-btn-primary span {
  color: #c9f98b !important;
}

html.dark #uai-android-offer {
  background: #172132 !important;
  border-color: #2b374b !important;
  color: #e4eaf4 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html.dark #uai-android-offer .uai-offer-content strong {
  color: #f8fafc !important;
}

html.dark #uai-android-offer .uai-offer-content p {
  color: #94a3b8 !important;
}

html.dark #uai-android-offer .uai-offer-btn-primary {
  background: #c9f98b !important;
  color: #101b2d !important;
}

html.dark #uai-android-offer .uai-offer-btn-primary span {
  color: #101b2d !important;
}
