:root{--g:#0E3B2E;--g2:#14503f;--y:#C6F24E;--bg:#F6F7F5;--ink:#1f2a26;--mut:#6c7a73;--ln:#e5e9e6;--sh:0 6px 20px rgba(14,59,46,.09)}
html{background:#0E3B2E}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
body{font-family:'Plus Jakarta Sans',system-ui,sans-serif;background:transparent;color:var(--ink);max-width:600px;margin:0 auto;zoom:.8;min-height:125vh;box-shadow:0 0 0 1px var(--ln)}
a{color:inherit;text-decoration:none}button,input{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid var(--y);outline-offset:2px}
#app{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
#tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:flex;background:#fff;border-top:1px solid var(--ln);padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:20}
#tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--mut);padding:6px;border-radius:14px}
#tabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#tabs a.on{color:var(--g);background:var(--y)}
body.nt #tabs{display:none}
.hero{background:var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cg fill='none' stroke='%23C6F24E' stroke-opacity='.2' stroke-width='2'%3E%3Crect x='30' y='20' width='340' height='260'/%3E%3Cpath d='M200 20v260M30 90h340M30 210h340M30 150h340'/%3E%3C/g%3E%3C/svg%3E") right -40px top/cover no-repeat;color:#fff;padding:calc(22px + env(safe-area-inset-top)) 20px 26px;border-radius:0 0 30px 30px}
.logo{font-weight:800;font-size:15px;display:flex;align-items:center;gap:8px}.logo i{width:30px;height:30px;border-radius:10px;background:var(--y);display:grid;place-items:center;font-style:normal}
.hero h1{font-size:32px;line-height:1.08;font-weight:800;margin:26px 0 8px;letter-spacing:-.8px}
.hero p{opacity:.75;font-size:14px;margin-bottom:18px}
.search input{width:100%;height:54px;border-radius:18px;border:0;padding:0 18px;font-size:15px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.chips,.hs{display:flex;gap:10px;overflow-x:auto;padding:18px 20px 4px;scrollbar-width:none}.chips::-webkit-scrollbar,.hs::-webkit-scrollbar{display:none}
.chip{flex:none;height:42px;padding:0 18px;border-radius:21px;background:#fff;border:1.5px solid var(--ln);font-weight:700;font-size:14px}
.chip.on{background:var(--g);color:#fff;border-color:var(--g)}
.sh{font-size:19px;font-weight:800;letter-spacing:-.3px;margin:24px 20px 4px}.sh span{color:var(--mut);font-size:14px;font-weight:500}
.hs{padding-top:10px;padding-bottom:10px}
.fc{flex:none;width:250px;border-radius:22px;overflow:hidden;background:#fff;box-shadow:var(--sh)}
.fc .ph{height:140px}.fc .ci{padding:12px 14px 14px}
.list{padding:10px 20px;display:grid;gap:16px}
.card{display:block;background:#fff;border-radius:22px;overflow:hidden;box-shadow:var(--sh)}
.ph{background-size:cover;background-position:center;height:170px;position:relative}
.bd{position:absolute;top:12px;left:12px;padding:6px 12px;border-radius:14px;font-size:12px;font-weight:800;z-index:2}
.bd.ok{background:var(--y);color:var(--g)}.bd.almost{background:#ffb454;color:#4a2a00}.bd.full{background:#ff6b6b;color:#fff}.bd.closed{background:#cfd5d2;color:#3b4742}
.bd.closing{background:#ff7a1a;color:#fff;animation:clsp 1.6s ease-in-out infinite}@keyframes clsp{50%{background:#ef3b2d}}
.clsoon{margin:12px 20px 0;padding:12px 14px;border-radius:14px;background:#fff1e6;border:1.5px solid #ff7a1a;color:#a32d00;font-weight:700;font-size:14px;line-height:1.4}
@media (prefers-reduced-motion:reduce){.bd.closing{animation:none}}
.ci{padding:14px 16px 16px}.r1{display:flex;justify-content:space-between;gap:10px;align-items:start}
.ci h3{font-size:17px;font-weight:800;letter-spacing:-.2px}.rt{font-weight:800;font-size:14px;white-space:nowrap}
.loc{color:var(--mut);font-size:13px;margin:4px 0 8px}
.tg{display:inline-block;background:var(--bg);border-radius:10px;font-size:12px;font-weight:700;padding:4px 10px;margin-right:6px}
.pr{margin-top:10px;display:flex;align-items:baseline;gap:3px}.pr b{font-size:26px;font-weight:800;color:var(--g);letter-spacing:-.8px}.pr small{color:var(--mut);font-weight:600}
.empty{text-align:center;color:var(--mut);padding:40px 20px}
/* court */
.gw{position:relative}.gal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.gal::-webkit-scrollbar{display:none}
.gal img{flex:none;width:100%;height:270px;object-fit:cover;scroll-snap-align:center}
.back{position:absolute;top:calc(14px + env(safe-area-inset-top));left:14px;z-index:3;width:44px;height:44px;border-radius:50%;background:#fff;font-size:26px;box-shadow:var(--sh)}
.gw .bd{left:auto;right:14px;top:calc(22px + env(safe-area-inset-top))}
.dots{position:absolute;bottom:34px;left:0;right:0;display:flex;justify-content:center;gap:6px}.dots i{width:7px;height:7px;border-radius:4px;background:#fff8;transition:.2s}.dots i.on{width:20px;background:var(--y)}
.body{background:var(--bg);margin-top:-22px;border-radius:26px 26px 0 0;position:relative;padding:22px 0 0}
.ct{font-size:26px;font-weight:800;letter-spacing:-.6px;padding:0 20px}.body .loc{padding:0 20px;margin-bottom:10px}
.rrow{display:flex;gap:8px;padding:0 20px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--mut)}.rrow b{color:var(--ink);font-size:15px}
.acts{display:flex;gap:10px;padding:16px 20px 0}
.btn{flex:1;height:54px;border-radius:18px;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;gap:6px}
.btn.o{background:#fff;border:1.5px solid var(--ln);font-size:14px}.btn.p{background:var(--y);color:var(--g);box-shadow:0 6px 16px rgba(198,242,78,.5)}
.btn:disabled{background:var(--ln);color:#9aa6a0;box-shadow:none;cursor:not-allowed}
.fac{display:flex;flex-wrap:wrap;gap:8px;padding:10px 20px}.fac span{background:#fff;border-radius:14px;padding:9px 13px;font-size:13px;font-weight:700;box-shadow:var(--sh)}
.pt{margin:10px 20px;background:#fff;border-radius:22px;box-shadow:var(--sh);overflow:hidden}
.pt div{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--ln)}.pt div:last-child{border:0}
.pt small{display:block;color:var(--mut);font-size:12px}.pt b{font-size:24px;font-weight:800;color:var(--g);letter-spacing:-.6px}.pt em{font-style:normal;font-weight:700}
.days{display:flex;gap:8px;overflow-x:auto;padding:10px 20px;scrollbar-width:none}
.dp{flex:none;width:56px;height:68px;border-radius:18px;background:#fff;border:1.5px solid var(--ln);display:flex;flex-direction:column;align-items:center;justify-content:center}
.dp small{font-size:12px;color:var(--mut);font-weight:600}.dp b{font-size:19px}.dp.on{background:var(--g);border-color:var(--g);color:#fff}.dp.on small{color:#fffa}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:4px 20px}
.sl{border-radius:14px;padding:10px 4px;text-align:center;border:1.5px solid;font-size:13px}.sl small{display:block;font-size:11px;margin-top:2px}
.sl.ok{background:#e3f6c8;border-color:#8fd14f;color:#1e5a17}.sl.almost{background:#ffe9c9;border-color:#f5a53a;color:#7a4300}.sl.full{background:#ffdada;border-color:#ee6a6a;color:#8f1d1d}.sl.past{background:#eef0ee;border-color:var(--ln);color:#9aa6a0}
button.sl{width:100%;font:inherit}button.sl.on{background:var(--g);border-color:var(--g);color:var(--y)}button.sl:disabled{cursor:not-allowed;opacity:.8}
.lg{display:flex;gap:14px;padding:12px 20px;font-size:12px;color:var(--mut);font-weight:600}.lg i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.rv{margin:8px 20px;background:#fff;border-radius:18px;padding:14px 16px;box-shadow:var(--sh);font-size:14px}.rv b{display:block;margin-bottom:2px}.rv span{color:#e6a800}
.cta{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;background:#fff;padding:12px 20px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:16px;box-shadow:0 -8px 24px rgba(14,59,46,.1);z-index:20}
.cta>div{white-space:nowrap}.cta small{display:block;color:var(--mut);font-size:12px}.cta b{font-size:26px;font-weight:800;color:var(--g);letter-spacing:-.8px}.cta .btn{flex:1}
/* book */
.bh{background:var(--g);color:#fff;padding:calc(20px + env(safe-area-inset-top)) 20px 22px 74px;border-radius:0 0 26px 26px;min-height:112px}.bh h1{font-size:22px;font-weight:800}.bh p{opacity:.75;font-size:13px;margin-top:4px}
.nums{display:flex;flex-wrap:wrap;gap:10px;padding:10px 20px}.nm{width:64px;height:64px;border-radius:18px;background:#fff;border:1.5px solid var(--ln);font-weight:800;font-size:20px}.nm.on{background:var(--g);color:var(--y);border-color:var(--g)}.nm:disabled{background:#eef0ee;color:#b3bcb7;text-decoration:line-through;cursor:not-allowed}
.sum{margin:18px 20px;background:var(--g);color:#fff;border-radius:24px;padding:20px}.sum div{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;opacity:.9}.sum .tot{border-top:1px dashed #fff4;margin-top:8px;padding-top:14px;opacity:1}.sum .tot b{font-size:34px;color:var(--y);letter-spacing:-1px}.sum p{font-size:12px;opacity:.7;margin-top:8px}
.note{padding:6px 20px;color:#b25a00;font-size:13px;font-weight:600}
/* bookings */
.pg{padding:calc(26px + env(safe-area-inset-top)) 20px 0}.pg h1{font-size:28px;font-weight:800;letter-spacing:-.7px}
.bk{background:#fff;border-radius:22px;box-shadow:var(--sh);padding:16px;margin:12px 0}.bk .r1 b{font-size:17px}.bk p{color:var(--mut);font-size:13px;margin:6px 0 12px}
.st{font-size:12px;font-weight:800;padding:5px 10px;border-radius:12px;background:var(--y);color:var(--g)}.st.cancelled{background:#ffdada;color:#8f1d1d}.st.done{background:#eef0ee;color:var(--mut)}
.ba{display:flex;gap:8px;flex-wrap:wrap}.ba .btn{height:42px;border-radius:14px;font-size:13px;flex:1 1 90px}
.sr{display:flex;align-items:center;gap:2px;font-size:13px;font-weight:700;color:var(--mut)}.sr button{font-size:26px;color:#d5dbd8;padding:0 2px}.sr button.on{color:#f5b301}
.sub{font-size:13px;font-weight:800;color:var(--mut);margin-top:22px}
/* map */
#map{height:calc(125vh - 78px);height:calc(125dvh - 78px);width:100%}
.mb{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(98px + env(safe-area-inset-bottom));z-index:500;height:50px;padding:0 22px;border-radius:25px;background:var(--g);color:var(--y);font-weight:800;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.mt{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:500;background:#fff;border-radius:20px;padding:9px 16px;font-size:12px;font-weight:700;box-shadow:var(--sh);display:flex;gap:12px;white-space:nowrap}.mt i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.pin{position:relative;height:34px;min-width:56px;padding:0 10px;border-radius:17px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:13px;box-shadow:0 4px 10px rgba(0,0,0,.3);border:2px solid #fff}
.pin:after{content:"";position:absolute;bottom:-7px;left:50%;margin-left:-6px;border:6px solid transparent;border-bottom:0;border-top-color:inherit}
.pin.ok{background:#2fb350;border-top-color:#2fb350}.pin.gr{background:#8a948f}
.leaflet-popup-content-wrapper{border-radius:20px;padding:0;overflow:hidden}.leaflet-popup-content{margin:0;width:240px!important}
.mini img{width:100%;height:100px;object-fit:cover;display:block}.mini div{padding:12px 14px 14px;font-family:inherit}.mini b{font-size:15px}.mini p{margin:2px 0 10px;font-size:13px;color:var(--mut)}.mini .btn{height:44px;width:100%;font-size:14px;background:var(--y);color:var(--g)}
/* sheet + toast */
#sheet{position:fixed;inset:0;background:#0007;z-index:100;display:none;align-items:flex-end;justify-content:center}#sheet.show{display:flex}
.panel{background:#fff;width:100%;max-width:600px;height:97.5vh;border-radius:28px 28px 0 0;display:flex;flex-direction:column}
.sh-h{padding:18px 20px;border-bottom:1px solid var(--ln);position:relative}.sh-h small{display:block;color:var(--mut);font-size:12px}.sh-h button{position:absolute;right:16px;top:16px;width:36px;height:36px;border-radius:50%;background:var(--bg)}
.msgs{flex:1;overflow:auto;padding:16px 20px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}
.m{max-width:80%;background:#fff;padding:10px 14px;border-radius:18px 18px 18px 4px;font-size:14px;box-shadow:var(--sh)}.m.me{align-self:flex-end;background:var(--g);color:#fff;border-radius:18px 18px 4px 18px}
.cin{display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--ln)}.cin input{flex:1;height:48px;border-radius:24px;border:1.5px solid var(--ln);padding:0 18px}.cin button{background:var(--y);color:var(--g);font-weight:800;padding:0 20px;border-radius:24px}
#toast{position:fixed;left:50%;bottom:110px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 20px;border-radius:16px;font-weight:700;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:200}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.lb{margin-left:auto;background:var(--y);color:var(--g);font-weight:800;font-size:13px;padding:9px 14px;border-radius:16px}
.fm{display:grid;gap:12px;margin-top:16px}.fl{display:grid;gap:6px;font-size:13px;font-weight:700;color:var(--mut)}.fl input,.fl select{height:52px;border-radius:16px;border:1.5px solid var(--ln);padding:0 16px;font-size:15px;background:#fff;color:var(--ink)}
.fm .btn{flex:none;width:100%}.alt{display:block;text-align:center;font-size:14px;color:var(--mut);font-weight:600;padding:6px}.alt a{color:var(--g);font-weight:800;text-decoration:underline}.sub2{color:var(--mut);font-size:14px;margin-top:6px}
.av{display:grid;justify-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--mut);cursor:pointer}.av .pvw{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:#fff;border:2px dashed var(--ln);font-size:30px;overflow:hidden}.av .pvw img{width:96px;height:96px;margin:0;border-radius:0}
.pvw img{width:64px;height:64px;object-fit:cover;border-radius:16px;margin:4px 6px 0 0}
.pf{display:grid;justify-items:center;gap:8px;padding-bottom:10px}.pf img,.pf i{width:96px;height:96px;border-radius:50%;object-fit:cover;background:var(--y);color:var(--g);display:grid;place-items:center;font:800 38px 'Plus Jakarta Sans',sans-serif}.pf h1{font-size:24px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.stats.s4{grid-template-columns:1fr 1fr}.stats div{background:var(--g);color:#fff;border-radius:18px;padding:14px}.stats small{display:block;opacity:.7;font-size:12px}.stats b{font-size:21px;color:var(--y);letter-spacing:-.5px}
.fac label{background:#fff;border-radius:14px;padding:9px 13px;font-size:13px;font-weight:700;box-shadow:var(--sh)}
.ann{margin:16px 20px 0;background:var(--y);color:var(--g);border-radius:18px;padding:12px 16px;font-weight:700;font-size:14px}
#tabs a{font-size:10.5px;padding:6px 2px}
/* v3 */
.logo i img,.aub i img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.av2{border-radius:50%;object-fit:cover;background:var(--y);color:var(--g);display:inline-grid;place-items:center;font-style:normal;font-weight:800;flex:none}
.avw{position:relative;display:inline-flex;flex:none}.dot{position:absolute;right:0;bottom:0;width:12px;height:12px;border-radius:50%;background:#9aa6a0;border:2px solid #fff}.dot.on{background:#2fb350}
.sh-h small{display:block;color:var(--mut);font-size:12px;font-weight:600}.sh-h{align-items:center;gap:12px}
.mr{display:flex;align-items:flex-end;gap:6px;margin:4px 0}.mr.me{justify-content:flex-end}.m em{display:block;font-style:normal;font-size:10px;opacity:.6;margin-top:3px}
.sn{text-align:right;font-size:11px;color:var(--mut);font-weight:700;padding:0 6px}.sn.seen{color:#2563eb}
.th{display:flex;width:100%;gap:12px;align-items:center;text-align:left;padding:12px 4px;border-bottom:1px solid var(--ln)}.th div{flex:1;min-width:0}.th small{display:block;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.th em{font-style:normal;font-size:11px;color:var(--mut)}
.rvh{display:flex;align-items:center;gap:10px;margin-bottom:6px}.rvh b{margin:0}.rvh span{display:block;font-size:13px}
.rim{display:flex;gap:6px;margin-top:8px;overflow-x:auto}.rim img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.rvf{margin:8px 20px;background:#fff;border-radius:18px;padding:14px;box-shadow:var(--sh);display:grid;gap:10px}.rvf textarea{width:100%;border:1.5px solid var(--ln);border-radius:12px;padding:10px;font:inherit}
.sr button{font-size:30px;color:#cfd5d2}.sr button.on{color:#f5a800}
.gbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:calc(100% - 32px);margin:0 16px;height:52px;border-radius:16px;background:#fff;border:1.5px solid var(--ln);font-weight:800;font-size:15px}
.or{display:flex;align-items:center;gap:10px;margin:14px 16px 0;color:var(--mut);font-size:12px}.or:before,.or:after{content:"";flex:1;height:1px;background:var(--ln)}

/* ===== v4: gallery, photo manager, glass login, responsive ===== */
.gal{scroll-behavior:auto}
.gal img{user-select:none;-webkit-user-drag:none}
.gnav{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.88);font-size:30px;line-height:1;box-shadow:var(--sh);align-items:center;justify-content:center}
.gnav.gp{left:14px}.gnav.gn{right:14px}.gnav:hover{background:#fff}
.gm{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.gt{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#eef0ee}
.gt img{width:100%;height:100%;object-fit:cover;display:block}
.gt b{position:absolute;left:6px;bottom:6px;background:#000a;color:#fff;font-size:11px;border-radius:8px;padding:1px 7px}
.gt button{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;background:#000b;color:#fff;font-size:12px;display:grid;place-items:center}
.gt .gs{right:34px;color:var(--y)}
.gt.add{display:grid;place-items:center;align-content:center;border:2px dashed #b8c2bd;cursor:pointer;color:var(--mut);font-weight:700;text-align:center;background:transparent}
.gt.add span{font-size:28px;line-height:1}.gt.add small{font-size:11px}
.hint{font-size:12px;color:var(--mut);margin:6px 0 10px}
.pvw.wide{display:block;margin-top:8px}.pvw.wide img{width:100%;height:auto;max-height:150px;object-fit:cover;border-radius:14px;margin:0}
.bw .bh{margin:0}
.card,.fc{transition:transform .18s,box-shadow .18s}
.fl input[type=file]{height:auto;padding:12px 14px}
.fl input[type=file]::file-selector-button{border:0;background:var(--y);color:var(--g);font-weight:800;border-radius:10px;padding:8px 14px;margin-right:12px;cursor:pointer}
body.aup #tabs{display:none}
body.aup #app{padding-bottom:0}

/* glass login */
.au{--login-bg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 700'%3E%3Crect width='400' height='700' fill='%2314503f'/%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='4'%3E%3Crect x='40' y='80' width='320' height='540'/%3E%3Cpath d='M40 260h320M40 440h320M200 260v180'/%3E%3C/g%3E%3Cg fill='%23C6F24E'%3E%3Ccircle cx='300' cy='150' r='22'/%3E%3Ccircle cx='100' cy='520' r='16'/%3E%3C/g%3E%3C/svg%3E");position:relative;min-height:125vh;min-height:125dvh;display:flex;justify-content:center;align-items:center;padding:70px 16px 40px;overflow:hidden;background:none}
.orb{position:absolute;border-radius:50%;filter:blur(70px);pointer-events:none}
.orb.o1{width:340px;height:340px;background:var(--y);opacity:.32;top:-90px;right:-70px}
.orb.o2{width:420px;height:420px;background:#2fb3a0;opacity:.38;bottom:-140px;left:-110px}
.aback{position:absolute;top:calc(18px + env(safe-area-inset-top));left:18px;z-index:2;color:#fff;font-weight:800;font-size:14px;padding:8px 16px;border-radius:20px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.auwrap{position:relative;z-index:1;width:100%;max-width:420px}
.aub{color:#fff;text-align:center;margin-bottom:20px;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.aub i{width:68px;height:68px;border-radius:22px;background:var(--y);display:grid;place-items:center;font-size:34px;font-style:normal;margin:0 auto 12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.aub b{display:block;font-size:24px;font-weight:800;letter-spacing:-.4px}.aub small{opacity:.85}
.aucard.glass{background:rgba(255,255,255,.13);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%);border:1px solid rgba(255,255,255,.38);border-radius:30px;box-shadow:0 24px 60px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.5);padding:26px 18px 16px;color:#fff}
.glass .pg{padding:0 4px;max-width:none}.glass .pg h1{font-size:24px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.25)}
.glass .sub2{color:rgba(255,255,255,.82)}
.glass .fl{color:rgba(255,255,255,.88)}
.glass .fl input,.glass .fl select{height:52px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:16px}
.glass .fl input[type=file]{height:auto}
.glass .fl input::placeholder{color:rgba(255,255,255,.6)}
.glass .fl select option{color:#1f2a26}
.glass .fl input:focus,.glass .fl select:focus{outline:0;background:rgba(255,255,255,.24);border-color:var(--y);box-shadow:0 0 0 3px rgba(198,242,78,.3)}
.glass input:-webkit-autofill{-webkit-text-fill-color:#fff;caret-color:#fff;transition:background-color 99999s}
.glass .alt{color:rgba(255,255,255,.85)}.glass .alt a{color:var(--y)}
.glass .gbtn{background:rgba(255,255,255,.94);color:#1f2a26;width:calc(100% - 8px);margin:12px 4px 4px}
.glass .or{color:rgba(255,255,255,.8);margin:14px 4px 0}.glass .or:before,.glass .or:after{background:rgba(255,255,255,.35)}
.glass .av{color:rgba(255,255,255,.88)}.glass .av .pvw{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.55);color:#fff}
.glass .btn.p{box-shadow:0 8px 22px rgba(198,242,78,.35)}
.glass .gt.add{border-color:rgba(255,255,255,.5);color:#fff}.glass .gt{background:rgba(255,255,255,.14)}
.glass .hint{color:rgba(255,255,255,.75)}
@supports not (backdrop-filter:blur(1px)){.aucard.glass{background:rgba(14,59,46,.72)}}

/* ---------- tablet / desktop ---------- */
@media(min-width:760px){
  body{max-width:none;box-shadow:none}
  #app{max-width:1200px;margin:0 auto;padding:92px 28px 56px}
  body.aup #app{max-width:none;margin:0;padding:0}
  body.mp #app{max-width:none;padding:64px 0 0}
  #tabs,body.nt #tabs{display:flex;top:0;bottom:auto;left:0;transform:none;max-width:none;width:100%;justify-content:center;gap:6px;padding:10px 24px;border-top:0;border-bottom:1px solid var(--ln);background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  body.aup #tabs{display:none}
  #tabs a{flex:none;flex-direction:row;gap:8px;font-size:14px;padding:10px 18px}
  #tabs svg{width:20px;height:20px}
  .hero{border-radius:32px;padding:48px 52px 52px}
  .hero h1{font-size:50px;margin:44px 0 10px}.hero p{font-size:16px}
  .search input{max-width:560px;display:block}
  .logo{font-size:17px}.lb{padding:10px 18px}
  .chips,.hs{padding-left:0;padding-right:0}.chips{padding-top:22px}
  .sh,.ann{margin-left:0;margin-right:0}.sh{font-size:22px;margin-top:32px}
  .fc{width:310px}.fc .ph{height:170px}
  .list{padding:10px 0;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:22px}
  .ph{height:190px}
  .card:hover,.fc:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(14,59,46,.16)}
  /* court detail: gallery + content left, sticky booking card right */
  .cw{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0 32px;align-items:start}
  .cw .gw{grid-column:1;border-radius:28px;overflow:hidden}
  .cw .body{grid-column:1;margin:0 -20px;border-radius:0;padding-top:26px}
  .cw .cta{grid-column:2;grid-row:1/span 2;position:sticky;top:90px;left:auto;transform:none;width:auto;max-width:none;flex-direction:column;align-items:stretch;gap:14px;padding:22px;border-radius:24px;box-shadow:var(--sh);border:1px solid var(--ln);text-align:center}
  .cw .cta .btn{flex:none;width:100%}
  .cw .body .sh{margin-left:20px;margin-right:20px}
  .gal img{height:470px}
  .back{top:16px;left:16px}
  .gw .bd{top:24px;right:16px}
  .gnav{display:flex}
  .dots{bottom:16px}
  .slots{grid-template-columns:repeat(6,1fr)}
  .ct{font-size:32px}
  /* booking */
  .bw{max-width:760px;margin:0 auto}
  .bw .gw{border-radius:28px;overflow:hidden}
  .bw .bh{border-radius:28px;padding-left:84px}
  .bw .back{top:20px}
  .bw .cta{position:sticky;bottom:16px;left:auto;transform:none;width:auto;max-width:none;margin:20px 20px 0;border-radius:22px;box-shadow:0 10px 34px rgba(14,59,46,.18);border:1px solid var(--ln)}
  /* pages */
  .pg{max-width:920px;margin:0 auto;padding:8px 0 0}
  .stats.s4{grid-template-columns:repeat(4,1fr)}
  .nums{padding-left:0}
  /* map */
  #map{height:calc(125vh - 64px);height:calc(125dvh - 64px)}
  .mt{top:80px}.mb{bottom:28px}
  /* modal sheet */
  #sheet{align-items:center}
  .panel{max-width:540px;height:min(720px,110vh);border-radius:28px}
  #toast{bottom:36px}
  .au{padding:40px 16px}
  .auwrap{max-width:440px}
}
@media(min-width:1100px){
  .list{grid-template-columns:repeat(3,1fr)}
  .cw{grid-template-columns:minmax(0,1fr) 380px}
}

/* ===== v5: one shared background + themes, guest nav ===== */
#bgl{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(160deg,var(--o1,rgba(14,59,46,.45)),var(--o2,rgba(6,26,20,.82))),var(--app-bg) center/cover no-repeat}
body.guest #tabs a[data-t=chats],body.guest #tabs a[data-t=profile]{display:none}
/* text that sits directly on the shared background */
#app>.pg>h1,#app>.pg>.sub,#app>.pg>.sub2,#app>.pg>.alt,#app>.pg>.fm:not(.bk) .fl{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.3)}
#app>.pg>.sub2{color:rgba(255,255,255,.85)}
#app>.pg>.sub{color:rgba(255,255,255,.8)}
#app>.pg>.fm:not(.bk) .fl{color:rgba(255,255,255,.9)}
#app .sh,#app .lg,#app .bw .note,#app .pg>.note{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.25)}
#app .sh span{color:rgba(255,255,255,.75)}
#app .lg{color:rgba(255,255,255,.85)}
#app .empty{color:rgba(255,255,255,.85)}
#app .bk .empty,#app .body .empty{color:var(--mut)}
#app .body .sh{color:var(--ink);text-shadow:none}#app .body .sh span{color:var(--mut)}#app .body .lg{color:var(--mut);text-shadow:none}
#app .th{color:#fff;border-bottom-color:rgba(255,255,255,.2)}#app .th small,#app .th em{color:rgba(255,255,255,.75)}
.stats div,.sum,.bh{border:1px solid rgba(255,255,255,.18)}
.chip.on{background:var(--y);color:var(--g);border-color:var(--y)}
.dp.on{border-color:var(--y)}
.thm{display:flex;flex-wrap:wrap;gap:8px}
.thm button{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 8px;border-radius:14px;background:#fff;border:2px solid var(--ln);font-weight:700;font-size:13px;color:var(--ink)}
.thm button i{width:26px;height:26px;border-radius:8px;display:block}
.thm button.on{border-color:var(--g);box-shadow:0 0 0 3px rgba(0,0,0,.08)}

/* ---------- STEP 1: Home - tournament cards + horizontal sliders ---------- */
.hs{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.hs>*{scroll-snap-align:start}
.fc{min-width:260px;flex-shrink:0}
.tc{display:block;text-align:left;font:inherit;flex:none;min-width:260px;width:260px;flex-shrink:0;background:#111827;color:#fff;border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(0,0,0,.35);border:1px solid rgba(255,200,0,.18);cursor:pointer;transition:transform .18s}
.tc:active{transform:scale(.98)}
.tbd{display:inline-block;background:#FFC800;color:#000;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px}
.tro{display:block;font-size:40px;line-height:1;margin:12px 0 8px}
.tc h3{font-size:18px;font-weight:800;color:#fff;letter-spacing:-.2px}
.tmeta{font-size:13px;color:#9ca3af;margin:4px 0 0}
.tpz{font-size:16px;font-weight:800;color:#FFC800;margin:10px 0 0}
.tloc{font-size:12px;color:#fff;margin:10px 0 0}
.tsl{font-size:12px;color:#fff;margin:10px 0 6px}
.tbar{display:block;height:6px;border-radius:3px;background:rgba(255,255,255,.15);overflow:hidden}
.tbar i{display:block;height:100%;background:#FFC800;border-radius:3px}
@media(min-width:760px){.tc:hover{transform:translateY(-4px)}}

/* ---------- STEP 2: tournament details + join modal ---------- */
.tw{max-width:600px;margin:0 auto}
.thero{background:#111827;color:#fff;padding:calc(16px + env(safe-area-inset-top)) 20px 24px;border-radius:0 0 28px 28px;border-bottom:4px solid #FFC800;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.tback{display:block;color:#FFC800;font-weight:800;font-size:15px;padding:8px 0;margin-bottom:10px}
.thero h1{font-size:30px;font-weight:800;line-height:1.1;letter-spacing:-.6px;margin:12px 0 12px;color:#fff}
.tline{font-size:14px;color:#d1d5db;margin-top:6px}
.tchamp{margin-top:18px;text-align:center}.tchamp b{display:block;margin-top:12px;color:#FFC800;font-size:16px}
.tphoto{height:150px;border-radius:16px;background:linear-gradient(135deg,#1f2937,#374151);border:2px dashed rgba(255,200,0,.5);display:grid;place-content:center;gap:4px;font-size:38px}.tphoto small{font-size:12px;color:#9ca3af}
.igrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 20px 4px}
.ic{background:#fff;border-radius:16px;padding:14px;box-shadow:var(--sh)}
.ic small{display:block;color:var(--mut);font-size:12px;font-weight:700}.ic b{display:block;font-size:18px;font-weight:800;margin-top:4px;color:#111827}
.ic .tbar{margin-top:8px;background:#e5e7eb}
.tsec{margin:16px 20px 0;background:#fff;border-radius:16px;padding:16px;box-shadow:var(--sh)}
.tsec h2{font-size:17px;font-weight:800;margin-bottom:8px;color:#111827}.tsec p{font-size:14px;line-height:1.5;color:#374151}
.tscore{margin-bottom:12px}.tscore b{font-size:20px;color:#111827}
.hlg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hlb{aspect-ratio:1;border-radius:12px;background:linear-gradient(135deg,#1f2937,#374151);display:grid;place-items:center;font-size:26px}
.prow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--ln)}
.prow i{flex:none;width:38px;height:38px;border-radius:50%;background:#FFC800;color:#000;display:grid;place-items:center;font-style:normal;font-weight:800}
.prow b{flex:1;font-size:15px}.prow small{color:var(--mut);font-size:12px}
.tmore{display:block;width:100%;padding:14px 0 4px;text-align:center;font-weight:800;color:#111827;text-decoration:underline}
.tcta{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;background:#111827;padding:12px 20px calc(12px + env(safe-area-inset-bottom));z-index:20;box-shadow:0 -8px 24px rgba(0,0,0,.35)}
.tbtn{display:block;width:100%;height:52px;border-radius:12px;background:#FFC800;color:#000;font-weight:800;font-size:15px;letter-spacing:.2px}
.tbtn.off{background:#9ca3af;color:#4b5563;cursor:not-allowed}.tbtn.ok{background:#16a34a;color:#fff;cursor:default}
.jm{height:auto;max-height:115vh;overflow:auto;padding:22px 20px calc(22px + env(safe-area-inset-bottom))}
.jm h2{font-size:20px;font-weight:800}
.jag{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ink)}.jag input{width:20px;height:20px;accent-color:#FFC800}
.jerr{color:#dc2626;font-size:13px;font-weight:700;min-height:18px}
@media(min-width:760px){.tw{max-width:560px}.tcta{border-radius:16px 16px 0 0}}

/* ---------- STEP 3: empty state, admin tournaments ---------- */
.tempty{flex:1;min-width:260px;text-align:center;color:#fff;font-weight:700;padding:34px 12px;background:rgba(17,24,39,.55);border-radius:16px}
.thint{margin:0 20px;font-size:12px;color:#fde68a;font-weight:600}.thint:empty{display:none}
.ta h1{color:#fff}.ta .tbtn{margin:12px 0 4px}
.tnote{color:#fde68a;font-size:13px;font-weight:600;margin:8px 0}
.tst{flex:none;font-size:12px;font-weight:800;padding:5px 10px;border-radius:12px}
.tst.active{background:#FFC800;color:#000}.tst.pending{background:#d1d5db;color:#374151}.tst.finished{background:#16a34a;color:#fff}
.tadel{color:#b91c1c}
.fl textarea{border-radius:16px;border:1.5px solid var(--ln);padding:12px 16px;font:inherit;background:#fff;color:var(--ink);resize:vertical}
.tpl{overflow-x:auto;margin-top:12px;font-size:14px;color:var(--ink)}
.tpt{border-collapse:collapse;width:100%;min-width:480px}.tpt th{text-align:left;font-size:12px;color:var(--mut);padding:6px 8px;border-bottom:2px solid var(--ln)}.tpt td{padding:9px 8px;border-bottom:1px solid var(--ln);white-space:nowrap}

/* ---- tournament pictures (owner uploads) ---- */
.tphs{display:flex;gap:10px;overflow-x:auto;padding:16px 20px 0;scroll-snap-type:x mandatory;scrollbar-width:none}.tphs::-webkit-scrollbar{display:none}
.tphs a{flex:none;scroll-snap-align:start}
.tphs img{display:block;height:220px;max-width:102vw;width:auto;object-fit:cover;border-radius:16px;box-shadow:var(--sh)}
.hlb{overflow:hidden}.hlb img{width:100%;height:100%;object-fit:cover;display:block}

/* ===== v5: dashboard, notifications, bracket, leaderboard, footer ===== */
.st.pending{background:#fde68a;color:#78350f}.st.confirmed{background:var(--y);color:var(--g)}
.nbd{display:inline-block;background:#ef4444;color:#fff;font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;margin-left:6px;text-shadow:none;vertical-align:middle}.nbd.y{background:#f59e0b}
.nf.new{border-left:5px solid #f59e0b}.nf .ago{color:var(--mut);font-size:12px;margin-left:4px}
.nf a{color:var(--g);text-decoration:underline}
.nfi{display:flex;gap:12px;align-items:flex-start}.nfi i{flex:none;width:42px;height:42px;border-radius:14px;background:var(--bg);display:grid;place-items:center;font-style:normal;font-size:22px}
.nfi div{font-size:14px;line-height:1.4;min-width:0}.nfi small{color:var(--mut);font-size:12px}.nfi+.ba{margin-top:12px}
.dash .stats.s4{grid-template-columns:1fr 1fr}
.ql{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 0}
.ql a{background:#fff;border-radius:18px;padding:14px 10px;text-align:center;box-shadow:var(--sh);font-weight:800;font-size:14px;color:var(--ink)}
.ql a i{display:block;font-style:normal;font-size:26px;margin-bottom:4px}.ql a small{display:block;font-weight:600;color:var(--mut);font-size:11px;margin-top:2px}
@media(min-width:760px){.dash{max-width:760px;margin:0 auto}.dash .stats.s4{grid-template-columns:repeat(3,1fr)}}
/* bracket */
.live{display:inline-block;background:#ef4444;color:#fff;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;animation:lv 1.4s infinite}
@keyframes lv{50%{opacity:.55}}
.bscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:4px}
.brk{display:flex;gap:18px;min-width:min-content;align-items:stretch}
.bcol{flex:none;width:210px;display:flex;flex-direction:column}.bcol h4{font-size:13px;font-weight:800;color:#111827;margin:0 0 8px;text-align:center}
.bcol h4.b3{margin-top:18px}
.bcl{display:flex;flex-direction:column;justify-content:space-around;gap:12px;flex:1}
.bm{border:2px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}.bm.live{border-color:#FFC800}.bm.done{border-color:#16a34a}
.bt{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;font-size:13px;font-weight:600;color:#374151;border-bottom:1px solid #f1f2f4}.bt:last-of-type{border:0}
.bt span{min-width:0;overflow-wrap:anywhere}.bt b{flex:none}.bt.win{background:#dcfce7;color:#14532d;font-weight:800}.bt.bye{color:#9ca3af;font-style:italic}
.bmb{display:block;width:100%;padding:9px;background:#111827;color:#FFC800;font-weight:800;font-size:12px}
.nxt{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:10px 12px;margin-bottom:12px;font-size:14px;color:#374151}
.nxt b{display:block;margin-bottom:4px}.nxt div{padding:5px 0;border-top:1px dashed #fde68a}.nxt em{font-style:normal;color:#9ca3af;font-weight:700;margin:0 4px}.nxt small{display:block;color:var(--mut);font-size:11px}
.mgp{border:2px solid #FFC800}.mgp .tbtn:disabled{background:#9ca3af;cursor:not-allowed}
.tsec .hint{color:#6b7280}
.pod{display:grid;gap:8px}.pod div{display:flex;align-items:center;gap:12px;background:#f9fafb;border-radius:12px;padding:10px 12px}.pod i{font-style:normal;font-size:28px}.pod b{flex:1;font-size:15px;color:#111827}.pod small{font-weight:800;color:#b45309}
.tst.ongoing{background:#ef4444;color:#fff}
/* leaderboard */
.lbl{padding:6px 14px}
.lbr{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--ln)}.lbr:last-child{border:0}
.lbr.me{background:#fffbeb;margin:0 -14px;padding:11px 14px}
.lbn{flex:none;width:30px;text-align:center;font-weight:800;font-size:18px;color:var(--mut)}
.lbr div{flex:1;min-width:0}.lbr b{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lbr div small{color:var(--mut);font-size:12px}
.lbr em{font-style:normal;font-weight:800;font-size:20px;color:var(--g);text-align:right}.lbr em small{display:block;font-size:10px;color:var(--mut);font-weight:700}
#lbhome .bk{margin:10px 20px}
/* footer */
#app{padding-bottom:16px}
#ftr{text-align:center;font-size:13px;font-weight:600;color:rgba(255,255,255,.85);padding:22px 20px calc(96px + env(safe-area-inset-bottom));text-shadow:0 1px 6px rgba(0,0,0,.35)}
#ftr a{color:var(--y);font-weight:800;text-decoration:underline;text-underline-offset:3px}
#ftr a:hover{opacity:.85}
body.aup #ftr{padding-bottom:28px;position:relative;z-index:2}
@media(min-width:760px){#ftr{padding-bottom:28px}}

/* Refined chat surface: subtle translucent court texture, readable on dark themes */
.msgs{
 background:
  linear-gradient(135deg,rgba(18,48,39,.045),rgba(255,255,255,.20)),
  repeating-linear-gradient(45deg,rgba(14,59,46,.025) 0 1px,transparent 1px 16px),
  rgba(235,241,237,.72);
 backdrop-filter:blur(8px);
 -webkit-backdrop-filter:blur(8px);
}
.m{background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.72);box-shadow:0 5px 16px rgba(12,35,26,.09)}
.m.me{background:rgba(14,59,46,.91);border:1px solid rgba(255,255,255,.13);box-shadow:0 5px 16px rgba(12,35,26,.15)}
.pass-nav{margin:16px 20px 4px}
.pass-nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:16px;background:linear-gradient(110deg,rgba(14,59,46,.09),rgba(198,242,78,.22));border:1px solid rgba(14,59,46,.12);font-size:14px;font-weight:800;color:var(--g)}
.pass-nav span{font-size:11px;font-weight:700;color:var(--mut);white-space:nowrap}
.pass-card{border:1px solid rgba(14,59,46,.08);background:linear-gradient(145deg,#fff,rgba(246,249,246,.96))}

/* Requested leaderboard presentation */
.lb-section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 20px 4px}
.lb-section-head .sh{margin:0}
.lb-section-head>a{font-size:13px;font-weight:800;color:var(--g);text-decoration:none;white-space:nowrap}
#lbhome .lb-top5 .lbr{opacity:0;transform:translateY(16px);animation:lbRise .42s ease forwards}
#lbhome .lb-top5 .lbr:nth-child(1){animation-delay:.04s}
#lbhome .lb-top5 .lbr:nth-child(2){animation-delay:.18s}
#lbhome .lb-top5 .lbr:nth-child(3){animation-delay:.32s}
#lbhome .lb-top5 .lbr:nth-child(4){animation-delay:.46s}
#lbhome .lb-top5 .lbr:nth-child(5){animation-delay:.60s}
@keyframes lbRise{to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#lbhome .lb-top5 .lbr{animation:none;opacity:1;transform:none}}

/* ===== v6: booking rules, strikes, bookings by court, tournament payments ===== */
.st.completed{background:#d1fae5;color:#065f46}.st.no_show{background:#ffdada;color:#8f1d1d}
.nsb{display:inline-block;margin-top:4px;background:#fee2e2;color:#991b1b;font-weight:800;font-size:12px;padding:2px 9px;border-radius:999px}
.nsred{color:#b91c1c}.nsok{color:#047857}
.ban{margin:12px 0;padding:12px 14px;border-radius:16px;background:#fee2e2;color:#7f1d1d;font-weight:700;font-size:14px;line-height:1.4}
.ban.warn{background:#fef3c7;color:#78350f}
.rules{margin:14px 20px;padding:14px 16px;border-radius:18px;background:#fff;color:#1f2937;box-shadow:var(--sh);font-size:13px;line-height:1.5}
.rules ol{margin:8px 0 0;padding-left:18px}.rules li{margin:6px 0}
.panel .rules{margin:10px 0;box-shadow:none;background:#f3f6f4;padding:12px 14px}
.cgrp{margin:12px 0;background:rgba(255,255,255,.12);border-radius:22px;padding:4px 10px 8px}
.cgrp>summary{cursor:pointer;list-style:none;padding:12px 6px;display:flex;align-items:center;gap:6px;color:#fff;font-size:16px}
.cgrp>summary::-webkit-details-marker{display:none}
.cgrp>summary::after{content:'▾';margin-left:auto;color:#fff}.cgrp:not([open])>summary::after{content:'▸'}
.tpr{padding:12px 0;border-top:1px solid var(--ln)}.tpl .bk.tpr{border-top:0;box-shadow:none;border:1px solid var(--ln);margin:8px 0}
.tpl{max-height:68.75vh;overflow:auto;margin-top:10px}
a.tbtn{text-decoration:none}

/* ===== Court Pasalo: clear warning-style button ===== */
.pass-nav{margin:16px 20px 4px}
.pass-nav a{display:flex;align-items:center;gap:12px;padding:14px 15px;border-radius:16px;background:#FFF3CD;border:2px solid #F59E0B;border-left-width:8px;color:#7A3E00;box-shadow:0 4px 14px rgba(245,158,11,.25);text-decoration:none}
.pass-nav .pw{font-style:normal;font-size:26px;line-height:1;flex:none}
.pass-nav .pt2{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pass-nav .pt2 b{font-size:15px;font-weight:800;letter-spacing:.6px;color:#B45309}
.pass-nav .pt2 small{font-size:12px;font-weight:700;color:#7A3E00;line-height:1.3}
.pass-nav em{flex:none;font-style:normal;font-size:12px;font-weight:800;color:#fff;background:#D97706;padding:8px 12px;border-radius:999px;white-space:nowrap}

/* ===== All courts: View all grid ===== */
.cgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:10px 0 20px}
.cgrid .fc{width:auto;min-width:0}
.cgrid .fc .ph{height:110px}
@media(min-width:700px){.cgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.cgrid .fc .ph{height:140px}}

/* ===== Price-by-time rate rows (Edit court / Open play) ===== */
.rtr{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 40px 12px 12px;margin:8px 0;border:1px solid rgba(14,59,46,.18);border-radius:14px;background:rgba(14,59,46,.04)}
.rtr label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800;color:var(--mut,#667)}
.rtr select,.rtr input{width:100%;min-width:0;height:42px;padding:0 10px;border:1px solid rgba(0,0,0,.15);border-radius:10px;background:#fff;font:inherit;font-size:14px;color:#111}
.rtr .rtx{position:absolute;top:8px;right:8px;width:28px;height:28px;border:0;border-radius:50%;background:#fee2e2;color:#b91c1c;font-weight:800;cursor:pointer}
.rtadd{width:100%;margin:2px 0 10px}

/* ===== requested fixes: readable white text on the shared background ===== */
.pf h1{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.3)}
.lb-section-head>a{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.3)}

/* ===== Player Open Play ===== */
.ppc{margin:12px 0}
#app>.pphome .ppc{margin:10px 20px}
#app>.pphome .bk{margin:10px 20px}
#app>.pphome .empty{padding:24px 20px}

/* ===== PWA install bar (top) ===== */
#pwabar{display:flex;align-items:center;gap:10px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;color:#fff;
  background:linear-gradient(100deg,#0a0b0d,#32363c);border-bottom:2px solid var(--y);animation:pbIn .35s ease-out}
#pwabar img{flex:none;width:40px;height:40px;border-radius:11px;box-shadow:0 0 0 1.5px rgba(198,242,78,.7)}
#pwabar .pb-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
#pwabar .pb-t b{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pwabar .pb-t span{font-size:12px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pwabar .pb-i{flex:none;height:36px;padding:0 16px;border-radius:18px;background:var(--y);color:#101216;font-weight:800;font-size:14px}
#pwabar .pb-x{flex:none;width:32px;height:32px;border-radius:16px;font-size:22px;line-height:1;color:#fff;opacity:.75}
@keyframes pbIn{from{opacity:0;transform:translateY(-8px)}}
.pwa-ov{position:fixed;inset:0;z-index:9000;background:rgba(3,10,40,.6);display:flex;align-items:flex-end;justify-content:center}
.pwa-sh{width:100%;max-width:600px;background:#fff;border-radius:24px 24px 0 0;padding:22px 22px calc(22px + env(safe-area-inset-bottom));animation:pbUp .25s ease-out}
.pwa-sh h3{font-size:18px;font-weight:800;margin-bottom:10px}
.pwa-sh ol{padding-left:20px;display:grid;gap:8px;font-size:15px;line-height:1.4;margin-bottom:18px}
.pwa-sh svg{vertical-align:-3px}
.pwa-ok{width:100%;height:48px;border-radius:16px;background:var(--g);color:#fff;font-weight:800}
@keyframes pbUp{from{transform:translateY(40px);opacity:0}}
@media (prefers-reduced-motion:reduce){#pwabar,.pwa-sh{animation:none}}

/* v9: Oo, Tuloy Ako (green) at Cancel Ko Na (red) */
.btn.go{background:#16a34a;color:#fff;border:0;box-shadow:0 6px 16px rgba(22,163,74,.35)}
.btn.no{background:#dc2626;color:#fff;border:0;box-shadow:0 6px 16px rgba(220,38,38,.3)}
.btn.go:disabled,.btn.no:disabled{background:var(--ln);color:#9aa6a0;box-shadow:none}
.r1 .st{max-width:62%;text-align:right;line-height:1.25}

/* ===== v10: clickable leaderboard + player profile ===== */
a.lbr{color:inherit;cursor:pointer;transition:scale .16s ease,background-color .16s ease}
a.lbr:active{scale:1.035;background:rgba(198,242,78,.2)}
@media(hover:hover){a.lbr:hover{scale:1.015;background:rgba(14,59,46,.04)}}
@media(prefers-reduced-motion:reduce){a.lbr{transition:none}a.lbr:active,a.lbr:hover{scale:1}}
.lbgo{flex:none;color:var(--mut);margin-right:-4px}
.lbf-chips{padding:14px 0 10px}.lbsep{flex:none;width:1px;background:rgba(255,255,255,.35);margin:6px 2px}
.pf.pfx{gap:6px;text-align:center}.pf.pfx img,.pf.pfx i{width:112px;height:112px;font-size:44px;border:3px solid var(--y)}
.pf.pfx h1{font-weight:800}
.rkb{background:rgba(255,255,255,.16);color:#fff;font-weight:800;font-size:13px;padding:4px 12px;border-radius:999px}.rkb.top{background:var(--y);color:var(--g)}
.lvb{font-weight:800;font-size:13px;padding:4px 12px;border-radius:999px;display:inline-block}
.lvb.novice{background:#16a34a;color:#fff}.lvb.beginner{background:#2563eb;color:#fff}.lvb.intermediate{background:#facc15;color:#422006}.lvb.advanced{background:#dc2626;color:#fff}
.pf .pst{color:#fff;font-weight:700;font-size:14px;margin:2px 0 0}.pf .pfc{color:rgba(255,255,255,.85);font-size:13px;font-weight:600;margin:0}
.onl{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:13px;font-weight:700}.onl i{width:9px;height:9px;border-radius:50%;background:#9ca3af}.onl.on i{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.3)}
.pbtns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 14px}
.pbt{height:46px;border-radius:14px;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 6px}
.pbt.wht{background:#fff;color:var(--g)}.pbt.yel{background:var(--y);color:var(--g)}.pbt.drk{background:#081f18;color:#fff;border:1px solid rgba(255,255,255,.25)}
.pbt:disabled{opacity:.65;cursor:default}
.ptabs{display:flex;border-bottom:1px solid rgba(255,255,255,.25);margin-bottom:12px}
.ptabs button{flex:1;height:44px;color:rgba(255,255,255,.75);font-weight:800;font-size:14px;border-bottom:3px solid transparent}.ptabs button.on{color:#fff;border-color:var(--y)}
.ptab .bk{margin:0 0 10px}.pgm p{margin-top:6px;font-size:13px;color:var(--mut)}
.ppta{width:100%;border:1.5px solid var(--ln);border-radius:12px;padding:10px;font:inherit;resize:vertical}
.ppsh{display:flex;align-items:center;gap:10px}.ppsh div{flex:1;min-width:0}.ppsh b{display:block;font-size:14px}.ppsh small{color:var(--mut);font-size:12px}
.ppdel{color:var(--mut);font-size:16px;padding:6px}.ppb{margin-top:10px;white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.5}

/* ===== v11: court search font, players, friends, direct messages ===== */
.search input{color:#111827;-webkit-text-fill-color:#111827;caret-color:var(--g);opacity:1}
.search input::placeholder{color:#6b7280;-webkit-text-fill-color:#6b7280;opacity:1}
#tabs a{min-width:0;font-size:10.5px;padding:6px 2px}
/* neon online dot (Facebook style) */
.ndot{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-radius:50%;border:2.5px solid #fff;background:#9aa6a0}
.ndot.on{background:#39ff14;box-shadow:0 0 6px 2px rgba(57,255,20,.85),0 0 14px 4px rgba(57,255,20,.45)}
.ndot.big{width:22px;height:22px;right:4px;bottom:4px;border:4px solid #0E3B2E}
.pfav{display:inline-flex}
.onl .od{width:9px;height:9px;border-radius:50%;background:#9ca3af;display:inline-block}.onl.on .od{background:#39ff14;box-shadow:0 0 6px 2px rgba(57,255,20,.8)}
.onl.on i{box-shadow:none}.onl i{display:none}
small.onx{color:#16a34a!important;font-weight:800}.ptab small.onx,.dmwho small.onx{color:#39ff14!important}
/* players page */
.psr{display:flex;align-items:center;gap:10px;background:#fff;border-radius:18px;padding:0 16px;height:52px;margin:14px 0 10px;box-shadow:0 8px 24px rgba(0,0,0,.18);color:var(--mut)}
.psr input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font-size:15px;color:#111827;-webkit-text-fill-color:#111827}
.psr input::placeholder{color:#6b7280;-webkit-text-fill-color:#6b7280}
.ptabs button{position:relative}.pbadge{position:absolute;top:8px;right:22%;width:9px;height:9px;border-radius:50%;background:#ef4444}
.prow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--ln)}.prow:last-child{border:0}
.pmain{flex:1;min-width:0;display:flex;align-items:center;gap:12px}.pmain div{flex:1;min-width:0}.pmain b{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pmain small{display:block;color:var(--mut);font-size:12px;margin-top:2px}
.pact{display:flex;gap:6px;flex:none}
.pbt.sm{height:36px;padding:0 12px;border-radius:12px;font-size:12px;border:1px solid var(--ln)}.pbt.grn{background:#16a34a;color:#fff}
.pbt.wht{border:1px solid var(--ln)}
.frcard{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:14px 16px;border-radius:16px;background:var(--y);color:var(--g);font-weight:800;font-size:15px}.frcard em{font-style:normal;font-size:12px;font-weight:700}
.unb{display:inline-block;margin-left:6px;min-width:20px;padding:2px 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;text-align:center}
/* direct message thread */
body.dmp #ftr{display:none}body.dmp #app{padding-bottom:84px}
.dmh{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:6px;padding:10px 12px;background:#0E3B2E;border-bottom:1px solid rgba(255,255,255,.18)}
.dmbk{width:40px;height:40px;font-size:30px;line-height:1;color:#fff}
.dmwho{display:flex;align-items:center;gap:10px;color:#fff;min-width:0}.dmwho div{min-width:0}.dmwho b{display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dmwho small{display:block;font-size:12px;color:rgba(255,255,255,.75)}
.dmmsgs{display:flex;flex-direction:column;gap:6px;padding:14px 14px 10px}
.dmb{max-width:78%;align-self:flex-start}.dmb span{display:block;background:#fff;color:#111827;padding:9px 14px;border-radius:18px 18px 18px 6px;font-size:15px;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.dmb small{display:block;font-size:10.5px;color:rgba(255,255,255,.7);margin:2px 8px}
.dmb.me{align-self:flex-end}.dmb.me span{background:var(--y);color:var(--g);border-radius:18px 18px 6px 18px;font-weight:600}.dmb.me small{text-align:right}
.dmempty{text-align:center;color:rgba(255,255,255,.85);padding:40px 20px;font-weight:600}
.dmbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#0E3B2E;border-top:1px solid rgba(255,255,255,.18);z-index:25}
.dmbar input{flex:1;min-width:0;height:46px;border-radius:23px;border:0;padding:0 18px;font-size:16px;background:#fff;color:#111827;-webkit-text-fill-color:#111827}
.dmsend{flex:none;width:46px;height:46px;border-radius:50%;background:var(--y);color:var(--g);font-size:18px;font-weight:800}

/* ===== v12: ALL popups centered (walang bottom sheet / bottom toast) ===== */
#sheet{align-items:center;justify-content:center;background:rgba(0,0,0,.5);padding:16px}
.panel{position:relative;width:min(540px,92vw);max-width:540px;height:auto;max-height:90vh;border-radius:24px;overflow:auto;animation:cmFade .18s ease-out}
.panel:has(.msgs){height:min(720px,90vh);overflow:hidden}
.sh-x{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:50%;background:var(--bg);color:var(--ink);font-size:16px;z-index:2}
@keyframes cmFade{from{opacity:0;transform:scale(.96)}}
#toast{top:calc(16px + env(safe-area-inset-top));bottom:auto;transform:translate(-50%,-20px);max-width:90vw;text-align:center}#toast.show{transform:translate(-50%,0)}
.pwa-ov{align-items:center;padding:16px;background:rgba(0,0,0,.5)}
.pwa-sh{max-width:min(440px,92vw);border-radius:24px;padding:22px;max-height:90vh;overflow:auto;animation:cmFade .2s ease-out}
/* confirm / alert modal */
.cm-ov{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9500;display:none}.cm-ov.show{display:block}
.cm-box{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,90vw);max-height:90vh;overflow:auto;background:#fff;color:var(--ink);border-radius:22px;padding:24px 22px 20px;box-shadow:0 24px 60px rgba(0,0,0,.4);animation:cmIn .18s ease-out}
@keyframes cmIn{from{opacity:0;transform:translate(-50%,-47%) scale(.96)}}
.cm-x{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;background:var(--bg);font-size:15px}
.cm-t{font-size:18px;font-weight:800;margin:0 38px 10px 0}.cm-m{white-space:pre-line;line-height:1.5;font-size:15px;margin:0}
.cm-b{display:flex;gap:10px;margin-top:20px}.cm-b button{flex:1;height:48px;border-radius:14px;font-weight:800;font-size:15px}
.cm-c{background:var(--bg);color:var(--ink);border:1px solid var(--ln)}.cm-ok{background:var(--g);color:#fff}.cm-ok.danger{background:#dc2626}
.cm-list{display:grid;gap:8px;margin-top:14px}.cm-li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--ln);border-radius:14px}
.cm-li div{flex:1;min-width:0}.cm-li b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-li small{color:var(--mut);font-size:12px}
.cm-del{flex:none;height:36px;padding:0 14px;border-radius:12px;background:#dc2626;color:#fff;font-weight:800;font-size:13px}
/* tournament counter */
.tcnt{background:#fff;border-radius:16px;padding:14px 16px;margin-bottom:12px}
.tbar{height:10px;border-radius:6px;background:#e5e7eb;overflow:hidden;margin-top:8px}.tbar i{display:block;height:100%;border-radius:6px;background:var(--g);transition:width .3s}.tbar i.warn{background:#f59e0b}.tbar i.full{background:#dc2626}
.btn.danger{color:#b91c1c;border-color:#fecaca}.btn.dis{opacity:.55}
/* notification bell + panel */
#ntbell{position:fixed;top:calc(10px + env(safe-area-inset-top));right:12px;z-index:60;width:42px;height:42px;border-radius:50%;background:rgba(14,59,46,.95);color:var(--y);display:none;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#ntw.on #ntbell{display:flex}
.ntb{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e41e3f;color:#fff;font-size:12px;font-weight:800;border:2px solid #fff;display:none;align-items:center;justify-content:center;line-height:1}
#ntpanel{display:none;position:fixed;top:calc(60px + env(safe-area-inset-top));right:10px;z-index:61;width:min(380px,calc(100vw - 20px));max-height:72vh;background:#fff;color:var(--ink);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.35);flex-direction:column;overflow:hidden}
#ntpanel.show{display:flex}
.ntp-h{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}.ntp-h b{font-size:20px}.ntp-h button{color:#1877f2;font-weight:700;font-size:13px}
.ntp-l{overflow:auto;flex:1;padding:4px 6px}.ntp-f{display:block;text-align:center;padding:12px;font-weight:800;color:#1877f2;border-top:1px solid var(--ln)}
.ntr{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;cursor:pointer}.ntr:hover{background:#f0f2f5}
.ntr.unread{background:#e7f3ff}.ntr.unread:hover{background:#dbeafe}
.nta{position:relative;flex:none;width:46px;height:46px}.nti{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--bg);font-size:22px}
.ntk{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.ntt{flex:1;min-width:0}.ntt p{margin:0;font-size:14px;line-height:1.35;word-break:break-word}.ntt small{font-size:12px;color:var(--mut)}.ntr.unread .ntt small{color:#1877f2;font-weight:700}
.ntdot{flex:none;width:12px;height:12px;border-radius:50%;background:#1877f2}
.ntempty{text-align:center;color:var(--mut);padding:26px 12px;margin:0}
.ntfull{padding:6px}

/* v13: notification controls and narrow-screen header clearance */
#ntbell{right:12px;top:calc(10px + env(safe-area-inset-top));z-index:60}
@media(max-width:380px){#ntbell{right:8px;width:40px;height:40px}#app .pg{padding-right:12px}#ntpanel{right:8px;width:calc(100vw - 16px)}}
.ntr{display:flex;align-items:center;gap:8px}
.nt-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.nt-actions{display:flex;align-items:center;gap:4px;flex:none}
.nt-actions button,.msg-del{width:34px;height:34px;border-radius:10px;background:rgba(100,116,139,.12);font-weight:900;color:var(--ink)}
.nt-actions button:first-child{color:#15803d}
.nt-actions button:last-child{color:#dc2626}
.ntfull .ntr{padding:12px 8px;border-bottom:1px solid var(--ln)}
.dm-thread{gap:8px}.dm-thread>a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:inherit;text-decoration:none}.dm-thread>a>div{flex:1;min-width:0}.dm-thread>button{flex:none;width:36px;height:36px;border-radius:10px;background:rgba(220,38,38,.12);color:#dc2626}
.dmb{position:relative}.dmb .msg-del{display:block;margin:3px 0 0 auto;width:28px;height:26px;font-size:12px}.dmb:not(.me) .msg-del{display:none}
/* Keep the home greeting/name on the left and notification bell at the far right. */
.logo{display:flex;align-items:center;gap:10px;min-width:0}
.logo .lb{margin-left:auto;min-width:0;max-width:calc(100% - 100px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ntw{position:relative;display:flex;align-items:center;flex:none;margin-left:auto}
.logo #ntw{margin-left:auto}
#ntbell{position:relative;inset:auto;display:none;width:42px;height:42px;flex:none}
#ntw.on #ntbell{display:flex}
#ntpanel{position:fixed;top:calc(60px + env(safe-area-inset-top));right:10px}
@media(max-width:380px){.logo{gap:6px}.logo .lb{max-width:calc(100% - 94px);font-size:12px;padding:8px 10px}#ntbell{width:40px;height:40px}}
.cp-thread>button:first-child{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.cp-thread>button:first-child>div{flex:1;min-width:0}
.cp-thread>button:last-child{flex:none;width:36px;height:36px;border-radius:10px;background:rgba(220,38,38,.12);color:#dc2626}
/* Greeting stays beside the brand; notification control owns the far-right slot. */
.logo .lb{margin-left:0}
.logo #ntw{margin-left:auto}

/* Owner Edit Court: wider form with more usable editing space */
#sheet .court-edit-panel{width:min(760px,96vw);max-width:760px;max-height:96vh;height:96vh}
@media(max-width:600px){#sheet .court-edit-panel{width:100%;max-width:none;height:96vh;max-height:96vh;border-radius:24px 24px 0 0}}


/* ===== PART 1: OWNER DASHBOARD ONLY ===== */
.owner-dash-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0 0 14px;padding:2px 0}
.owner-brand{display:flex;align-items:center;gap:9px;font-weight:850;font-size:15px;min-width:0}
.owner-brand i{width:34px;height:34px;flex:none;border-radius:11px;background:var(--y);display:grid;place-items:center;font-style:normal;overflow:hidden}
.owner-bell-slot{display:flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px}
body.owner-mode #ntw.owner-bell-only{position:static!important;display:flex;align-items:center;justify-content:flex-end;z-index:90}
body.owner-mode #ntw.owner-bell-only #ntbell{position:relative!important;top:auto!important;right:auto!important;z-index:90;width:44px;height:44px;display:flex!important;flex:none;background:#fff;color:var(--g);border:1px solid var(--ln);box-shadow:0 3px 12px rgba(0,0,0,.13)}
body.owner-mode #ntw.owner-bell-only #ntbell.has-new{background:#dc2626;color:#fff;animation:ownerBellPulse 1.4s infinite}
body.owner-mode #ntw.owner-bell-only #ntb{display:flex}
body.owner-mode #ntpanel{top:calc(66px + env(safe-area-inset-top));right:10px}
.ntp-bottom{display:flex;align-items:center;justify-content:space-around;border-top:1px solid var(--ln)}
.ntp-bottom>button{padding:12px;color:#dc2626;font-weight:800}
.ntp-bottom .ntp-f{flex:1;border:0}
.owner-slider{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;margin:8px 0 16px;border-radius:15px}
.owner-slider::-webkit-scrollbar{display:none}
.owner-slider-track{display:flex;gap:12px;width:max-content;min-width:100%;padding:2px 1px 8px}
.owner-slide-card{flex:none;width:min(82vw,310px);padding:15px;border:1px solid var(--ln);border-radius:16px;background:var(--card,#fff);box-shadow:var(--sh)}
.owner-slide-card p{line-height:1.7;margin:10px 0 0;color:var(--ink)}
.owner-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
.owner-recent-heading .sub{margin:0}
.owner-recent-heading .btn{width:auto;flex:none;padding:0 14px}
.owner-period-tabs{display:flex;gap:7px;overflow-x:auto;margin:16px 0 12px;padding:2px 0 6px;scrollbar-width:none}
.owner-period-tabs button{flex:none;border:1px solid var(--ln);background:#fff;color:var(--ink);border-radius:22px;padding:9px 14px;font-weight:750;font-size:13px}
.owner-period-tabs button.on{background:var(--g);border-color:var(--g);color:#fff}
.owner-booking-group{margin:18px 0}
.owner-booking-group h2{font-size:16px;margin:0 0 9px;padding:10px 12px;border-radius:11px;background:var(--bg);font-weight:850}
.owner-booking-group h2 small{color:var(--muted);font-size:12px;font-weight:600}
@keyframes ownerBellPulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.25)}50%{box-shadow:0 0 0 7px rgba(220,38,38,0)}}

body.owner-mode #ntw.owner-bell-only:not(.owner-bell-visible){display:none!important}

/* ===== Full Bookings page: single status, Play Arrived buttons, Open Play cards, bottom spacing ===== */
/* The fixed bottom nav used to cover the last cards (#app padding was reset to 16px), so leave room under the list. */
#app .owner-full-bookings{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
.owner-full-booking{overflow:visible;height:auto;max-height:none}
.owner-booking-status{display:block;margin-top:6px;font-weight:800;color:var(--ink)}
.owner-fb-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.owner-fb-actions .btn{flex:none;width:100%;height:46px;border-radius:14px;font-size:14px}
.btn.grey{background:#6b7280;color:#fff;border:0;box-shadow:0 6px 16px rgba(107,114,128,.3)}
.btn.grey:disabled,.btn.go:disabled{background:var(--ln);color:#9aa6a0;box-shadow:none}
.owner-fb-hint{margin:8px 0 0!important;font-size:12px}
.owner-fb-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:12px 0 4px}
.owner-fb-grid small,.owner-fb-desc small{display:block;color:var(--mut);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.owner-fb-grid b{display:block;font-size:14px;overflow-wrap:anywhere}
.owner-fb-desc{margin:10px 0 0;color:var(--ink);overflow-wrap:anywhere;white-space:normal}
.owner-fb-player{border-top:1px solid var(--ln);padding:10px 0 4px;margin-top:8px}
.owner-fb-player .r1 b{font-size:15px}

/* ===== Full Bookings > Available: catchy court cards ===== */
.owner-avc{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:16px 16px 16px 18px;border-radius:20px;background:linear-gradient(135deg,#fff 60%,#f1f8ea);border-left:7px solid #16a34a;box-shadow:0 8px 22px rgba(0,0,0,.22);cursor:pointer;transition:transform .12s,box-shadow .12s}
.owner-avc:active{transform:scale(.98);box-shadow:0 4px 12px rgba(0,0,0,.2)}
.owner-avc.almost{border-left-color:#f97316;background:linear-gradient(135deg,#fff 60%,#fff4e8)}
.owner-avc.full{border-left-color:#dc2626;background:linear-gradient(135deg,#fff 60%,#feecec)}
.owner-avc-l{min-width:0}
.owner-avc-no{font-size:28px;font-weight:900;letter-spacing:-.5px;line-height:1.05;color:var(--g)}
.owner-avc-l small{display:block;margin-top:5px;color:var(--mut);font-size:12px;font-weight:600;overflow-wrap:anywhere}
.owner-avc-r{flex:none}
.owner-avc-badge{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.2px;white-space:nowrap;color:#fff}
.owner-avc-badge.open{background:#16a34a}.owner-avc-badge.almost{background:#f97316}.owner-avc-badge.full{background:#dc2626}
.owner-avc-dot{width:9px;height:9px;border-radius:50%;background:#bbf7d0;box-shadow:0 0 0 0 rgba(187,247,208,.9);animation:ownerAvcPulse 1.5s infinite}
@keyframes ownerAvcPulse{0%{box-shadow:0 0 0 0 rgba(187,247,208,.9)}70%{box-shadow:0 0 0 8px rgba(187,247,208,0)}100%{box-shadow:0 0 0 0 rgba(187,247,208,0)}}
.owner-avc-det{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.owner-avc-det div{background:var(--bg,#f4f6f4);border-radius:14px;padding:10px;text-align:center}
.owner-avc-det small{display:block;color:var(--mut);font-size:11px;font-weight:700}.owner-avc-det b{font-size:22px}


/* ===== v25: HOME HEADER - [logo + brand] ........ [Log in / Register]  or  [Hi, Name] [🔔] =====
   - "Log in / Register" sits at the far right end.
   - When logged in: the name comes first, the notification bell is the very last icon (name beside the bell).
   - The bell lives ONLY in this Home header (and in the Owner Dashboard's own bell slot).
     On every other page it is hidden, so it never floats around. */
.logo .lb{margin-left:auto;flex:0 1 auto;min-width:0;max-width:56%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo #ntw{margin-left:0;flex:none}
body>#ntw{display:none!important}

/* ===== HOME FIX: Welcome > Search + Filter row > All Courts > Leaderboard (black glass) ===== */
.hero .wlc{font-size:26px;margin:22px 0 16px;line-height:1.15;word-break:break-word}
.srow{display:grid;grid-template-columns:3fr 1fr;gap:10px;align-items:stretch}
.srow .search{position:relative;min-width:0}
.srow .search input{height:54px;padding:0 14px 0 42px;max-width:none;display:block}
.srow .si{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-style:normal;font-size:16px;pointer-events:none}
.fdd{position:relative;min-width:0}
.fbtn{width:100%;height:54px;border-radius:18px;background:#fff;color:#111827;box-shadow:0 8px 24px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;gap:4px;padding:0 8px;font-size:13px;min-width:0}
.fbtn span{flex:none;font-size:14px}
.fbtn b{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fbtn em{flex:none;font-style:normal;font-size:11px}
.fmenu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.3);padding:6px;z-index:40;display:flex;flex-direction:column}
.fmenu[hidden]{display:none}
.fmenu button{display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 14px;border-radius:12px;font-weight:700;font-size:14px;color:#1f2a26;text-align:left}
.fmenu button i{font-style:normal;font-weight:800}
.fmenu button.on{background:var(--y);color:var(--g)}
@media(hover:hover){.fmenu button:not(.on):hover{background:var(--bg)}}
#fchip:empty{display:none}
.fchip{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:4px 5px 4px 14px;border-radius:18px;background:var(--y);color:var(--g);font-weight:800;font-size:13px}
.fchip button{width:26px;height:26px;border-radius:50%;background:rgba(14,59,46,.16);color:var(--g);font-size:12px;font-weight:800;line-height:1}

/* All Courts: horizontal auto-slide row (same as before), smaller cards */
#list.hs .fc{width:200px;min-width:200px}
#list.hs .fc .ph{height:104px}
#list.hs .fc .ci{padding:10px 12px 12px}
#list.hs .fc h3{font-size:14px}
#list.hs .fc .rt{font-size:12px}
#list.hs .fc .loc{font-size:12px}
#list.hs .fc .pr{margin-top:6px}
#list.hs .fc .pr b{font-size:20px}
#list.hs .fc .bd{top:8px;left:8px;padding:4px 9px;font-size:11px}
#list.hs .empty{flex:1;padding:24px 8px}
.hc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.hc-ty{padding:3px 8px;border-radius:8px;font-size:11px;font-weight:800}
.hc-ty.in{background:#e3f0ff;color:#1d4ed8}
.hc-ty.out{background:#e4f6e8;color:#166534}
.hc-sl{font-size:11px;font-weight:700;color:var(--g)}
.hc-sl.no{color:#b91c1c}

.lbg-wrap{position:relative;isolation:isolate;margin:28px 20px 8px}
.lbg-wrap::before,.lbg-wrap::after{content:"";position:absolute;z-index:-1;width:220px;height:220px;border-radius:50%;pointer-events:none}
.lbg-wrap::before{left:-50px;top:-30px;background:radial-gradient(circle,rgba(198,242,78,.55),transparent 70%)}
.lbg-wrap::after{right:-50px;bottom:-30px;background:radial-gradient(circle,rgba(56,189,248,.45),transparent 70%)}
.lbg{background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);border-radius:20px;box-shadow:0 12px 36px rgba(0,0,0,.35);padding:18px 16px 16px;color:#fff}
.lbg h2{font-size:19px;font-weight:800;letter-spacing:-.3px;color:#fff;margin:0}
.lbg-sub{color:rgba(255,255,255,.7);font-size:13px;margin:2px 0 8px}
.lbg-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.15);color:#fff}
.lbg-row:last-child{border-bottom:0}
a.lbg-row:active{background:rgba(255,255,255,.08)}
.lbg-rk{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;background:rgba(255,255,255,.14);color:#fff}
.lbg-rk.gold{background:linear-gradient(135deg,#FFE27A,#E0A800);color:#3b2a00}
.lbg-rk.silver{background:linear-gradient(135deg,#F1F3F5,#A9B0B7);color:#2a2f34}
.lbg-rk.bronze{background:linear-gradient(135deg,#F0B27A,#B0662A);color:#3a1d05}
.lbg .av2{border:2px solid rgba(255,255,255,.35)}
.lbg-nm{flex:1;min-width:0}
.lbg-nm b{display:block;color:#fff;font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lbg-nm small{color:#fff;font-size:12.5px;font-weight:600}
.lbg-tr{flex:none;width:24px;text-align:center;font-weight:800;font-size:18px}
.lbg-tr.up{color:#4ade80}.lbg-tr.dn{color:#f87171}.lbg-tr.eq{color:rgba(255,255,255,.4)}
.lbg-msg{color:#fff;text-align:center;padding:22px 8px;margin:0;font-weight:600}
.lbg-all{display:block;margin-top:12px;height:44px;line-height:41px;text-align:center;border:1.5px solid #fff;border-radius:14px;background:transparent;color:#fff;font-weight:800;font-size:14px}
@media(hover:hover){.lbg-all:hover{background:rgba(255,255,255,.12)}}
@media(min-width:700px){
  .hero .wlc{font-size:38px;margin:30px 0 20px}
  .lbg-wrap{margin-left:0;margin-right:0}
}

/* ===== Home flow: Court Pasalo slider, Featured Tournaments slider, leaderboard detail = black glass ===== */
#trow{scroll-snap-type:x mandatory}#trow>*{scroll-snap-align:start}
.pg .lbg-wrap{margin:16px 0 8px}
.lbg-full .lbg-sub{line-height:1.45}.lbg-full .lbg-sub b{color:#fff}
.lbg-full .bk.lbl{background:transparent;box-shadow:none;padding:0;margin:6px 0 0;border-radius:0}
.lbg-full .lbf-chips{padding:10px 0 6px}
.lbg-full .lbr{border-bottom-color:rgba(255,255,255,.15);color:#fff}
.lbg-full .lbr.me{background:rgba(255,255,255,.08);margin:0 -16px;padding:11px 16px}
.lbg-full .lbn,.lbg-full .lbr b,.lbg-full .lbr div small,.lbg-full .lbr em,.lbg-full .lbr em small{color:#fff}
.lbg-full .lbr .av2{border:2px solid rgba(255,255,255,.35)}
.lbg-full .bk .empty,.lbg-full .empty{color:#fff}
@media(hover:hover){.lbg-full a.lbr:hover{background:rgba(255,255,255,.08)}}
.lbg-full .chip{color:var(--ink)}.lbg-full .chip.on{color:var(--g)}

/* ===== Tournament: Add/Edit modal + My Tournaments counter = black 70% glass, white text (v-glass-tournament) ===== */
.panel.tmodal{background:rgba(0,0,0,.70);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.15);border-radius:20px;box-shadow:0 12px 32px rgba(0,0,0,.45);color:#fff}
.panel.tmodal .sh-h{border-bottom:1px solid rgba(255,255,255,.15);color:#fff}
.panel.tmodal .sh-h b{color:#fff;font-weight:800}
.panel.tmodal .sh-h button{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.20)}
.panel.tmodal .fl,.panel.tmodal .fm{color:#fff}
.panel.tmodal .hint,.panel.tmodal small.hint{color:#E5E5E5}
.panel.tmodal .fl input,.panel.tmodal .fl select,.panel.tmodal .fl textarea{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.20);border-radius:12px;font-weight:700;color-scheme:dark}
.panel.tmodal .fl textarea{font-weight:600}
.panel.tmodal .fl input::placeholder,.panel.tmodal .fl textarea::placeholder{color:#AAAAAA;font-weight:400}
.panel.tmodal .fl input[readonly]{opacity:1;color:#fff}
.panel.tmodal .fl input:focus,.panel.tmodal .fl select:focus,.panel.tmodal .fl textarea:focus{outline:0;background:rgba(255,255,255,.14);border-color:#FFC800;box-shadow:0 0 0 3px rgba(255,200,0,.25)}
.panel.tmodal .fl select{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
.panel.tmodal .fl select option{background:#111;color:#fff}
.panel.tmodal .fl input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:1}
.panel.tmodal .fl input[type=file]::file-selector-button{background:#FFC800;color:#000}
.panel.tmodal .gt{background:rgba(255,255,255,.10)}
.panel.tmodal .gt.add{border-color:rgba(255,255,255,.35);color:#fff;background:transparent}
.panel.tmodal .jerr{color:#ff9b9b}
.panel.tmodal .btn.p{background:#FFC800;color:#000}
.panel.tmodal .btn.o{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.20)}
/* counter card (inside modal + My Tournaments page) */
.tcnt{background:rgba(0,0,0,.70);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.15);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.45);color:#fff}
.tcnt b,.tcnt .r1{color:#fff;font-weight:800}
.tcnt .tbar{background:rgba(255,255,255,.20)}
.tcnt .tbar i{background:#FFC800}.tcnt .tbar i.warn{background:#FFC800}
.tcnt .hint{color:#E5E5E5!important}
.panel.tmodal .tcnt{background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:14px 0 4px}
/* My Tournaments page: title/subtitle + yellow add button */
.owner-tournaments-page>h1{color:#fff}
.owner-tournaments-page>.sub2{color:#E5E5E5}
.owner-tournaments-page>#towrap>.btn.p{background:#FFC800;color:#000}

/* ===== Owner Open Play page: black 70% glass, white text (v-glass-openplay) ===== */
.owner-openplay-page>h1{color:#fff!important;font-weight:800}
.owner-openplay-page>.sub2{color:#E5E5E5!important}
.owner-openplay-page>.sub{color:#fff!important;font-weight:800}
.owner-openplay-page>.empty{color:#E5E5E5!important}
/* tabs: My Open Plays / Requests */
.owner-openplay-page .owner-op-tabs button{background:rgba(0,0,0,.70)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15)!important;border-radius:16px!important;color:#fff!important;font-weight:700}
.owner-openplay-page .owner-op-tabs button.on{background:#FFC800!important;color:#000!important;border-color:#FFC800!important;font-weight:800}
/* filter by level */
.owner-openplay-page .owner-openplay-filter .fl{color:#fff!important;font-weight:700}
.owner-openplay-page .owner-openplay-filter select{background-color:rgba(0,0,0,.70)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15)!important;color:#fff!important;color-scheme:dark;-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 16px center!important}
.owner-openplay-page .owner-openplay-filter select option{background:#000;color:#fff}
.owner-openplay-page .owner-openplay-filter select option:checked,.owner-openplay-page .owner-openplay-filter select option:hover{background:#FFC800 linear-gradient(#FFC800,#FFC800);color:#000}

/* ===== Owner: floating black-glass bottom nav + top header icons (v-glass-nav) ===== */
body #tabs[data-owner-nav="1"]{position:fixed!important;top:auto!important;left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;transform:none!important;width:auto!important;max-width:none!important;height:72px;padding:8px!important;gap:0;align-items:center;justify-content:space-between!important;background:rgba(0,0,0,.75)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.15)!important;border-radius:24px!important;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:80}
@media(min-width:700px){body #tabs[data-owner-nav="1"]{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:calc(100% - 24px)!important;max-width:576px!important}}
body #tabs[data-owner-nav="1"] a{flex:1!important;flex-direction:column!important;align-items:center;justify-content:center;gap:2px!important;min-width:0;height:100%;padding:0 1px!important;border-radius:16px;background:transparent!important;color:#CCCCCC!important;font-size:11px!important;font-weight:400!important;line-height:12px;letter-spacing:-.1px;text-align:center;-webkit-tap-highlight-color:transparent}
body #tabs[data-owner-nav="1"] a span{display:flex;align-items:center;justify-content:center;font-size:0;line-height:1;padding:4px 12px;border-radius:12px;background:transparent;transition:transform .2s ease,background .2s ease}
body #tabs[data-owner-nav="1"] a svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
body #tabs[data-owner-nav="1"] a .ic-f{display:none}
body #tabs[data-owner-nav="1"] a::after{content:"";display:block;width:4px;height:4px;border-radius:50%;background:transparent;margin-top:1px}
/* active */
body #tabs[data-owner-nav="1"] a.on{color:#FFD700!important;font-weight:800!important}
body #tabs[data-owner-nav="1"] a.on span{background:rgba(255,215,0,.20);animation:ownerNavPop .2s ease forwards}
body #tabs[data-owner-nav="1"] a.on svg{width:26px;height:26px;stroke-width:2.4}
body #tabs[data-owner-nav="1"] a.on .ic-o{display:none}
body #tabs[data-owner-nav="1"] a.on .ic-f{display:block;fill:currentColor}
body #tabs[data-owner-nav="1"] a.on .ic-f .dt{fill:#000;stroke:#000}
body #tabs[data-owner-nav="1"] a.on::after{background:#FFD700}
@keyframes ownerNavPop{from{transform:scale(1)}to{transform:scale(1.1)}}
@media(max-width:380px){body #tabs[data-owner-nav="1"] a{font-size:10px!important}body #tabs[data-owner-nav="1"] a span{padding:4px 9px}}
/* keep last content clear of the floating nav */
body.owner-mode #app{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
/* top header: logo square + bell */
.owner-brand i{border:1px solid rgba(255,255,255,.20);border-radius:12px}
body.owner-mode #ntw.owner-bell-only #ntbell,body.owner-mode #ntw.owner-bell-only #ntbell.has-new{width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.70)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.20)!important;color:#fff!important;box-shadow:0 3px 12px rgba(0,0,0,.35)}
body.owner-mode #ntw.owner-bell-only #ntbell svg{width:22px;height:22px;fill:currentColor}
body.owner-mode #ntw.owner-bell-only #ntbell .ntb{background:#FF0000;color:#fff;border:2px solid #fff}

/* ===== v30 TOURNAMENT BUILDER (Black Glass + Yellow buttons) ===== */
.panel.tmodal .tbtitle{margin:18px 0 2px;font-size:13px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#FFC800}
.panel.tmodal .tbtitle small{text-transform:none;letter-spacing:0;font-weight:600;color:#E5E5E5}
.panel.tmodal .tbdraft{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:rgba(255,200,0,.14);border:1px solid rgba(255,200,0,.45);color:#FFE27A;font-size:13px;font-weight:700}
.tbs{margin-top:12px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);overflow:hidden}
.tbs.on{border-color:rgba(255,200,0,.55)}
.tbh{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;color:#fff}
.tbh b{display:block;font-size:15px;font-weight:800;color:#fff}
.tbh small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:#E5E5E5}
.tbb{padding:0 14px 14px;display:grid;gap:10px}
.tbsw{position:relative;flex:none;width:50px;height:30px;display:block;cursor:pointer}
.tbsw input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:2}
.tbsw i{position:absolute;inset:0;border-radius:999px;background:rgba(255,255,255,.22);transition:background .2s}
.tbsw i:after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.tbsw input:checked+i{background:#FFC800}
.tbsw input:checked+i:after{transform:translateX(20px);background:#000}
.tbr{display:grid;gap:8px;padding:10px;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12)}
.tbr1{display:flex;gap:8px;align-items:flex-start}
.tbr1 input,.tbr1 textarea{flex:1;min-width:0}
.tbr2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tbr2 label,.tbl{display:grid;gap:4px;font-size:12px;font-weight:700;color:#E5E5E5}
.tbb input[type=text],.tbb input[type=number],.tbb input[type=datetime-local],.tbb textarea,.tbb select{width:100%;min-height:44px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.20);font:inherit;font-weight:700;color-scheme:dark;box-sizing:border-box}
.tbb textarea{font-weight:600;resize:vertical}
.tbb select option{background:#111;color:#fff}
.tbb input::placeholder,.tbb textarea::placeholder{color:#AAAAAA;font-weight:400}
.tbb input:focus,.tbb textarea:focus,.tbb select:focus{outline:0;border-color:#FFC800;box-shadow:0 0 0 3px rgba(255,200,0,.25)}
.tbx{flex:none;width:44px;height:44px;border-radius:12px;background:rgba(255,70,70,.16);color:#ff9b9b;border:1px solid rgba(255,120,120,.4);font-size:16px;font-weight:800;cursor:pointer}
.tbadd{width:100%;min-height:44px;border-radius:12px;background:transparent;color:#FFC800;border:1.5px dashed rgba(255,200,0,.6);font-weight:800;font-size:14px;cursor:pointer}
.tbck{display:flex;flex-wrap:wrap;gap:8px}
.tbck label{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);font-size:13px;font-weight:700;color:#fff;cursor:pointer}
.tbck input{width:18px;height:18px;accent-color:#FFC800}
.panel.tmodal .tbtot,.tbb .tbtot{margin:0;font-size:14px;color:#fff}.tbb .tbtot b{color:#FFC800;font-size:18px}
.tbb .hint{margin:0}
.tst.draft{background:#e5e7eb;color:#374151}
/* player side: sections the owner turned ON */
.tsec .tbc{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--ln)}
.tsec .tbc:last-child{border:0}
.tsec .tbc b{display:block;font-size:15px;color:#111827}.tsec .tbc small{color:var(--mut);font-size:12px;font-weight:700}
.tbcs{flex:none;padding:5px 10px;border-radius:999px;background:#111827;color:#FFC800;font-size:12px;font-weight:800}
.tbcs.full{background:#9ca3af;color:#374151}
.tsec .tbtot{margin:0 0 8px;padding:10px 12px;border-radius:12px;background:#111827;color:#fff;font-size:13px}.tsec .tbtot b{color:#FFC800;font-size:18px;margin-left:6px}
.tbp{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--ln)}
.tbp:last-child{border:0}
.tbpn{flex:none;width:38px;height:38px;border-radius:50%;background:#e5e7eb;color:#111827;display:grid;place-items:center;font-weight:800;font-size:15px}
.tbp b{display:block;font-size:15px;color:#111827}.tbp small{display:block;margin-top:2px;color:#4b5563;font-size:12px;font-weight:700}
.tbp.gold{margin:0 -8px;padding:12px 8px;border-radius:14px;border:0;background:linear-gradient(135deg,#FFC800,#FFE27A);box-shadow:0 4px 14px rgba(255,200,0,.4)}
.tbp.gold .tbpn{background:#111827;font-size:20px}.tbp.gold b{color:#000;font-size:16px}.tbp.gold small{color:#3a2d00}
.tbchips{display:flex;flex-wrap:wrap;gap:8px}.tbchips span{padding:7px 12px;border-radius:999px;background:#111827;color:#FFC800;font-size:13px;font-weight:800}
.tsec ol.tbr{display:block;margin:0;padding:0 0 0 20px;border:0;background:none}.tsec ol.tbr li{margin:6px 0;font-size:14px;line-height:1.5;color:#374151}
.tsec ul.tbl2{margin:0;padding:0 0 0 20px}.tsec ul.tbl2 li{margin:6px 0;font-size:14px;color:#374151}
.tsec .tbdl{margin:0 0 10px}.tsec .tbdl b{color:#111827}.tbred{color:#b91c1c;font-weight:800}
.tsec:has(>.tb-noabout){display:none}
.igrid:empty{display:none}
/* Preview Poster overlay */
#tbprev{position:fixed;inset:0;z-index:99999;overflow:auto;background:#f3f4f6;-webkit-overflow-scrolling:touch;padding-bottom:90px}
.tbpv-bar{position:sticky;top:0;z-index:30;background:#FFC800;color:#000;font-weight:800;text-align:center;padding:9px 12px;font-size:13px}

/* ===== v31 BOOKING DATE STRIP + MONTH CALENDAR (Black Glass, Yellow selected) ===== */
.bkhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 20px 0}
.bkmon{display:flex;align-items:center;gap:6px}
.bkmon button,.bkci,.bkt{background:rgba(0,0,0,.70);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:12px;min-height:40px;font-weight:800;cursor:pointer}
.bkmon button:not(.bkmn){width:36px;font-size:20px}
.bkmn{padding:0 12px;font-size:15px}
.bkr{display:flex;gap:8px}
.bkci{width:42px;display:grid;place-items:center}
.bkt{padding:0 12px;font-size:12px;letter-spacing:.5px;color:#FFC800}
.bkdw{position:relative}
.bkstrip{display:flex;gap:6px;overflow-x:auto;padding:10px 20px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;position:relative;scroll-behavior:smooth}
.bkstrip::-webkit-scrollbar{display:none}
.bkc{flex:none;width:54px;height:82px;border-radius:18px;scroll-snap-align:center;background:rgba(0,0,0,.70);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s}
.bkc small{font-size:11px;font-weight:700;color:#CCCCCC;letter-spacing:.4px}
.bkc b{font-size:18px;font-weight:800;color:#fff}
.bkl{height:13px;display:flex;align-items:center;gap:3px;font-size:10px;font-weight:800;line-height:1;color:#FFC800}
.bkl i{width:5px;height:5px;border-radius:50%;background:#FFC800;display:block}
.bkc.full .bkl{color:#ff5a5a}.bkc.full .bkl i{background:#ff3b3b}
.bkc.on{background:#FFC800;border-color:#FFC800;box-shadow:0 0 16px rgba(255,200,0,.6);transform:scale(1.06)}
.bkc.on small,.bkc.on b,.bkc.on .bkl{color:#000}.bkc.on .bkl i{background:#000}
.bkc.past{opacity:.4;cursor:not-allowed}.bkc.past small,.bkc.past b{color:#9ca3af}
.bka{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:30px;height:46px;border-radius:12px;background:rgba(0,0,0,.78);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:20px;font-weight:800;cursor:pointer}
.bka.l{left:2px}.bka.r{right:2px}
.bkload{margin:10px 20px;padding:22px;border-radius:16px;background:rgba(0,0,0,.70);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);color:#fff;text-align:center;font-weight:800;display:flex;align-items:center;justify-content:center;gap:10px}
.bkload i{width:16px;height:16px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#FFC800;animation:bkspin .7s linear infinite}
@keyframes bkspin{to{transform:rotate(360deg)}}
.bkfull{margin:10px 20px 0;padding:14px;border-radius:16px;background:rgba(0,0,0,.78);border:1px solid rgba(255,70,70,.55);color:#fff;display:grid;gap:10px;text-align:center}
.bkfull b{color:#ff8a8a;font-size:14px}
.bkfull .btn{background:#FFC800;color:#000}
/* month calendar bottom sheet */
#bkcal{position:fixed;inset:0;z-index:100000}
.bkc-bd{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.bkc-sh{position:absolute;left:0;right:0;bottom:0;max-width:600px;margin:0 auto;max-height:90vh;overflow:auto;padding:16px 16px calc(20px + env(safe-area-inset-bottom));background:rgba(0,0,0,.86);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.15);border-radius:24px 24px 0 0;color:#fff;animation:bkup .25s ease-out}
@keyframes bkup{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.bkc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.bkc-h b{font-size:18px;font-weight:800}
.bkc-h button{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff}
.bkc-nav{display:flex;gap:8px;margin-bottom:10px}
.bkc-nav button,.bkc-q button{flex:1;min-height:40px;padding:0 10px;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.bkc-nav button:disabled{opacity:.35;cursor:not-allowed}
.bkc-q{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.bkc-q button{flex:none;color:#FFC800}
.bkc-dow,.bkc-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.bkc-dow span{font-size:11px;font-weight:700;color:#CCCCCC;padding:4px 0}
.bkd{position:relative;height:42px;border-radius:50%;background:transparent;border:2px solid transparent;color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.bkd.today{border-color:#FFC800}
.bkd.on{background:#FFC800;color:#000;font-weight:800;box-shadow:0 0 12px rgba(255,200,0,.55)}
.bkd.past{color:#6b7280;opacity:.5;cursor:not-allowed}
.bkd.full{color:#9ca3af}.bkd.full i{position:absolute;left:50%;bottom:3px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#ff3b3b}
.bkc-lg{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:12px;color:#E5E5E5}.bkc-lg i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.bkc-lg .y{background:#FFC800}.bkc-lg .b{border:2px solid #FFC800}.bkc-lg .r{background:#ff3b3b}

/* Tournament Details - Set by Owner (no points on this page) */
.tdet .tdr{display:grid;grid-template-columns:112px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid var(--ln)}
.tdet .tdr:last-child{border:0;padding-bottom:0}
.tdet .tdl{font-size:12px;font-weight:800;color:#6b7280;line-height:1.4}
.tdet .tdv{font-size:14px;line-height:1.5;color:#111827;min-width:0;overflow-wrap:anywhere}
.tdet .tdv b{color:#111827}.tdet .tdv small{color:#6b7280;font-weight:700;font-size:12px;margin-left:4px}
.tdet .tdn{margin:0 0 6px;white-space:pre-line}.tdet .tdm{color:#6b7280}
.tdet .tbar{margin-top:6px}
.tdet ol.tbr{margin:4px 0 0;padding:0 0 0 18px}

/* private tournament code (duo + solo) */
.tcode{text-align:center;border:2px solid #FFC800}
.tcode .tcl{font-size:12px;font-weight:800;letter-spacing:1px;color:#6b7280}
.tcode .tcn{font-size:32px;font-weight:800;letter-spacing:2px;color:#111827;margin:4px 0 8px}
.tcb{border:0;border-radius:999px;background:#111827;color:#fff;font-weight:800;font-size:12px;padding:6px 12px;cursor:pointer}
.tcode .hint{margin:10px 0 0}
.prow b .tnm{display:block;font-weight:600;font-size:12px;color:var(--mut)}
.prow b .tcd{display:block;margin-top:4px;font-size:12px;font-weight:700;color:#374151}
.prow b .tcd.mine{color:#166534}
.trq{width:100%;margin:0 0 8px;padding:10px 12px;border:1px solid var(--ln);border-radius:12px;font-size:14px}

/* ===== v36 bracket lock / schedule ===== */
.bwarn{background:#fef3c7;border:1px solid #fcd34d;color:#92400e;font-weight:800;font-size:14px;border-radius:10px;padding:9px 12px;margin:0 0 12px}
.brow{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.bslot{cursor:grab;align-items:center}.bslot.sel{background:#fff7cc;outline:2px solid #FFC800;outline-offset:-2px}
.bbye{flex:none;font-size:11px;font-weight:800;padding:4px 8px;border-radius:8px;background:#111827;color:#FFC800}
.bsch{padding:6px 10px;font-size:12px;font-weight:700;color:#4b5563;background:#f9fafb;border-top:1px solid #f1f2f4}
.bopp{background:#ecfdf5;border:2px solid #16a34a;border-radius:12px;padding:12px 14px;margin-bottom:12px;color:#14532d}
.bopp b{display:block;font-size:16px}.bopp small{display:block;margin-top:4px;color:#166534;font-weight:600}
.bsh{font-size:16px;font-weight:800;margin:16px 0 8px}
.bsched>div{padding:9px 0;border-top:1px dashed #e5e7eb;font-size:14px;color:#374151}
.bsched b{display:block;color:#111827}.bsched em{font-style:normal;color:#9ca3af;font-weight:700;margin:0 4px}.bsched small{display:block;color:var(--mut);font-size:11px}

.pod b small{display:block;font-size:11px;font-weight:700;color:var(--mut)}
.pzr{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}.pzr em{font-style:normal;font-size:12px;font-weight:800;color:#14532d}
.pzx{padding:7px 0;border-top:1px dashed #e5e7eb;font-size:14px;color:#374151}

/* ===== v37 finish popup + cover photo + wins list ===== */
.tc.hascov{background-image:linear-gradient(180deg,rgba(17,24,39,.15) 0%,rgba(17,24,39,.9) 100%),var(--cov);background-size:cover;background-position:center}
.tcov{display:block;margin-top:6px;color:#FFC800;font-weight:800;font-size:14px;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.tphoto.has{border:0;overflow:hidden;padding:0;height:auto;aspect-ratio:16/10}.tphoto.has img{width:100%;height:100%;object-fit:cover;display:block}
.fnr{display:grid;gap:8px;margin:10px 0 14px}.fnr>div{background:#f9fafb;border-radius:12px;padding:10px 12px}.fnr small{display:block;font-size:12px;font-weight:700;color:var(--mut)}.fnr b{font-size:16px;overflow-wrap:anywhere}
.fnph{margin:8px 0;border-radius:14px;overflow:hidden;background:#f3f4f6;min-height:90px;display:grid;place-items:center;color:#9ca3af;font-size:13px}.fnph img{width:100%;max-height:220px;object-fit:cover;display:block}
.fnpick{display:flex;align-items:center;justify-content:center;cursor:pointer;width:100%;margin-bottom:6px}
.wl>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px dashed #e5e7eb;font-size:14px;color:#374151}.wl b{flex:none;color:#111827}

.tpup{position:relative;cursor:pointer}.tpe{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.65);color:#fff;font-style:normal;font-size:12px;font-weight:800;padding:5px 10px;border-radius:999px}
.hlup{display:grid;place-items:center;cursor:pointer;text-align:center;font-size:inherit}.hlup span{font-size:30px;font-weight:800}.hlup small{font-size:12px;color:#9ca3af}

.wl span small{display:block;font-size:11px;font-weight:700;color:var(--mut)}

.bwinl{padding:6px 10px;font-size:12px;font-weight:700;color:#14532d;background:#ecfdf5;border-top:1px solid #d1fae5}.bwinl b{color:#166534}

/* ===== Owner > My Tournaments: tournament cards = black glass 70%, white text (design only) ===== */
.owner-tournaments-page .tarow{background:rgba(0,0,0,.70)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15)!important;border-radius:20px;color:#fff}
.owner-tournaments-page .tarow .r1 b{color:#fff!important;font-weight:800}
.owner-tournaments-page .tarow p{color:rgba(255,255,255,.8)!important}
.owner-tournaments-page .tarow .ba .btn.o{background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.20)!important;color:#fff!important}
.owner-tournaments-page .tarow .ba .btn.o.danger{background:transparent!important;border:1px solid rgba(255,80,80,.4)!important;color:#FF6B6B!important}
.owner-tournaments-page .tarow .ba .btn:focus-visible{outline:2px solid #FFD700;outline-offset:2px}

/* Toast: black glass 80%, lower from the top so it does not sit on page titles */
#toast{top:calc(60px + env(safe-area-inset-top));background:rgba(0,0,0,.80);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.35)}

/* ===== NOTIFICATIONS PART 1: new Notification List screen (new classes only) ===== */
.nlpg{padding-bottom:110px}
.nlh{display:flex;align-items:center;gap:10px;margin:4px 0 12px}
.nlh h1{flex:1;margin:0;font-size:20px;color:#fff}
.nlback{flex:none;width:38px;height:38px;border-radius:50%;font-size:26px;line-height:1;background:rgba(0,0,0,.70);color:#fff;border:1px solid rgba(255,255,255,.20)}
.nlmark{flex:none;padding:8px 12px;border-radius:14px;font-size:12px;font-weight:800;background:rgba(0,0,0,.70);color:#fff;border:1px solid rgba(255,255,255,.20)}
.nlmark:disabled{opacity:.45}
.nllist{display:grid;gap:8px}
.nlr{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border-radius:16px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.12);color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.nla{flex:none;width:46px;height:46px}.nli{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.15);font-size:22px}
.nlt{flex:1;min-width:0;display:grid;gap:2px}
.nlti,.nlm{font-size:14px;line-height:1.35;word-break:break-word;font-weight:400}
.nlm{color:#d9dedb}.nlt small{font-size:12px;color:#aab3ae}
.nlr.unread .nlti,.nlr.unread .nlm{font-weight:800;color:#fff}
.nldot{flex:none;width:12px;height:12px;border-radius:50%;background:#FF0000}
.nlempty{text-align:center;color:#d9dedb;padding:30px 10px}

/* ===== NOTIFICATIONS PART 2: badges only (new classes; existing icons/buttons/cards keep their size) ===== */
.nb-host{position:relative}
.nbbadge{position:absolute;display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF2D2D;color:#fff;font-size:11px;font-weight:800;line-height:1;box-sizing:border-box;pointer-events:none;z-index:5}
.nbbadge.nbt{top:-6px;right:-10px}
.nbbadge.nbp{top:-7px;right:-6px}
.nbbadge.nbr{right:14px;bottom:12px}
.nbnew{position:absolute;top:-9px;right:12px;display:flex;align-items:center;gap:5px;padding:3px 8px;border-radius:10px;background:#FF2D2D;color:#fff;font-size:10px;font-weight:800;line-height:1;pointer-events:none;z-index:5}
.nbdot{width:6px;height:6px;border-radius:50%;background:#fff;display:block}

/* ===== OWNER DASHBOARD BUTTON BADGES: inline badge inside the 2 buttons (button size/colors untouched) ===== */
.odb{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;min-width:20px;margin-left:2px;border-radius:50%;background:#FF2D2D;color:#fff;font-size:11px;font-weight:800;line-height:1;box-sizing:border-box;vertical-align:middle}

/* Owner bottom nav: keep the red badge visible (owner-nav rules make every <span> in the tab transparent / font-size 0) */
body #tabs[data-owner-nav="1"] a span.nbbadge{display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF2D2D;color:#fff;font-size:11px;font-weight:800;line-height:1;animation:none;transition:none}

/* ===== OWNER DASHBOARD "NEW" PILL: only on My Court Bookings / My Open Plays cards ===== */
.owner-fb-actions.nw-host{position:relative;margin-top:36px}
.nw-pill{position:absolute;right:0;top:-28px;display:inline-block;padding:4px 12px;border-radius:999px;background:#FF8A00;color:#000;font-size:12px;font-weight:900;line-height:1;letter-spacing:.2px;pointer-events:none;z-index:2}

/* ===== OWNER Open Play "Requests" button badge (same look as the red count badges) ===== */
.owner-op-tabs button .rqb{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;min-width:20px;margin-left:6px;border-radius:50%;background:#FF2D2D;color:#fff;font-size:11px;font-weight:800;line-height:1;box-sizing:border-box;vertical-align:middle}

/* ===== LIVE NOW heartbeat: Owner Dashboard My Court Bookings + My Open Plays cards (only while the time is playing) ===== */
.lv-now{color:#22C55E;font-weight:800;animation:lvText 1s ease-in-out infinite}
.lv-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22C55E;margin-right:6px;vertical-align:middle;animation:lvBeat 1s ease-in-out infinite}
.lv-card{animation:lvGlow 2s ease-in-out infinite}
@keyframes lvBeat{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,197,94,.65)}50%{transform:scale(1.5);box-shadow:0 0 0 6px rgba(34,197,94,0)}}
@keyframes lvText{0%,100%{opacity:1}50%{opacity:.6}}
@keyframes lvGlow{0%,100%{box-shadow:0 0 0 1px rgba(34,197,94,.45),0 0 6px rgba(34,197,94,.20)}50%{box-shadow:0 0 0 1px rgba(34,197,94,.95),0 0 16px rgba(34,197,94,.50)}}
@media (prefers-reduced-motion:reduce){.lv-now,.lv-dot,.lv-card{animation:none}}

/* ===== TIME'S UP - COLLECT PAYMENT: ended + unpaid cards (Owner Dashboard lists) ===== */
.tu-card{box-shadow:0 0 0 2px #FF2D2D!important;animation:none!important}
.tu-banner{margin:-16px -16px 12px;padding:10px 12px;border-radius:22px 22px 0 0;background:#FF2D2D;color:#fff;font-weight:900;font-size:14px;text-align:center;letter-spacing:.2px;animation:tuBlink 1.5s ease-in-out infinite}
.tu-ago{color:#FF2D2D;font-weight:800}
.owner-od-panel .bk .owner-fb-actions .btn.owner-pay-yellow.tu-btn{background:#FF2D2D!important;color:#fff!important;border-color:#FF2D2D!important;animation:tuBlink 1.5s ease-in-out infinite}
.tu-bar{display:block;width:100%;margin:0 0 10px;padding:10px 12px;border:0;border-radius:14px;background:#FF2D2D;color:#fff;font-weight:800;font-size:14px;text-align:center;cursor:pointer}
@keyframes tuBlink{0%,100%{opacity:1}50%{opacity:.7}}
@media (prefers-reduced-motion:reduce){.tu-banner,.owner-od-panel .bk .owner-fb-actions .btn.owner-pay-yellow.tu-btn{animation:none}}

/* ===== Background music: floating mute button (Court Detail + Tournament Detail) ===== */
#musbtn{position:fixed;top:calc(60px + env(safe-area-inset-top));right:12px;z-index:55;width:38px;height:38px;border-radius:50%;border:0;background:rgba(14,59,46,.92);color:#fff;font-size:18px;line-height:1;display:none;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35);cursor:pointer;-webkit-tap-highlight-color:transparent}

/* ===== Booking flow: Confirm -> Arrived -> Playing (additive) ===== */
.pf-hide{display:none!important}
.pf-badges{margin:10px 0 0}
.pf-pill{display:inline-block;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.2px}
.pf-pill.pf-green{background:#dcfce7;color:#166534}
.pf-pill.pf-grey{background:#e5e7eb;color:#4b5563}
.pf-sfx{font-weight:800;color:#166534}
.pf-timer{margin-top:10px}
.pf-timer b{display:block;font-size:14px;font-weight:800}
.pf-timer.g b{color:#15803d}.pf-timer.y b{color:#a16207}.pf-timer.r b{color:#dc2626}
.pf-bar{height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden;margin-top:6px}
.pf-bar i{display:block;height:100%;border-radius:999px;transition:width .6s ease}
.pf-timer.g .pf-bar i{background:#22c55e}.pf-timer.y .pf-bar i{background:#facc15}.pf-timer.r .pf-bar i{background:#ef4444}
.pf-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:stretch}
.pf-actions .btn{flex:none;border:0;font-weight:800;border-radius:14px}
.pf-actions .pf-start{flex:1 1 0;min-width:0;height:46px;font-size:14px;background:#16a34a;color:#fff;box-shadow:0 6px 16px rgba(22,163,74,.35)}
.pf-actions .pf-nos-btn{width:auto;height:46px;padding:0 14px;font-size:12px;background:#e5e7eb;color:#4b5563;box-shadow:none}
.pf-actions .pf-nos-btn:disabled{opacity:.55}
.pf-actions .pf-ext{flex:1 1 100%;height:38px;font-size:13px;background:#fff;color:var(--g);border:1px solid var(--ln)}
.owner-od-panel .bk .btn.owner-pay-yellow.pf-grey{background:#d1d5db!important;color:#6b7280!important;border-color:#d1d5db!important;box-shadow:none!important}
.owner-od-panel .bk.pf-nos{box-shadow:0 0 0 2px #9ca3af!important;animation:none!important}
.pf-pnote{margin:8px 0;font-weight:800;color:#166534;font-size:13px}
.st.pf-nsb{background:#e5e7eb;color:#4b5563}
/* No Show text = black (clear to read) */
.pf-actions .pf-nos-btn,.pf-actions .pf-nos-btn:disabled{color:#000!important;font-weight:800!important}
.pf-pill.pf-grey{color:#000!important;background:#d1d5db!important}
.st.pf-nsb{color:#000!important;background:#d1d5db!important;font-weight:800}
/* Dark-theme override fix: No Show text must be BLACK */
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn,
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn:disabled,
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn *{color:#000!important;-webkit-text-fill-color:#000!important;background-color:#e5e7eb!important;font-weight:800!important;opacity:1!important}
body .owner-od-panel .bk .pf-box .pf-pill.pf-grey{color:#000!important;-webkit-text-fill-color:#000!important;background:#e5e7eb!important}
body .owner-recent-card .st.pf-nsb{color:#000!important;-webkit-text-fill-color:#000!important;background:#e5e7eb!important}
/* FINAL: No Show = DARK GREY background + WHITE text */
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn,
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn:disabled,
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn *{color:#fff!important;-webkit-text-fill-color:#fff!important;background-color:#4b5563!important;font-weight:800!important;opacity:1!important}
body .owner-od-panel .bk .pf-actions .btn.pf-nos-btn:disabled{background-color:#6b7280!important}
body .owner-od-panel .bk .pf-box .pf-pill.pf-grey{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#4b5563!important}
body .owner-recent-card .st.pf-nsb{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#4b5563!important}

/* ===== HOME: Search + Filter + Bottom Nav = BLACK 70% GLASS + WHITE TEXT (Guest / Player / not logged in; style only) ===== */
.srow .search input,.fbtn{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:16px!important;box-shadow:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#fff}
.srow .search input::placeholder{color:rgba(255,255,255,.7)!important;-webkit-text-fill-color:rgba(255,255,255,.7)!important;opacity:1}
.srow .search input::-webkit-search-cancel-button{filter:invert(1)}
.srow .si{color:#fff;filter:brightness(0) invert(1)}
.fbtn,.fbtn b,.fbtn span,.fbtn em{color:#fff!important;-webkit-text-fill-color:#fff!important}
.fbtn b{font-weight:800}
.fmenu{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3);border-radius:16px!important}
.fmenu button,.fmenu button i{color:#fff!important}
.fmenu button.on{background:rgba(255,255,255,.15)!important;color:#FFC107!important}
.fmenu button.on i{color:#FFC107!important}
@media(hover:hover){.fmenu button:not(.on):hover{background:rgba(255,255,255,.1)!important}}
#tabs:not([data-owner-nav="1"]){background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid rgba(255,255,255,.2)!important;border-bottom-color:rgba(255,255,255,.2)}
#tabs:not([data-owner-nav="1"]) a{color:#fff!important;background:transparent!important}
#tabs:not([data-owner-nav="1"]) a.on{color:#FFC107!important;background:rgba(255,255,255,.15)!important}

/* ===== HOME > Open Play cards = BLACK 70% GLASS + WHITE TEXT (style only; Home section only) ===== */
.pphome[data-full=""] .bk{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(0,0,0,.35)!important;color:#fff!important}
.pphome[data-full=""] .bk .r1>b,.pphome[data-full=""] .bk p,.pphome[data-full=""] .bk .pr b{color:#fff!important}
.pphome[data-full=""] .bk .r1>b{font-weight:800}
.pphome[data-full=""] .bk>p:first-of-type{color:rgba(255,255,255,.8)!important}
.pphome[data-full=""] .bk .pr small,.pphome[data-full=""] .bk p.hint{color:rgba(255,255,255,.7)!important}
.pphome[data-full=""] .bk .st:not(.cancelled){background:rgba(255,255,255,.2)!important;color:#fff!important}
.pphome[data-full=""] .bk p .st.done{background:rgba(255,255,255,.15)!important;color:#fff!important}

/* ===== PLAYERS page = BLACK 70% GLASS + WHITE TEXT (style only) ===== */
.psr{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:16px!important;box-shadow:none!important;color:#fff!important}
.psr svg{color:#fff;stroke:#fff}
.psr input{color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#fff}
.psr input::placeholder{color:rgba(255,255,255,.7)!important;-webkit-text-fill-color:rgba(255,255,255,.7)!important;opacity:1}
.psr input::-webkit-search-cancel-button{filter:invert(1)}
.ptabs button{color:rgba(255,255,255,.7)!important}
.ptabs button.on{color:#fff!important;font-weight:900!important;border-color:#FFC107!important}
#plist .bk{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(0,0,0,.35)!important;color:#fff!important}
#plist .prow{border-bottom:1px solid rgba(255,255,255,.15)!important}#plist .prow:last-child{border:0!important}
#plist .pmain b{color:#fff!important}
#plist .pmain small{color:rgba(255,255,255,.75)!important}
#plist .pmain small.onx{color:#39ff14!important}
#plist .bk .empty,#plist .bk p{color:#fff!important}

/* ===== OPEN PLAY page (players/guests) = BLACK 70% GLASS + WHITE TEXT (style only) ===== */
.opx-pg .opx-h h1{color:#fff!important;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opx-pg .opx-seg{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3);border-radius:16px}
.opx-pg .opx-seg button{color:rgba(255,255,255,.7)!important}
.opx-pg .opx-seg button.on{background:rgba(255,255,255,.2)!important;color:#fff!important;box-shadow:none!important}
.opx-pg .opx-lb{color:rgba(255,255,255,.85)!important;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opx-pg .opx-btn{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:16px!important;color:#fff!important}
.opx-pg .opx-btn i{color:#fff!important}
.opx-pg .opx-menu{background:rgba(0,0,0,.85)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:16px!important}
.opx-pg .opx-menu button{color:#fff!important}
.opx-pg .opx-menu button.on{background:rgba(255,255,255,.15)!important;color:#FFC107!important}
.opx-pg .opx-menu button:disabled{color:rgba(255,255,255,.6)!important}
.opx-pg .opx-res{color:rgba(255,255,255,.85)!important;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opx-pg .opx-res .opx-clr{color:#FFC107!important}
.opx-pg .opx-card,.opx-pg .bk{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.3)!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(0,0,0,.35)!important;color:#fff!important}
.opx-pg .opx-card h3,.opx-pg .opx-org b,.opx-pg .bk .r1>b,.opx-pg .bk p{color:#fff!important}
.opx-pg .opx-date,.opx-pg .opx-org,.opx-pg .opx-row small,.opx-pg .bk p.hint{color:rgba(255,255,255,.8)!important}
.opx-pg .opx-badges span{background:rgba(255,255,255,.2)!important;color:#fff!important}
.opx-pg .opx-org .opx-rt{color:#FFC107!important}
.opx-pg .opx-bar{background:rgba(255,255,255,.2)!important}
.opx-pg .opx-first{color:#FFC107!important}
.opx-pg .sh{color:#fff!important;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opx-pg .empty,.opx-pg .empty p{color:#fff!important}
.opx-pg .bk .st:not(.cancelled){background:rgba(255,255,255,.2)!important;color:#fff!important}

/* ===== OWNER BADGE FIX: Bell number, My Court Bookings / My Open Plays circle, Bookings-tab dot, unread rows (badge styles only) ===== */
.odb{display:none!important}                                  /* old broken badge (red line) is gone */
/* Bell (top-right): red circle 20x20, 2px white border, white bold 11px; "9+" above 9; hidden at 0 */
body.owner-mode #ntw.owner-bell-only #ntb:not(.obx-on){display:none!important}
#ntw #ntb.obx-on{display:flex!important;position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:10px;background:#FF0000;color:#fff;border:2px solid #fff;font-size:11px;font-weight:800;line-height:1;align-items:center;justify-content:center;z-index:5}
/* Owner Dashboard buttons: round count badge INSIDE the button, top-right corner */
#app button[data-act="odtoggle"]{position:relative}
#app button[data-act="odtoggle"] .obx-b{position:absolute;top:4px;right:6px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 3px;box-sizing:border-box;border-radius:10px;background:#FF2D2D;color:#fff;border:2px solid #fff;font-size:11px;font-weight:800;line-height:1;pointer-events:none;z-index:3}
/* Owner bottom nav "Bookings": red dot (same unread as Bell) instead of a number */
body #tabs[data-owner-nav="1"] a[data-t="bookings"] span.nbbadge{display:none!important}
body #tabs[data-owner-nav="1"] a span.obx-dot,#tabs a span.obx-dot{position:absolute!important;top:0;right:6px;display:block!important;width:10px!important;height:10px!important;min-width:10px!important;padding:0!important;border-radius:50%!important;background:#FF2D2D!important;font-size:0!important;pointer-events:none}
/* Notification list: unread = light bg + small red dot on the left, read = transparent, no dot */
.nlpg .nlr.unread{background:rgba(255,255,255,.15)}
.nlpg .nlr:not(.unread){background:transparent}
.nlpg .nlr .nldot{width:8px;height:8px}

/* ===== v43: Open Play approved badge + KCC Approved card + cancel lock (additive) ===== */
.apbadge{position:absolute;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:10px;background:#FF0000;color:#fff;border:2px solid #fff;font-size:11px;font-weight:800;line-height:1;pointer-events:none;z-index:6}
#tabs a[data-t="openplay"]{position:relative}
.apbadge.apt{top:0;left:calc(50% + 6px)}
.apbadge.apm{top:-8px;right:-4px}
[data-act="opxtab"][data-v="mine"]{position:relative}
#ntw #ntb.ap-on{background:#FF0000;color:#fff;border:2px solid #fff;font-size:11px;font-weight:800;min-width:20px;height:20px}
/* notification list item (approved) */
.ntr.ap{position:relative;background:rgba(0,0,0,.78);color:#fff;margin:4px 0}
.ntr.ap:hover{background:rgba(0,0,0,.86)}
.ntr.ap.unread{box-shadow:inset 0 0 0 999px rgba(255,255,255,.15)}
.ntr.ap .ntt p{color:rgba(255,255,255,.88)}.ntr.ap .ntt small,.ntr.ap.unread .ntt small{color:rgba(255,255,255,.7);font-weight:600}
.ntr.ap .apt-ti{display:block;font-size:14px;color:#fff}
.ntr.ap .nt-actions button{color:#fff}
.apdot{flex:none;width:10px;height:10px;border-radius:50%;background:#FF0000}
/* approved card */
.apc{background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:2px solid #22C55E;border-radius:20px;color:#fff;padding:16px;margin:10px 0}
.apc.apc-hl{box-shadow:0 0 0 4px rgba(34,197,94,.45)}
.apc-pill{display:inline-block;background:#22C55E;color:#fff;font-weight:800;font-size:13px;padding:5px 12px;border-radius:999px}
.apc-t{margin:10px 0 0;font-size:20px;font-weight:800;color:#fff}
.apc-s{margin:4px 0 0;color:rgba(255,255,255,.8);font-size:14px}
.apc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.apc-pills span{background:rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700}
.apc-ok{margin:12px 0 0;color:#4ADE80;font-weight:800;font-size:14px}
.apc-cancel{display:block;width:100%;margin-top:14px;padding:14px;border-radius:16px;border:0;background:#fff;color:#000;font-weight:800;font-size:15px;cursor:pointer}
.apc-cancel.off,.apc-cancel[disabled]{background:rgba(255,255,255,.3);color:#9ca3af;opacity:.5;cursor:not-allowed;pointer-events:none}
.apc-lockw{display:block}
.apc-note{margin:8px 0 0;font-size:12.5px;color:rgba(255,255,255,.8)}
.apc-note.lock{color:#fca5a5;font-weight:700}

/* ===== v44: AUTO PLAYING + heartbeat (owner card + player card) ===== */
.agx-badge{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;margin:0 0 10px;padding:10px 14px;border-radius:999px;background:#39FF14;color:#000;font-weight:900;font-size:14px;letter-spacing:.3px;animation:agxGlow 1s ease-in-out infinite}
.agx-ecg{flex:none;transform-origin:center;animation:agxBeat 1s ease-in-out infinite}
.agx-bt{color:#000;-webkit-text-fill-color:#000}
.agx-dot{font-style:normal;display:inline-block;margin-right:2px;animation:agxBlink 1s steps(2,start) infinite}
@keyframes agxBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
@keyframes agxGlow{0%,100%{box-shadow:0 0 0 0 rgba(57,255,20,.65)}50%{box-shadow:0 0 14px 4px rgba(57,255,20,.6)}}
@keyframes agxBlink{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes agxCard{0%,100%{box-shadow:0 0 0 0 rgba(57,255,20,.35),0 0 8px rgba(57,255,20,.35)}50%{box-shadow:0 0 0 2px rgba(57,255,20,.25),0 0 22px rgba(57,255,20,.75)}}
.agx-timer{margin:0 0 8px;font-size:13.5px;font-weight:700;color:rgba(255,255,255,.8)}
.agx-timer.y{color:#FACC15}.agx-timer.r{color:#FF4D4D}
.agx-enjoy{margin:6px 0 0;font-weight:800;color:#fff}
/* card: black glass 70% + glowing red border */
body .owner-od-panel article.bk.ag-live,body .bk.ag-pcard{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:2px solid #39FF14!important;color:#fff;animation:agxCard 1.6s ease-in-out infinite!important}
body .owner-od-panel article.bk.ag-live p,body .owner-od-panel article.bk.ag-live .r1 b,body .owner-od-panel article.bk.ag-live strong,body .owner-od-panel article.bk.ag-live small,body .owner-od-panel article.bk.ag-live .hint{color:#fff!important}
body .bk.ag-pcard p,body .bk.ag-pcard b,body .bk.ag-pcard .r1 b{color:#fff}
body .owner-od-panel article.bk.ag-live .agx-timer.y{color:#FACC15!important}
body .owner-od-panel article.bk.ag-live .agx-timer.r{color:#FF4D4D!important}
body .owner-od-panel article.bk.ag-live .agx-timer{color:rgba(255,255,255,.8)}
/* the old Start Game / Paid / green timer are replaced by End Game while PLAYING */
.ag-live > .pf-actions,.ag-live > .pf-box,.ag-live > .owner-fb-actions,.ag-live .lv-now{display:none!important}
.agx-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.agx-ext{flex:1 1 100%;height:48px;border:0;border-radius:14px;background:#fff!important;color:#000!important;-webkit-text-fill-color:#000;font-weight:900;font-size:15px}
.agx-ext.off{background:rgba(255,255,255,.3)!important;color:#9ca3af!important;-webkit-text-fill-color:#9ca3af;opacity:.7}
.agx-note{flex:1 1 100%;margin:2px 0 0;font-size:12.5px;color:rgba(255,255,255,.8)!important}
/* small neon dot + PLAYING on the My Court Bookings button */
.agx-mini{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:2px 8px;border-radius:999px;background:#39FF14;color:#000;font-size:10.5px;font-weight:900;vertical-align:middle;letter-spacing:.3px}
.agx-mini i{width:7px;height:7px;border-radius:50%;background:#000;animation:agxBlink 1s steps(2,start) infinite}
@media (prefers-reduced-motion:reduce){.agx-badge,.agx-ecg,.agx-dot,.agx-mini i,body .owner-od-panel article.bk.ag-live,body .bk.ag-pcard{animation:none!important}}

/* ===== HOME ONLY: NO SIDE-SCROLL (fixed like Bookings) =====
   Scoped to body.hm (set by route() only while Home is on screen). Nothing here touches other pages. */
html:has(body.hm){overflow-x:hidden;overscroll-behavior-x:none}
body.hm{width:100%;max-width:600px;overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none;touch-action:pan-y}
body.hm #app{width:100%;max-width:100%;overflow-x:hidden;overflow-x:clip;touch-action:pan-y}
/* every Home block: full width, 16px side space, no negative margins */
body.hm #app>*:not(.hero):not(#list){margin-left:16px!important;margin-right:16px!important;width:auto;max-width:calc(100% - 32px)}
body.hm #app>.hero{width:100%;max-width:100%}
/* glow blobs used negative left/right offsets (this was widening the page): keep them inside */
body.hm .lbg-wrap::before{left:0}
body.hm .lbg-wrap::after{right:0}
body.hm .ptc::after{right:0;top:0}
/* headers: one line row, title shrinks, link stays */
body.hm .lb-section-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:10px;margin:24px 0 4px!important}
body.hm .lb-section-head .sh{margin:0;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.hm .lb-section-head>a{flex:none;white-space:nowrap}
body.hm #app>.sh{width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Featured Tournaments: HORIZONTAL row, same as All Courts (swipe left-right + auto-slide one by one) */
body.hm #trow.hs{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;max-width:100%;scroll-snap-type:x proximity}
body.hm #trow.hs .tc{flex:none;width:200px;min-width:200px;max-width:200px;margin:0;padding:12px}
body.hm #trow.hs .tc h3{font-size:15px}
body.hm #trow.hs .tempty{flex:1 0 100%;min-width:0;margin:0}
body.hm .thint{margin-left:16px;margin-right:16px}
/* Open Play block (Home copy) */
body.hm #app>.pphome .ppc,body.hm #app>.pphome .bk,body.hm #app>.pphome .empty{width:100%;margin-left:0!important;margin-right:0!important}
body.hm #app>.pphome .ppc .btn{width:100%}
body.hm #app>.pphome .empty{padding:24px 0}
/* texts wrap instead of being cut */
body.hm #trow h3,body.hm #trow p,body.hm #trow small,body.hm #app>.pphome h3,body.hm #app>.pphome b,body.hm #app>.pphome p,body.hm #app>.pphome small{flex-shrink:1;min-width:0;overflow-wrap:anywhere}
body.hm #app>.pass-nav,body.hm #passnav .pass-nav{margin-left:0;margin-right:0}
/* Bottom nav: 7 tabs, full width, nothing cut */
body.hm #tabs{width:100%;max-width:600px;padding-left:8px;padding-right:8px}
body.hm #tabs a{flex:1 1 0;min-width:0;padding-left:2px;padding-right:2px}
body.hm #tabs a span,body.hm #tabs a{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:clip}

/* All Courts = original horizontal auto-slide row; its swipe stays inside the row and never moves the page */
body.hm #list.hs{overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;max-width:100%}

/* ===== PLAYER PROFILE ONLY: black glass 70% + white text (body.pfp = own Profile page, player role) ===== */
body.pfp{overflow-x:hidden;overflow-x:clip}
body.pfp #app>.pg{padding-left:16px;padding-right:16px;max-width:100%;overflow-x:hidden;overflow-x:clip}
/* cards: Where I earned my points, No-Show/info, Settings */
body.pfp #app>.pg>.bk,body.pfp #app>.pg>.pth{background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);border-radius:20px;box-shadow:0 12px 36px rgba(0,0,0,.35);padding:16px;width:100%;margin:12px 0;color:#fff}
body.pfp #app>.pg>.ptc{margin-left:0;margin-right:0;width:100%}
/* Where I earned my points */
body.pfp .pth h2{color:#fff;font-weight:800;margin:0 0 8px}
body.pfp .pth-row{background:transparent;box-shadow:none;border-radius:0;padding:10px 0;margin:0;border-bottom:1px solid rgba(255,255,255,.15)}
body.pfp .pth-row:last-child{border-bottom:0}
body.pfp .pth-row b,body.pfp .pth-row b.play,body.pfp .pth-row b.rank{color:#FACC15;font-weight:800}
body.pfp .pth-row span{color:#fff;font-weight:800;min-width:0;overflow-wrap:anywhere}
body.pfp .pth-row small{color:rgba(255,255,255,.8)}
body.pfp .pth-empty{background:transparent;box-shadow:none;padding:8px 0;color:rgba(255,255,255,.8)}
/* No-Show / info rows + Settings row */
body.pfp #app>.pg>.bk .r1{gap:10px}
body.pfp #app>.pg>.bk .r1 span{color:rgba(255,255,255,.8);min-width:0;overflow-wrap:anywhere}
body.pfp #app>.pg>.bk .r1 b{color:#fff;font-weight:800;text-align:right;min-width:0;overflow-wrap:anywhere}
body.pfp #app>.pg>.bk p,body.pfp #app>.pg>.bk .hint{color:rgba(255,255,255,.6);font-style:italic}
/* headings like "Settings" */
body.pfp #app>.pg>.sub{color:#fff;font-weight:800}
/* Edit profile / Messages / Log out */
body.pfp #app>.pg>.btn.o{width:100%;margin-left:0;margin-right:0;background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);border-radius:20px;color:#fff;font-weight:800}
/* Tournament Music: ON stays yellow + black text; OFF = glass */
body.pfp #app>.pg>.bk .btn.p{background:#FACC15;color:#000;box-shadow:none}
body.pfp #app>.pg>.bk .btn.o{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff}

/* ===== PLAYER HOME ONLY: Search + Filter sit under the Rank card (.hsr-p exists only for logged-in players) ===== */
body.hm .hsr-p{margin-top:12px!important;margin-bottom:0;width:auto}
body.hm .hsr-p .srow{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px;width:100%;align-items:stretch}
body.hm .hsr-p .srow .search{flex:1 1 0;min-width:0}
body.hm .hsr-p .srow .search input{height:48px;padding:0 12px 0 40px;background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);border-radius:16px;color:#fff;box-shadow:none;max-width:100%}
body.hm .hsr-p .srow .search input::placeholder{color:rgba(255,255,255,.6)}
body.hm .hsr-p .srow .si{left:14px}
body.hm .hsr-p .srow .fdd{flex:0 0 110px;width:110px;min-width:0}
body.hm .hsr-p .fbtn{height:48px;width:100%;background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2);border-radius:16px;color:#fff;box-shadow:none;justify-content:center;padding:0 8px}
body.hm .hsr-p .fbtn b,body.hm .hsr-p .fbtn span,body.hm .hsr-p .fbtn em{color:#fff}
/* Rank card directly under Welcome */
body.hm #ptcmini{margin-top:12px!important;margin-bottom:0}
/* Rank icon: no yellow circle, plain paddle (Home rank card) */
#ptcmini .ptc-ic{background:transparent!important;box-shadow:none;padding:0;border-radius:0;width:44px;height:44px;font-size:36px;line-height:1;display:flex;align-items:center;justify-content:center}

/* ===== Background Music 🔊/🔇 button (Home header, beside the Bell) ===== */
#bgmbtn{order:1;flex:none;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(14,59,46,.95);color:#fff;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.3);cursor:pointer;-webkit-tap-highlight-color:transparent}
.logo:has(#bgmbtn) #ntw{order:2}
.logo:has(#bgmbtn) .lb{max-width:calc(100% - 150px)}
@media(max-width:380px){#bgmbtn{width:40px;height:40px;font-size:18px}.logo:has(#bgmbtn) .lb{max-width:calc(100% - 140px)}}

/* ===== FOOTER: bottom nav LOCKED at the bottom (mobile) + "Made with" gold pill. Style only. ===== */
@media(max-width:759px){
  #tabs:not([data-owner-nav="1"]){position:fixed!important;top:auto!important;bottom:0!important;left:50%!important;right:auto!important;transform:translate3d(-50%,0,0)!important;width:100%;max-width:600px;z-index:100;height:calc(70px + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom)!important;align-items:center;background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;border-top:1px solid rgba(255,255,255,.2)!important;will-change:transform}
  #ftr{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
}
#ftr .ftr-pill{display:inline-block;max-width:100%;background:rgba(0,0,0,.5);border:1px solid #FFD700;border-radius:20px;padding:6px 16px;font-size:13px;font-weight:600;color:#fff;box-shadow:0 0 12px rgba(255,215,0,.3);text-shadow:none}
#ftr .ftr-name{color:#FFD700;font-weight:800;letter-spacing:.5px;text-decoration:none;border:0}
#ftr a.ftr-name{text-decoration:none!important;border:0;cursor:pointer}
#ftr a.ftr-name:hover,#ftr a.ftr-name:active{opacity:.85;text-decoration:none!important}

/* ===== JOIN TOURNAMENT / TOURNAMENT DETAILS = BLACK GLASS 70% + WHITE TEXT (Player + Visitor, same design). Style only. ===== */
.tw .ic,.tw .tsec{background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:20px;box-shadow:0 12px 32px rgba(0,0,0,.35);color:#fff}
.tw .ic,.tw .tsec:not(.mgp){border:1px solid rgba(255,255,255,.25)}
/* top cards: Prize Pool / Max Slots / Slots Taken / Entry Fee */
.tw .ic small{color:rgba(255,255,255,.7)}
.tw .ic b{color:#fff;font-weight:700}
/* section titles + text */
.tw .tsec h2{color:#fff;font-weight:800}
.tw .tsec p,.tw .tsec li,.tw .tsec .tdn,.tw .tsec .tdm{color:#fff}
.tw .tsec .hint{color:rgba(255,255,255,.7)}
.tw .tsec ol.tbr li,.tw .tsec ul.tbl2 li{color:#fff}
.tw .tsec .tbdl b{color:#fff}
.tw .tsec .tbred{color:#ff6b6b}
/* Tournament Details rows: grey label -> white 70%, value -> pure white, divider -> white 15% */
.tw .tdet .tdl{color:rgba(255,255,255,.7)}
.tw .tdet .tdv,.tw .tdet .tdv b{color:#fff;font-weight:700}
.tw .tdet .tdv small{color:rgba(255,255,255,.7)}
.tw .tdet .tdr{border-bottom:1px solid rgba(255,255,255,.15)}
.tw .tdet .tdr:last-child{border:0}
/* category slots / prizes / podium lists */
.tw .tsec .tbc{border-bottom:1px solid rgba(255,255,255,.15)}.tw .tsec .tbc:last-child{border:0}
.tw .tsec .tbc b{color:#fff}.tw .tsec .tbc small{color:rgba(255,255,255,.7)}
.tw .tsec .tbp{border-bottom:1px solid rgba(255,255,255,.15)}.tw .tsec .tbp:last-child{border:0}
.tw .tsec .tbp:not(.gold) b{color:#fff}.tw .tsec .tbp:not(.gold) small{color:rgba(255,255,255,.7)}
.tw .tsec .tbp:not(.gold) .tbpn{background:rgba(255,255,255,.15);color:#fff}
.tw .tsec .pod div{background:rgba(255,255,255,.1)}.tw .tsec .pod b{color:#fff}.tw .tsec .pod small{color:#FFC800}
.tw .tsec .pod b small{color:rgba(255,255,255,.7)}
/* Freebies pills: black + yellow text (readable on glass) */
.tw .tbchips span{background:rgba(0,0,0,.85);color:#FFC800;border:1px solid rgba(255,200,0,.35)}
/* Registered players list + search + "view all" */
.tw .tsec .prow{border-bottom:1px solid rgba(255,255,255,.15)}.tw .tsec .prow:last-child{border:0}
.tw .tsec .prow b{color:#fff}.tw .tsec .prow small,.tw .tsec .prow b .tnm{color:rgba(255,255,255,.7)}
.tw .tsec .prow b .tcd{color:rgba(255,255,255,.85)}.tw .tsec .prow b .tcd.mine{color:#86efac}
.tw .tmore{color:#fff}
.tw .trq{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:#fff}
.tw .trq::placeholder{color:rgba(255,255,255,.6)}
/* kept as is: yellow JOIN button (.tbtn), progress fill (yellow), light-grey track on the top cards */

/* ===== COURT PASALO = BLACK GLASS 70% + WHITE TEXT (same style as Join Tournament). Style only. ===== */
#app>.pg:has(#passList) .bk,
#app>.pg:has(#passList)>a.btn.o{background:rgba(0,0,0,.7)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.25)!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(0,0,0,.35)!important;color:#fff!important}
#app>.pg:has(#passList) .bk .r1>b{color:#fff!important;font-weight:800}
#app>.pg:has(#passList) .bk p{color:#fff!important;font-weight:600}
#app>.pg:has(#passList) .bk small,#app>.pg:has(#passList) .bk .hint{color:rgba(255,255,255,.75)!important}
#app>.pg:has(#passList)>a.btn.o{font-weight:800;text-align:center;text-decoration:none}
/* kept as is: yellow "Available" badge (.st), yellow Take/Request button (.btn.p), header, footer pill, bottom nav */


/* ===== Owner Edit Court only: 70% black glass, white text ===== */
#sheet .court-edit-panel.owner-glass{background:rgba(0,0,0,.7);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.18);color:#fff}
.court-edit-panel.owner-glass,.court-edit-panel.owner-glass *:not(.btn):not(.st){color:#fff}
.court-edit-panel.owner-glass .sh-h{border-color:rgba(255,255,255,.18)}
.court-edit-panel.owner-glass input:not([type=checkbox]),.court-edit-panel.owner-glass select,.court-edit-panel.owner-glass textarea{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.28)}
.court-edit-panel.owner-glass input::placeholder{color:rgba(255,255,255,.6)}
.court-edit-panel.owner-glass select option{background:#111;color:#fff}
.court-edit-panel.owner-glass .hint,.court-edit-panel.owner-glass small{color:rgba(255,255,255,.8)}

/* Open Play > Requests > Approved card: "Play Arrived - Paid" = yellow button */
.owner-fb-actions .btn.owner-pay-yellow:not(.tu-btn):not(.pf-grey){background:#FFD700;color:#000;font-weight:800;border:0;border-radius:14px;width:100%;box-shadow:0 6px 16px rgba(255,215,0,.35)}


/* Booking status (Owner > My Court Bookings): WAITING FOR PLAYER (yellow), Mark as Arrived (yellow), Mark as No Show (red) */
body .owner-od-panel .bk .pf-box .pf-pill.pf-wait{background:#FFD700!important;color:#000!important;-webkit-text-fill-color:#000!important}
body .owner-od-panel .bk .pf-actions .btn.pf-start{background:#FFD700!important;color:#000!important;-webkit-text-fill-color:#000!important;font-weight:800;box-shadow:0 6px 16px rgba(255,215,0,.35)}
body .owner-od-panel .bk .pf-actions .btn.pf-nosr,body .owner-od-panel .bk .pf-actions .btn.pf-nosr:disabled{background-color:#dc2626!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:800!important;opacity:1!important}

/* Waiting card: 3 buttons (yellow Arrived / green Arrived - Paid / red No Show), full width each */
body .owner-od-panel .bk .pf-actions .btn.pf-start,body .owner-od-panel .bk .pf-actions .btn.pf-paidarr,body .owner-od-panel .bk .pf-actions .btn.pf-nosr{flex:1 1 100%;width:100%;height:46px}
body .owner-od-panel .bk .pf-actions .btn.pf-paidarr{background:#16a34a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:800;box-shadow:0 6px 16px rgba(22,163,74,.35)}

/* CONFIRMED - Papunta na badge: black text */
body .owner-od-panel .bk .pf-box .pf-pill.pf-green{color:#000!important;-webkit-text-fill-color:#000!important}

/* Court Pasalo: MESSAGE THIS OWNER button (glass) */
.pass-card .btn.pass-msg-btn{background:rgba(0,0,0,0.7)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.3)!important;color:white!important;-webkit-text-fill-color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.3px;box-shadow:none}

/* ===== PLAYER NAV BADGES v2 (player only; owner nav has data-owner-nav="1" and is not affected) ===== */
#tabs:not([data-owner-nav="1"]) a[data-t="bookings"],#tabs:not([data-owner-nav="1"]) a[data-t="openplay"],#tabs:not([data-owner-nav="1"]) a[data-t="chats"]{position:relative}
#tabs:not([data-owner-nav="1"]) a > .pbxb{position:absolute;top:0;left:calc(50% + 4px);display:flex!important;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF2D2D!important;color:#fff!important;font-size:11px!important;font-weight:800;line-height:1;box-sizing:border-box;pointer-events:none;z-index:6;overflow:visible;text-overflow:clip;animation:none}

/* ===== PLAYER RED DOTS (MLBB style): dot only, no layout change (absolute) ===== */
.pbxd-host{position:relative}
.pbxd{position:absolute;display:block;width:12px;height:12px;border-radius:50%;background:#FF2D2D;border:2px solid #fff;box-sizing:border-box;pointer-events:none;z-index:7}
.pbxd.card{top:8px;right:8px}
.pbxd.row{right:8px;top:50%;margin-top:-6px}
.pbxd.in{right:0;top:6px}
/* footer logo + copyright */
#ftr #ftr-logo{display:block;width:50px;height:50px;border-radius:50%;object-fit:cover;margin:0 auto 10px}
#ftr .ftr-copy{margin-top:10px;font-size:11px;font-weight:500;color:#9ca3af;text-shadow:none}
/* Edit Court: "+ Magdagdag ng ibang rate" button text visible (black) */
button.btn.o.rtadd[data-id="c"]{color:#000000!important;font-weight:800!important}
/* Edit Court: facilities text black, close button red with white X (colors only) */
.court-edit-panel .fac label{color:#000000!important}
.court-edit-panel .sh-h button[data-act="x"]{background:#E53935!important;color:#FFFFFF!important;font-weight:900!important;border:0!important}

/* BUG FIX: joined player's Code Number = white bold text (readable on the dark background; background not changed) */
.tw .tcode .tcn,.tw .tsec .prow b .tcd b{color:#FFFFFF!important;font-weight:800!important;text-shadow:0 1px 3px rgba(0,0,0,.6)}

/* BUG FIX: Court page per-hour list (Available = green tap to book, Booked = grey) */
.hsl{display:grid;gap:8px;padding:4px 20px}
.hsr{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:10px 14px;border-radius:14px;border:0;font:inherit;font-size:14px;text-align:left}
.hsr b{font-weight:800}.hsr span{font-weight:700}.hsr em{font-style:normal;font-weight:900}
.hsr.ok{background:#16a34a;color:#fff;cursor:pointer}.hsr.ok:active{transform:scale(.98)}
.hsr.no{background:#e5e7eb;color:#6b7280;cursor:not-allowed;pointer-events:none}

/* Share icon on the court page (top-right of the photo); the Open/Closed badge moves left of it */
.shr{position:absolute;top:calc(14px + env(safe-area-inset-top));right:14px;z-index:3;width:44px;height:44px;border-radius:50%;background:#fff;color:#0E3B2E;display:flex;align-items:center;justify-content:center;box-shadow:var(--sh);border:0;cursor:pointer;padding:0}
.shr:active{transform:scale(.94)}
.cw .gw .bd{right:70px}
@media (min-width:760px){.shr{top:16px;right:16px}.cw .gw .bd{right:72px}}

/* Share icon on the owner profile header */
.pf .shr{top:0;right:0}

/* ===== COURT VISIT PAGE (the one with "Book now"): black background + glass box + capacity bar (only body.cvp) ===== */
html:has(body.cvp),body.cvp{background:#0A0A0A!important}
body.cvp #bgl{background:#0A0A0A!important}
body.cvp .cw .body{background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.20);border-radius:20px;color:#fff}
body.cvp #app .body .sh,body.cvp #app .body .sh span,body.cvp #app .body .lg,body.cvp .body .ct,body.cvp .body .loc,body.cvp .body .rrow,body.cvp .body .rrow b,body.cvp .body .pt small,body.cvp .body .pt b,body.cvp .body .pt em,body.cvp .body .rv,body.cvp .body .rv b,body.cvp .body .note,body.cvp .body .fl,body.cvp .body label{color:#fff;text-shadow:none}
body.cvp .body .fac span,body.cvp .body .pt,body.cvp .body .rv,body.cvp .body .tg,body.cvp .body .btn.o{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.20);color:#fff;box-shadow:none}
body.cvp .body .pt div{border-bottom-color:rgba(255,255,255,.15)}
.bkcap{margin:18px 20px 0}
.bkcap-t{font-size:15px;font-weight:800;color:#fff;margin-bottom:8px}
.bkcap-bar{height:12px;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden}
.bkcap-bar i{display:block;height:100%;border-radius:999px;background:#FFC700}
.bkcap small{display:block;margin-top:6px;font-size:12px;color:#fff}
@supports not (backdrop-filter:blur(1px)){body.cvp .cw .body{background:rgba(40,40,40,.85)}}

/* ===== COURT VISIT PAGE (body.cvp only): Points rules + Ratings & reviews + bottom bar = glass, white text ===== */
/* Points card */
body.cvp .body .ptr{background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.20);border-radius:20px;box-shadow:none;color:#fff}
body.cvp .body .ptr h2{color:#FFFFFF;text-shadow:none}
body.cvp .body .ptr-sub{color:#FFFFFF}
body.cvp .body .ptr-sub b{color:#FFC700;font-weight:800}
body.cvp .body .ptr-row{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#FFFFFF}
body.cvp .body .ptr-row span{color:#FFFFFF;font-weight:800}
body.cvp .body .ptr-row span small{color:#B0B0B0;font-weight:500;font-size:11px}
body.cvp .body .ptr-note{background:#fff8d6;color:#111111}
body.cvp .body .ptr-more{color:#FFFFFF}
/* Ratings & reviews */
body.cvp .body .rvf{background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.20);border-radius:20px;box-shadow:none}
body.cvp .body .sr button{color:#9CA3AF}
body.cvp .body .sr button.on{color:#FFC700}
body.cvp .body .rvf textarea{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.20);color:#FFFFFF}
body.cvp .body .rvf textarea::placeholder{color:#9CA3AF;opacity:1}
body.cvp .body .rvf .fl,body.cvp .body .rvf input[type=file]{color:#FFFFFF}
body.cvp .body .rvf input[type=file]{background:transparent;border:0;box-shadow:none}
body.cvp .body .rvf input[type=file]::file-selector-button{background:#FFC700;color:#000;border:0;border-radius:10px;padding:8px 14px;font-weight:800;font:inherit;font-weight:800;cursor:pointer;margin-right:10px}
body.cvp .body .rv span{color:#FFC700}
body.cvp .body p.note{color:#FFFFFF!important}
/* Bottom bar: black with white "From" text (Book now stays yellow) */
body.cvp .cta{background:#0A0A0A;border:1px solid rgba(255,255,255,.20);box-shadow:none}
body.cvp .cta>div,body.cvp .cta small,body.cvp .cta b{color:#FFFFFF}

/* ===== COURT PASALO card: attention animations only (design, colors and text unchanged) ===== */
.pass-nav a{animation:pnPulse 2s ease-in-out infinite}
@keyframes pnPulse{0%,100%{transform:scale(1);box-shadow:0 4px 14px rgba(245,158,11,.25)}50%{transform:scale(1.02);box-shadow:0 4px 14px rgba(245,158,11,.25),0 0 16px 3px rgba(245,158,11,.55)}}
.pass-nav .pw{display:inline-block;transform-origin:50% 60%;filter:drop-shadow(0 0 5px rgba(251,191,36,.9));animation:pnShake 2.5s ease-in-out infinite}
@keyframes pnShake{0%,20%,100%{transform:rotate(0)}3%{transform:rotate(-14deg)}7%{transform:rotate(12deg)}11%{transform:rotate(-10deg)}15%{transform:rotate(8deg)}18%{transform:rotate(-4deg)}}
.pass-nav em{position:relative;overflow:hidden}
.pass-nav em::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent);transform:translateX(-130%);animation:pnShimmer 2s ease-in-out infinite}
@keyframes pnShimmer{0%{transform:translateX(-130%)}60%,100%{transform:translateX(330%)}}
.pass-nav .pw-ar{display:inline-block;animation:pnArrow 1s ease-in-out infinite alternate}
@keyframes pnArrow{from{transform:translateX(0)}to{transform:translateX(4px)}}
.pass-nav .pt2 b.in{animation:pnIn .8s cubic-bezier(.2,1.25,.4,1) both}
@keyframes pnIn{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.pass-nav a,.pass-nav .pw,.pass-nav em::after,.pass-nav .pw-ar,.pass-nav .pt2 b.in{animation:none}}

/* ===== GCASH PAYMENT (court visit page, owner settings, receipts). Dark theme, same look as the court page ===== */
.gcp{margin:0}
.gcp-opt{display:flex;align-items:center;gap:12px;margin:10px 20px;padding:15px 16px;border-radius:20px;border:1.5px solid #8fd14f;background:#D6F5C3;color:#1e5a17;font-weight:800;letter-spacing:.4px}
.gcp-opt i{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid #1e5a17;display:grid;place-items:center;background:transparent}
.gcp-opt i::after{content:"";width:10px;height:10px;border-radius:50%;background:#1e5a17}
.gcp-box{margin:10px 20px;padding:16px;border-radius:20px;background:#2A2A2A;border:1.5px solid #8fd14f;color:#fff}
.gcp-acc{background:#333;border-radius:14px;padding:6px 14px}
.gcp-r{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0}
.gcp-r span{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#D1D5DB}
.gcp-r b{color:#fff;text-align:right;word-break:break-word}
.gcp-r b.num{color:#FFD400;letter-spacing:.5px}
.gcp-t{margin:14px 0;color:#E5E7EB;font-size:14px;line-height:1.5}
.gcp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#FFD400;color:#000;border:0;border-radius:14px;padding:12px 18px;font:inherit;font-weight:800;cursor:pointer;line-height:1.2}
.gcp-h{margin:16px 20px 0;color:#fff;font-size:15px;font-weight:800}
.gcp-up{display:flex;align-items:center;gap:12px;margin:10px 20px 0;padding:12px;border:1.5px dashed #8fd14f;border-radius:20px;background:#2A2A2A;color:#E5E7EB;cursor:pointer}
.gcp-fn{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gcp-th{display:block;margin:10px 20px 0;padding:0;width:96px;height:96px;border:1.5px solid #8fd14f;border-radius:14px;overflow:hidden;background:#2A2A2A;cursor:zoom-in}
.gcp-th img{width:100%;height:100%;object-fit:cover;display:block}
.gcp-s{margin:8px 20px 14px;color:#D1D5DB;font-size:12px}
.gcp-note{margin:14px 20px;padding:12px 14px;border-radius:16px;background:#2A2A2A;border:1.5px solid #8fd14f;color:#fff;font-size:13px;font-weight:600;line-height:1.45}
.gcp-note.no{border-color:#FFD400}.gcp-note a{color:#FFD400;text-decoration:underline}
/* owner: Payment Settings */
.gcset{margin:18px 0 6px;padding:14px;border-radius:18px;background:#2A2A2A;border:1.5px solid #8fd14f;color:#fff;display:grid;gap:10px}
.gcset h3{margin:0;font-size:16px;font-weight:800;color:#fff}.gcset .hint,.gcset .fl{color:#E5E7EB}
.gcset input[type=text],.gcset input[type=tel],.gcset input:not([type]){width:100%}
.gcset-qr{display:grid;place-items:center;gap:6px;min-height:90px;border:1.5px dashed #8fd14f;border-radius:14px;padding:8px;color:#D1D5DB}
.gcset-qr img{max-width:180px;max-height:180px;border-radius:10px;background:#fff}
.gcset-up{display:flex;justify-content:center;align-items:center;cursor:pointer}
/* owner / admin: receipt on bookings */
.gcrc{display:flex;gap:12px;align-items:flex-start;margin-top:10px;padding:10px;border-radius:16px;background:#2A2A2A;border:1.5px solid #8fd14f;color:#fff;text-align:left}
.gcrc-th{flex:none;width:76px;height:76px;padding:0;border:0;border-radius:10px;overflow:hidden;background:#111;cursor:zoom-in}
.gcrc-th img{width:100%;height:100%;object-fit:cover;display:block}
.gcrc-b{min-width:0;flex:1}.gcrc-b small{display:block;color:#D1D5DB;font-weight:600;margin-bottom:4px}
.gcb{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.4px}
.gcb.ok{background:#D6F5C3;color:#1e5a17}.gcb.no{background:#fecaca;color:#7f1d1d}.gcb.wait{background:#FFD400;color:#000}
.gcrc-a{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.gcrc-a .gcp-btn,.gcrc-rej{padding:10px 14px;font-size:13px;border-radius:12px}
.gcrc-rej{background:#dc2626;color:#fff;border:0;font:inherit;font-weight:800;font-size:13px;cursor:pointer}
/* big popup: QR code / receipt */
#gclb{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px}
.gclb-bd{position:absolute;inset:0;background:rgba(0,0,0,.85)}
.gclb-c{position:relative;max-width:min(94vw,520px);max-height:92vh;overflow:auto;background:#2A2A2A;border:1.5px solid #8fd14f;border-radius:20px;padding:16px;color:#fff;text-align:center}
.gclb-c img{display:block;max-width:100%;max-height:74vh;margin:8px auto 0;border-radius:12px;background:#fff}
.gclb-x{position:absolute;right:8px;top:8px;width:34px;height:34px;border-radius:50%;background:#FFD400;color:#000;border:0;font-weight:800;z-index:2;cursor:pointer}
.gclb-t{margin:0;padding:34px 14px 12px;font-weight:700;line-height:1.5}
.gclb-cap{margin:12px 0 0}.gclb-cap span{color:#FFD400;font-weight:800;letter-spacing:.5px}

/* ===== v61: OPEN PLAY PASALO (additive). Same dark #2A2A2A / light green #D6F5C3 / yellow #FFD400 as the GCash cards ===== */
.pass-nav.opp-nav{margin-top:10px}   /* the card itself uses .pass-nav = same look + same animations as COURT PASALO */
.opp-tag{display:inline-block;margin:6px 0 0;padding:3px 10px;border-radius:99px;background:#FFD400;color:#000;font-size:11px;font-weight:800;letter-spacing:.6px}
.opp-card p{margin-top:8px}
.opp-card .opp-pend{width:100%;height:auto;min-height:46px;padding:10px 12px;white-space:normal;line-height:1.25;font-size:12.5px;opacity:1;background:#FFD400;color:#000;cursor:default}
h2.opp-ttl{letter-spacing:1.2px;font-weight:800}
.opp-sec{margin:20px 0 6px}
.opp-h{margin:0 0 10px;color:#fff;font-size:19px;font-weight:800;letter-spacing:.6px;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opp-sub{margin:14px 0 6px;color:#D6F5C3;font-size:14px;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.opp-slot{margin:10px 0;padding:16px;border-radius:18px;background:#2A2A2A;border:1.5px solid #8fd14f;color:#fff}
.opp-r1{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.opp-r1 b{min-width:0;font-size:16px;font-weight:800;color:#fff}
.opp-r1 .gcb{flex:none;text-align:center}
.opp-slot small{display:block;margin-top:8px;color:#D1D5DB;font-weight:600;line-height:1.45}
.opp-slot .opp-sell{width:100%;margin-top:12px}
.opp-note{margin:10px 0 0;color:#FFD400;font-size:12.5px;font-weight:700;line-height:1.4}
.gcb.gr{background:#4b4b4b;color:#E5E7EB}
.apbadge.oppb{top:-8px;left:-4px}

/* ===== v62: red number badge beside "Laro Ko" for my PENDING GCash payment (additive; sits on the right, pasalo badge stays on the left) ===== */
.apbadge.opgcb{top:-8px;right:-4px}
#app [data-act="opxtab"][data-v="mine"]{position:relative}

/* ===== v63: Visit Court bottom bar = "Book a Court" + "Open Play" side by side (same yellow buttons, same size) ===== */
.cta.cta2{gap:8px}
.cta.cta2 .btn{font-size:14px;padding-left:6px;padding-right:6px;white-space:nowrap}
.cta.cta2>div b{font-size:22px}

/* v64: Visit Court is display only (Facilities, Price, Capacity, Schedule, Time slots) */
.vc-ro,.vc-ro *{pointer-events:none!important;cursor:default!important;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
/* v64: big GCash QR popup */
.gclb-c img.gclb-qr{width:100%;min-width:min(78vw,320px);max-width:480px;max-height:78vh;object-fit:contain}

/* v65: Duration option that does not fit (past Close Time / conflict) is grayed out */
.chip:disabled,.chip[disabled]{background:#E5E7EB;color:#9CA3AF;border-color:#E5E7EB;cursor:not-allowed;opacity:1}
