/* Same world as the landing page: dark base, violet as the main light, cyan as the accent. */
/* Self-hosted display font (same file as the landing page): nothing is loaded from another site. */
@font-face { font-family:'Russo One'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url(/fonts/russo-one.woff2) format('woff2'); unicode-range:U+0000-00FF,U+2019,U+2013,U+2014; }
:root {
  --bg:#0a0912; --panel:#141226; --panel-2:#1b1833; --line:#2a2650; --ink:#f1eeff; --muted:#a6a1c8;
  /* --violet is the brand glow; --violet-solid is the same hue slightly deeper, used wherever white text sits on it (5:1 contrast) */
  --violet:#7c5cff; --violet-solid:#704dff; --cyan:#27d9f5; --green:#3ddc97; --amber:#ffc857; --red:#ff5c7a;
  --font-display:'Russo One', system-ui, sans-serif;
}
* { box-sizing:border-box; }
html { color-scheme:dark; -webkit-text-size-adjust:100%; }
body { margin:0; font-family:system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
a { color:inherit; }
button, input, select, textarea { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }

/* visible only when focused: lets keyboard and screen-reader users jump past the nav */
.skip-link { position:absolute; left:12px; top:-60px; z-index:30; background:var(--cyan); color:#04222a; font-weight:800;
  padding:10px 16px; border-radius:8px; text-decoration:none; transition:top .15s ease; }
.skip-link:focus { top:12px; }
.top { position:sticky; top:0; z-index:10; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  padding:calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background:rgba(10,9,18,.9); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.logo { font-family:var(--font-display); letter-spacing:.03em; font-size:1.15rem; text-decoration:none; }
.logo span { color:var(--cyan); }
.top-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.top-left { display:flex; align-items:center; gap:10px; }
.home-link { display:inline-flex; align-items:center; gap:4px; padding:6px 10px 6px 8px; border:1px solid var(--line); border-radius:8px; color:var(--muted); text-decoration:none; font-size:.85rem; font-weight:700; }
.home-link span { font-size:1.2rem; line-height:1; }
.home-link[hidden] { display:none; }
.home-link:hover, .home-link:focus-visible { color:var(--ink); border-color:var(--cyan); }
.back-top { display:inline-flex; align-items:center; gap:4px; margin-bottom:12px; color:var(--muted); text-decoration:none; font-weight:700; background:none; border:0; padding:0; font:inherit; cursor:pointer; }
.back-top:hover, .back-top:focus-visible { color:var(--ink); }
@media (max-width:420px) { .home-link b { display:none; } .home-link { padding:6px 10px; } }
.top select { width:auto; padding:7px 8px; }
#userbar { display:flex; align-items:center; gap:8px; }
.me { display:flex; align-items:center; gap:8px; font-size:.9rem; }
.me small { color:var(--muted); }

main { max-width:880px; margin:0 auto; padding:20px 16px calc(80px + env(safe-area-inset-bottom, 0px)); }
h1 { font-family:var(--font-display); font-size:1.6rem; font-weight:700; margin:0 0 4px; letter-spacing:-.005em; text-wrap:balance; }
h2 { font-size:1.15rem; margin:26px 0 12px; }
.sub { color:var(--muted); margin:0 0 18px; }
.muted { color:var(--muted); }
.fine { color:var(--muted); font-size:.8rem; margin:8px 0 0; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:10px; border:1px solid var(--violet-solid);
  background:var(--violet-solid); color:#fff; font-weight:700; cursor:pointer; text-decoration:none; box-shadow:0 0 18px rgba(124,92,255,.35); transition:transform .12s, box-shadow .12s; }
.btn:hover { transform:translateY(-1px); box-shadow:0 0 26px rgba(124,92,255,.6); }
.btn.ghost { background:transparent; border-color:var(--line); box-shadow:none; }
.btn.ghost:hover { border-color:var(--cyan); }
.btn.danger { background:transparent; border-color:rgba(255,92,122,.5); color:var(--red); box-shadow:none; }
.btn.good { background:var(--green); border-color:var(--green); color:#062a1b; box-shadow:0 0 18px rgba(61,220,151,.3); }
.btn.sm { padding:6px 12px; font-size:.85rem; }
.btn.armed { background:var(--amber); border-color:var(--amber); color:#2a1d00; box-shadow:0 0 18px rgba(255,200,87,.4); }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.linkbtn { background:none; border:0; color:var(--muted); cursor:pointer; padding:6px; }
.linkbtn:hover { color:var(--ink); }

label { display:block; font-size:.8rem; font-weight:600; color:var(--muted); margin:12px 0 5px; letter-spacing:.02em; }
input, select, textarea { width:100%; padding:11px 12px; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
input:focus, select:focus, textarea:focus { border-color:var(--violet); outline:none; box-shadow:0 0 0 3px rgba(124,92,255,.25); }
.fields { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:0 12px; }

.tabs { display:flex; gap:6px; padding:4px; background:var(--panel); border:1px solid var(--line); border-radius:12px; margin:0 0 18px; overflow-x:auto; }
.tabs button { flex:1; white-space:nowrap; padding:9px 12px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-weight:700; cursor:pointer; }
.tabs button.on { background:var(--panel-2); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line); }
.count { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-left:6px; border-radius:99px; background:var(--violet-solid); color:#fff; font-size:.72rem; }

.filters { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:6px 12px; border-radius:8px; border:1px solid var(--line); background:var(--panel); color:var(--muted); font-size:.82rem; font-weight:700; cursor:pointer; }
.chip.on { border-color:var(--cyan); color:var(--ink); box-shadow:0 0 14px rgba(39,217,245,.2); }

.list { display:grid; gap:12px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:16px; min-width:0; }
.card.focus { border-color:var(--violet); box-shadow:0 0 30px rgba(124,92,255,.2); }
.coach { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:start; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.coach:hover { transform:translateY(-2px); border-color:rgba(124,92,255,.6); box-shadow:0 12px 34px rgba(124,92,255,.18); }
.coach .avatar { box-shadow:0 0 22px rgba(124,92,255,.3); }
.coach > * { min-width:0; }
.avatar { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-weight:800; color:#fff; flex:none; }
.avatar.sm { width:30px; height:30px; border-radius:8px; font-size:.75rem; }
.lb-rank { width:32px; flex:none; text-align:center; font-size:1.1rem; color:var(--cyan); }
.game { display:inline-block; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--cyan);
  padding:2px 9px; border-radius:99px; background:rgba(39,217,245,.1); border:1px solid rgba(39,217,245,.35); }
.coach h3, .order h3 { margin:2px 0 4px; font-size:1.05rem; overflow-wrap:anywhere; }
.desc { color:var(--muted); font-size:.9rem; margin:0 0 6px; overflow-wrap:anywhere; }
.meta { display:flex; flex-wrap:wrap; gap:4px 12px; color:var(--muted); font-size:.82rem; }
.meta .star { color:var(--amber); }
.price-col { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.price { font-family:var(--font-display); font-size:1.3rem; font-weight:700; font-variant-numeric:tabular-nums; }
.price small { display:block; font-size:.72rem; font-weight:500; color:var(--muted); }

.panel { grid-column:1 / -1; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px; }
.panel .row { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.panel .actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.total { display:flex; justify-content:space-between; align-items:baseline; margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); }
.total b { font-size:1.2rem; font-variant-numeric:tabular-nums; }
.btn.lg { padding:13px 22px; font-size:1rem; border-radius:12px; }
.panel.checkout { padding:18px; background:linear-gradient(180deg, rgba(124,92,255,.08), transparent 60%), var(--bg); }
.co-lines { margin:16px 0 0; }
.co-lines > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; color:var(--muted); font-size:.92rem; }
.co-lines dt, .co-lines dd { margin:0; }
.co-lines dd { color:var(--ink); font-variant-numeric:tabular-nums; text-align:right; }
.co-lines .co-total { margin-top:4px; padding-top:12px; border-top:1px dashed var(--line); color:var(--ink); font-weight:700; }
.co-lines .co-total dd { font-family:var(--font-display); font-size:1.5rem; font-weight:700; }
.co-trust { list-style:none; margin:12px 0 4px; padding:12px; display:grid; gap:10px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.co-trust li { display:flex; align-items:flex-start; gap:10px; font-size:.84rem; color:var(--muted); }
.co-trust svg { width:18px; height:18px; flex:none; margin-top:1px; fill:none; stroke:var(--green); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.panel.checkout .actions .btn:first-child { flex:1 1 220px; }

.order .head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.order .head > div { min-width:0; }
.pill { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding:3px 10px; border-radius:99px; font-size:.75rem; font-weight:800; border:1px solid currentColor; }
.pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.s-pending_payment, .s-paid { color:var(--amber); }
.s-confirmed { color:var(--green); box-shadow:0 0 10px rgba(61,220,151,.45), inset 0 0 8px rgba(61,220,151,.18); text-shadow:0 0 8px rgba(61,220,151,.6); }
.s-delivered { color:var(--cyan); }
.s-completed { color:var(--green); }
.s-disputed { color:var(--red); }
.s-cancelled { color:var(--red); box-shadow:0 0 10px rgba(255,92,122,.4), inset 0 0 8px rgba(255,92,122,.15); text-shadow:0 0 8px rgba(255,92,122,.55); }
.steps { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; margin:14px 0 10px; }
.steps div { font-size:.72rem; color:var(--muted); }
.steps div::before { content:""; display:block; height:4px; border-radius:4px; background:var(--line); margin-bottom:6px; }
.steps div.done { color:var(--ink); }
.steps div.done::before { background:linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow:0 0 10px rgba(124,92,255,.5); }
.money-line { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:.88rem; }
.money-line b { font-variant-numeric:tabular-nums; }
.note { margin:10px 0 0; padding:10px 12px; border-radius:10px; background:var(--bg); border:1px solid var(--line); font-size:.85rem; color:var(--muted); }
.note.warn { border-color:rgba(255,200,87,.45); color:var(--amber); }
.order .actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.btn-row { display:flex; gap:8px; flex-wrap:wrap; }
.stars { display:flex; gap:4px; margin:6px 0 4px; }
.stars button { background:none; border:0; font-size:1.6rem; line-height:1; cursor:pointer; color:var(--line); padding:2px; }
.stars button.on { color:var(--amber); text-shadow:0 0 12px rgba(255,200,87,.5); }
.review { margin-top:10px; font-size:.88rem; }
.review .star { color:var(--amber); }

.stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin-bottom:18px; }
.stat { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px; }
.stat b { display:block; font-size:1.35rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stat span { color:var(--muted); font-size:.8rem; }
.chart-wrap { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:18px; }
.dash-chart { width:100%; height:auto; display:block; }
.chart-legend { display:flex; gap:16px; margin-top:8px; font-size:.8rem; color:var(--muted); }
.chart-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:middle; }
.banner { background:var(--panel); border:1px solid rgba(255,200,87,.45); border-radius:14px; padding:14px; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.banner p { margin:0; }

.empty { text-align:center; padding:32px 16px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); }
.empty b { display:block; color:var(--ink); font-size:1.05rem; margin-bottom:4px; }

.auth { max-width:440px; margin:12px auto; }
.auth .card { padding:22px; }
.auth.wide { max-width:920px; display:grid; grid-template-columns:1fr 1.05fr; margin-top:8px; border:1px solid var(--line); border-radius:22px; overflow:hidden;
  background:var(--panel); box-shadow:0 0 70px rgba(124,92,255,.2); }
.auth-side { position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:14px; min-height:540px; padding:34px 30px;
  background:linear-gradient(170deg, rgba(10,9,18,.35) 0%, rgba(10,9,18,.92) 78%), url(/img/hero.webp) 62% center/cover no-repeat, var(--bg); }
.auth-side::before { content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(260px 260px at 15% 12%, rgba(124,92,255,.4), transparent 70%), radial-gradient(240px 240px at 95% 90%, rgba(39,217,245,.25), transparent 70%); }
.auth-side > * { position:relative; }
.auth-side .eyebrow { margin:0; color:var(--cyan); font-weight:700; letter-spacing:.14em; text-transform:uppercase; font-size:.74rem; }
.auth-side h2 { font-family:var(--font-display); font-weight:700; font-size:1.7rem; line-height:1.15; margin:0; letter-spacing:-.005em; text-wrap:balance; }
.auth-points { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:10px; }
.auth-points li { display:flex; align-items:center; gap:10px; font-size:.92rem; }
.auth-points svg { width:20px; height:20px; flex:none; fill:none; stroke:var(--cyan); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.auth-main { padding:34px 30px; min-width:0; }
.auth-main .sub { margin-bottom:6px; }
.auth-form { padding:0; }
.auth-form .btn.full { margin-top:20px; }
.pw { position:relative; }
.pw input { padding-right:68px; }
.pw-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); padding:6px 10px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:.8rem; font-weight:700; cursor:pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color:var(--ink); background:var(--panel-2); }
@media (max-width:760px) {
  .auth.wide { grid-template-columns:1fr; border-radius:18px; }
  .auth-side { min-height:0; padding:22px 20px; background:linear-gradient(170deg, rgba(10,9,18,.5) 0%, rgba(10,9,18,.92) 100%), url(/img/hero.webp) 62% center/cover no-repeat, var(--bg); }
  .auth-side h2 { font-size:1.25rem; }
  .auth-points { display:none; }
  .auth-main { padding:22px 20px 26px; }
}
.roles { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.roles label { margin:0; cursor:pointer; position:relative; }
.roles input { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; } /* visually hidden; the card is the control. Without a width it stretched the page sideways */
.roles span { display:block; height:100%; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--ink); font-size:.9rem; font-weight:700; }
.roles span small { display:block; color:var(--muted); font-weight:500; font-size:.78rem; margin-top:2px; }
.roles input:checked + span { border-color:var(--violet); box-shadow:0 0 0 3px rgba(124,92,255,.25); }
.roles input:focus-visible + span { outline:2px solid var(--cyan); }
.auth .btn.full { width:100%; margin-top:18px; }
.auth .alt { display:flex; justify-content:space-between; flex-wrap:wrap; margin-top:10px; }

.row-card { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.row-card > div { min-width:0; }

#toast { position:fixed; left:0; right:0; margin:0 auto; width:fit-content; bottom:calc(20px + env(safe-area-inset-bottom, 0px)); transform:translateY(20px); max-width:min(92vw, 480px);
  background:var(--panel-2); border:1px solid var(--line); color:var(--ink); padding:12px 16px; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,.5);
  opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:20; }
#toast.show { opacity:1; transform:translateY(0); }

@media (max-width:560px) {
  .coach { grid-template-columns:auto 1fr; }
  .price-col { grid-column:1 / -1; flex-direction:row; justify-content:space-between; align-items:center; text-align:left; }
  .me .name { display:none; }
}
@media (prefers-reduced-motion:reduce) { .btn, #toast, .coach { transition:none; } .coach:hover { transform:none; } }

/* account and settings pages */
.acct { max-width:720px; margin:0 auto; }
.acct-head { display:flex; align-items:center; gap:18px; padding:20px; margin-bottom:14px;
  background:radial-gradient(420px 160px at 0% 0%, rgba(124,92,255,.22), transparent 70%), var(--panel); }
.acct-head h1 { margin:0 0 4px; font-size:1.5rem; overflow-wrap:anywhere; }
.acct-id { min-width:0; }
.acct-id .badges { margin:10px 0 0; }
.avatar.lg { width:72px; height:72px; border-radius:20px; font-size:1.5rem; box-shadow:0 0 30px rgba(124,92,255,.35); }
.acct-body { display:grid; gap:12px; }
.acct-body > .card { margin-bottom:0 !important; }
.acct .fields { grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); }
.acct .btn.full { width:100%; margin-top:18px; }
.card-title { margin:0 0 6px; font-size:1.05rem; }
.legal-links { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:6px; }
.legal-links a { color:var(--cyan); font-size:.9rem; }
@media (max-width:480px) { .acct-head { flex-direction:column; align-items:flex-start; } }

/* profile and contact details */
.me-btn { display:flex; align-items:center; gap:8px; background:none; border:1px solid transparent; border-radius:10px; padding:4px 8px 4px 4px; cursor:pointer; }
.me-btn:hover { border-color:var(--line); background:var(--panel); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.dot { display:inline-block; width:8px; height:8px; margin-left:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); vertical-align:middle; }
.contacts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; font-size:.85rem; }
.contact { display:inline-flex; align-items:center; gap:6px; padding:7px 11px; border-radius:9px; border:1px solid var(--line); background:var(--bg);
  color:var(--ink); font-size:.82rem; text-decoration:none; cursor:pointer; min-width:0; }
.contact b { color:var(--cyan); font-weight:800; }
.contact span { overflow-wrap:anywhere; }
.contact:hover { border-color:var(--cyan); }

/* chat */
main.chatting { padding-bottom:0; }
.chat { display:flex; flex-direction:column; min-height:calc(100dvh - 130px); }
.chat-head { display:grid; grid-template-columns:1fr auto; gap:8px 12px; align-items:center; }
.chat-head .back { grid-column:1 / -1; justify-self:start; padding-left:0; }
.chat-who { display:flex; align-items:center; gap:12px; min-width:0; }
.chat-who > div { min-width:0; }
#chat-contacts { grid-column:1 / -1; }
#chat-contacts:empty { display:none; }
#chat-contacts .contacts, #chat-contacts .fine { margin-top:0; }
.chat-tip { margin:12px 2px; }
.chat-list { flex:1; display:flex; flex-direction:column; gap:10px; padding:4px 0 16px; }
.chat-list .empty { margin-top:12px; }
.day { align-self:center; margin:6px 0; padding:2px 10px; border:1px solid var(--line); border-radius:99px; color:var(--muted); font-size:.72rem; }
.msg { display:flex; flex-direction:column; max-width:min(80%, 520px); }
.msg.mine { align-self:flex-end; align-items:flex-end; }
.msg.theirs { align-self:flex-start; }
.msg.team { align-self:center; align-items:center; max-width:90%; }
.msg .from { margin:0 4px 3px; color:var(--muted); font-size:.72rem; }
.bubble { padding:10px 13px; border-radius:16px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.mine .bubble { background:linear-gradient(135deg, #6a4cf2, #5536d6); color:#fff; border-bottom-right-radius:5px; }
.theirs .bubble { background:var(--panel-2); border:1px solid var(--line); border-bottom-left-radius:5px; }
.team .bubble { background:var(--bg); border:1px solid var(--cyan); text-align:center; }
.msg time { margin:3px 4px 0; color:var(--muted); font-size:.68rem; }
.flag { max-width:320px; margin:6px 4px 0; color:var(--amber); font-size:.75rem; }
.composer { position:sticky; bottom:0; display:flex; align-items:flex-end; gap:8px; margin-top:auto;
  padding:10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background:var(--bg); border-top:1px solid var(--line); }
.composer textarea { min-height:44px; max-height:140px; resize:none; }
.composer .btn { flex:none; min-height:44px; }

/* Discord */
.btn.discord { background:#5865f2; border-color:#5865f2; box-shadow:0 0 18px rgba(88,101,242,.4); }
.btn.discord:hover { box-shadow:0 0 26px rgba(88,101,242,.65); }
.auth .btn.discord.full { margin-top:0; }
.btn.google { background:#4285f4; border-color:#4285f4; box-shadow:0 0 18px rgba(66,133,244,.4); }
.btn.google:hover { box-shadow:0 0 26px rgba(66,133,244,.65); }
.auth .btn.google.full { margin-top:0; }
.btn.steam { background:#171a21; border-color:#171a21; box-shadow:0 0 18px rgba(102,192,244,.35); }
.btn.steam:hover { box-shadow:0 0 26px rgba(102,192,244,.6); }
.auth .btn.steam.full { margin-top:0; }
.btn.apple { background:#000; border-color:#000; box-shadow:0 0 18px rgba(255,255,255,.18); }
.btn.apple:hover { box-shadow:0 0 26px rgba(255,255,255,.3); }
.auth .btn.apple.full { margin-top:0; }
.or { display:flex; align-items:center; gap:10px; margin:18px 0 2px; color:var(--muted); font-size:.8rem; }
.or::before, .or::after { content:""; flex:1; height:1px; background:var(--line); }
.linked { color:#aab2ff; }

/* tiers and skill levels */
.badges { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 6px; }
.tier, .skill { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:6px; border:1px solid var(--line);
  font-size:.72rem; font-weight:800; letter-spacing:.03em; white-space:nowrap; }
.t-new { color:var(--muted); }
.t-rising { color:var(--cyan); border-color:rgba(39,217,245,.45); }
.t-pro { color:#b3a1ff; border-color:rgba(124,92,255,.65); }
.t-elite { color:var(--amber); border-color:rgba(255,200,87,.6); box-shadow:0 0 12px rgba(255,200,87,.25); }
.stat .tier { font-size:1rem; padding:2px 10px; }
.skill { color:var(--ink); background:var(--panel-2); }
.skill b { color:var(--green); font-weight:800; }
.progress-note { margin:-6px 0 16px; color:var(--muted); font-size:.85rem; }
.search-row { display:flex; flex-wrap:wrap; gap:8px; }
.search-row input { flex:1 1 220px; min-width:0; }
.search-row select { width:auto; flex:1 0 auto; }
#chips { display:flex; flex-direction:column; gap:8px; }
#chips:empty { display:none; }
.check .actions select { width:auto; padding:7px 8px; }

/* sign-up checks, report sheet, profile danger zone */
label.check { display:flex; align-items:flex-start; gap:10px; margin:12px 0 0; color:var(--ink); font-size:.88rem; font-weight:500; letter-spacing:0; }
label.check input { width:20px; height:20px; flex:none; margin:1px 0 0; accent-color:var(--violet); }
label.check a { color:var(--cyan); }
.linkbtn.tiny { padding:0 2px; font-size:.75rem; min-height:0; text-decoration:underline; }
.chat-tools { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px 16px; justify-content:space-between; }
.chat-tools .linkbtn { white-space:nowrap; }
.sheet-backdrop { position:fixed; inset:0; background:rgba(5,4,12,.7); z-index:30; }
.sheet-panel { position:fixed; z-index:31; left:0; right:0; bottom:0; margin:0 auto; width:min(100%, 520px); max-height:90dvh; overflow:auto;
  border-radius:18px 18px 0 0; padding:20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.danger-zone { border-color:rgba(255,92,122,.4); }
.app-foot { display:flex; justify-content:center; gap:18px; flex-wrap:wrap; padding:18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-size:.8rem; }
.app-foot a { color:var(--muted); }
main.chatting ~ .app-foot { display:none; }

/* account marketplace */
pre.secret { margin:12px 0 0; padding:12px; border-radius:10px; background:var(--bg); border:1px dashed var(--cyan); white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; }

/* touch: press feedback and 44px minimum tap targets */
.btn:active, .chip:active, .tabs button:active, .linkbtn:active { opacity:.8; }
@media (pointer:coarse) {
  .btn, .chip, .tabs button, .linkbtn:not(.tiny) { min-height:44px; }
  .stars button { min-width:44px; min-height:44px; }
}
.roles + .btn.discord { margin-top:14px !important; }

/* ---- coach profile pages ---- */
.back { margin: 4px 0 14px; font-size: 14px; }
.name-link { color: inherit; font-weight: 600; padding: 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.name-link:hover { text-decoration-color: currentColor; }
.coach-head { position: relative; flex-wrap: wrap; }
.coach-head .head-actions { margin-left: auto; display: flex; gap: 8px; align-self: flex-start; }
.bio { white-space: pre-wrap; margin: 0; line-height: 1.6; }
.section-title { font-size: 18px; margin: 28px 0 12px; }
.game-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.game-card { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.03); }
.game-card h4 { margin: 0; font-size: 16px; }
.game-card .badges { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.game-card .desc { margin: 6px 0; }
.game-link { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 14px; }
.verified { color: #5eead4; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.review .desc { margin: 6px 0; }
.staff-card { border-color: rgba(124,92,255,.5); }
.mono { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
@media (max-width: 600px) { .coach-head .head-actions { margin-left: 0; width: 100%; } }
.staff-card, #mod-form, #password-form, .banner + #mod-form { margin-bottom: 14px; }
.card.banner[role="status"] { margin-bottom: 14px; }

/* ---- search and filters ---- */
.search-row #filter-toggle { flex:0 0 auto; display:inline-flex; align-items:center; gap:8px; }
.filter-panel { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; align-items:end; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.filter-panel[hidden] { display:none; }
.filter-panel label { display:block; font-size:.8rem; margin-bottom:4px; }
.filter-panel .check { display:flex; align-items:center; gap:8px; min-height:44px; margin:0; }
.filter-panel .check input { width:auto; }
.result-row { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:24px; }
.count[hidden], #clear-filters[hidden] { display:none; }

/* ---- availability ---- */
.slots { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px; }
.slot { padding:8px 14px; border-radius:10px; border:1px solid var(--line); background:var(--panel); color:var(--ink); font-weight:700; cursor:pointer; min-height:40px; }
.slot.on { border-color:var(--cyan); box-shadow:0 0 14px rgba(39,217,245,.25); background:rgba(39,217,245,.1); }
.next-open { color:var(--green); font-weight:700; }
.hours-row { display:flex; gap:14px; padding:4px 0; } .hours-row b { min-width:100px; }
.hours-day { display:flex; gap:14px; padding:10px 0; border-top:1px solid var(--line); align-items:flex-start; }
.hours-day > b { min-width:100px; padding-top:8px; }
.hours-wins { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.hours-win { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.hours-win input[type=time] { width:auto; }
.hours-presets { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
@media (max-width:600px) { .hours-day { flex-direction:column; gap:4px; } .hours-day > b { padding-top:0; } }

.game-links { display:flex; flex-wrap:wrap; gap:4px 16px; }

/* ---- security and email ---- */
.sec-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:10px 16px; padding:12px 0; border-top:1px solid var(--line); }
.sec-row:first-of-type { border-top:0; }
.inline-form { flex:1 1 280px; }
.inline-form label { display:block; margin-bottom:4px; }
.inline-row { display:flex; gap:8px; } .inline-row input { flex:1; min-width:0; }
.sec-toggle { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--line); margin:0; }
.sec-toggle input { width:auto; margin-top:4px; }
.sec-toggle small { display:block; color:var(--muted); font-weight:400; }
/* stacked cards on profile pages and the staff inbox get a gap */
#app > section.card, #app > .card { margin-bottom:14px; }
.support-reply { margin-top:10px; }
.hours-row b { min-width:120px; }

/* language picker and right-to-left languages (Arabic, Urdu) */
.lang-switch { font:inherit; font-size:.9rem; color:var(--ink); background:var(--panel, transparent); border:1px solid var(--line, rgba(255,255,255,.18)); border-radius:10px; padding:6px 8px; max-width:9.5rem; cursor:pointer; }
.lang-switch:focus-visible { outline:2px solid var(--accent, #7c5cff); outline-offset:2px; }
[dir="rtl"] .nav nav a:not(.btn)::after { left:auto; right:0; }
[dir="rtl"] .nav nav a:not(.btn):hover::after { right:0; left:100%; }
.lang-switch option { color:#111; background:#fff; }

/* passkeys in settings */
.sec-passkeys { flex-direction:column; align-items:stretch; }
.sec-passkeys .pk { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; }
.sec-passkeys .pk small { margin-left:6px; }
.sec-passkeys > div:first-child small { display:block; margin-top:2px; }
.sec-passkeys .inline-form { flex:0 0 auto; }

/* bank details form for coaches paid by transfer */
#payout-form { padding:16px; margin-bottom:16px; }
#payout-form .btn { margin-top:8px; }
.sec-row > div > small.fine { display:block; margin-top:2px; }
.warn-text { color:var(--amber, #ffc857); font-weight:700; }

.id-rules { margin: 0 0 12px; padding-left: 1.1rem; display: grid; gap: 4px; }
.for-who { display: grid; gap: 8px; margin: 12px 0; }

.tips { margin: 12px 0 0; font-size: .9rem; }
.tips summary { cursor: pointer; font-weight: 600; }
.tips ul { margin: 8px 0 0; padding-left: 1.1rem; display: grid; gap: 4px; }

.card.urgent { border-color: #ff5a7a; box-shadow: 0 0 0 1px #ff5a7a; }

.role-fields { border: 1px solid var(--line, #ffffff22); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; display: grid; gap: 6px; }
.role-fields legend { padding: 0 6px; font-weight: 600; }
.game-roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.role-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid #8c82dc66; background: #8c82dc1f; font-size: .78rem; line-height: 1.5; white-space: nowrap; }

/* Accept and decline a booking: green and red neon */
.btn.neon-green { background:var(--green); border-color:#7dffc4; color:#032015; box-shadow:0 0 6px rgba(61,220,151,.9), 0 0 18px rgba(61,220,151,.65), 0 0 34px rgba(61,220,151,.35); transition:box-shadow .2s, transform .1s; }
.btn.neon-green:hover { box-shadow:0 0 8px rgba(61,220,151,1), 0 0 26px rgba(61,220,151,.8), 0 0 48px rgba(61,220,151,.5); }
.btn.neon-red { background:rgba(255,92,122,.12); border-color:var(--red); color:#ff8aa0; text-shadow:0 0 8px rgba(255,92,122,.8); box-shadow:0 0 6px rgba(255,92,122,.85), 0 0 18px rgba(255,92,122,.5), inset 0 0 10px rgba(255,92,122,.2); transition:box-shadow .2s, background .2s; }
.btn.neon-red:hover { background:rgba(255,92,122,.22); box-shadow:0 0 8px rgba(255,92,122,1), 0 0 26px rgba(255,92,122,.7), inset 0 0 12px rgba(255,92,122,.3); }
/* phone-width tabs: fit four tabs without cutting one off */
@media (max-width: 480px) {
  .tabs { gap:2px; padding:3px; }
  .tabs button { padding:9px 7px; font-size:.84rem; }
}
@media (max-width: 380px) {
  .tabs button { padding:9px 5px; font-size:.78rem; }
}
