/**
 * components.css
 * Google Play Store authentic UI components, high-conversion sticky CTA,
 * screenshot carousel, ratings & reviews breakdown, and data safety.
 */

/* ==========================================================================
   1. Google Play Store Header & Top Bar
   ========================================================================== */
.play-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  margin-bottom: var(--space-4);
  width: 100%;
  box-sizing: border-box;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.play-header-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.play-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
  letter-spacing: -0.02em;
}

.play-logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.play-brand-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.play-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* App Switcher Chips */
.app-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
}

.app-nav-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-chip);
  color: var(--text-chip);
  border: 1px solid var(--border-subtle);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.app-tab-chip:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.app-tab-chip.active {
  background: var(--play-green-tint);
  color: var(--play-green);
  border-color: var(--play-green);
  font-weight: 700;
}

/* ==========================================================================
   2. Main Hero Section (Icon, Title, Dev, Category)
   ========================================================================== */
.play-hero {
  padding: var(--space-2) 0 var(--space-4) 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.hero-main-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: var(--space-4);
  width: 100%;
  box-sizing: border-box;
}

.app-icon-container {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.app-icon-container:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-info-column {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.play-app-title {
  font-size: 1.4rem; /* 22.4px */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.22;
  margin-bottom: 4px;
  cursor: pointer;
  word-break: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.play-app-title:hover {
  color: var(--play-green);
  text-decoration: none;
}

.play-dev-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.play-dev-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--play-green);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.play-dev-link:hover {
  text-decoration: underline;
}

.verified-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--play-green);
  flex-shrink: 0;
}

.app-monetization-tag {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ==========================================================================
   3. Play Store Stat Bar (Ratings, Reviews, Downloads, Content Rating)
   ========================================================================== */
.play-stat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  cursor: default;
  padding: 0 4px;
  text-decoration: none !important;
}

.stat-item-primary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.stat-star-icon {
  width: 13px;
  height: 13px;
  fill: var(--star-gold);
  color: var(--star-gold);
}

.stat-item-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.stat-badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 4px;
  color: var(--text-primary);
  line-height: 1;
}

.stat-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   4. High-Attraction Highlighted Install CTA Button
   ========================================================================== */
.hero-cta-section {
  margin-bottom: var(--space-5);
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.btn-play-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #01875F 0%, #00A36C 50%, #00875E 100%);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px var(--space-4);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 163, 108, 0.45);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all var(--transition-base);
}

.btn-play-install:hover {
  background: linear-gradient(135deg, #00A36C 0%, #00C885 50%, #01875F 100%);
  box-shadow: 0 6px 24px rgba(0, 163, 108, 0.6);
  transform: translateY(-2px);
}

.btn-play-install:active {
  transform: translateY(1px) scale(0.98);
}

/* Shimmer beam crossing the button for high attraction */
.btn-play-install::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmerBeam 2.8s infinite;
  pointer-events: none;
}

.btn-install-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-cta-subtext {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-2);
  margin-bottom: 2px;
}

/* Subtle 3.. 2.. 1.. Reverse Countdown Indicator */
.redirect-countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 4px auto 6px auto;
  padding: 3px 12px;
  background: var(--bg-surface-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  width: fit-content;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.redirect-countdown-box.active {
  opacity: 1;
  transform: translateY(0);
}

.countdown-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--play-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Secondary Action Row (Share, Wishlist, Device pill) */
.hero-secondary-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.action-pill-btn:hover {
  background: var(--bg-chip);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.action-pill-btn svg {
  width: 14px;
  height: 14px;
  color: var(--play-green);
}

/* ==========================================================================
   5. Screenshot Carousel & Gallery
   ========================================================================== */
.play-screenshots-section {
  margin: var(--space-5) 0;
  width: 100%;
  box-sizing: border-box;
}

.section-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  width: 100%;
}

.play-section-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.play-section-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.play-section-arrow-btn:hover {
  background: var(--bg-chip);
  color: var(--text-primary);
}

.screenshots-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px 0;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.screenshots-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.screenshot-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. "About this app" Expandable Section & Chips
   ========================================================================== */
.play-about-section {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-subtle);
}

.about-summary-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.about-summary-text:hover {
  color: var(--text-primary);
}

/* Category & Feature Chips */
.tag-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-chip);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-chip:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* Expandable Description Box */
.full-desc-container {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  transition: max-height var(--transition-smooth);
}

.full-desc-container.expanded {
  max-height: 2500px;
}

.full-desc-container:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.full-desc-container h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-3) 0 var(--space-2) 0;
}

.full-desc-container ul {
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}

.full-desc-container li {
  margin-bottom: 4px;
}

.btn-toggle-desc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--play-green);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  padding: var(--space-2) 0;
  margin-top: 4px;
}

.btn-toggle-desc:hover {
  text-decoration: underline;
}

/* What's New Box */
.whats-new-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.whats-new-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.whats-new-content {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.5;
}

/* ==========================================================================
   7. Data Safety Section
   ========================================================================== */
.play-data-safety-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
}

.data-safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.data-safety-intro {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.45;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.safety-item:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.safety-icon-wrapper {
  color: var(--text-secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

.safety-item-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.safety-item-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* ==========================================================================
   8. Ratings & Reviews Breakdown Card
   ========================================================================== */
.play-reviews-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
}

.rating-overview-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.rating-big-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rating-big-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.rating-stars-row {
  display: flex;
  gap: 2px;
  color: var(--star-gold);
  margin: 6px 0 4px 0;
}

.rating-stars-row svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-total-reviews {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* 5-Bar Rating Breakdown */
.rating-bars-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-2xs);
  color: var(--text-secondary);
}

.rating-bar-num {
  width: 8px;
  text-align: right;
  font-weight: 600;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--rating-bar-bg);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--rating-bar-fill);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

/* User Review Cards */
.review-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.user-review-card {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--play-green-tint);
  color: var(--play-green);
  font-weight: 700;
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-primary);
}

.review-date {
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--star-gold);
  margin-bottom: var(--space-2);
}

.review-stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.review-text {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.45;
}

.review-helpful-row {
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ==========================================================================
   9. More Apps List View Section
   ========================================================================== */
.play-more-apps-section {
  padding: var(--space-5) 0 var(--space-2) 0;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.more-apps-list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.more-app-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}

.more-app-list-item:hover {
  background: var(--bg-chip);
  border-color: var(--play-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.more-app-list-item:active {
  transform: scale(0.99);
}

.more-app-list-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background: var(--bg-surface-elevated);
}

.more-app-list-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more-app-list-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.more-app-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-app-list-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-app-list-cat {
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-dot {
  color: var(--text-muted);
  opacity: 0.6;
}

.more-app-list-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: var(--text-primary);
}

.star-mini {
  color: var(--star-gold);
  display: inline-flex;
  align-items: center;
}

.star-mini svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.more-app-list-downloads {
  color: var(--text-muted);
}

.more-app-list-action {
  flex-shrink: 0;
}

.btn-list-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--play-green);
  background: var(--play-green-tint);
  border: 1px solid var(--play-green);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.more-app-list-item:hover .btn-list-install {
  background: var(--play-green);
  color: #FFFFFF;
}

/* ==========================================================================
   11. Developer Contact Section
   ========================================================================== */
.developer-contact-card {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}

.dev-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.dev-contact-row svg {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-sticky-install-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  background-color: var(--bg-sticky-bar) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
}

.mobile-sticky-install-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bar-inner {
  max-width: var(--max-width-mobile);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.sticky-app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
}

.sticky-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sticky-text-group {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.sticky-app-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sticky-app-sub {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.sticky-btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #01875F 0%, #00A86B 50%, #00875E 100%);
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 11px 24px;
  min-height: 44px;
  min-width: 125px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(1, 135, 95, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  text-decoration: none !important;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  animation: pulseGlowRing 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.sticky-btn-install svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.sticky-btn-install::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmerBeam 2.5s infinite;
  pointer-events: none;
}

.sticky-btn-install:hover {
  background: linear-gradient(135deg, #00A86B 0%, #00C885 50%, #01875F 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px rgba(1, 135, 95, 0.65);
}

.sticky-btn-install:active {
  transform: scale(0.97);
}

/* Carousel Navigation Controls in Header */
.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-arrow-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--play-green);
  border-color: var(--play-green);
  transform: scale(1.05);
}

/* ==========================================================================
   12. Fullscreen Screenshot Modal / Vivid Lightbox
   ========================================================================== */
.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(8, 10, 12, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.screenshot-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Top Bar */
.modal-top-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  color: #FFFFFF;
  z-index: 10;
}

.modal-counter-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E8EAED;
}

.modal-title-text {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Modal Main Stage */
.modal-stage-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  flex: 1;
  min-height: 0;
  margin: 6px 0;
}

.modal-device-frame {
  position: relative;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: #000000;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-img {
  max-height: 62vh;
  max-width: 82vw;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 150ms ease, transform 150ms ease;
}

.modal-nav-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.modal-nav-arrow-btn.prev {
  left: 4px;
}

.modal-nav-arrow-btn.next {
  right: 4px;
}

.modal-nav-arrow-btn:hover {
  background: var(--play-green);
  border-color: var(--play-green);
  transform: translateY(-50%) scale(1.1);
}

/* Modal Caption */
.modal-caption-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin: 2px 0 6px 0;
  max-width: 360px;
  line-height: 1.35;
}

/* Dots Pagination */
.modal-dots-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.modal-dot-pill {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.modal-dot-pill.active {
  width: 22px;
  background: var(--play-green);
  box-shadow: 0 0 10px var(--play-green-glow);
}

/* Modal Floating Install CTA */
.modal-bottom-cta-bar {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
}

.modal-install-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #01875F 0%, #00A36C 50%, #00875E 100%);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 163, 108, 0.55);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: pulseGlowRing 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.modal-install-cta-btn:hover {
  background: linear-gradient(135deg, #00A36C 0%, #00C885 50%, #01875F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 163, 108, 0.7);
}

.modal-install-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   13. Footer & Legal
   ========================================================================== */
.play-footer {
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6) 0 calc(var(--space-12) + 60px) 0; /* padding for sticky bar */
  text-align: center;
}

.footer-google-disclaimer {
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.footer-nav-links a {
  color: var(--text-secondary);
}

.footer-nav-links a:hover {
  color: var(--text-primary);
}

/* Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 74px; /* above sticky install bar */
  left: var(--space-4);
  right: var(--space-4);
  max-width: var(--max-width-mobile);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  z-index: 950;
}

.consent-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.consent-text {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.consent-buttons {
  display: flex;
  gap: var(--space-2);
}

.btn-consent-accept {
  flex: 1;
  background: var(--play-green);
  color: #FFFFFF;
  border: none;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-consent-reject {
  flex: 1;
  background: var(--bg-chip);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   11. Top-Right Theme-Matched Countdown Badge (3.. 2.. 1..)
   ========================================================================== */
.top-right-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}

.top-right-countdown-badge.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Subtle Number Circle matching app theme */
.tr-badge-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tr-countdown-num {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  display: inline-block;
}

.tr-digit-pop {
  animation: trDigitPopAnim 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trDigitPopAnim {
  0% { transform: scale(1.25); color: var(--play-green); }
  100% { transform: scale(1); color: var(--text-primary); }
}

/* Badge Text Content */
.tr-badge-text-box {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tr-badge-text-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .top-right-countdown-badge {
    padding: 2px 8px 2px 4px;
    gap: 5px;
  }

  .tr-badge-icon-box {
    width: 20px;
    height: 20px;
  }

  .tr-countdown-num {
    font-size: 11px;
  }

  .tr-badge-text-box {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   14. Accessible Legal Modal (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.legal-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.legal-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.legal-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.legal-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.legal-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-modal-body h4 {
  color: var(--text-primary);
  margin: 16px 0 6px 0;
  font-size: 14.5px;
  font-weight: 600;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin: 0 0 12px 0;
}

.legal-modal-body a {
  color: var(--play-green);
  text-decoration: underline;
}
