/* FixMyTool — Google Play promo modal */
.fmt-app-promo {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.fmt-app-promo[hidden] {
  display: none !important;
}

.fmt-app-promo.is-open {
  animation: fmtAppFadeIn 0.28s ease-out;
}

.fmt-app-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0;
  cursor: pointer;
}

.fmt-app-promo__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 24px 22px;
  border-radius: 20px 20px 16px 16px;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(234, 88, 12, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
  border: 1px solid rgba(234, 88, 12, 0.2);
  box-shadow:
    0 24px 48px rgba(17, 24, 39, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  text-align: center;
  transform: translateY(18px);
  opacity: 0;
}

.fmt-app-promo.is-open .fmt-app-promo__panel {
  animation: fmtAppSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fmt-app-promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #4b5563;
  cursor: pointer;
}

.fmt-app-promo__close:hover {
  background: rgba(17, 24, 39, 0.1);
  color: #111827;
}

.fmt-app-promo__visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}

.fmt-app-promo__glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.35) 0%, transparent 70%);
  animation: fmtAppPulse 2.4s ease-in-out infinite;
}

.fmt-app-promo__icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

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

.fmt-app-promo__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.45);
}

.fmt-app-promo__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
}

.fmt-app-promo__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  line-height: 1.25;
  color: #111827;
  font-weight: 800;
}

.fmt-app-promo__desc {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
}

.fmt-app-promo__points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.fmt-app-promo__points li {
  position: relative;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.85);
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.fmt-app-promo__points li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #ea580c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.fmt-app-promo__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fmt-app-promo__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
  color: #fff;
}

.fmt-app-promo__later {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.fmt-app-promo__later:hover {
  color: #111827;
}

body.fmt-app-promo-open {
  overflow: hidden;
}

@keyframes fmtAppFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fmtAppSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fmtAppPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (min-width: 640px) {
  .fmt-app-promo {
    align-items: center;
    padding: 24px;
  }

  .fmt-app-promo__panel {
    border-radius: 22px;
    padding: 32px 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmt-app-promo.is-open,
  .fmt-app-promo.is-open .fmt-app-promo__panel,
  .fmt-app-promo__glow {
    animation: none !important;
  }

  .fmt-app-promo.is-open .fmt-app-promo__panel {
    opacity: 1;
    transform: none;
  }
}
