
* { 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; }
.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; }
.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; }
.action-item svg { width: 18px; height: 18px; fill: #5f6368; }

/* Promo Banner */
.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 */
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; display: block; }
.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; }
.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; }

/* 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; }
.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-child { 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; }
.view-all-btn { color: #01875f; font-size: 14px; font-weight: 500; cursor: pointer; padding: 12px 0; display: block; border: none; background: none; }

/* 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; }

/* Country selector */
.country-selector { display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 14px; color: #5f6368; }
.country-flag { font-size: 18px; }

/* Bottom nav */
.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; }
.nav-item.active { color: #01875f; }
.nav-item .nav-icon { font-size: 20px; margin-bottom: 2px; }
.nav-item svg { width: 24px; height: 24px; display: block; margin: 0 auto 2px; }
.nav-item.active svg { fill: #01875f; }
.nav-item svg { fill: #5f6368; }

/* 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; }

/* Install now 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:active { background: #016d4d; }
