/* Coco Gym — member PWA styles (skeleton). Dark, mobile-first, app-like. */
:root {
  --bg: #0f172a; --surface: #1e293b; --surface-2: #334155;
  --text: #e2e8f0; --muted: #94a3b8; --accent: #22d3ee; --accent-2: #38bdf8;
  --ok: #34d399; --radius: 16px; --maxw: 640px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding-bottom: 80px;
}
a { color: var(--accent-2); text-decoration: none; }
code { background: #0b1220; color: #7dd3fc; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.muted { color: var(--muted); }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 18px; background: rgba(15,23,42,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-2);
}
.brand { font-weight: 700; letter-spacing: .3px; } .logo { margin-right: 6px; }

.view { max-width: var(--maxw); margin: 0 auto; padding: 18px; display: grid; gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--radius); padding: 18px;
}
.card h1, .card h2, .card h3 { margin: 0 0 10px; }

button { font: inherit; cursor: pointer; border-radius: 12px; border: 0; padding: 12px 16px; }
button.primary { width: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04222b; font-weight: 700; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--surface-2); padding: 8px 12px; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: #0b1220;
  border: 1px solid var(--surface-2); border-radius: 10px; padding: 11px 12px;
}
.switch { text-align: center; font-size: 14px; margin: 12px 0 0; }
.msg { min-height: 20px; text-align: center; color: var(--accent); font-size: 14px; }
.auth { min-height: 60vh; display: grid; place-items: center; }
.auth .card { width: 100%; }

.hero .stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; text-align: center; }
.hero .stats b { display: block; font-size: 22px; color: var(--accent); }
.hero .stats span { font-size: 12px; color: var(--muted); }

.membership .qr {
  width: 120px; height: 120px; display: grid; place-items: center; margin: 8px auto;
  border: 2px dashed var(--surface-2); border-radius: 12px; color: var(--muted);
}
.filters { display: grid; gap: 8px; }
.soon ul { margin: 6px 0 0; padding-left: 18px; } .soon li { margin: 4px 0; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; display: grid;
  grid-template-columns: repeat(5,1fr); background: rgba(15,23,42,.95);
  backdrop-filter: blur(8px); border-top: 1px solid var(--surface-2);
}
.tabbar a {
  display: grid; justify-items: center; gap: 2px; padding: 10px 0 12px;
  font-size: 20px; color: var(--muted);
}
.tabbar a span { font-size: 11px; }
.tabbar a.active { color: var(--accent); }

/* shared rows / pills / tags */
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--surface-2); text-decoration: none; color: var(--text); }
.row:first-of-type { border-top: 0; }
.row small { color: var(--muted); white-space: nowrap; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: rgba(52,211,153,.18); color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.back { display: inline-block; color: var(--muted); margin-bottom: 8px; }
.count { margin: 0 0 6px; }

.cardface { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #0b1220, #10233a); border: 1px solid var(--surface-2);
  border-radius: 12px; padding: 14px; margin: 8px 0; }
.cardface small { display: block; color: var(--muted); }

/* exercise list */
.grid-list { display: grid; gap: 10px; }
.exitem { display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--surface-2); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--text); }
.exitem img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #0b1220; }
.exitem small { display: block; color: var(--muted); text-transform: capitalize; }
.prog { display: block; background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); }
.prog p { margin: 6px 0; }
.hero-img { width: 100%; max-width: 320px; border-radius: 12px; margin: 6px 0; background: #0b1220; }

/* log workout */
.center-card { text-align: center; }
.setgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 8px 0; }
.sugg { display: grid; gap: 4px; margin: 6px 0; }
.sg { text-align: left; background: #0b1220; color: var(--text); border: 1px solid var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.chosen { color: var(--accent); font-weight: 600; min-height: 20px; margin: 4px 0; }
