* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #01875f;
  --green-dark: #00603f;
  --text: #202124;
  --text-secondary: #5f6368;
  --divider: #e8eaed;
  --bg: #ffffff;
}

body {
  font-family: 'Roboto', 'Google Sans', system-ui, sans-serif;
  background: #f1f3f4;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 4px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.topbar-actions {
  display: flex;
}

.icon-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}

.icon-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.icon-btn .material-icons {
  font-size: 24px;
}

.content {
  padding-bottom: 32px;
}

/* App header */
.app-header {
  display: flex;
  gap: 16px;
  padding: 12px 24px 20px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff2e63, #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.app-icon-text {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  font-family: 'Google Sans', sans-serif;
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.app-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-name {
  font-family: 'Google Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.app-developer {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 4px;
}

.app-ads {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 4px;
}

/* Metrics */
.metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px 20px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.metric-value {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.star-inline {
  font-size: 14px !important;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--divider);
}

.age-badge {
  border: 1px solid var(--text-secondary);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  font-weight: 700;
}

/* Install */
.install-area {
  padding: 0 24px 16px;
}

.install-btn {
  width: 100%;
  height: 40px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.install-btn:active {
  background: var(--green-dark);
}

.device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.device-row .material-icons {
  font-size: 18px;
}

/* Screenshots */
.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: 150px;
  height: 280px;
  border-radius: 12px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.shot-1 { background: linear-gradient(160deg, #ff2e63, #8a2be2); }
.shot-2 { background: linear-gradient(160deg, #7028e4, #e5b2ca); }
.shot-3 { background: linear-gradient(160deg, #f7971e, #ffd200); }
.shot-4 { background: linear-gradient(160deg, #11998e, #38ef7d); }

/* Blocks */
.block {
  padding: 20px 24px;
  border-top: 1px solid var(--divider);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.block-head h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.about-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.updated {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Data safety */
.safety-card {
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.safety-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.safety-item .material-icons {
  font-size: 20px;
  color: var(--text-secondary);
}

.safety-title {
  font-size: 14px;
  color: var(--text);
}

.safety-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Ratings */
.ratings-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.ratings-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ratings-score {
  font-family: 'Google Sans', sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
}

.ratings-stars {
  display: flex;
  color: var(--green);
  margin: 6px 0;
}

.ratings-stars .material-icons {
  font-size: 16px;
}

.ratings-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.ratings-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-row span {
  font-size: 13px;
  color: var(--text-secondary);
  width: 8px;
}

.bar {
  flex: 1;
  height: 8px;
  background: var(--divider);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}

/* Review */
.review {
  margin-bottom: 22px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

.avatar-1 { background: #4285f4; }
.avatar-2 { background: #db4437; }

.review-meta {
  flex: 1;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  margin-bottom: 8px;
}

.review-stars .material-icons {
  font-size: 14px;
}

.review-date {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

.review-helpful {
  font-size: 12px;
  color: var(--text-secondary);
}

.text-btn {
  background: none;
  border: none;
  color: var(--green);
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}

.page-footer {
  padding: 24px;
  text-align: center;
}

.page-footer p {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

/* Bottom navigation (estilo Google Play) */
.app-shell {
  position: relative;
  padding-bottom: 64px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 64px;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 20;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: 'Google Sans', 'Roboto', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item .material-icons {
  font-size: 24px;
}

.bottom-nav-label {
  font-size: 12px;
  font-weight: 500;
}

.bottom-nav-item.active {
  color: var(--green);
}



/* Barra de progresso de download */
.dl-progress { display: none; margin-top: 14px; }
.dl-progress.show { display: block; }
.dl-progress-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--green); margin-bottom: 6px; }
.dl-bar { height: 6px; background: var(--divider); border-radius: 6px; overflow: hidden; }
.dl-bar-fill { height: 100%; width: 0%; background: var(--green); border-radius: 6px; transition: width .25s ease; }

/* Placeholder semi-transparente até a imagem carregar */
.shot.skel, .app-icon.skel { background: rgba(0,0,0,.06); position: relative; overflow: hidden; }
.shot.skel::after, .app-icon.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: skel 1.1s infinite;
}
@keyframes skel { 100% { transform: translateX(100%); } }
.shot img, .app-icon img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .3s ease; display: block; }
.shot.skel img, .app-icon.skel img { opacity: 0; }

/* Aviso navegador interno (Facebook/Instagram) */
.fb-tip { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2000; align-items: flex-end; justify-content: center; }
.fb-tip.show { display: flex; }
.fb-tip-card { background: #fff; width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 26px 22px; text-align: center; }
.fb-tip-ico { font-size: 44px; color: var(--green); }
.fb-tip-card h2 { font-size: 20px; margin: 8px 0; }
.fb-tip-card p { font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 18px; }
.fb-tip-copy { width: 100%; background: var(--green); color: #fff; border: none; padding: 14px; border-radius: 24px; font-size: 16px; font-weight: 600; cursor: pointer; }
.fb-tip-close { width: 100%; background: none; border: none; color: #888; padding: 12px; margin-top: 6px; font-size: 14px; cursor: pointer; }

/* Bloqueio total para navegador interno */
.fb-block { display: none; position: fixed; inset: 0; background: #0b141a; z-index: 5000; align-items: center; justify-content: center; padding: 24px; }
.fb-block.show { display: flex; }
.fb-block-card { max-width: 360px; text-align: center; color: #fff; }
.fb-block-ico { font-size: 56px; color: var(--green); }
.fb-block-card h2 { font-size: 22px; margin: 12px 0 8px; }
.fb-block-card p { font-size: 15px; color: #c5ccd3; line-height: 1.5; margin-bottom: 22px; }
.fb-block-btn { width: 100%; background: var(--green); color: #fff; border: none; padding: 16px; border-radius: 26px; font-size: 17px; font-weight: 700; cursor: pointer; }
body.locked { overflow: hidden; }
