/* Track My Wealth — Oct 2026: "open in app" prompt shown to mobile visitors on the log in page
 * (js/app-detect.js). Self-contained so it only needs linking on pages that use it; styled to sit
 * alongside v2.css's tokens (--surface-1 etc.) with plain fallbacks in case it's ever used on a
 * page v2.css hasn't run on.
 */
.ad-backdrop {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(14,22,38,0.5);
}
.ad-backdrop.open { display: flex; }
.ad-modal {
  width: 100%; max-width: 360px; background: var(--surface-1, #fff); border-radius: 16px;
  padding: 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(11,21,38,0.25);
}
.ad-logo { height: 30px; margin-bottom: 14px; }
.ad-modal h2 { margin: 0 0 8px; font-size: 18px; color: var(--text-primary, #12213B); }
.ad-sub { margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary, #5B6472); }
.ad-actions { display: flex; flex-direction: column; gap: 10px; }
.ad-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
}
.ad-btn svg { flex-shrink: 0; }
.ad-open, .ad-store {
  background: var(--accent, #1B2E4D); color: #fff !important; text-decoration: none !important;
  /* !important: the site's global `html.v2 a { color: var(--accent) }` rule (v2.css) otherwise
     wins over this plain class rule on specificity, which made the store-link button's text
     exactly match its own background and disappear (Mike, 30 Oct 2026). */
}
.ad-open:hover, .ad-store:hover { background: var(--accent-hover, #12213B); }
.ad-browser { background: transparent; color: var(--text-secondary, #5B6472); border: 1px solid var(--border, #E1E6ED); }
.ad-browser:hover { color: var(--text-primary, #12213B); }
