/* App extras: back button in the installed app + iPhone install guide (shared by Zheek and AXON). */
.app-back {
  position: fixed; z-index: 1200; inset-inline-start: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--axon-panel, #fff); color: var(--axon-gold, #0f406d);
  border: 1px solid var(--axon-border, rgba(15, 64, 109, .18));
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  -webkit-tap-highlight-color: transparent; transition: transform .2s ease;
}
.app-back:active { transform: scale(.92); }
.app-back svg { width: 24px; height: 24px; }
html[dir="rtl"] .app-back svg { transform: scaleX(-1); }

/* the iPhone button on the app page is only shown on Apple devices */
.ios-only { display: none !important; }
html.is-ios .ios-only { display: inline-flex !important; }

html.ios-install-lock, html.ios-install-lock body { overflow: hidden; }
.ios-install {
  position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 12, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ios-install.is-open { display: flex; animation: ios-in .25s ease; }
@keyframes ios-in { from { opacity: 0; } to { opacity: 1; } }
.ios-install-card {
  position: relative; width: min(420px, 100%); border-radius: 26px; padding: 30px 24px 22px; text-align: center;
  background: var(--axon-panel, #fff); color: var(--axon-white, #0b2340);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
}
.ios-install-close { position: absolute; top: 10px; inset-inline-end: 12px; border: 0; background: none; font-size: 28px;
  line-height: 1; color: inherit; opacity: .55; cursor: pointer; }
.ios-install-app { display: block; margin: 0 auto 12px; border-radius: 20px; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); }
.ios-install-card h3 { margin: 0 0 18px; font-size: 1.25rem; }
.ios-install-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; text-align: start; }
.ios-install-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
  background: var(--axon-black, #f5f7fa); border: 1px solid var(--axon-border, rgba(15, 64, 109, .14)); line-height: 1.6; }
.ios-install-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #0a7aff; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.ios-install-ico svg { width: 24px; height: 24px; }
.ios-install-ico--text { width: auto; padding: 0 12px; font-weight: 700; font-size: .95rem; }
.ios-install-note { margin: 0 0 16px; line-height: 1.7; opacity: .85; }
.ios-install-main, .ios-install-copy { width: 100%; justify-content: center; margin-bottom: 10px; min-height: 48px; }
.ios-install-copied { margin: 0 0 8px; font-weight: 600; color: var(--axon-gold, #0f406d); }
.ios-install-done { width: 100%; min-height: 46px; border: 0; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--axon-border, rgba(15, 64, 109, .12)); color: inherit; }

/* the arrow points at Safari's Share button: bottom centre on iPhone, top right on iPad */
.ios-install-arrow { position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; justify-items: center; color: #fff; animation: ios-bob 1.2s ease-in-out infinite; pointer-events: none; }
.ios-install-arrow span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #0a7aff; box-shadow: 0 0 0 8px rgba(10, 122, 255, .25); }
.ios-install-arrow span svg { width: 26px; height: 26px; }
.ios-install-arrow::before { content: ""; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 14px solid #0a7aff; order: 2; margin-top: 4px; }
.ios-install--ipad .ios-install-arrow { top: 10px; right: 70px; bottom: auto; left: auto; transform: none; }
.ios-install--ipad .ios-install-arrow::before { order: -1; border-top: 0; border-bottom: 14px solid #0a7aff; margin: 0 0 4px; }
@keyframes ios-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.ios-install--ipad .ios-install-arrow { animation-name: ios-bob-up; }
@keyframes ios-bob-up { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
