* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #202124;
}

.page {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 50px;
}

/* CORREÇÃO PRINCIPAL:
   Por padrão, todas as telas ficam escondidas.
   Somente a tela com .active aparece.
*/
.screen {
  display: none !important;
}

.screen.active {
  display: block !important;
}

.center-screen.active {
  min-height: calc(100vh - 74px);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f9d58, #34a853);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 157, 88, .22);
  flex-shrink: 0;
}

.app-icon.large {
  width: 104px;
  height: 104px;
  font-size: 36px;
  margin: 0 auto 14px;
}

.app-icon.mini {
  width: 74px;
  height: 74px;
  font-size: 24px;
  margin: 0 auto 18px;
}

h1 {
  margin: 0;
  font-size: 30px;
  color: #000;
}

.category {
  margin: 6px 0 2px;
  color: #0f9d58;
  font-weight: 700;
}

.verified {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin: 28px 0 22px;
  gap: 8px;
}

.stats div {
  border-right: 1px solid #e4e4e4;
}

.stats div:last-child {
  border-right: none;
}

.stats strong {
  display: block;
  font-size: 16px;
}

.stats span {
  display: block;
  color: #6b6b6b;
  font-size: 12px;
  margin-top: 4px;
}

.install-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #0f9d58;
  color: #ffeb3b;
  font-size: 17px;
  font-weight: 800;
  padding: 13px 16px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(15, 157, 88, .25);
}

.install-btn small {
  display: block;
  color: #eaffef;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.bolt {
  color: #ffeb3b;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 22px 0 28px;
}

.actions button {
  border: none;
  background: transparent;
  color: #0f9d58;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.content {
  margin-top: 28px;
}

.content h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.content p {
  color: #3c4043;
  line-height: 1.55;
  margin: 0;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.big-rating {
  font-size: 44px;
  font-weight: 700;
}

.stars {
  color: #0f9d58;
  letter-spacing: 2px;
}

.review {
  border-top: 1px solid #eee;
  padding: 16px 0;
}

.review strong {
  display: block;
  margin-bottom: 4px;
}

.review span {
  color: #0f9d58;
  font-size: 13px;
}

.loader-card,
.install-card {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.loader-card h2,
.install-card h2 {
  margin: 0 0 10px;
}

.muted {
  color: #777;
  font-size: 14px;
  margin: 0;
}

.progress-bar {
  height: 18px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  margin: 24px 0 10px;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: #0f9d58;
  transition: width .1s linear;
}

.progress-text {
  font-size: 22px;
  font-weight: 800;
  color: #0f9d58;
  margin: 8px 0 0;
}

.secondary {
  margin-top: 18px;
}

.fallback {
  display: block;
  margin-top: 18px;
  color: #0f9d58;
  font-weight: 700;
  text-decoration: none;
}

.note {
  margin-top: 18px;
  font-size: 12px;
  color: #777;
}
