/* ══════════════════════════════════════════════════════════════
   jx.appget.css — the app cards on every sign-in page (Oct 3 2026)

   Cards, not a pill: an icon tile, a title, a line under it, a chevron.
   Under the form on a phone; on a desk jx.appget.js lifts the row into
   .jxag-dock — bottom centre, on the same line as the clock
   (.time-date, bottom: 2rem). Markup: SocialLogin::extras + jx.appget.js.
   ══════════════════════════════════════════════════════════════ */

.jxag {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}
.jxag[hidden], .jxag-card[hidden], .jxag-phone[hidden], .jxag-qrpop[hidden] { display: none !important; }   /* the how-to opens only when tapped (Nov 4 2026: display:flex below beat [hidden]) */
.jxag-phone > .jxag-card { width: 100%; }   /* a <button> card shrank to its text */
.jxag:not(:has(.jxag-card:not([hidden]))) { display: none; }

.jxag-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 11px 14px 11px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    color: #e9f3f1 !important;
    text-decoration: none !important;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.jxag-card:hover, .jxag-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 230, 184, .45);
    background: linear-gradient(135deg, rgba(0, 230, 184, .12), rgba(255, 255, 255, .03));
    box-shadow: 0 10px 28px -12px rgba(0, 230, 184, .45);
    outline: none;
}
.jxag-card:active { transform: translateY(0); }

.jxag-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #00e6b8, #0d6efd);
    box-shadow: 0 6px 16px -6px rgba(0, 230, 184, .6);
}
.jxag-open  .jxag-ico { background: linear-gradient(135deg, #6f42c1, #0d6efd); box-shadow: 0 6px 16px -6px rgba(111, 66, 193, .6); }
.jxag-qr    .jxag-ico { background: linear-gradient(135deg, #ffb020, #fd7e14); box-shadow: 0 6px 16px -6px rgba(253, 126, 20, .55); }
.jxag-store .jxag-ico { background: linear-gradient(135deg, #2b3440, #11161c); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }

.jxag-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.jxag-txt b { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jxag-txt small { font-size: .74rem; opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.jxag-chev { flex: 0 0 auto; opacity: .45; transition: transform .18s ease, opacity .18s ease; }
.jxag-card:hover .jxag-chev { opacity: .9; transform: translateX(2px); }

/* The phone card opens its QR code above itself. */
.jxag-phone { position: relative; }
.jxag-qr[aria-expanded="true"] .jxag-chev { transform: rotate(-90deg); opacity: .9; }
.jxag-qrpop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: #0e1216;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
    color: #cfe0dc;
    font-size: .72rem;
    white-space: nowrap;
    animation: jxagPop .16s ease-out;
}
.jxag-qrimg { background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.jxag-qrimg svg { width: 150px; height: 150px; display: block; }
@keyframes jxagPop { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── Desk: the dock on the clock's line, bottom centre ─────────── */
.jxag.jxag-dock {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 20;
    margin: 0;
    display: flex;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 26rem);   /* clear of the clock on the left */
    animation: jxagRise .4s ease-out both;
}
.jxag.jxag-dock .jxag-card {
    width: 272px;
    background: linear-gradient(135deg, rgba(20, 26, 32, .78), rgba(20, 26, 32, .55));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
}
@keyframes jxagRise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Light sign-in pages */
body.light-mode .jxag-card { color: #13201d !important; border-color: rgba(0, 0, 0, .1); background: rgba(255, 255, 255, .7); }
body.light-mode .jxag.jxag-dock .jxag-card { background: rgba(255, 255, 255, .82); }

/* Short screens: the sign-in card reaches the bottom centre, so the dock sits
   straight after the clock instead (jx.appget.js sets its left). */
.jxag.jxag-dock.jxag-dock-clock { transform: none; max-width: none; animation-name: jxagRiseFlat; }
@keyframes jxagRiseFlat { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* …and narrower still when even that reaches the card (1280×720): titles only. */
.jxag.jxag-dock.jxag-dock-compact .jxag-card { width: 214px; min-height: 54px; padding: 8px 12px 8px 8px; }
.jxag.jxag-dock.jxag-dock-compact .jxag-ico { width: 36px; height: 36px; }
.jxag.jxag-dock.jxag-dock-compact .jxag-txt small { display: none; }
.jxag-short { display: none; }
.jxag.jxag-dock.jxag-dock-compact .jxag-long { display: none; }
.jxag.jxag-dock.jxag-dock-compact .jxag-short { display: inline; }

/* "Download the app" when the browser will not prompt: how to install, in a popover. */
.jxag-help { white-space: normal; width: 300px; align-items: flex-start; text-align: left; font-size: .8rem; line-height: 1.45; padding: 14px 16px; }
.jxag-help-h { color: #fff; font-size: .86rem; }
.jxag-help ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 4px; }
.jxag-help b { color: #00e6b8; font-weight: 650; }
.jxag-help .jxag-help-h { color: #fff; }
.jxag-install[aria-expanded="true"] .jxag-chev { transform: rotate(-90deg); opacity: .9; }
.jxag-openwrap { position: relative; }
.jxag-openwrap[hidden] { display: none !important; }
/* "Open the app" lists alternatives, not steps. */
.jxag-openwrap .jxag-help ol { list-style: disc; }

/* Phones & tablets: the app card sits INLINE under the sign-in form (it only
   docks on a desk, ≥992px). A popover that opens upward out of flow then floats
   across the inputs and the sign-in button, blocking the form (Oct 12 2026).
   Expand the install / open "how-to" (and the QR) in normal flow below their
   card instead, where they cover nothing. */
@media (max-width: 991.98px) {
    .jxag:not(.jxag-dock) .jxag-qrpop {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        white-space: normal;
        animation: none;
    }
}
