/* Octopus Fit — member app (phase 4). Plain CSS (no bundle) so the PWA shell stays tiny and cacheable. */
@font-face { font-family: "Cairo"; src: url("/lfgym_membership/static/fonts/Cairo.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
:root { --navy: #0E1A2B; --navy2: #16263D; --orange: #FF6A2B; --bg: #F4F6FA; --line: #E6EAF1; --muted: #64748B; --ok: #16A34A; --err: #DC2626; --warn: #D97706;
        --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.ofa { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; background: var(--bg); color: var(--navy); font-size: 15px; line-height: 1.6;
           padding-bottom: calc(76px + var(--safe-b)); min-height: 100vh; }
body.ofa-auth { padding-bottom: 20px; background: linear-gradient(180deg, var(--navy) 0 240px, var(--bg) 240px); }
a { color: var(--orange); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.3; }
.small { font-size: 13px; }
.ofa-muted { color: var(--muted); }

.ofa-top { position: sticky; top: 0; z-index: 20; background: var(--navy); display: flex; align-items: center; justify-content: space-between;
           padding: calc(10px + var(--safe-t)) 16px 10px; }
.ofa-logo img { height: 28px; display: block; }
.ofa-bell { position: relative; color: #fff; display: flex; padding: 6px; }
.ofa-bell b { position: absolute; top: 0; inset-inline-end: 0; background: var(--orange); color: #fff; font-size: 11px; min-width: 18px; height: 18px;
              border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ofa-flash { margin: 12px 16px 0; padding: 10px 14px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.ofa-flash.ok { background: #DCFCE7; color: #14532D; } .ofa-flash.err { background: #FEE2E2; color: #991B1B; }
.ofa-main { padding: 14px 16px 10px; max-width: 560px; margin: 0 auto; }
.ofa-h1 { font-size: 24px; margin: 4px 0 12px; }
.ofa-hello { font-size: 17px; margin: 2px 0 10px; }

.ofa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; border-radius: 14px; background: var(--orange);
           color: #fff; font: inherit; font-weight: 900; font-size: 16px; padding: 13px 16px; cursor: pointer; text-align: center; }
.ofa-btn.sm { width: auto; font-size: 14px; padding: 8px 14px; border-radius: 12px; }
.ofa-btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.ofa-btn:disabled { background: #CBD5E1; color: #fff; border-color: #CBD5E1; }
.ofa-x { border: 1px solid #FECACA; background: #fff; color: var(--err); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; padding: 4px 10px; margin-top: 6px; }
.ofa-link { display: block; text-align: center; margin-top: 14px; font-weight: 800; } .ofa-link.small { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ofa-alert { border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-weight: 700; font-size: 14px; }
.ofa-alert.err { background: #FEE2E2; color: #991B1B; } .ofa-alert.warn { background: #FEF3C7; color: #92400E; }
.ofa-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 900; background: var(--bg); color: var(--muted); white-space: nowrap; }
.ofa-pill.ok { background: #DCFCE7; color: #166534; } .ofa-pill.warn { background: #FEF3C7; color: #92400E; } .ofa-pill.err { background: #FEE2E2; color: #991B1B; }

.ofa-auth-card { background: #fff; border-radius: 26px; padding: 26px 20px; margin-top: 30px; box-shadow: 0 20px 40px rgba(14,26,43,.14); text-align: center; }
.ofa-auth-card h1 { font-size: 26px; }
.ofa-auth-icon { width: 72px; height: 72px; border-radius: 20px; margin: -62px auto 10px; display: block; box-shadow: 0 10px 24px rgba(255,106,43,.35); }
.ofa-form { text-align: start; margin-top: 14px; }
.ofa-form label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.ofa-form input { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); }
.ofa-form input:focus { outline: 0; border-color: var(--orange); }
.ofa-pin { letter-spacing: .6em; text-align: center; font-weight: 900; }
.ofa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ofa-mcard { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 18px 14px; color: #fff;
             background: radial-gradient(120% 140% at 0% 0%, #FF8A55 0%, var(--orange) 30%, #B83E0C 100%); box-shadow: 0 16px 34px rgba(255,106,43,.28); }
.ofa-mcard.st-frozen { background: linear-gradient(135deg, #38BDF8, #1D4ED8); box-shadow: 0 16px 34px rgba(29,78,216,.25); }
.ofa-mcard.st-expired, .ofa-mcard.st-none { background: linear-gradient(135deg, #475569, var(--navy)); box-shadow: 0 16px 34px rgba(14,26,43,.25); }
.ofa-mcard:after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(255,255,255,.08); inset-inline-end: -80px; top: -90px; }
.ofa-mcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ofa-mplan { font-weight: 900; font-size: 17px; }
.ofa-status { background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 900; }
.ofa-big { margin: 10px 0 6px; } .ofa-big b { font-size: 50px; font-weight: 900; line-height: 1; } .ofa-big small { font-size: 15px; font-weight: 800; margin-inline-start: 8px; opacity: .9; }
.ofa-bar { height: 7px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; } .ofa-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.ofa-mcard-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; opacity: .95; flex-wrap: wrap; }
.ofa-renew-cta { margin-top: 12px; }

.ofa-qr { margin-top: 14px; background: #fff; border-radius: 22px; padding: 14px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); cursor: pointer; }
.ofa-qr-img { width: 132px; height: 132px; flex: none; border-radius: 14px; overflow: hidden; background: #fff; }
.ofa-qr-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ofa-qr-side h3 { font-size: 17px; } .ofa-qr-side p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.ofa-qr-timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--orange); font-size: 14px; }
.ofa-qr-timer i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: ofa-pulse 1.4s infinite; }
@keyframes ofa-pulse { 50% { opacity: .3; } }
.ofa-qr.big { position: fixed; inset: 0; z-index: 50; border-radius: 0; flex-direction: column; justify-content: center; background: #fff; }
.ofa-qr.big .ofa-qr-img { width: min(80vw, 380px); height: min(80vw, 380px); }
.ofa-qr.big .ofa-qr-side { text-align: center; }

.ofa-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ofa-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.ofa-stats .wide { grid-column: span 2; }
.ofa-stats b { display: block; font-size: 26px; font-weight: 900; line-height: 1.2; } .ofa-stats b.sm { font-size: 16px; }
.ofa-stats span { font-size: 12.5px; color: var(--muted); font-weight: 700; }

.ofa-sec { margin-top: 18px; }
.ofa-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .ofa-sec-h h2 { font-size: 18px; } .ofa-sec-h a { font-weight: 800; font-size: 14px; }
.ofa-empty { background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 16px; text-align: center; color: var(--muted); } .ofa-empty p { margin: 0 0 10px; }
.ofa-bk { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--c); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.ofa-bk-when { text-align: center; min-width: 62px; } .ofa-bk-when b { display: block; font-size: 15px; } .ofa-bk-when small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ofa-bk-main { flex: 1; min-width: 0; } .ofa-bk-name { font-weight: 900; font-size: 16px; }
.ofa-bk-side { text-align: end; }
.ofa-bk.st-cancelled, .ofa-bk.st-dropped { opacity: .6; }

.ofa-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.ofa-days::-webkit-scrollbar { display: none; }
.ofa-days a { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; text-align: center; color: var(--navy); font-weight: 900; font-size: 14px; }
.ofa-days a small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.ofa-days a.on { background: var(--navy); color: #fff; border-color: var(--navy); } .ofa-days a.on small { color: rgba(255,255,255,.7); }
.ofa-allow { border-radius: 12px; padding: 6px 12px; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.ofa-allow.ok { background: #DCFCE7; color: #166534; } .ofa-allow.err { background: #FEE2E2; color: #991B1B; }
.ofa-cls { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 10px; }
.ofa-cls.past { opacity: .6; }
.ofa-cls-img { width: 78px; flex: none; background-size: cover; background-position: center; border-inline-end: 4px solid var(--c); }
.ofa-cls-body { flex: 1; min-width: 0; padding: 10px 12px; }
.ofa-cls-time { font-size: 13px; color: var(--muted); } .ofa-cls-time b { color: var(--navy); }
.ofa-cls-name { font-weight: 900; font-size: 17px; line-height: 1.3; }
.ofa-cls-seats { font-size: 12.5px; font-weight: 800; color: var(--ok); margin-top: 2px; }
.ofa-cls-act { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 10px 12px; gap: 4px; }

.ofa-rule { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.ofa-plans { display: grid; gap: 10px; margin-top: 12px; }
.ofa-plan { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.ofa-plan.cur { border: 2px solid var(--orange); }
.ofa-plan-main { flex: 1; min-width: 0; } .ofa-plan-name { font-weight: 900; font-size: 16px; }
.ofa-plan-price { text-align: center; } .ofa-plan-price b { display: block; font-size: 20px; font-weight: 900; line-height: 1.1; } .ofa-plan-price small { font-size: 11px; color: var(--muted); font-weight: 800; }

.ofa-note { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; color: var(--navy); }
.ofa-note.new { border-inline-start: 5px solid var(--orange); }
.ofa-note b { display: block; font-size: 15px; } .ofa-note span { display: block; font-size: 13.5px; color: var(--muted); } .ofa-note small { font-size: 11.5px; color: var(--muted); }

.ofa-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.ofa-card h3 { font-size: 17px; margin-bottom: 4px; }
.ofa-kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .ofa-kv:last-child { border-bottom: 0; }
.ofa-kv span { color: var(--muted); }
.ofa-links { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px 20px; font-weight: 800; } .ofa-links .danger { color: var(--err); }

.ofa-banner { margin-top: 12px; background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 12px;
              display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.ofa-banner[hidden] { display: none; }

.ofa-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
           padding: 6px 4px calc(6px + var(--safe-b)); box-shadow: 0 -6px 20px rgba(14,26,43,.06); }
.ofa-nav a { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #94A3B8; font-size: 11.5px; font-weight: 800; padding: 4px 0; }
.ofa-nav svg { width: 24px; height: 24px; }
.ofa-nav a.on { color: var(--orange); }
[hidden] { display: none !important; }
