* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #202124;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ========== Top Bar ========== */
.top-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.top-bar .back-arrow {
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
}

.top-bar .search-share {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.top-bar .search-share span {
  font-size: 20px;
  color: #5f6368;
  cursor: pointer;
}

/* ========== App Header ========== */
.app-header {
  display: flex;
  padding: 16px;
  gap: 16px;
  align-items: flex-start;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(#e8f5e9, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-info h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 2px;
}

.app-info .developer {
  color: #01875f;
  font-size: 14px;
  margin-bottom: 2px;
}

.app-info .verified {
  color: #5f6368;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-info .verified svg {
  width: 14px;
  height: 14px;
  fill: #5f6368;
}

/* ========== Stats Row ========== */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat-item .stat-value .star {
  font-size: 12px;
}

.stat-item .stat-label {
  font-size: 11px;
  color: #5f6368;
  margin-top: 2px;
}

.stat-item .badge-18 {
  background: none;
  border: 1px solid #5f6368;
  border-radius: 2px;
  font-size: 11px;
  padding: 0 4px;
  color: #5f6368;
}

/* ========== Install Button ========== */
.install-section {
  padding: 16px;
}

.install-btn {
  width: 100%;
  padding: 12px;
  background: #01875f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.install-btn:hover {
  background: #016d4d;
}

.install-btn:active {
  background: #015a3e;
}

.install-btn.launch-btn {
  background: #01875f;
  position: relative;
  overflow: hidden;
}

.install-btn.launch-btn::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
  margin-right: 8px;
  vertical-align: middle;
}

.install-btn.installing {
  opacity: 0.4;
  pointer-events: none;
}

.install-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ========== Guide Modal ========== */
.guide-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 300px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease;
}

.guide-icon {
  margin-bottom: 16px;
}

.guide-icon svg {
  width: 40px;
  height: 40px;
  fill: #01875f;
}

.guide-title {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 16px;
}

.guide-content {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: left;
}

.guide-close-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #01875f;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.guide-close-btn:hover {
  background: #016d4d;
}

.guide-close-btn:active {
  background: #015a3e;
}

.install-hint {
  text-align: center;
  font-size: 12px;
  color: #01875f;
}

/* ========== Action Row ========== */
.action-row {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 16px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f6368;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}

.action-item:hover {
  color: #202124;
}

.action-item svg {
  width: 18px;
  height: 18px;
  fill: #5f6368;
}

/* ========== Promo Banner / Carousel ========== */
.promo-banner {
  margin: 0 16px 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.promo-banner h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.promo-banner p {
  font-size: 14px;
  opacity: 0.9;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 519 / 923;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

/* ========== Section ========== */
.section {
  padding: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.section-header .arrow {
  color: #5f6368;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.section-header .arrow:hover {
  transform: translateX(3px);
}

.section p {
  font-size: 14px;
  color: #202124;
  line-height: 1.6;
}

/* ========== Tags ========== */
.tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 14px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
}

/* ========== Updated Info ========== */
.updated-info {
  margin-top: 16px;
}

.updated-info .label {
  font-size: 12px;
  color: #5f6368;
}

.updated-info .value {
  font-size: 13px;
  font-weight: 500;
}

/* ========== Data Safety ========== */
.data-safety {
  margin: 0 16px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.data-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.data-item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.data-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.data-icon svg {
  width: 20px;
  height: 20px;
  fill: #5f6368;
}

.data-text {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.4;
}

.data-text strong {
  color: #202124;
  font-weight: 500;
}

/* ========== Ratings ========== */
.ratings-section {
  padding: 16px;
}

.ratings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ratings-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.ratings-subtitle {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 16px;
}

.ratings-overview {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.big-rating {
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.stars-breakdown {
  flex: 1;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.star-row .num {
  font-size: 12px;
  color: #5f6368;
  width: 10px;
  text-align: right;
}

.star-bar {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.star-bar .fill {
  height: 100%;
  background: #01875f;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.star-icons {
  color: #01875f;
  font-size: 12px;
  letter-spacing: 1px;
}

.rating-count {
  font-size: 12px;
  color: #5f6368;
}

/* ========== Review ========== */
.review {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review:last-of-type {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.review-menu {
  color: #5f6368;
  cursor: pointer;
  font-size: 18px;
}

.review-stars-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-stars {
  color: #e8a317;
  font-size: 12px;
  letter-spacing: 1px;
}

.review-date {
  font-size: 12px;
  color: #5f6368;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #202124;
  margin-bottom: 8px;
}

.review-helpful {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 8px;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #5f6368;
}

.review-actions span {
  cursor: pointer;
}

.helpful-btn {
  padding: 4px 12px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  font-size: 12px;
  color: #5f6368;
  cursor: pointer;
  background: none;
  margin-left: 4px;
  transition: all 0.2s;
}

.helpful-btn:hover {
  background: #f1f3f4;
}

.helpful-btn.active {
  background: #e8f5e9;
  border-color: #01875f;
  color: #01875f;
}

.view-all-btn {
  color: #01875f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 0;
  display: block;
  border: none;
  background: none;
  transition: opacity 0.2s;
}

.view-all-btn:hover {
  opacity: 0.8;
}

/* ========== What's New ========== */
.whats-new {
  padding: 16px;
}

.whats-new h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.whats-new p {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.6;
}

.whats-new ul {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.8;
  padding-left: 16px;
}

/* ========== Footer Links ========== */
.footer-links {
  padding: 16px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: #5f6368;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #01875f;
}

/* ========== Country Selector ========== */
.country-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-size: 14px;
  color: #5f6368;
}

.country-flag {
  font-size: 18px;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
}

.nav-item {
  text-align: center;
  font-size: 10px;
  color: #5f6368;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item.active {
  color: #01875f;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 2px;
  fill: #5f6368;
}

.nav-item.active svg {
  fill: #01875f;
}

.nav-item:hover {
  color: #01875f;
}

.nav-item:hover svg {
  fill: #01875f;
}

/* ========== Modal Overlay ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 280px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modal Logo */
.modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-logo-icon {
  width: 28px;
  height: 28px;
}

.modal-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
}

/* Loading Spinner */
.spinner-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #e0e0e0;
  border-top-color: #01875f;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
  color: #01875f;
}

/* Modal States */
.modal-loading {
  display: block;
}

.modal-ready {
  display: none;
}

.modal-box.ready .modal-loading {
  display: none;
}

.modal-box.ready .modal-ready {
  display: block;
}

/* Effective Badge */
.effective-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.effective-badge svg {
  width: 14px;
  height: 14px;
  fill: #2e7d32;
}

/* Modal Install Button */
.modal-install-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #01875f;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-install-btn:hover {
  background: #016d4d;
}

.modal-install-btn:active {
  background: #015a3e;
}

/* ========== Responsive ========== */
@media (min-width: 481px) {
  body {
  }
}

@media (max-width: 360px) {
  .app-info h1 {
    font-size: 18px;
  }

  .big-rating {
    font-size: 36px;
  }

  .ratings-overview {
    gap: 16px;
  }
}
