/* © 2026 Unlimited Sport (unlimited-sport.pl). Wszelkie prawa zastrzeżone. Znak: US-HUB-7Q2K-2026 */
/* Unlimited Sport Hub — wygląd v2: przejrzyste karty, nowoczesne kafle i przyciski.
   Nakłada się na app.css (ładowany po nim), więc nadpisuje tylko to, co trzeba. */
:root{
  --surface:rgba(255,255,255,.045);
  --surface-2:rgba(255,255,255,.075);
  --surface-solid:#1f2252;
  --stroke:rgba(255,255,255,.08);
  --stroke-2:rgba(255,255,255,.14);
  --grad:linear-gradient(135deg,#7c5cff 0%,#b44ad0 55%,#e63888 100%);
  --grad-soft:linear-gradient(135deg,rgba(124,92,255,.22),rgba(230,56,136,.16));
  --ink-300:#c9c8de;
  --shadow-card:0 10px 30px -18px rgba(0,0,0,.7);
  --radius-xl:24px;
}
body{
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124,92,255,.18) 0%, transparent 55%),
    radial-gradient(90% 50% at 0% 10%, rgba(230,56,136,.10) 0%, transparent 60%),
    linear-gradient(180deg,#1d1f52 0%,#171a3e 45%,#141536 100%);
  background-attachment:fixed;
}

/* ---------- ekrany ---------- */
.screen{padding:8px 18px calc(124px + env(safe-area-inset-bottom,0px));}
.screen.active{animation:screenin .28s ease-out;}
@keyframes screenin{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
.topbar{padding:14px 2px 8px;}
.topbar h1{font-size:24px; font-weight:700; letter-spacing:-.01em;}
.topbar .sub{font-size:12.5px; color:var(--ink-400); margin-top:4px; line-height:1.45;}
.backrow{
  display:inline-flex; align-items:center; gap:6px; margin-bottom:10px;
  padding:6px 12px 6px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--stroke);
  font-size:12px; font-weight:600; color:var(--ink-300);
}

/* ---------- przełącznik widoku (trener/admin) ---------- */
.viewbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 18px; position:sticky; top:0; z-index:40;
  background:rgba(23,26,62,.78); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--stroke);
}
.viewbar .label{font-size:10.5px; font-weight:700; color:var(--ink-600); letter-spacing:.12em; text-transform:uppercase;}
.roleswitch{background:var(--surface-2); border:1px solid var(--stroke);}
.roleswitch button{padding:6px 14px; font-size:12px;}
.roleswitch button.active{background:var(--grad); box-shadow:0 4px 14px -6px rgba(180,74,208,.8);}

/* ---------- nagłówek ekranu głównego ---------- */
.apphead{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 2px 14px;}
.apphead .greet{font-size:12.5px; color:var(--ink-400); margin:0 0 2px; font-weight:500;}
.apphead h1{font-size:26px; margin:0; font-weight:700; letter-spacing:-.015em; line-height:1.15;}
.apphead .sub{margin-top:3px; color:var(--ink-600);}
.headactions{display:flex; gap:8px; flex:none; padding-top:4px;}
.iconbtn{
  position:relative; width:42px; height:42px; border-radius:14px; flex:none; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--stroke); color:var(--ink-100);
  display:flex; align-items:center; justify-content:center; transition:background .15s, transform .12s;
}
.iconbtn:hover{background:rgba(255,255,255,.11);}
.iconbtn:active{transform:scale(.94);}
.iconbtn.avatar{background:var(--grad); border:none; font-family:'Poppins',sans-serif; font-weight:700; font-size:14px; color:#fff; border-radius:50%;}
.badge{
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:var(--magenta-500); color:#fff; font-size:10px; font-weight:800; line-height:18px; text-align:center;
  box-shadow:0 0 0 2px #191c44;
}
.badge[hidden]{display:none;}

/* ---------- hero: najbliższe zajęcia ---------- */
.nextcard{
  position:relative; overflow:hidden; border-radius:var(--radius-xl); padding:20px 20px 18px; margin-bottom:12px;
  background:linear-gradient(150deg,#5a36d6 0%,#8a2a92 55%,#371d6a 100%);
  box-shadow:0 18px 40px -20px rgba(124,92,255,.75); cursor:pointer;
}
.nextcard::before{content:""; position:absolute; right:-50px; top:-70px; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle,rgba(255,120,190,.45),transparent 70%);}
.nextcard::after{content:""; position:absolute; left:-40px; bottom:-80px; width:180px; height:180px; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.10),transparent 70%);}
.nextcard > *{position:relative; z-index:1;}
.nextcard .eyebrow{display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; font-weight:700; letter-spacing:.12em; color:rgba(255,255,255,.78); text-transform:uppercase;}
.nextcard .countdown{font-size:11px; font-weight:700; letter-spacing:0; text-transform:none; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.18); color:#fff; white-space:nowrap;}
.nextcard h2{font-family:'Poppins',sans-serif; font-size:21px; line-height:1.2; font-weight:700; margin:10px 0 4px;}
.nextcard .when{font-size:13px; color:rgba(255,255,255,.85); font-weight:600;}
.nextcard .where{font-size:12px; color:rgba(255,255,255,.7); margin-top:2px;}
.nextcard .chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px;}
.nextcard .chip{font-size:11px; font-weight:600; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; display:inline-flex; align-items:center; gap:5px;}
.nextcard.empty{background:linear-gradient(150deg,#2a2f67 0%,#24275c 100%); box-shadow:none; border:1px solid var(--stroke-2);}
.nextcard.empty h2{font-size:18px;}
.nextcard .cta{margin-top:14px; display:inline-flex; align-items:center; gap:6px; padding:10px 16px; border-radius:12px; background:var(--grad); color:#fff; font-weight:700; font-size:12.5px; border:none; cursor:pointer;}
.nextcard .dash-two{display:flex; gap:10px; justify-content:center;}
.nextcard .dash-two .cta{flex:1; justify-content:center;}

/* ---------- portfel (tokeny / punkty) ---------- */
.wallet{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:14px;}
.wallet .wcell{
  background:var(--surface); border:1px solid var(--stroke); border-radius:16px; padding:11px 12px; cursor:pointer;
  text-align:left; color:var(--ink-100); transition:background .15s, border-color .15s;
}
.wallet .wcell:hover{background:var(--surface-2); border-color:var(--stroke-2);}
.wallet .wcell .num{font-family:'Poppins',sans-serif; font-size:20px; font-weight:700; line-height:1.1; display:flex; align-items:center; gap:6px;}
.wallet .wcell .num i{width:8px; height:8px; border-radius:50%; flex:none; display:inline-block;}
.wallet .wcell .lbl{font-size:10.5px; color:var(--ink-400); margin-top:3px; line-height:1.25;}
.wallet .wcell.low .num{color:var(--warn);}

/* ---------- szybkie akcje ---------- */

/* ---------- sloty modułów (kolejność ustawiana przez US.on(..., {order})) ---------- */
.slots{display:flex; flex-direction:column;}
.slots > [data-slot]:empty{display:none;}
/* Profil: bloki z modułów (maile, społeczność, powiadomienia, regulaminy) nie mogą się stykać */
#profileExtra{gap:12px;}

/* ---------- nagłówki sekcji ---------- */
.sectiontitle{margin:24px 2px 10px; align-items:center;}
.sectiontitle h3{font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-400);}
.sectiontitle .more{font-size:12px; font-weight:600; color:var(--violet-300); padding:4px 0;}
.sectiontitle .more:hover{color:#fff;}

/* ---------- przyciski ---------- */
.btn{
  min-height:46px; padding:12px 18px; border-radius:14px; font-size:12.5px; letter-spacing:.04em;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:1.2;
  transition:transform .12s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary{background:var(--grad); box-shadow:0 10px 24px -12px rgba(180,74,208,.9), inset 0 1px 0 rgba(255,255,255,.18);}
.btn-primary:hover{filter:brightness(1.08);}
.btn-ghost{background:var(--surface-2); border:1px solid var(--stroke-2); color:var(--ink-100);}
.btn-ghost:hover{background:rgba(255,255,255,.12);}
.btn-danger{background:rgba(255,92,122,.12); border:1px solid rgba(255,92,122,.28);}
.btn:disabled{box-shadow:none; filter:saturate(.4);}
.btn.busy{position:relative; color:transparent !important; pointer-events:none;}
.btn.busy::after{content:""; position:absolute; width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg)}}
/* małe przyciski w wierszach list */
.classrow .btn, .clientrow .btn, .adminnewsrow .btn, .histrow .btn, .leadrow .btn, .goalactions .btn, .attrow .btn{min-height:34px; border-radius:11px;}

/* ---------- pola formularzy ---------- */
.formrow label{font-size:11.5px; color:var(--ink-400); font-weight:600;}
.formrow input, .formrow select, .formrow textarea, .calcrow input, .calcrow select, .measform input{
  min-height:46px; border-radius:13px; padding:11px 13px; font-size:14px;
  background:rgba(16,18,52,.45); border:1px solid var(--stroke-2); color:var(--ink-100); font-family:inherit;
  transition:border-color .15s, box-shadow .15s;
}
.formrow textarea{min-height:84px;}
.formrow input:focus, .formrow select:focus, .formrow textarea:focus, .calcrow input:focus, .calcrow select:focus, .measform input:focus{
  outline:none; border-color:rgba(166,139,255,.7); box-shadow:0 0 0 3px rgba(124,92,255,.22);
}
.formrow.checkboxrow label{font-size:12.5px; line-height:1.4; color:var(--ink-300);}
.formrow.checkboxrow input{min-height:0; width:18px; height:18px; accent-color:#9b6bff; flex:none;}
.assigncoach{min-height:36px; border-radius:11px; background:rgba(16,18,52,.45); border-color:var(--stroke-2);}

/* ---------- karty ---------- */
.statcard, .statmini, .settlecard, .formcard, .campcard, .calcwrap, .trendchart, .goalexplainer, .bodymapwrap {
  background:var(--surface); border:1px solid var(--stroke); box-shadow:var(--shadow-card);
}
.statcard, .settlecard, .formcard, .campcard, .calcwrap, .trendchart{border-radius:18px;}
.statmini{border-radius:16px; padding:13px 12px;}
.statmini .num{font-size:21px;}
.statmini .lbl{font-size:10.5px; color:var(--ink-400); line-height:1.3;}
.statcard{padding:15px;}
.statcard .l{color:var(--ink-400);}
.settlecard{padding:6px 16px;}
.settlecard .row{padding:11px 0; border-bottom-color:var(--stroke); gap:10px;}
.settlecard .row span:first-child{color:var(--ink-300);}
.settlecard .row:last-child span:first-child{color:var(--ink-100);}
.formcard{padding:18px;}
.campcard{padding:16px 16px 14px; transition:border-color .15s, background .15s;}
.campcard:hover{border-color:var(--stroke-2);}
.campcard .h{font-family:'Poppins',sans-serif; font-size:15px; font-weight:600;}
.campcard .price{font-size:18px;}
.statrow{gap:8px; margin-bottom:14px;}
.statgrid{gap:8px;}

/* ---------- wiersze list: karty zamiast linii ---------- */
.classrow{
  gap:12px; padding:13px 14px; margin-bottom:8px; border-radius:16px;
  background:var(--surface); border:1px solid var(--stroke); border-bottom:1px solid var(--stroke);
  transition:background .15s, border-color .15s, transform .12s;
}
.classrow:last-child{border-bottom:1px solid var(--stroke);}
.classrow:hover{background:var(--surface-2); border-color:var(--stroke-2);}
.classrow:active{transform:scale(.99);}
.classrow .time{width:auto; min-width:56px; font-family:'Poppins',sans-serif; font-size:13px; color:var(--ink-100); font-weight:600;}
.classrow .time small{display:block; font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-400); font-weight:600;}
.classrow .time small::first-letter{text-transform:uppercase;}
.classrow .info .t{font-size:14px;}
.classrow .info .l{color:var(--ink-400); line-height:1.4;}
.classrow .disc{width:4px; align-self:stretch; border-radius:4px; flex:none; margin:-2px 0;}
.capsbadge{padding:4px 9px; font-size:10.5px; white-space:nowrap;}
/* Zapisane zajęcia: zielony znaczek i delikatnie zielony wiersz we wszystkich listach */
.capsbadge.mine{background:rgba(55,211,153,.16); color:var(--ok);}
.classrow.is-mine{background:rgba(55,211,153,.07); border-color:rgba(55,211,153,.36);}
.classrow.is-mine:hover{background:rgba(55,211,153,.11); border-color:rgba(55,211,153,.5);}

/* kolory dyscyplin */
.d-swim{background:#4fb0ff;} .d-run{background:#37d399;} .d-gym{background:#ffb547;} .d-zwift{background:#e63888;} .d-stretch{background:#a68bff;}

.histrow, .clientrow, .attrow, .measlogrow, .issuerow, .goalrow{border-bottom-color:var(--stroke);}
.adminnewsrow, .admincamprow{
  padding:13px 14px; margin-bottom:8px; border-radius:16px; background:var(--surface); border:1px solid var(--stroke);
}
.adminnewsrow:last-child, .admincamprow:last-child{border-bottom:1px solid var(--stroke);}
.newsitem{padding:13px 14px; margin-bottom:8px; border-radius:16px; background:var(--surface); border:1px solid var(--stroke); cursor:pointer;}
.newsitem:last-child{border-bottom:1px solid var(--stroke);}
.leadrow{padding:14px; margin-bottom:8px; border-radius:16px; background:var(--surface); border:1px solid var(--stroke);}
.leadrow:last-child{border-bottom:1px solid var(--stroke);}
.adminitem{border-radius:16px; background:var(--surface); border:1px solid var(--stroke); padding:14px; margin-bottom:8px;}

/* ---------- lista linków (menu) ---------- */
.linklist{
  display:flex; flex-direction:column; border-radius:20px; overflow:hidden;
  background:var(--surface); border:1px solid var(--stroke); box-shadow:var(--shadow-card);
}
.linkrow{
  display:flex; align-items:center; gap:13px; width:100%; padding:13px 14px; cursor:pointer;
  background:none; border:none; border-bottom:1px solid var(--stroke); color:var(--ink-100);
  text-align:left; text-decoration:none; font-family:inherit; transition:background .15s;
}
.linkrow:last-child{border-bottom:none;}
.linkrow:hover{background:rgba(255,255,255,.04);}
.linkrow:active{background:rgba(255,255,255,.07);}
.linkrow .li{
  width:38px; height:38px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); color:var(--violet-300); border:1px solid rgba(166,139,255,.18);
}
.linkrow .lt{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;}
.linkrow .lt b{font-size:14px; font-weight:600;}
.linkrow .lt small{font-size:11.5px; color:var(--ink-400); line-height:1.35;}
.linkrow .chev{color:var(--ink-600); font-size:20px; line-height:1; flex:none;}
.linkrow .cnt{font-size:10.5px; font-weight:800; padding:3px 8px; border-radius:999px; background:var(--magenta-500); color:#fff; flex:none;}
.linkrow.danger .li{background:rgba(255,92,122,.12); color:var(--danger); border-color:rgba(255,92,122,.22);}
.linkrow.danger .lt b{color:var(--danger);}

/* ---------- kafle usług (Kup › Inne usługi), wygląd jak „Masz voucher?” ---------- */
.svc-tile{background:linear-gradient(135deg,rgba(123,92,255,.18),rgba(226,52,127,.16)); border:1px solid rgba(201,195,255,.25); border-radius:16px; margin:0 0 10px; overflow:hidden;}
.svc-h{display:flex; align-items:center; gap:12px; width:100%; padding:14px; background:none; border:none; color:var(--ink-100); text-align:left; font-family:inherit; cursor:pointer;}
.svc-i{width:38px; height:38px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center; background:rgba(226,52,127,.14); color:#e2347f; border:1px solid rgba(226,52,127,.25);}
.svc-t{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px;}
.svc-t b{font-size:15px; font-weight:700;}
.svc-t small{font-size:12px; color:var(--ink-300); line-height:1.4;}
.svc-chev{color:var(--ink-400); font-size:22px; line-height:1; flex:none; transition:transform .2s;}
.svc-tile.open .svc-chev{transform:rotate(90deg);}
.svc-body{display:none; padding:0 12px 12px;}
.svc-tile.open .svc-body{display:block;}
.svc-body .campcard:last-child, .svc-body .memcard:last-child{margin-bottom:0;}

/* ---------- kafle wyboru (Zapisz się) ---------- */
.segtiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:6px 0 18px;}
#zapiszTabs{grid-template-columns:repeat(2,minmax(0,1fr));}
.gr-tabs{grid-template-columns:repeat(3,minmax(0,1fr));}
.segtiles button{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:76px; padding:10px 4px;
  background:var(--surface); border:1px solid var(--stroke); border-radius:18px; color:var(--ink-400);
  font-size:11.5px; font-weight:600; line-height:1.15; text-align:center; cursor:pointer; font-family:inherit;
  transition:background .15s, color .15s, border-color .15s, transform .12s;
}
.segtiles button svg{width:22px; height:22px;}
.segtiles button:active{transform:scale(.96);}
.segtiles button.active{background:var(--grad-soft); border-color:rgba(166,139,255,.55); color:#fff; box-shadow:0 10px 22px -14px rgba(124,92,255,.9);}
.segtiles button.active svg{color:var(--violet-300);}

/* ---------- kontrolka segmentowa (zakładki) ---------- */
.segmented{display:flex; gap:4px; padding:4px; margin:6px 0 16px; border-radius:16px; background:var(--surface); border:1px solid var(--stroke);}
.segmented button{
  flex:1; min-height:38px; border:none; border-radius:12px; background:transparent; color:var(--ink-400);
  font-size:12.5px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .15s, color .15s;
}
.segmented button.active{background:var(--surface-2); color:#fff; box-shadow:inset 0 0 0 1px var(--stroke-2), 0 4px 12px -6px rgba(0,0,0,.6);}
.spane{display:none;}
.spane.active{display:block; animation:screenin .22s ease-out;}

/* zakładki dni / miesięcy / podzakładki — pigułki */
.daytabs {gap:6px; padding:2px 0 6px; margin-bottom:10px; scrollbar-width:none;}
.daytabs button {
  min-height:36px; padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:600;
  background:var(--surface); border:1px solid var(--stroke); color:var(--ink-400);
  transition:background .15s, color .15s;
}
.daytabs button.active {background:#fff; color:#202152; border-color:#fff; box-shadow:0 6px 16px -8px rgba(255,255,255,.5);}
.metricpicker button, .bodymaptoggle button{border-radius:12px; min-height:38px;}
.metricpicker button.active{background:var(--grad-soft); border-color:rgba(166,139,255,.5); color:#fff;}
.checkchip{min-height:34px;}

/* ---------- KPI hero (admin) ---------- */
.kpihero{border-radius:var(--radius-xl); padding:20px; margin:0 0 12px; background:linear-gradient(150deg,#5a36d6 0%,#8a2a92 55%,#371d6a 100%); box-shadow:0 18px 40px -20px rgba(124,92,255,.75);}
.kpihero .eyebrow{font-size:11px;}
.kpigrid .num{font-size:26px;}

/* ---------- arkusz (bottom sheet) ---------- */
.overlay{background:rgba(11,11,40,.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);}
.sheet{
  background:linear-gradient(180deg,#262960 0%,#1e2052 100%); border-radius:28px 28px 0 0; border-top:1px solid var(--stroke-2);
  max-height:88vh; overflow-y:auto; padding:18px 20px calc(24px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -20px 60px -20px rgba(0,0,0,.8);
}
.sheet h3{font-size:19px; padding-right:36px;}
.sheet .close{
  top:14px; right:14px; width:34px; height:34px; border-radius:50%; background:var(--surface-2); color:var(--ink-300);
  font-size:14px; display:flex; align-items:center; justify-content:center;
}
.detailrow{padding:11px 0; border-bottom-color:var(--stroke); gap:12px;}
.detailrow span:last-child{text-align:right;}

/* ---------- dolna nawigacja: pływający pasek ---------- */
.bottomnav{
  bottom:calc(10px + env(safe-area-inset-bottom,0px)); width:calc(100% - 24px); max-width:456px;
  border-radius:24px; padding:6px; align-items:center;
  background:rgba(31,34,80,.82); backdrop-filter:blur(18px) saturate(1.4); -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border:1px solid var(--stroke-2); box-shadow:0 18px 40px -12px rgba(0,0,0,.75);
}
.bottomnav button{
  position:relative; gap:3px; padding:8px 2px 6px; border-radius:18px; color:var(--ink-600); font-size:10px; font-weight:600;
  transition:color .15s, background .15s;
}
.bottomnav button .ic{display:flex; color:inherit;}
.bottomnav button .nl{line-height:1;}
.bottomnav button.active{color:#fff; background:rgba(255,255,255,.07);}
.bottomnav button.active .ic{color:var(--violet-300);}
.bottomnav button .badge{top:2px; right:calc(50% - 22px);}
.navfab{
  position:relative; left:auto; top:auto; transform:none; flex:none; width:auto; height:auto; margin:0 4px;
  min-width:64px; padding:0; border:none; border-radius:18px; background:none !important; box-shadow:none; gap:3px;
}
.navfab .fabic{
  width:50px; height:40px; border-radius:15px; display:flex; align-items:center; justify-content:center;
  background:var(--grad); color:#fff; box-shadow:0 8px 20px -6px rgba(180,74,208,.9);
}
.navfab .lbl{font-size:9.5px; font-weight:700; color:var(--ink-300); letter-spacing:0;}
.navfab:active{transform:scale(.94);}
.bottomnav button.navfab.active{background:none;}

/* ---------- toast ---------- */
.toast{
  bottom:calc(96px + env(safe-area-inset-bottom,0px)); border-radius:16px; padding:12px 18px;
  background:rgba(39,43,96,.95); backdrop-filter:blur(12px); border:1px solid var(--stroke-2);
  box-shadow:0 14px 30px -12px rgba(0,0,0,.8);
}

/* ---------- profil ---------- */
.profilehead{padding:16px; border-radius:20px; background:var(--surface); border:1px solid var(--stroke); margin-bottom:12px;}
.profilehead .av{width:56px; height:56px; flex:none; background:var(--grad); font-family:'Poppins',sans-serif;}

/* ---------- start / logowanie ---------- */
.authcard{border-radius:22px; transition:transform .12s;}
.authcard:active{transform:scale(.97);}
.stage-gradient .formrow input{background:rgba(21,22,56,.45); border-color:rgba(255,255,255,.22);}

/* ---------- drobiazgi ---------- */
.empty{padding:14px 16px; border-radius:16px; background:var(--surface); border:1px dashed var(--stroke-2); color:var(--ink-400); text-align:center;}
.pill{font-size:11.5px;}
.avatar{background:var(--grad);}
@media (hover:none){ .classrow:hover, .linkrow:hover, .wallet .wcell:hover {background:var(--surface);} .linkrow:hover{background:none;} }
@media (prefers-reduced-motion:reduce){ .screen.active, .spane.active{animation:none;} }
.kpigrid .lbl{margin-top:5px;} .kpigrid .num{line-height:1.05;}
.daytabs button::first-letter {text-transform:uppercase;}

/* Pola daty/godziny na iPhonie mają własną szerokość i wychodziły poza kartę */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"]{
  -webkit-appearance:none; appearance:none; display:block; width:100%; min-width:0; max-width:100%; text-align:left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value{text-align:left; margin:0;}
.formrow, .formcard, .calcwrap, .inlinerow > .formrow{min-width:0;}
.formcard .sectiontitle{margin:0 0 12px !important;}
.measform{display:flex; flex-wrap:nowrap; gap:8px; margin-bottom:12px;}
.measform input{flex:1 1 0; min-width:0; width:100%;}

/* tytuł trenera w liście użytkowników */
.titlebtn{margin-top:5px; padding:3px 9px; border-radius:99px; border:1px dashed var(--stroke-2); background:transparent; color:var(--violet-300); font:inherit; font-size:11px; font-weight:600; cursor:pointer; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

/* Przycisk „Pokaż/Ukryj” w polu hasła */
.pwtoggle{position:absolute; right:8px; bottom:7px; background:none; border:0; color:var(--ink-400, #9aa0c0); font:600 11.5px/1 inherit; padding:8px 6px; cursor:pointer;}
.formrow input#loginPassword, .formrow input#regPassword{padding-right:62px;}

/* Akcje w arkuszu zajęć jedna pod drugą (ostrzeżenia, kalendarz, inne terminy) */
.sheet #sheetActions{flex-direction:column; gap:8px;}

/* Zapisy PT: siatka godzin */
.terms-doc summary::-webkit-details-marker{display:none;}

/* Ekran startowy: 4 kafelki 2×2 (Chcę dołączyć, Klient, Trener, Admin) */

/* Start: portfel w 4 kolumnach (PT, pływackie, uniwersalne, plan online), kilka kart najbliższych treningów */
.wallet{grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px;}
.wallet .wcell{padding:10px 9px;}
.wallet .wcell .num{font-size:17px;}
.wallet .wcell .lbl{font-size:10px;}
#nextUp .nextcard + .nextcard{margin-top:10px;}

/* Mój dzień: kafle tokenów na całą szerokość (2 albo 3 kafle po równo) */
#athleteStatRow{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px;}
#athleteStatRow .wcell{padding:12px 14px; text-align:left;}
#athleteStatRow .wcell .num{font-size:22px;}
#athleteStatRow .wcell .lbl{font-size:11.5px;}

/* Mój tydzień (2026-10-20): akcje na karcie najbliższego treningu, tydzień z paskiem dni, moje / cały klub */
.nc-acts{display:flex; gap:8px; margin-top:14px;}
.nc-acts button{flex:1; min-width:0; padding:10px 4px; border:0; border-radius:12px; background:rgba(255,255,255,.16); color:#fff; font:700 11.5px/1.2 Inter,system-ui,sans-serif; letter-spacing:.02em; cursor:pointer;}
.nc-acts button:active{background:rgba(255,255,255,.26);}
.wk-head{display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:22px 2px 10px;}
.wk-head h2{font:800 22px/1.1 Poppins,sans-serif; margin:0;}
.wk-head span{font-size:12.5px; color:var(--ink-400);}
.wk-dayh{display:flex; justify-content:space-between; gap:10px; font-size:12px; font-weight:700; color:var(--ink-400); margin:14px 2px 6px; text-transform:uppercase; letter-spacing:.06em;}
.wk-dayh span{color:var(--ink-600); text-transform:none; letter-spacing:0; font-weight:500;}
.wk-list{display:flex; flex-direction:column; gap:6px;}
.wk-list .classrow{margin:0;}
.wk-list .time small{display:block; font-weight:500; color:var(--ink-600);}
.wk-go{font-size:10.5px; font-weight:800; padding:7px 11px; border-radius:999px; background:linear-gradient(135deg,var(--violet-500),var(--magenta-500)); color:#fff; letter-spacing:.03em; white-space:nowrap;}
.wk-empty{display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:14px 16px; border-radius:16px; background:var(--surface); border:1px dashed var(--stroke-2); color:var(--ink-400); font-size:13.5px; margin-top:6px;}
.wk-empty button{background:none; border:0; padding:0; font:600 13.5px Inter,system-ui,sans-serif; cursor:pointer;}
.d-pt{background:#a68bff;}
#athleteGreet{font-size:24px; line-height:1.15;}
#athleteStatRow .wcell .num{overflow-wrap:anywhere;}

/* ---------- Profil w kaflach (dwie kolumny) ---------- */
.pf-head{display:flex; align-items:center; gap:14px; padding:16px; margin:6px 0 4px; border-radius:var(--radius-xl);
  background:var(--grad-soft); border:1px solid rgba(166,139,255,.35);}
.pf-head .av{width:58px; height:58px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--grad); color:#fff; font-size:20px; font-weight:700;}
.pf-headtxt{min-width:0;}
.pf-head .t{font-size:18px; font-weight:700; overflow-wrap:anywhere;}
.pf-head .d{font-size:12px; color:var(--ink-300); margin-top:2px;}
.pf-pills{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px;}
.pf-pill{font-size:11px; font-weight:600; padding:4px 9px; border-radius:999px; background:rgba(124,92,255,.18); border:1px solid rgba(166,139,255,.45); color:#d6ccff;}
.pf-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.pf-tile{display:flex; flex-direction:column; align-items:flex-start; text-align:left; min-height:136px; padding:14px; border-radius:22px; cursor:pointer;
  background:var(--surface); border:1px solid var(--stroke); color:var(--ink-100); font-family:inherit; transition:border-color .15s, transform .15s;}
.pf-tile:hover{border-color:rgba(166,139,255,.45);}
.pf-tile:active{transform:scale(.98);}
.pf-tile:focus-visible{outline:2px solid var(--violet-300); outline-offset:2px;}
.pf-ic{width:40px; height:40px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); border:1px solid rgba(166,139,255,.35); color:var(--violet-300);}
/* Tytuł zawsze tuż pod ikoną, podpis najwyżej 2 linie — napisy w sąsiednich kaflach są na tej samej wysokości */
.pf-tile b{margin-top:16px; font-size:15px; font-weight:700; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;}
.pf-tile small{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:11.5px; color:var(--ink-400); margin-top:5px; line-height:1.35;}
.pf-tile small[hidden]{display:none;}
.pf-tile small.inv-warn{color:#ffb547; font-weight:600; margin-top:auto; padding-top:8px;}
.pay-bill{margin-bottom:12px;}
.pay-bill .lt small.inv-warn{color:#ffb547;}
.pf-logout{margin-top:18px; color:#ff8fb3 !important;}
@media (min-width:760px){.pf-grid{grid-template-columns:repeat(4,1fr);}}
/* Minione zajęcia: szara plakietka; .wk-pastline = przycisk „Pokaż kolejne zapisy” */
.capsbadge.done{background:rgba(255,255,255,.07); color:var(--ink-400);}
.wk-pastline{display:flex; justify-content:space-between; align-items:center; width:100%; margin:12px 0 4px; padding:11px 14px; border-radius:12px; border:1px solid var(--line, rgba(255,255,255,.08)); background:rgba(255,255,255,.03); color:var(--ink-400); font:inherit; font-size:13px; text-align:left; cursor:pointer;}
.wk-pastline span{color:var(--violet-300); font-weight:600;}
/* „Później dziś”: kolejne treningi dnia pod kartą najbliższego */
/* Admin HQ: wyszukiwarka i zwijane grupy modułów */
.ad-search{margin:14px 0 6px;}
.ad-search input{width:100%; padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); color:inherit; font:inherit; font-size:16px;}
.ad-search .linklist{margin-top:10px;}
.sectiontitle.ad-group{cursor:pointer;}
.sectiontitle.ad-group h3::before{content:'▸'; display:inline-block; margin-right:6px; transition:transform .15s;}
.sectiontitle.ad-group.open h3::before{transform:rotate(90deg);}
/* Otwarta klawiatura: dolny pasek schowany (app.js, visualViewport) */
body.kb-open .bottomnav{display:none;}

/* ---------- Mój dzień (2026-10-24): cel → najbliższy trening → do zapłaty → najbliższe treningi → podsumowanie tygodnia ---------- */
#dashGoal{margin-bottom:12px;}
#dashGoal .dash-goal{margin-top:4px;}
.dg-prio{flex:none; width:24px; height:24px; border-radius:8px; display:flex; align-items:center; justify-content:center; font:800 12px Poppins,sans-serif; color:#fff; background:var(--grad);}
.dg-prio.p-B{background:rgba(124,92,255,.45);}
.dg-prio.p-C{background:rgba(255,255,255,.14);}
.dg-more{display:block; margin:10px 0 0 auto; padding:0; border:0; background:none; color:var(--violet-300, #a68bff); font:600 12.5px Inter,system-ui,sans-serif; cursor:pointer;}
/* Do zapłaty + tokeny w jednej karcie */
.dash-money{padding:12px; border-radius:20px; background:var(--surface); border:1px solid var(--stroke);}
.dash-money #athleteStatRow{margin:10px 0 0;}
.dash-money #athleteStatRow .wcell{padding:9px 11px; border-radius:14px;}
.dash-money #athleteStatRow .wcell .num{font-size:18px;}
.dash-money #athleteStatRow .wcell .lbl{font-size:10.5px;}
.wi-dash{display:flex; align-items:center; gap:12px;}
.wi-dash .li{width:40px; height:40px; flex:none; border-radius:13px; display:flex; align-items:center; justify-content:center; background:rgba(55,211,153,.14); color:var(--ok);}
.wi-dash.due .li{background:rgba(255,181,71,.16); color:var(--warn);}
.wi-dash .lt{flex:1; min-width:0;}
.wi-dash .lt small{display:block; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-400);}
.wi-dash .lt b{display:block; font:700 20px/1.2 Poppins,sans-serif;}
.wi-dash.due .lt b{color:var(--warn);}
.wi-dash .lt em{display:block; font-style:normal; font-size:12px; color:var(--ink-400);}
.wi-dash .lt em button{border:0; background:none; padding:0; color:var(--violet-300, #a68bff); font:600 12px Inter,system-ui,sans-serif; cursor:pointer;}
.wi-dash .wi-dash-pay{flex:none; padding:10px 16px;}
.wk-more{justify-content:center; gap:8px;}
/* Mój tydzień: podsumowanie */
#wkSum{margin-bottom:18px;}
.ws-card{padding:16px; border-radius:var(--radius-xl); background:var(--grad-soft); border:1px solid rgba(166,139,255,.3);}
.ws-top{display:flex; align-items:center; gap:14px;}
.ws-ring{--p:0; flex:none; width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:conic-gradient(#e63888 0, #7c5cff calc(var(--p) * 1%), rgba(255,255,255,.1) 0);}
.ws-ring b{width:52px; height:52px; border-radius:50%; background:#1f2252; display:flex; align-items:center; justify-content:center; font:800 18px Poppins,sans-serif;}
.ws-ring b small{font-size:12px; color:var(--ink-400); font-weight:600;}
.ws-tt b{display:block; font-size:15.5px; line-height:1.3;}
.ws-tt small{display:block; font-size:12.5px; color:var(--ink-300); margin-top:3px;}
.ws-split{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px;}
.ws-split > div{padding:9px 12px; border-radius:14px; background:rgba(23,26,62,.45);}
.ws-split small{display:block; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-400);}
.ws-split b{font:700 19px Poppins,sans-serif;}
.ws-split b span{font-size:13px; color:var(--ink-400);}
.ws-discs{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px;}
.ws-disc{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:4px 9px; padding:9px 11px; border-radius:14px; background:rgba(23,26,62,.45);}
.ws-ic{width:30px; height:30px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#171a3e; grid-row:span 2;}
.ws-ic svg{width:18px; height:18px;}
.ws-dl{font-size:12px; color:var(--ink-300); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.ws-disc > b{font:700 16px Poppins,sans-serif; grid-row:span 2;}
.ws-disc > b small{font-size:12px; color:var(--ink-400);}
.ws-disc.full > b{color:var(--ok);}
.ws-bar{display:block; height:4px; border-radius:4px; background:rgba(255,255,255,.1); overflow:hidden;}
.ws-bar > i{display:block; height:100%; border-radius:4px;}
#dashNews{margin-top:4px;}
/* ZMIEŃ TERMIN (żółty) i ODWOŁAJ (zielony do 24 h przed startem, potem czerwony) — 2026-10-24 */
.nc-acts .nc-move{background:#ffb547; color:#241600;}
.nc-acts .nc-move.off{opacity:.45;}
.nc-acts .nc-cancel.ok{background:#37d399; color:#06291b;}
.nc-acts .nc-cancel.soon{background:#ff8a3d; color:#2a1100;}
.nc-acts .nc-cancel.late{background:#ff5c7a; color:#fff;}
.btn-move{background:rgba(255,181,71,.16); border:1px solid rgba(255,181,71,.45); color:#ffb547;}
.btn-ok{background:rgba(55,211,153,.14); border:1px solid rgba(55,211,153,.42); color:#37d399;}
.btn-soon{background:rgba(255,138,61,.16); border:1px solid rgba(255,138,61,.5); color:#ff8a3d;}
.btn-danger{color:#ff7d95;}
/* PRZYCHODZĘ SAM (trening w parze → dla jednej osoby): zielony do 24 h przed startem, potem wygaszony — 2026-10-27 */
.nc-acts.nc-solo{margin-top:8px;}
.btn.btn-solo{padding:6px 9px; font-size:10px;}
.nc-acts .nc-solo-btn{background:#37d399; color:#06291b;}
.nc-acts .nc-solo-btn.off, .btn-solo.off{opacity:.4; filter:grayscale(1); cursor:default; pointer-events:none;}
.classrow .stateicon.pt-acts{display:flex; flex-direction:column; align-items:stretch; gap:6px;}
.pbm-banner{display:flex; flex-direction:column; gap:4px; padding:14px 16px; margin:4px 0 14px; border-radius:18px; background:rgba(255,181,71,.10); border:1px solid rgba(255,181,71,.4);}
.pbm-banner small{font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#ffb547;}
.pbm-banner b{font-size:14.5px; line-height:1.3;}
.pbm-banner span{font-size:12.5px; color:var(--ink-300); line-height:1.45;}
.pbm-banner .ptw-link{align-self:flex-start; margin-top:4px; background:none; border:0; padding:0; color:var(--violet-300, #a68bff); font:600 13px Inter,system-ui,sans-serif; cursor:pointer;}
/* Nieparzysty ostatni kafel (np. Historia zapisów w Koncie) zajmuje cały wiersz */
.pf-grid > .pf-tile:last-child:nth-child(odd){grid-column:1 / -1; min-height:0;}

/* Program punktów wyłączony dla klientów (Admin › Program punktów): elementy z data-rewards znikają */
body.no-rewards [data-rewards]{display:none !important;}

/* Rejestracja: zgody — „Zaznacz wszystkie” jako duża ramka, potem Wymagane / Dobrowolne */
.regconsents{margin:6px 0 12px;}
.regconsents .regall{display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:14px; border:1px solid rgba(155,107,255,.55); background:rgba(155,107,255,.12); cursor:pointer; margin-bottom:10px;}
.regconsents .regall input{width:20px; height:20px; accent-color:#9b6bff; flex:none; margin-top:1px;}
.regconsents .regall b{display:block; font-size:14px; color:#fff;}
.regconsents .regall small{display:block; font-size:12px; color:var(--ink-300); margin-top:2px;}
.regconsents .regsect{margin:10px 0 4px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-300);}
.regconsents .formrow.checkboxrow label{align-items:flex-start;}
.regconsents .formrow.checkboxrow input{margin-top:1px;}
.regconsents .regnote{margin:8px 0 0; font-size:11.5px;}
