/* hazit.es — Entrenadores + /perfil. Brand: navy #0b4170, cyan #1ddff2, lime #d7f04a. */
:root {
  --bg: #f6f7f5; --surface: #ffffff; --soft: #f4f6f8; --text: #0e0f11; --muted: #5d6166; --line: #dde1e5;
  --navy: #0b4170; --cyan: #1ddff2; --lime: #d7f04a; --link: #0b4170; --err: #b42318; --ok: #15803d; --ok-soft: #dcfce7;
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101413; --surface: #161c22; --soft: #1c242c; --text: #eef2f5; --muted: #98a3ad; --line: #2b3640;
          --link: #1ddff2; --err: #ff8a80; --ok: #4ade80; --ok-soft: #12301f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

/* ---------- top bar ---------- */
.bar-c { background: var(--navy); color: #fff; }
.bar-in { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand img { width: 92px; height: auto; }
.c-links { display: flex; gap: 28px; }
.c-links a { text-decoration: none; font-weight: 500; font-size: 14px; }
.c-links a:hover { color: var(--lime); }
.corner { margin-left: auto; }
.bar-c a:focus-visible { outline-color: var(--lime); }
.me { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; }
.me .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #1d2a00; font-weight: 700; object-fit: cover; }
.me small { display: block; font-weight: 500; font-size: 12px; color: rgba(255,255,255,.7); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn.lime { background: var(--lime); color: #1d2a00; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.line { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn.ghost-d { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); height: 44px; font-size: 14px; }
.btn.wa { background: #1fa855; color: #fff; height: 44px; font-size: 14px; }
.btn.wide { width: 100%; height: 54px; }
@media (prefers-color-scheme: dark) { .btn.navy { background: var(--lime); color: #1d2a00; } }

.kicker { margin: 0 0 12px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumb { margin: 0 0 18px; font-size: 14px; }
.crumb a { color: rgba(255,255,255,.75); }

/* ---------- avatars ---------- */
.ph { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; flex: none; background: var(--soft); }
.ph.ini { display: grid; place-items: center; background: linear-gradient(150deg, #1a5a92, var(--navy)); color: #fff; font: 700 28px/1 var(--head); }
.ph.card { width: 96px; height: 96px; border-radius: 22px; font-size: 36px; }
.ph.xl { width: 132px; height: 132px; border-radius: 32px; font-size: 52px; }

/* ---------- availability ---------- */
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.avail.now { background: var(--ok-soft); color: var(--ok); }
.avail.now i { animation: pulse 1.6s ease-in-out infinite; }
.avail.today { background: #fef3c7; color: #92400e; }
@media (prefers-color-scheme: dark) { .avail.today { background: #3a2a05; color: #fbbf24; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 25%, transparent); } }
.week { display: inline-flex; gap: 3px; }
.week .d { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 600 11px/1 var(--body); color: var(--muted); background: var(--soft); }
.week .d.on { background: var(--navy); color: #fff; }
.week .d.today { box-shadow: inset 0 0 0 2px var(--lime); }
@media (prefers-color-scheme: dark) { .week .d.on { background: var(--cyan); color: #04202b; } }

/* ---------- list ---------- */
.hero-c { background: radial-gradient(800px 400px at 85% 20%, #14609f 0%, transparent 70%), linear-gradient(180deg, #0b4170, #082f52);
  color: #fff; padding: 44px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-c .kicker { color: var(--lime); }
.hero-c h1 { font: 700 clamp(34px, 5vw, 56px)/1.06 var(--head); letter-spacing: -.02em; margin: 0 0 16px; max-width: 680px; }
.hero-c mark { background: none; color: var(--lime); }
.lead { font-size: 17px; max-width: 540px; margin: 0; opacity: .9; }
.hero-stats { display: flex; gap: 12px; }
.hero-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 16px 20px; min-width: 130px; }
.hero-stats b { display: block; font: 700 34px/1 var(--head); color: var(--lime); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.8); }

.filters { position: relative; margin-top: -40px; background: var(--surface); border-radius: 20px; padding: 18px 20px; display: grid; gap: 12px;
  box-shadow: 0 20px 40px -28px rgba(11,65,112,.55); }
.frow { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.flabel { font-size: 13px; font-weight: 600; color: var(--muted); }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fchip:hover { border-color: var(--navy); }
.fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .fchip.on { background: var(--lime); border-color: var(--lime); color: #1d2a00; } }
.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--link); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " –"; }
.more-in { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.more-in label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
select { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 15px var(--body); }
.count { margin: 24px 0 12px; font-weight: 600; color: var(--muted); font-size: 14px; }

.coach-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coach { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: 22px; padding: 18px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; min-width: 0; }
a.coach:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: 0 18px 36px -26px rgba(11,65,112,.6); }
.c-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.c-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.coach .nm { font: 600 20px/1.2 var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.price b { font: 700 18px/1 var(--head); color: var(--text); }
.meta { color: var(--muted); font-size: 14px; }
.coach .clubs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.coach .clubs::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2.5px solid var(--navy); }
@media (prefers-color-scheme: dark) { .coach .clubs::before { border-color: var(--lime); } }
.lvls { font-size: 13px; color: var(--muted); }
.c-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.empty { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: center; padding: 36px; border-radius: 20px; border: 2px dashed var(--line); text-align: center; color: var(--muted); }
.empty b { color: var(--text); }
.empty a { color: var(--link); font-weight: 600; margin-top: 6px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 40px 0 56px; padding: 28px 32px;
  border-radius: 24px; background: var(--navy); color: #fff; }
.join b { display: block; font: 700 24px/1.2 var(--head); margin-bottom: 4px; }
.join span { color: rgba(255,255,255,.8); }

/* ---------- profile ---------- */
.p-hero { background: radial-gradient(700px 360px at 90% 0%, #14609f 0%, transparent 70%), linear-gradient(180deg, #0b4170, #082f52); color: #fff; padding: 28px 0 36px; }
.p-head { display: flex; gap: 28px; align-items: center; }
.p-hero .ph.xl { box-shadow: 0 0 0 4px rgba(215,240,74,.9); }
.p-hero .kicker { color: var(--lime); margin-bottom: 8px; }
.p-id h1 { font: 700 clamp(32px, 5vw, 48px)/1.05 var(--head); margin: 0 0 6px; letter-spacing: -.02em; }
.p-lv { margin: 0 0 12px; color: rgba(255,255,255,.85); }
.p-hero .avail { background: rgba(255,255,255,.12); color: #fff; }
.p-hero .avail.now { background: #dcfce7; color: #15803d; }
.p-hero .avail.today { background: #fef3c7; color: #92400e; }
.p-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.p-stats div { padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.p-stats b { display: block; font: 700 26px/1 var(--head); color: var(--lime); }
.p-stats span { font-size: 13px; color: rgba(255,255,255,.8); }
.prof { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; padding-top: 20px; padding-bottom: 56px; }
.p-side { position: sticky; top: 16px; }
.blk { background: var(--surface); border-radius: 20px; padding: 20px 22px; margin-bottom: 14px; }
.blk h2 { margin: 0 0 12px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.blk p { margin: 0; }
.bio { font-size: 17px; white-space: pre-line; }
.where { border: 2px solid var(--navy); }
@media (prefers-color-scheme: dark) { .where { border-color: var(--cyan); } }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.club-list li { display: flex; align-items: center; gap: 12px; font: 600 18px/1.3 var(--head); }
.pin { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.pin img { width: 30px; height: 30px; object-fit: contain; }
@media (prefers-color-scheme: dark) { .pin img { filter: invert(1) brightness(1.6); } }   /* the icon is dark navy */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.share { display: grid; gap: 8px; }
.owner { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.owner a:not(.btn) { color: var(--link); }
.owner .btn { width: 100%; }

/* weekly timetable (public) */
.tt { display: grid; grid-template-columns: 36px repeat(7, 1fr); gap: 3px; }
.tt-d { text-align: center; font: 600 12px/1 var(--body); color: var(--muted); padding: 4px 0 6px; }
.tt-d.today { color: var(--text); }
.tt-d.today::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin: 4px auto 0; }
.tt-h { font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; line-height: 18px; }
.tt-c { height: 18px; border-radius: 4px; background: var(--soft); }
.tt-c.on { background: var(--navy); }
.tt-c.on.today { background: var(--cyan); }
@media (prefers-color-scheme: dark) { .tt-c.on { background: #2a6aa5; } }
.tt-text { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tt-text b { display: inline-block; min-width: 92px; }

.state { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--soft); color: var(--text); border-left: 4px solid var(--muted); }
.state.pending { border-left-color: #f5a524; }
.state.approved { border-left-color: #16a34a; }
.state.rejected { border-left-color: var(--err); }
.state a { color: var(--link); font-weight: 600; }
.p-hero .state { background: rgba(255,255,255,.95); color: #0e0f11; }
.p-hero .state a { color: #0b4170; }

/* ---------- /perfil editor ---------- */
.me-page { padding-top: 32px; padding-bottom: 64px; }
.me-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.me-main h1 { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--head); margin: 0 0 8px; letter-spacing: -.02em; }
.me-main .lead { color: var(--muted); opacity: 1; margin-bottom: 24px; }
#me-form { display: grid; gap: 14px; }
#coach-part { display: grid; gap: 14px; }
.card-f { background: var(--surface); border-radius: 22px; padding: 24px; display: grid; gap: 16px; }
.card-f h2 { margin: 0; font: 600 19px/1.2 var(--head); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .card-f > label, .two label { font-weight: 600; font-size: 14px; padding: 0; }
legend { margin-bottom: 8px; }
legend span, label span { font-weight: 400; color: var(--muted); }
#me-form input:not([type=checkbox]):not([type=file]), textarea { display: block; width: 100%; margin-top: 6px; height: 50px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--body); }
textarea { height: auto !important; padding: 12px 14px !important; resize: vertical; line-height: 1.5; }
#me-form input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,223,242,.35); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.photo-pick { display: flex; align-items: center; gap: 20px; }
.photo-btns { display: grid; gap: 6px; justify-items: start; }
.photo-btns .note { margin: 0; }
.chks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chks .chk span { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); transition: background-color .12s ease; }
.chks .chk input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chks .chk input:checked + span::before { content: "✓ "; }
@media (prefers-color-scheme: dark) { .chks .chk input:checked + span { background: var(--lime); border-color: var(--lime); color: #1d2a00; } }
.chk input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.consent { align-items: flex-start; gap: 10px; font-size: 14px; }
.consent input { position: static; opacity: 1; width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.consent span { color: var(--text); font-weight: 400; }
.club-row { display: flex; gap: 8px; margin-bottom: 8px; }
.club-row input { margin-top: 0 !important; }
.x { flex: none; width: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--link); font: 600 14px var(--body); cursor: pointer; }
.err { margin: 0; color: var(--err); font-weight: 500; font-size: 14px; }
.out { margin-top: 24px; font-size: 14px; }
.out a { color: var(--muted); }

/* the big switch */
.coach-switch { border: 2px solid var(--navy); }
@media (prefers-color-scheme: dark) { .coach-switch { border-color: var(--cyan); } }
.switch { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 56px; height: 32px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background-color .15s ease; }
.knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .18s ease; }
.switch input:checked + .track { background: var(--navy); }
.switch input:checked + .track .knob { transform: translateX(24px); background: var(--lime); }
.switch input:focus-visible + .track { outline: 2px solid var(--link); outline-offset: 3px; }
.sw-text b { display: block; font: 600 19px/1.2 var(--head); }
.sw-text small { color: var(--muted); font-size: 14px; }
.coach-switch .state { margin: 0; }
.state.off { border-left-color: var(--muted); }

/* timetable editor */
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { padding: 7px 12px; border-radius: 999px; border: 1.5px dashed var(--line); background: none; color: var(--text); font: 500 13px var(--body); cursor: pointer; }
.preset:hover { border-color: var(--navy); }
.se { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.se-d { text-align: center; font: 600 13px/1 var(--body); color: var(--muted); padding-bottom: 4px; }
.se-h { font-size: 12px; color: var(--muted); text-align: right; padding-right: 6px; line-height: 30px; }
.se-c { height: 30px; border-radius: 7px; border: 0; background: var(--soft); cursor: pointer; padding: 0; transition: background-color .08s ease; }
.se-c:hover { background: color-mix(in srgb, var(--navy) 18%, var(--soft)); }
.se-c[aria-pressed="true"] { background: var(--navy); }
@media (prefers-color-scheme: dark) { .se-c[aria-pressed="true"] { background: var(--cyan); } }

/* live preview */
.me-side { position: sticky; top: 16px; }
.coach.preview { border-color: var(--line); }
.meter { margin-top: 14px; background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--lime)); border-radius: inherit; transition: width .3s ease; }
.meter p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

.foot-c { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot-c a { color: var(--muted); }

@media (max-width: 960px) {
  .coach-list { grid-template-columns: 1fr; }
  .prof { grid-template-columns: 1fr; }
  .p-side { position: static; }
  .me-grid { grid-template-columns: 1fr; }
  .me-side { position: static; order: -1; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar-in { gap: 16px; height: 64px; }
  .c-links { display: none; }
  .me .nm { display: none; }
  .hero-c { padding: 28px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-stats div { flex: 1; min-width: 0; padding: 12px 14px; }
  .hero-stats b { font-size: 28px; }
  .filters { padding: 14px; border-radius: 18px; }
  .frow { grid-template-columns: 1fr; gap: 6px; }
  .more-in { grid-template-columns: 1fr; }
  .coach { gap: 14px; padding: 14px; border-radius: 20px; }
  .ph.card { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
  .coach .nm { font-size: 18px; }
  .join { padding: 22px; } .join .btn { width: 100%; }
  .p-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ph.xl { width: 104px; height: 104px; border-radius: 28px; font-size: 42px; }
  .p-stats div { flex: 1; padding: 10px 12px; }
  .p-stats b { font-size: 22px; }
  .card-f { padding: 18px 16px; border-radius: 20px; }
  .two { grid-template-columns: 1fr; }
  .se { gap: 3px; grid-template-columns: 32px repeat(7, 1fr); }
  .se-c { height: 26px; }
  .se-h { line-height: 26px; font-size: 11px; }
  .photo-pick { gap: 14px; }
  .ph.xl { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .coach, .btn, .knob, .track, .meter-bar span { transition: none; } .avail.now i { animation: none; } }
.ph.pcard { width: 96px; height: 96px; border-radius: 22px; font-size: 36px; }
@media (max-width: 760px) { .ph.pcard { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; } }
