body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: #fff;
  color: #000;
}

.page {
  max-width: 480px;
  margin: auto;
  padding: 16px;
}

.pwa-available .install-btn {
  display: block;
}


/* HEADER */
/* ===== PLAY STORE HEADER ===== */

.ps-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.ps-icon-wrapper {
  width: 76px;
  height: 76px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-icon-wrapper img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ps-title {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.app-meta {
  font-size: 13px;
  color: #5f6368;
}

.dev-name {
  color: #1e8e3e;
  font-weight: 500;
}

.app-sub {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.3;
}

.dot {
  margin: 0 4px;
}

/* ===== STATS ROW ===== */

.ps-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0 20px;
  text-align: center;
}

.stat-top {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-bottom {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}

/* STATS */
.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 16px 0;
}

.stats div {
  font-size: 13px;
}

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

/* INSTALL */
.install-btn {
  background: #28a745;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  display: block;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.4s ease;
  border: none;
  cursor: pointer;
}

.install-btn.installing {
  pointer-events: none;
  color: #333;
}

.install-btn.open {
  background: #28a745;
  color: #fff;
}

.install-btn.disabled {
  background: #666;
  color: #fff;
  cursor: not-allowed;
}


.devices {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

/* SCREENSHOTS */
.screenshots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.screenshots img {
  height: 220px;
  border-radius: 12px;
  cursor: pointer;
}

/* SECTIONS */
.section {
  margin-top: 24px;
}

.section h2 {
  font-size: 18px;
}

/* ===== PLAY STORE SECTIONS ===== */

.ps-section {
  margin-top: 28px;
}

.ps-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ps-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.arrow {
  font-size: 22px;
  color: #5f6368;
}

.ps-description {
  margin-top: 10px;
  font-size: 14px;
  color: #3c4043;
  line-height: 1.5;
}

.ps-muted {
  margin-top: 10px;
  font-size: 13px;
  color: #5f6368;
  line-height: 1.5;
}

/* Updated block */
.updated-block {
  margin-top: 14px;
}

.updated-label {
  font-size: 13px;
  color: #5f6368;
}

.updated-date {
  font-size: 14px;
  color: #3c4043;
}

/* Chips */
.chip-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #5f6368;
}

/* Data safety card */
/* ===== ANDROID PLAY STORE DATA SAFETY ===== */

.data-card {
  margin-top: 14px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 14px;
}

.data-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.data-item:last-child {
  margin-bottom: 0;
}

.material-icon {
  font-size: 18px;
  color: #5f6368;
  line-height: 1.4;
}

.data-text {
  display: flex;
  flex-direction: column;
}

.data-title {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.4;
}

.data-sub {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

.data-footer {
  margin-top: 8px;
  font-size: 14px;
  color: #1e8e3e;
  font-weight: 500;
}

.icon {
  font-size: 18px;
}

.sub {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

.see-details {
  display: inline-block;
  margin-top: 10px;
  color: #1e8e3e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}


/* ===== RATINGS & REVIEWS ===== */

.rating-summary {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.rating-left {
  width: 110px;
}

.rating-score {
  font-size: 42px;
  font-weight: 600;
}

.rating-stars {
  color: #1e8e3e;
  font-size: 16px;
}

.rating-count {
  font-size: 13px;
  color: #5f6368;
}

.rating-bars {
  flex: 1;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.bar-row span {
  font-size: 12px;
  width: 12px;
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  flex: 1;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #1e8e3e;
  border-radius: 4px;
}

/* Widths like Play Store */
.w100 { width: 100%; }
.w65  { width: 65%; }
.w30  { width: 30%; }
.w10  { width: 10%; }
.w5   { width: 5%; }


/* REVIEW CARD */

.review-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dadce0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e91e63;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta span {
  display: block;
  font-size: 12px;
  color: #5f6368;
}

.menu {
  margin-left: auto;
  font-size: 20px;
  color: #5f6368;
}

.review-stars {
  color: #1e8e3e;
  margin: 6px 0;
}

.review-text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.5;
}

.review-footer {
  margin-top: 10px;
  font-size: 12px;
  color: #5f6368;
}

.actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.actions button {
  border: 1px solid #dadce0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
}

.see-all-reviews {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1e8e3e;
}


/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  max-width: 90%;
}

.modal-card img {
  width: 100%;
}


.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px; /* margin from screen edges */
}

.image-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.image-card img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain; /* 🔑 prevents crop */
  border-radius: 8px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}