/* Member portal: phone first, with a tab bar at the bottom. */

.fx-portal { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

.fx-portal-top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    /* Installed on iPhone, the status bar overlays the page; keep clear of it. */
    padding: calc(.65rem + env(safe-area-inset-top)) 1rem .65rem;
    background: rgba(8, 11, 28, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.fx-portal-brand { display: flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-weight: 600; min-width: 0; }
.fx-portal-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fx-portal-main { max-width: 760px; margin: 0 auto; padding: 1rem; position: relative; }
.fx-portal-title { font-family: var(--fx-display, sans-serif); font-size: 1.3rem; letter-spacing: .04em; margin: .25rem 0 1rem; }

.fx-portal-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; justify-content: space-around;
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(8, 11, 28, .92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.fx-portal-tabs a {
    flex: 1; max-width: 120px;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .35rem 0; border-radius: 12px;
    color: var(--fx-muted, #94a3b8); text-decoration: none; font-size: .72rem;
}
.fx-portal-tabs a i { font-size: 1.25rem; }
.fx-portal-tabs a.active { color: #fff; background: rgba(139, 92, 246, .18); }
.fx-portal-tabs a:focus-visible { outline: 2px solid var(--fx-cyan, #22e6ff); }

/* The membership "pass" on the home page. */
.fx-pass {
    border-radius: 22px; padding: 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(34, 230, 255, .14));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 40px rgba(139, 92, 246, .2);
}
.fx-pass-head { display: flex; align-items: center; gap: .85rem; }
.fx-pass-head .fx-avatar { flex: none; }
.fx-pass-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.fx-pass-days { font-family: var(--fx-display, sans-serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.fx-pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin-top: 1rem; font-size: .88rem; }
.fx-pass-grid span { display: block; color: var(--fx-muted, #94a3b8); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

.fx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.fx-tile { border-radius: 16px; padding: .9rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; display: block; }
.fx-tile strong { display: block; font-size: 1.4rem; }
.fx-tile span { color: var(--fx-muted, #94a3b8); font-size: .8rem; }
a.fx-tile:hover { border-color: rgba(139, 92, 246, .5); }

/* Renewal plan choices */
.fx-renew-option { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.fx-renew-option .price { font-family: var(--fx-display, sans-serif); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }

/* Simple list rows for payments and visits on small screens. */
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.fx-list li:last-child { border-bottom: 0; }
.fx-list small { color: var(--fx-muted, #94a3b8); }

/* "Get the app" prompt */
.fx-install {
    display: flex; align-items: center; gap: .8rem;
    margin: 1rem 0; padding: .85rem 1rem; border-radius: 16px; text-align: left;
    background: linear-gradient(135deg, rgba(34, 230, 255, .14), rgba(139, 92, 246, .22));
    border: 1px solid rgba(255, 255, 255, .12);
}
.fx-install[hidden] { display: none; }
.fx-install > i { font-size: 1.6rem; }
.fx-install small { color: var(--fx-muted, #a5adcb); }

.fit-today { box-shadow: 0 0 0 2px var(--fx-violet, #8b5cf6) inset; border-radius: inherit; }
