/* my-coach - dark room, neon everywhere. Phone first; a side menu on wide screens. */
:root {
  --neon: #00e5ff;
  --bg: #05050a;
  --panel: #0b0b13;
  --ink: #f1f1f7;
  --muted: #a1a1b5;
  --line: #1d1d2c;
  --green: #39ff88;
  --red: #ff3b5c;
  --amber: #ffb020;
  --violet: #b066ff;
  --ride: #ff7a1a;
  --run: #00e5ff;
  --strava: #fc5200;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(420px 300px at 0% 0%, rgba(255, 43, 214, .10), transparent 70%),
    radial-gradient(460px 360px at 100% 100%, rgba(0, 229, 255, .09), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, sans-serif;
}
a { color: var(--neon); }
a:hover { color: #8ff5ff; }
h1, h2, h3 { margin: 0; }
.display { font-family: 'Exo 2', sans-serif; }

/* Layout */
.shell { display: flex; min-height: 100vh; }
.content { flex: 1; min-width: 0; max-width: 640px; margin: 0 auto; padding: 22px 20px 110px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { stroke: var(--neon); filter: drop-shadow(0 0 5px var(--neon)); }
.brand span { font-family: 'Exo 2', sans-serif; font-weight: 800; letter-spacing: .16em; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(7, 7, 12, .96); border-top: 1px solid #1a1a28; padding: 8px 4px 22px; z-index: 5; }
.tab { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; text-shadow: 0 0 10px var(--neon); }
.side { display: none; }
@media (min-width: 900px) {
  .tabs { display: none; }
  .side { display: flex; flex-direction: column; gap: 26px; width: 250px; flex: 0 0 250px; padding: 26px 16px;
    background: rgba(7, 7, 12, .85); border-right: 1px solid #1a1a28; position: sticky; top: 0; height: 100vh; }
  .side a.nav { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 8px;
    border: 1px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; }
  .side a.nav:hover { color: #fff; background: rgba(255, 255, 255, .04); }
  .side a.nav.on { color: #fff; font-weight: 600; background: color-mix(in srgb, var(--neon) 10%, transparent);
    border-color: color-mix(in srgb, var(--neon) 60%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 35%, transparent), inset 0 0 12px color-mix(in srgb, var(--neon) 18%, transparent); }
  .content { padding-bottom: 48px; }
  .topbar { display: none; }
}

/* Neon building blocks - each takes its color from --c */
.np { background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 12px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 20%, transparent), inset 0 0 22px color-mix(in srgb, var(--c) 6%, transparent); }
.nt { color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 75%, transparent), 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.nb { background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid var(--c); color: #fff; text-shadow: 0 0 8px var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 70%, transparent), 0 0 30px color-mix(in srgb, var(--c) 30%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--c) 28%, transparent);
  cursor: pointer; font: 700 13px 'Exo 2', sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px; padding: 0 18px; width: 100%; }
.nb:hover { color: #fff; background: color-mix(in srgb, var(--c) 24%, transparent);
  box-shadow: 0 0 18px var(--c), 0 0 48px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.nb.small { min-height: 40px; width: auto; font-size: 11px; padding: 0 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.dot { background: var(--c); box-shadow: 0 0 6px var(--c), 0 0 14px color-mix(in srgb, var(--c) 65%, transparent); }
.ring { border: 2px solid var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.hollow { border: 2px solid #3a3a52; }
.bar-track { height: 8px; border-radius: 4px; background: #06060b; border: 1px solid var(--line); }
.bar { height: 100%; border-radius: 4px; background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.ghost { background: none; border: none; color: var(--muted); cursor: pointer; font: 600 13px Inter, sans-serif; padding: 6px 0; min-height: 36px; }
.ghost:hover { color: #fff; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.flash { --c: var(--green); padding: 12px 14px; font-size: 14px; }
.error { --c: var(--red); padding: 12px 14px; font-size: 14px; }

/* Page title */
.date { font-size: 13px; color: var(--muted); }
.page-title { font-family: 'Exo 2', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 255, 255, .35); }

/* Cards */
.card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kind { font: 700 11px 'Exo 2', sans-serif; letter-spacing: .18em; }
.card h3 { font-size: 17px; font-weight: 600; }
.section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-head h2 { font: 800 14px 'Exo 2', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.empty { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed #3a3a52;
  color: #c4c4d4; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px; text-align: center; }
.empty:hover { color: #fff; border-color: var(--neon); }
.inline-form { display: inline; margin: 0; }

/* Streak + plan strip */
.days { display: flex; justify-content: space-between; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.day i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.strip li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 8px; font-size: 11px; color: #c4c4d4; }
.strip li.today { background: rgba(255, 176, 32, .10); }
.strip i { width: 14px; height: 14px; border-radius: 50%; display: block; }

/* Forms */
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; }
.field { background: #08080f; border: 1px solid #2a2a3d; color: var(--ink); font: 16px Inter, sans-serif; min-height: 48px;
  padding: 0 12px; border-radius: 8px; width: 100%; }
.field:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 0 16px color-mix(in srgb, var(--neon) 50%, transparent); }
.field.short { width: 84px; }
select.field { appearance: none; }
label.stack { display: flex; flex-direction: column; gap: 6px; }
.choices { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { min-height: 48px; padding: 8px 12px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center;
  gap: 2px; background: var(--panel); border: 1px solid #2a2a3d; color: #c4c4d4; font-weight: 600; }
.choice span small { font-weight: 400; font-size: 12px; color: var(--muted); }
.choice:hover span { border-color: #4a4a63; color: #fff; }
.choice input:checked + span { color: #fff; background: color-mix(in srgb, var(--c, var(--neon)) 14%, transparent);
  border-color: var(--c, var(--neon));
  box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--neon)) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--c, var(--neon)) 22%, transparent); }
.choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.tag { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 60%, transparent); background: color-mix(in srgb, var(--green) 16%, transparent); align-self: flex-start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-day { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid #16161f; }
.plan-day-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.plan-day .dow { width: 46px; display: flex; flex-direction: column; font-weight: 700; font-size: 14px; }
.plan-day .dow small { font-weight: 400; font-size: 11px; color: var(--muted); }
.workout { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--panel);
  border: 1px solid #23233a; }
.workout select { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--neon); }
[hidden] { display: none !important; }

/* Connect with Strava: Strava's orange, per their brand guidelines. */
.strava-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 6px;
  background: var(--strava); color: #fff; font: 700 15px Inter, sans-serif; text-decoration: none; align-self: flex-start; }
.strava-btn:hover { color: #fff; background: #e34a00; }
.source { font-size: 12px; color: var(--muted); text-decoration: none; }
.source:hover { color: #fff; }

/* Profile */
.avatar { width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--neon) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--neon) 60%, transparent); color: #fff;
  font: 800 calc(var(--s) * .42) 'Exo 2', sans-serif; box-shadow: 0 0 10px color-mix(in srgb, var(--neon) 35%, transparent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person { display: flex; align-items: center; gap: 14px; }
.goal-line { display: block; margin-top: 4px; color: #ff7be6; font-weight: 600; font-size: 14px; text-decoration: none; text-shadow: 0 0 10px rgba(255, 43, 214, .55); }
.goal-line:hover { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb.small:focus-within { outline: 2px solid var(--neon); outline-offset: 2px; }
