/* Shared by website (/) and Flutter web shell (/app/): Push-notification PWA banner + Aurora install sheet */

/* ── Push-Notification Style PWA Banner ─────────────────────────────────── */
.ft-push {
  position: fixed;
  top: 90px;
  right: 22px;
  z-index: 90;
  width: min(392px, calc(100vw - 28px));
  padding: 15px 16px 16px;
  border-radius: 22px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  color: #f4f6ff;
  background: rgba(13, 17, 34, 0.88);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  border: 1px solid rgba(140, 175, 255, 0.28);
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px -8px rgba(56, 214, 255, 0.28);
  overflow: hidden;
  transform: translate3d(0, -22px, 0) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.ft-push.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ft-push::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38d6ff, #4c7dff, #9b7bff, #ff6b8a, #3ddcb4);
}

html[data-theme="light"] .ft-push {
  color: #0a0c18;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(47, 91, 224, 0.22);
  box-shadow:
    0 22px 54px -14px rgba(24, 36, 82, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

.ft-push-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ft-push-app {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ft-push-app img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.ft-push-app-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9ba6c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .ft-push-app-label {
  color: #545d7a;
}

.ft-push-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ft-push-now {
  font-size: 11px;
  color: #7d87a8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ft-push-now::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddcb4;
  box-shadow: 0 0 8px #3ddcb4;
}

.ft-push-dismiss {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.78;
}

html[data-theme="light"] .ft-push-dismiss {
  background: rgba(10, 12, 24, 0.06);
}

.ft-push-dismiss:hover {
  opacity: 1;
}

.ft-push-body {
  margin-bottom: 13px;
}

.ft-push-title {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 4px;
}

.ft-push-text {
  font-size: 12.8px;
  line-height: 1.5;
  color: #b1bad8;
  margin: 0;
}

html[data-theme="light"] .ft-push-text {
  color: #4d5570;
}

.ft-push-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ft-push-install,
.ft-push-open {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 630;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.ft-push-install {
  border: 0;
  background: #f4f6ff;
  color: #060814;
  box-shadow: 0 8px 20px -6px rgba(56, 214, 255, 0.45);
}

html[data-theme="light"] .ft-push-install {
  background: #0a0c18;
  color: #f4f6ff;
}

.ft-push-open {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

html[data-theme="light"] .ft-push-open {
  border-color: rgba(15, 20, 44, 0.14);
  background: rgba(15, 20, 44, 0.04);
}

.ft-push-install:hover,
.ft-push-open:hover {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .ft-push {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    border-radius: 22px;
  }
}

/* ── Aurora PWA Install Modal Sheet ─────────────────────────────────────── */
.ft-install {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f4f6ff;
  background: linear-gradient(160deg, rgba(18, 23, 46, 0.96), rgba(9, 12, 26, 0.98));
  border: 1px solid rgba(150, 180, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 34px 32px 30px;
  width: min(470px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  text-align: left;
}

html[data-theme="light"] .ft-install {
  color: #0a0c18;
  background: linear-gradient(160deg, #ffffff, #eef2ff);
  border-color: rgba(47, 91, 224, 0.18);
  box-shadow: 0 36px 90px rgba(18, 28, 68, 0.24);
}

.ft-install::backdrop {
  background: rgba(4, 6, 15, 0.68);
  backdrop-filter: blur(10px);
}

.ft-install[open] {
  animation: ft-install-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-install * {
  box-sizing: border-box;
}

.ft-install button,
.ft-install a {
  -webkit-tap-highlight-color: transparent;
}

.ft-install button:focus-visible,
.ft-install a:focus-visible {
  outline: 2.5px solid #38d6ff;
  outline-offset: 3px;
}

.ft-install-close {
  position: absolute;
  right: 16px;
  top: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ft-install-close {
  background: rgba(10, 12, 24, 0.05);
  border-color: rgba(10, 12, 24, 0.10);
}

.ft-install-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ft-install-icon {
  border-radius: 15px;
  display: block;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.ft-install-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #38d6ff;
  margin: 0 0 4px;
}

html[data-theme="light"] .ft-install-eyebrow {
  color: #2f5be0;
}

.ft-install h2 {
  font-size: 27px;
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.ft-install-intro {
  font-size: 13.8px;
  line-height: 1.65;
  color: #aeb7d4;
  margin: 0 0 18px;
}

html[data-theme="light"] .ft-install-intro {
  color: #4d5570;
}

.ft-install-steps {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  counter-reset: install;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-install-steps li {
  counter-increment: install;
  position: relative;
  padding: 11px 14px 11px 44px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  line-height: 1.55;
}

html[data-theme="light"] .ft-install-steps li {
  background: rgba(15, 22, 48, 0.04);
  border-color: rgba(15, 22, 48, 0.09);
}

.ft-install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 12px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 214, 255, 0.16);
  border: 1px solid rgba(56, 214, 255, 0.4);
  color: #38d6ff;
  font-size: 11px;
  font-weight: 700;
}

html[data-theme="light"] .ft-install-steps li::before {
  color: #2f5be0;
  background: rgba(47, 91, 224, 0.12);
  border-color: rgba(47, 91, 224, 0.32);
}

.ft-install-primary,
.ft-install-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 630;
  text-decoration: none;
  cursor: pointer;
}

.ft-install-primary {
  border: 0;
  background: #f4f6ff;
  color: #060814;
  margin-bottom: 10px;
  box-shadow: 0 12px 28px -8px rgba(56, 214, 255, 0.45);
}

html[data-theme="light"] .ft-install-primary {
  background: #0a0c18;
  color: #f4f6ff;
}

.ft-install-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ft-install-open {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
}

html[data-theme="light"] .ft-install-open {
  border-color: rgba(15, 22, 48, 0.16);
  background: rgba(15, 22, 48, 0.04);
}

.ft-install-copy {
  display: block;
  background: none;
  border: 0;
  min-height: 38px;
  margin: 8px auto 0;
  padding: 6px 10px;
  color: #9aa5c7;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

html[data-theme="light"] .ft-install-copy {
  color: #4d5570;
}

.ft-install-status {
  font-size: 12.5px;
  line-height: 1.6;
  color: #3ddcb4;
  margin: 8px 0 0;
  text-align: center;
  overflow-wrap: anywhere;
}

html[data-theme="light"] .ft-install-status {
  color: #0d8a6f;
}

.ft-install-access {
  font-size: 11px;
  line-height: 1.6;
  color: #7f89aa;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

html[data-theme="light"] .ft-install-access {
  color: #656e8a;
  border-top-color: rgba(15, 22, 48, 0.10);
}

.ft-install-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 14px;
  margin: 0 0 18px;
}

html[data-theme="light"] .ft-install-qr {
  background: rgba(15, 22, 48, 0.04);
  border-color: rgba(15, 22, 48, 0.10);
}

.ft-install-qr img {
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.ft-install-qr strong {
  font-size: 13px;
  font-weight: 620;
}

.ft-install-qr p {
  font-size: 12px;
  line-height: 1.55;
  color: #a9b2ce;
  margin: 4px 0 0;
}

html[data-theme="light"] .ft-install-qr p {
  color: #4d5570;
}

.ft-install [hidden],

.ft-push[hidden] {
  display: none !important;
}

@keyframes ft-install-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 440px) {
  .ft-install {
    padding: 26px 22px 24px;
  }
  .ft-install h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-install[open] { animation: none; }
  .ft-push { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .ft-push,
  .ft-install {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
