/* Site-wide Play Store promo modal — appbaochuyentien.com */
.app-cta-popup-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-cta-popup-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-cta-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-cta-popup-dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, 780px);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.app-cta-popup-root.is-open .app-cta-popup-dialog {
  transform: translateY(0) scale(1);
}

.app-cta-popup-hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 42%, #115e59 100%);
  color: #f0fdfa;
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

.app-cta-popup-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.app-cta-popup-hero-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.app-cta-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  background: #fff;
}

.app-cta-popup-title-block h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.app-cta-popup-sub {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.4;
}

.app-cta-popup-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-cta-popup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.app-cta-popup-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-cta-popup-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-cta-popup-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  opacity: 0.88;
  line-height: 1.2;
}

.app-cta-popup-stat-meta {
  margin: 10px 0 0;
  font-size: 0.68rem;
  opacity: 0.75;
  text-align: center;
  position: relative;
  z-index: 1;
}

.app-cta-popup-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  flex: 1;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-cta-popup-body h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.app-cta-popup-benefits {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.app-cta-popup-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.app-cta-popup-benefits li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.app-cta-popup-compare {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 4px;
}

.app-cta-popup-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.app-cta-popup-compare th,
.app-cta-popup-compare td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.app-cta-popup-compare th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
}

.app-cta-popup-compare tr:last-child td {
  border-bottom: none;
}

.app-cta-popup-compare .col-app {
  color: #0f766e;
  font-weight: 600;
}

.app-cta-popup-compare .col-speaker {
  color: #94a3b8;
}

.app-cta-popup-compare .win {
  color: #0d9488;
  font-weight: 700;
}

.app-cta-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
  flex-shrink: 0;
}

.app-cta-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.app-cta-popup-btn:active {
  transform: scale(0.98);
}

.app-cta-popup-btn--primary {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}

.app-cta-popup-btn--primary:hover {
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.55);
}

.app-cta-popup-btn--ghost {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
}

.app-cta-popup-btn--ghost:hover {
  background: #e2e8f0;
}

.app-cta-popup-footnote {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .app-cta-popup-root,
  .app-cta-popup-dialog {
    transition: none;
  }
}