/* ===================================================
   TOMODACHI LIFE – LANDING PAGE STYLES
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #ff6b9d;
  --purple:     #a78bfa;
  --mint:       #34d399;
  --sky:        #60a5fa;
  --yellow:     #fbbf24;
  --coral:      #fb7185;

  --grad-hero:  linear-gradient(135deg, #ffd6e8 0%, #e0d7ff 40%, #d0f0ff 100%);
  --grad-cta:   linear-gradient(135deg, #ff6b9d, #a78bfa, #60a5fa);
  --grad-text:  linear-gradient(90deg, #ff6b9d, #a78bfa, #60a5fa);

  --white: #ffffff;
  --dark:  #1a0a2e;
  --text:  #3d2c6e;
  --muted: #7c6a9e;

  --radius-sm:  10px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  50px;

  --shadow-card: 0 10px 40px rgba(100, 50, 180, 0.12);
  --shadow-btn:  0 8px 30px rgba(255, 107, 157, 0.45);

  --font-body:  'Nunito', sans-serif;
  --font-head:  'Baloo 2', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(100,50,180,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.logo-icon { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-weight: 700; color: var(--text); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--pink); }
.nav-links .nav-cta {
  background: var(--grad-cta); color: #fff; padding: 10px 22px;
  border-radius: var(--radius-xl); font-weight: 800;
  box-shadow: var(--shadow-btn); transition: transform 0.2s, box-shadow 0.2s;
}
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,107,157,0.55); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--dark); border-radius: 4px; transition: all 0.3s; }
.mobile-menu {
  display: none; flex-direction: column; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); padding: 16px 24px 20px;
  border-top: 1px solid rgba(100,50,180,0.1);
}
.mobile-menu a { padding: 12px 0; font-weight: 700; color: var(--text); border-bottom: 1px solid rgba(100,50,180,0.07); font-size: 1rem; }
.mobile-menu a:last-child { border: none; background: var(--grad-cta); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mobile-menu.open { display: flex; }

/* === BLOBS === */
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, #ffd6e8, #e0d7ff); top: -80px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 350px; height: 350px; background: radial-gradient(circle, #d0f0ff, #c4f0d8); top: 20%; right: -80px; animation-delay: 3s; }
.blob-3 { width: 280px; height: 280px; background: radial-gradient(circle, #ffe0a8, #ffd6e8); bottom: 10%; left: 30%; animation-delay: 6s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(20px, -30px) scale(1.05); }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 120px 0 80px;
}
.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,107,157,0.3);
  border-radius: var(--radius-xl); padding: 8px 18px;
  font-weight: 800; font-size: 0.85rem; color: var(--pink);
  margin-bottom: 20px; width: fit-content;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1; color: var(--dark); margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--muted); max-width: 520px;
  margin-bottom: 28px; font-weight: 600; line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-stats {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--dark); }
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.stat-divider { width: 1.5px; height: 40px; background: rgba(100,50,180,0.15); }
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.btn-store {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark); color: #fff;
  padding: 14px 24px; border-radius: var(--radius-md);
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(26,10,46,0.3);
}
.btn-store:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(26,10,46,0.4); }
.btn-store.btn-ios { background: #000; }
.btn-store.btn-android { background: #1a1a2e; }
.store-icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; }
.store-sub { font-size: 0.72rem; opacity: 0.8; font-weight: 600; }
.store-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; }

/* === PHONE MOCKUP === */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; animation: fadeInRight 0.9s ease 0.3s both;
}
.phone-mockup {
  position: relative; width: 260px;
  filter: drop-shadow(0 30px 80px rgba(100,50,180,0.35));
}
.phone-frame {
  background: #1a0a2e; border-radius: 42px;
  padding: 16px 14px; position: relative;
  border: 3px solid rgba(255,255,255,0.15);
}
.phone-screen {
  border-radius: 28px; overflow: hidden; aspect-ratio: 9/19.5;
  background: #000;
}
.phone-img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #1a0a2e;
  border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-glow {
  position: absolute; inset: -20px; border-radius: 50px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.35) 0%, transparent 70%);
  filter: blur(30px); z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.5;} 50%{opacity:1;} }

/* === FLOATING EMOJIS === */
.floating-emoji {
  position: absolute; font-size: 2rem;
  animation: floatEmoji 4s ease-in-out infinite;
  pointer-events: none; user-select: none;
}
.e1 { top: -20px; left: -40px; animation-delay: 0s; }
.e2 { top: 30px; right: -50px; animation-delay: 1s; }
.e3 { bottom: 60px; left: -60px; animation-delay: 2s; }
.e4 { bottom: -10px; right: -30px; animation-delay: 1.5s; }
.e5 { top: 50%; left: -70px; animation-delay: 0.5s; }
@keyframes floatEmoji { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-18px) rotate(10deg);} }

/* === WAVE === */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* === SECTION COMMON === */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; font-size: 0.85rem; font-weight: 800;
  border: 1.5px solid rgba(167,139,250,0.4);
  color: var(--purple); background: rgba(167,139,250,0.08);
  border-radius: var(--radius-xl); padding: 6px 18px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.2; color: var(--dark); margin-bottom: 14px;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 620px; margin: 0 auto; font-weight: 600; }

/* === FEATURES === */
.features { padding: 100px 0; background: #fff; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: #fafafa; border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1.5px solid rgba(100,50,180,0.08);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(167,139,250,0.3);
  background: #fff;
}
.feature-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  background: color-mix(in srgb, var(--color) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.8rem;
  border: 1.5px solid color-mix(in srgb, var(--color) 30%, transparent);
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.feature-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; font-weight: 600; }

/* === SCREENSHOTS === */
.screenshots { padding: 100px 0; background: linear-gradient(180deg, #fff 0%, #f5f0ff 100%); overflow: hidden; }
.screenshots-scroll { overflow: hidden; margin-top: 40px; }
.screenshots-track {
  display: flex; gap: 20px;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.screenshots-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.screenshot-card {
  width: 220px; height: 390px; border-radius: 28px;
  flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 16px 48px rgba(100,50,180,0.18);
  cursor: pointer; transition: transform 0.3s;
}
.screenshot-card:hover { transform: scale(1.04) rotate(-1deg); }
.sc1 { background: linear-gradient(145deg, #ffd6e8, #e0d7ff, #ffd6e8); }
.sc2 { background: linear-gradient(145deg, #d0f0ff, #a78bfa, #60a5fa); }
.sc3 { background: linear-gradient(145deg, #ffe0a8, #fb7185, #ffd6e8); }
.sc4 { background: linear-gradient(145deg, #c4f0d8, #34d399, #60a5fa); }
.sc5 { background: linear-gradient(145deg, #e0d7ff, #a78bfa, #ffd6e8); }

/* Fun inner decorations */
.screenshot-card::before {
  content: ''; position: absolute; inset: 20%; border-radius: 50%;
  background: rgba(255,255,255,0.25); filter: blur(20px);
}
.sc-label {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 800; color: var(--dark);
  white-space: nowrap;
}

/* === REVIEWS === */
.reviews { padding: 100px 0; background: #fff; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.review-card {
  background: #fafafa; border-radius: var(--radius-lg);
  padding: 32px; border: 1.5px solid rgba(100,50,180,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.review-card-featured {
  background: linear-gradient(135deg, #f5f0ff, #fce7f3);
  border-color: rgba(167,139,250,0.3);
  grid-row: span 1;
}
.review-stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.97rem; line-height: 1.7; margin-bottom: 20px; font-weight: 600; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.reviewer-name { font-weight: 800; color: var(--dark); font-size: 0.9rem; }
.reviewer-platform { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* === RATING BAR === */
.rating-bar {
  display: flex; align-items: flex-start; gap: 48px;
  background: linear-gradient(135deg, #f5f0ff, #fce7f3);
  border-radius: var(--radius-lg); padding: 36px 40px;
  border: 1.5px solid rgba(167,139,250,0.2);
}
.rating-score {
  font-family: var(--font-head); font-size: 5rem; font-weight: 900;
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; flex-shrink: 0;
}
.rating-detail { flex: 1; }
.stars-big { color: var(--yellow); font-size: 1.5rem; margin-bottom: 4px; letter-spacing: 3px; }
.rating-count { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; }
.rating-rows { display: flex; flex-direction: column; gap: 7px; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.rating-row span:first-child { width: 22px; text-align: right; }
.bar-track { flex: 1; height: 8px; background: rgba(100,50,180,0.1); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--grad-cta); }
.rating-row span:last-child { width: 30px; }

/* === DOWNLOAD === */
.download {
  padding: 100px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 50%, #1a0a2e 100%);
}
.download-bg-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob-d1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,107,157,0.3), transparent); top: -100px; left: -100px; animation-delay: 0; }
.blob-d2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(96,165,250,0.3), transparent); bottom: -100px; right: -50px; animation-delay: 4s; }

.download-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.download-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin: 16px 0 12px;
}
.download-highlight { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.download-sub { color: rgba(255,255,255,0.7); font-size: 1.05rem; font-weight: 600; margin-bottom: 28px; line-height: 1.65; }
.download-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.dl-feat { color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.dl-feat span { font-size: 1rem; }

.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-dl {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px; border-radius: var(--radius-md);
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: var(--font-body);
}
.btn-dl svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-dl div { display: flex; flex-direction: column; }
.btn-dl span { font-size: 0.75rem; opacity: 0.8; font-weight: 600; }
.btn-dl strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.btn-dl-ios {
  background: #fff; color: #1a0a2e;
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}
.btn-dl-ios:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,255,255,0.3); }
.btn-dl-android {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.btn-dl-android:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }

/* === QR CARDS === */
.download-visual { display: flex; gap: 20px; flex-shrink: 0; }
.qr-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; width: 160px;
  transition: transform 0.3s;
}
.qr-card:hover { transform: translateY(-6px); }
.qr-label { color: #fff; font-size: 0.8rem; font-weight: 800; margin-bottom: 14px; }
.qr-box {
  width: 110px; height: 110px; background: #fff;
  border-radius: 12px; margin: 0 auto 12px;
  position: relative; overflow: hidden;
}
.qr-pattern {
  position: absolute; inset: 10px;
  background:
    repeating-conic-gradient(#1a0a2e 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
  opacity: 0.9;
}
.qr-pattern-android {
  background:
    repeating-conic-gradient(#1a0a2e 0% 25%, transparent 0% 50%) 6px 0 / 12px 12px;
}
.qr-center-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; background: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 1;
}
.qr-hint { color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 700; line-height: 1.4; }

/* === FOOTER === */
.footer { background: var(--dark); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer .nav-logo .logo-text { color: #fff; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; font-weight: 700; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.78rem; font-weight: 600; max-width: 600px; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .download-visual { justify-content: center; }
  .rating-bar { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
  .rating-row { justify-content: center; }
  .bar-track { max-width: 200px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .download-visual { flex-direction: column; align-items: center; }
  .qr-card { width: 100%; max-width: 220px; }
}

/* === INSTALL MODAL === */
.install-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 5, 25, 0.65);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.install-overlay.active { opacity: 1; pointer-events: all; }
.install-modal {
  background: #fff; border-radius: 28px 28px 0 0;
  width: 100%; max-width: 480px; padding: 0 0 32px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -20px 80px rgba(100, 50, 180, 0.25); overflow: hidden;
}
.install-overlay.active .install-modal { transform: translateY(0); }
.install-modal::before {
  content: ''; display: block; width: 40px; height: 4px;
  background: #e0d7ff; border-radius: 4px; margin: 12px auto 0;
}
.modal-store-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 10px; border-bottom: 1px solid #f0ebff;
}
.modal-store-icon { font-size: 1.3rem; }
.modal-store-name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 800; color: var(--dark); flex: 1; }
.modal-close {
  background: #f0ebff; border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.75rem; color: var(--muted); font-weight: 800;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.modal-close:hover { background: #e0d7ff; color: var(--dark); }
.modal-app-row { display: flex; gap: 16px; align-items: center; padding: 18px 20px 14px; }
.modal-app-icon {
  width: 76px; height: 76px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(100,50,180,0.2);
}
.modal-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.modal-app-info { display: flex; flex-direction: column; gap: 4px; }
.modal-app-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; color: var(--dark); line-height: 1.2; }
.modal-app-dev { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.modal-app-rating { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.modal-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }
.modal-rating-num { font-size: 0.82rem; font-weight: 800; color: var(--dark); }
.modal-rating-count { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.modal-stats {
  display: flex; align-items: center; justify-content: space-evenly;
  padding: 14px 20px; background: #f8f5ff;
  border-top: 1px solid #ece6ff; border-bottom: 1px solid #ece6ff;
}
.modal-stat { text-align: center; }
.modal-stat-val { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 900; color: var(--dark); }
.modal-stat-key { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; margin-top: 2px; }
.modal-stat-div { width: 1px; height: 36px; background: #ddd8f5; }
.modal-desc { padding: 16px 20px 0; font-size: 0.9rem; color: var(--muted); font-weight: 600; line-height: 1.65; }
.modal-install-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(100% - 40px); margin: 18px 20px 0;
  background: var(--grad-cta); border: none; border-radius: var(--radius-xl);
  padding: 16px 24px; cursor: pointer; gap: 2px;
  box-shadow: 0 8px 28px rgba(255,107,157,0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
}
.modal-install-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,107,157,0.5); }
.modal-install-btn:active { transform: scale(0.97); }
.modal-install-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.install-btn-text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; color: #fff; letter-spacing: 0.3px; }
.install-btn-sub { font-size: 0.72rem; color: rgba(255,255,255,0.8); font-weight: 700; }
.modal-progress-wrap {
  height: 6px; background: #ece6ff; border-radius: 4px;
  margin: 14px 20px 0; overflow: hidden; display: none;
}
.modal-progress-bar { height: 100%; width: 0%; background: var(--grad-cta); border-radius: 4px; transition: width 0.4s ease; }
.modal-progress-label { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-top: 6px; display: none; }

/* === VERIFY BUTTON === */
.modal-verify-wrap {
  display: none;
  margin: 14px 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1.5px solid #fbbf24;
  border-radius: 18px;
  text-align: center;
  animation: verifyPulse 0.5s ease;
}
@keyframes verifyPulse {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.verify-hint {
  font-size: 0.82rem; font-weight: 700;
  color: #92400e; margin-bottom: 12px; line-height: 1.4;
}
.verify-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none; border-radius: 50px; cursor: pointer;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 900;
  color: #fff; letter-spacing: 0.3px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: verifyGlow 1.8s ease-in-out infinite;
}
.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.6);
}
.verify-btn:active { transform: scale(0.97); }
@keyframes verifyGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(245,158,11,0.45); }
  50%       { box-shadow: 0 6px 36px rgba(245,158,11,0.75); }
}

/* === iOS/TikTok REDIRECT POPUP === */
.ios-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ios-popup-background {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 25, 0.82);
  backdrop-filter: blur(10px);
}
.ios-popup-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popupSlideIn {
  from { opacity: 0; transform: scale(0.88) translateY(30px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.ios-gif-container {
  width: 100%;
  background: #f5f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ios-instruction-gif {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}
.ios-instruction-text {
  padding: 24px 24px 28px;
  text-align: center;
}
.ios-instruction-text h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.ios-instruction-text p {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}
.ios-instruction-text strong {
  color: var(--pink);
}
