/* ==========================================================================
   IRONVAULT — member dashboard
   ========================================================================== */

.dash { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 108px; padding-bottom: 80px; align-items: start; }
.dash > main { min-width: 0; }

/* Sidebar */
.side { position: sticky; top: 108px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.side-profile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-profile .avatar { flex: none; }
.side-profile strong { display: block; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile div span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile > div { min-width: 0; }
.side-nav { display: grid; gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background 0.2s, color 0.2s; }
.side-nav a svg { width: 19px; height: 19px; flex: none; }
.side-nav a:hover { color: var(--text); background: var(--surface-2); }
.side-nav a.active { color: var(--accent-ink); background: var(--accent); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--danger); color: #fff; }
.side-nav .count[hidden] { display: none; }
.side-nav a.active .count { background: var(--accent-ink); color: var(--accent); }

/* Panels */
.panel[hidden] { display: none; }
.panel { animation: fadeUp 0.5s var(--ease); }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.panel-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; line-height: 1; margin: 8px 0 0; }
.panel-head p { margin: 8px 0 0; color: var(--muted); }

.card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .muted { color: var(--muted); font-size: 14px; margin: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-title h3 { margin: 0; }
.link { color: var(--accent); font-size: 14px; font-weight: 600; }
.link:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.stat-top .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.stat-top .ico svg { width: 18px; height: 18px; }
.stat strong { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.01em; }
.stat small { color: var(--faint); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.stack { display: grid; gap: 20px; }

/* Status pills */
.pill-status { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.pill-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-status.paid, .pill-status.active { color: var(--ok); background: rgba(61, 220, 151, 0.1); }
.pill-status.due { color: var(--warn); background: rgba(255, 181, 71, 0.1); }
.pill-status.overdue, .pill-status.inactive { color: var(--danger); background: rgba(255, 93, 93, 0.1); }
.pill-status.locked { color: var(--muted); background: var(--surface-3); }

/* Hero membership card */
.member-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, rgba(20, 20, 24, 0.97) 40%, rgba(16, 16, 19, 0.72)), url('/img/member-card.jpg') center / cover;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 26px; min-height: 260px;
}
.member-card::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 255, 58, 0.25), transparent 65%); z-index: -1; }
.member-card.is-due::before { background: radial-gradient(circle, rgba(255, 93, 93, 0.22), transparent 65%); }
.member-card::after { content: 'IRONVAULT'; position: absolute; right: 22px; bottom: -18px; font-family: var(--font-display); font-size: 92px; color: rgba(255, 255, 255, 0.03); z-index: -1; line-height: 1; }
.member-card .row { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.member-card .label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.member-card .big { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 54px); line-height: 1; margin-top: 8px; }
.member-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* Payments table */
.table-wrap { overflow-x: auto; margin: 0 -26px -26px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 12px 26px; border-bottom: 1px solid var(--line); }
td { padding: 16px 26px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
td strong { font-weight: 600; }
td .ref { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--faint); }
td.right, th.right { text-align: right; }
.empty { padding: 30px 0 6px; text-align: center; color: var(--muted); font-size: 14px; }

.dues-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--radius-lg); margin-bottom: 20px; border: 1px solid; }
.dues-banner.due { background: rgba(255, 93, 93, 0.06); border-color: rgba(255, 93, 93, 0.3); }
.dues-banner.clear { background: rgba(61, 220, 151, 0.06); border-color: rgba(61, 220, 151, 0.3); }
.dues-banner h3 { margin: 0; font-size: 18px; }
.dues-banner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Modules */
.filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.filter button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.filter button.active { background: var(--surface-3); color: var(--text); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.module {
  position: relative; overflow: hidden; text-align: left;
  padding: 0; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 250px;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.module:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.module.unlocked:hover { border-color: rgba(215, 255, 58, 0.4); }
.module .m-img { position: relative; height: 150px; overflow: hidden; }
.module .m-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.module .m-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(18, 18, 22, 0.1) 60%); }
.module.unlocked:hover .m-img img { transform: scale(1.06); }
.module .m-top { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.module .m-top .pill-status { backdrop-filter: blur(10px); background-color: rgba(8, 8, 10, 0.65); }
.module .m-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 4px 24px 24px; }
.module .m-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(8, 8, 10, 0.65); backdrop-filter: blur(10px); color: var(--accent); }
.module .m-icon svg { width: 22px; height: 22px; }
.module h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.module p { margin: 0; color: var(--muted); font-size: 14px; }
.module .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.module .meta span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.module.locked > *:not(.lock-veil) { filter: blur(1.5px); opacity: 0.45; }
.lock-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: linear-gradient(180deg, rgba(8, 8, 10, 0.2), rgba(8, 8, 10, 0.75)); }
.lock-veil .lock-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text); }
.lock-veil .lock-ico svg { width: 22px; height: 22px; }
.lock-veil strong { font-size: 15px; }
.lock-veil small { color: var(--muted); font-size: 13px; max-width: 220px; }

/* Module detail */
.plan-days { display: grid; gap: 12px; margin: 22px 0; }
.plan-day { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.plan-day h5 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.plan-day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan-day li { display: flex; gap: 10px; align-items: start; }
.plan-day li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); margin-top: 8px; flex: none; }
.tips { padding: 16px 18px; border-radius: 14px; background: rgba(215, 255, 58, 0.06); border: 1px solid rgba(215, 255, 58, 0.2); font-size: 14px; }
.tips strong { display: block; margin-bottom: 6px; color: var(--accent); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.tips ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* PT */
.pt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-plan { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pt-plan.popular { border-color: rgba(215, 255, 58, 0.45); background: linear-gradient(180deg, rgba(215, 255, 58, 0.08), var(--surface) 60%); }
.pt-plan .badge { position: absolute; top: -11px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pt-plan h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.pt-plan .price { margin: 10px 0 16px; }
.pt-plan .price strong { font-size: 40px; }
.pt-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.pt-plan li { display: flex; gap: 10px; }
.pt-plan li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.pt-plan .btn { margin-top: auto; }

.pt-active { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.coach-badge { width: 96px; height: 96px; border-radius: 24px; background: var(--surface-3) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -16px rgba(215, 255, 58, 0.35); }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.kv div span { display: block; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.kv div strong { display: block; margin-top: 4px; font-size: 16px; }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-top: 18px; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.notice { display: flex; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 20px; background: rgba(255, 181, 71, 0.07); border: 1px solid rgba(255, 181, 71, 0.3); font-size: 14px; }
.notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 1px; }
.notice p { margin: 0; color: var(--muted); }
.notice strong { color: var(--text); }

/* Checkout modal */
.checkout-summary { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 20px; }
.checkout-summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding: 4px 0; }
.checkout-summary .total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 16px; }
.pay-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; transition: border-color 0.2s, background 0.2s; font-size: 14px; }
.pay-method input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay-method:has(input:checked) { border-color: var(--accent); background: rgba(215, 255, 58, 0.05); }
.pay-method small { margin-left: auto; color: var(--faint); font-size: 12px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--faint); }
.secure-note svg { width: 14px; height: 14px; }
.success-view { text-align: center; padding: 10px 0; }
.success-view .tick { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); animation: pop 0.5s var(--ease); }
.success-view .tick svg { width: 36px; height: 36px; }
.success-view h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; text-transform: uppercase; margin: 0 0 8px; }
.success-view p { color: var(--muted); margin: 0 0 6px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* Skeleton */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .pt-plans { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; padding-top: 96px; gap: 22px; }
  .side { position: static; }
  .side-profile { display: none; }
  .side-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { white-space: nowrap; flex: none; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 26px; }
  .card, .member-card { padding: 22px; }
  .table-wrap { margin: 0 -22px -22px; }
  th, td { padding-left: 22px; padding-right: 22px; }
  .pt-active { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Exercise demonstration rig + muscle map
   ========================================================================== */
.rig { width: 100%; height: auto; display: block; overflow: visible; }
.rig line { stroke-linecap: round; fill: none; }
.rig-floor { stroke: var(--line-strong); stroke-width: 1; }
.rig-shadow { fill: rgba(0, 0, 0, 0.45); }

/* Figure */
.rg-skin { fill: #c9a78c; stroke: #5d4636; stroke-width: 0.7; stroke-linejoin: round; }
.rg-skin.far { fill: #8a6f5c; stroke: #43322a; }
.rg-shorts { fill: #26262e; stroke: #0d0d10; stroke-width: 0.7; stroke-linejoin: round; }
.rg-shorts.far { fill: #18181e; }
.rg-shoe { fill: #eeeef2; stroke: #5d5d68; stroke-width: 0.8; stroke-linejoin: round; }
.rg-shoe.far { fill: #8d8d97; }
.rg-hair { fill: #2a221d; stroke: none; }
.rg-eye { fill: #1c1612; }
.rg-ear { fill: #b28f76; stroke: #5d4636; stroke-width: 0.5; }

/* Muscles: faint definition at rest, lit when the exercise works them */
.mus { fill: rgba(92, 62, 44, 0.24); stroke: rgba(70, 46, 32, 0.5); stroke-width: 0.5; stroke-linejoin: round; }
.rig .mus.is-hl { fill: var(--accent); stroke: #7c9a12; filter: drop-shadow(0 0 4px rgba(215, 255, 58, 0.65)); }
.rig .mus.is-hl2 { fill: #a3b84e; stroke: #66752c; }

/* Equipment */
.prop-pad { stroke: #34343d; stroke-width: 9; }
.prop-post { stroke: #2a2a31; }
.prop-rect { fill: #2a2a31; }
.prop-back { fill: #1d1d23; }
.prop-pulley { fill: #2e2e36; stroke: #4a4a55; stroke-width: 1.5; }
.prop-hub { fill: #7a7a86; }
.rig-cable { stroke: #8c8c98; stroke-width: 1.4; }
.eq-plate { fill: rgba(31, 31, 37, 0.5); stroke: #62626e; stroke-width: 1.5; }
.eq-ring { fill: none; stroke: #3c3c46; stroke-width: 1; }
.eq-hub { fill: #b4b4bd; }
.eq-db { fill: #34343d; stroke: #7a7a86; stroke-width: 1.6; }
.eq-db.far { fill: #212127; stroke: #4a4a55; }
.eq-db-front { stroke: #4e4e5a; }
.eq-bar { stroke: #9a9aa6; }
.eq-grip { fill: #a1a1aa; }
.eq-roller { fill: #3a3a43; stroke: #5d5d68; stroke-width: 2; }

/* Coaching overlays */
.rig-trace { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2.5 3; opacity: 0.65; }
.rig-arc { fill: rgba(215, 255, 58, 0.16); stroke: var(--accent); stroke-width: 0.9; }
.rig-arc-text { font: 700 8.5px var(--font-body); fill: var(--accent); stroke: #0b0b0e; stroke-width: 2.6; paint-order: stroke; font-variant-numeric: tabular-nums; }
.rig-cue { opacity: 0; transition: opacity 0.25s; }
.rig-cue.on { opacity: 1; }
.rig-cue-line { stroke: #fff; stroke-width: 0.7; stroke-dasharray: 2 1.6; }
.rig-cue-pin { fill: #fff; stroke: #0b0b0e; stroke-width: 1; }
.rig-cue-box { fill: rgba(11, 11, 14, 0.9); stroke: rgba(255, 255, 255, 0.4); stroke-width: 0.6; }
.rig-cue-text { font: 600 7.8px var(--font-body); fill: #fff; }

/* Player controls for the demonstration */
.key-poses { display: inline-flex; }
.ctrl-toggle { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); }
.ctrl-toggle[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.muscle-map { width: 100%; height: auto; display: block; }
.mm-base { fill: #1f1f25; stroke: #1f1f25; stroke-linecap: round; }
.mm { fill: #2c2c34; stroke: #121216; stroke-width: 1.2; transition: fill 0.3s; }
.mm.is-secondary { fill: rgba(215, 255, 58, 0.38); }
.mm.is-primary { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(215, 255, 58, 0.5)); animation: mmPulse 2.4s ease-in-out infinite; }
.mm-label { fill: var(--faint); font: 600 11px var(--font-body); letter-spacing: 0.2em; }
@keyframes mmPulse { 50% { opacity: 0.72; } }

/* ==========================================================================
   Training programme
   ========================================================================== */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.primary { color: var(--accent); border-color: rgba(215, 255, 58, 0.35); background: rgba(215, 255, 58, 0.07); }
.small { font-size: 12.5px; }

/* Today card (overview) */
.today-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(215, 255, 58, 0.07), var(--surface) 45%); border-color: rgba(215, 255, 58, 0.22); }
.today-card.rest { background: var(--surface); border-color: var(--line); }
.today-card .today-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; line-height: 1; margin: 10px 0 14px !important; }
.today-card .today-title span { display: block; font-family: var(--font-body); font-size: 14px; text-transform: none; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.today-list { display: flex; flex-wrap: wrap; gap: 8px; }
.today-list span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.today-side { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.today-thumb { width: 190px; }

/* Programme hero */
.program-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.ph-main, .ph-week { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.ph-main { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(110deg, rgba(14, 14, 17, 0.96) 45%, rgba(14, 14, 17, 0.75)), url("/img/hero.jpg") center 30% / cover; }
.ph-main h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; line-height: 0.95; margin: 12px 0; }
.ph-main p { color: var(--muted); max-width: 520px; margin: 0 0 22px; font-size: 15px; }
.level-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(8, 8, 10, 0.6); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); flex-wrap: wrap; }
.level-switch button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.level-switch button.active { background: var(--accent); color: var(--accent-ink); }
.ph-week { display: flex; flex-direction: column; gap: 10px; }
.ph-week.deload { border-color: rgba(61, 220, 151, 0.35); }
.ph-week-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ph-week > strong { font-family: var(--font-display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1; }
.ph-rir { display: flex; align-items: center; gap: 14px; }
.ph-rir b { font-family: var(--font-display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--accent); }
.ph-rir span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ph-week p { margin: 0; color: var(--muted); font-size: 14px; }
.ph-dots { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.ph-dots i { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); }
.ph-dots i.past { background: rgba(215, 255, 58, 0.4); }
.ph-dots i.now { background: var(--accent); box-shadow: 0 0 12px rgba(215, 255, 58, 0.5); }
.locked-days { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.locked-days li { display: grid; grid-template-columns: 44px 90px 1fr; gap: 10px; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.locked-days li:last-child { border-bottom: 0; }
.locked-days span { color: var(--faint); font-weight: 600; }
.locked-days small { color: var(--muted); }

/* Day strip */
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-pill { position: relative; text-align: left; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.day-pill:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.day-pill .dp-day { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.day-pill strong { font-size: 15px; }
.day-pill .dp-meta { font-size: 12px; color: var(--muted); }
.day-pill.today .dp-day { color: var(--accent); }
.day-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-pill.active .dp-day, .day-pill.active .dp-meta { color: rgba(11, 11, 11, 0.65); }
.day-pill.rest:not(.active) { background: transparent; border-style: dashed; }
.dp-done { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #06240f; }
.dp-done svg { width: 12px; height: 12px; }
.week-progress { margin: 12px 2px 20px; font-size: 13px; color: var(--muted); }

/* Day card */
.day-card { margin-bottom: 20px; }
.day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.day-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.5vw, 52px); text-transform: uppercase; line-height: 1; margin: 10px 0 6px; }
.day-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.day-actions .btn svg { width: 18px; height: 18px; }
.warmup { margin: 22px 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.warmup summary, .why-card summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.warmup summary::-webkit-details-marker, .why-card summary::-webkit-details-marker { display: none; }
.warmup summary { padding: 14px 18px; }
.warmup summary strong { display: block; font-size: 15px; }
.warmup summary small { color: var(--muted); font-size: 12.5px; }
.wu-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 181, 71, 0.1); color: var(--warn); flex: none; }
.wu-ico svg { width: 18px; height: 18px; }
.why-toggle { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: transform 0.3s var(--ease); flex: none; }
.why-toggle svg { width: 14px; height: 14px; transform: rotate(90deg); }
details[open] > summary .why-toggle { transform: rotate(180deg); }
.warmup ol { margin: 0; padding: 0 18px 18px 58px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

.ex-list { display: grid; gap: 10px; }
.ex-row { display: grid; grid-template-columns: 34px 112px 1fr auto 36px; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 10px 16px 10px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.ex-row:hover { border-color: rgba(215, 255, 58, 0.35); background: var(--surface-2); transform: translateX(3px); }
.ex-num { font-family: var(--font-display); font-size: 20px; color: var(--faint); text-align: center; }
.ex-thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 12px; background: #0c0c0f; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.ex-main { min-width: 0; display: grid; gap: 3px; }
.ex-main strong { font-size: 16px; }
.ex-main small { color: var(--muted); font-size: 12.5px; }
.ex-main .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ex-dose { text-align: right; display: grid; gap: 2px; }
.ex-dose strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; white-space: nowrap; }
.ex-dose small { color: var(--muted); font-size: 12px; }
.ex-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: background 0.2s, color 0.2s; }
.ex-go svg { width: 16px; height: 16px; }
.ex-row:hover .ex-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.finisher { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.finisher svg { width: 18px; height: 18px; color: var(--accent); }
.rest-tips { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 12px; }
.rest-tips li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.rest-tips svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

.why-card { margin-bottom: 20px; }
.why-card summary h3 { margin: 6px 0 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.why-grid div { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.why-grid strong { display: block; margin-bottom: 6px; font-size: 15px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 13.5px; }
.sources { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; }
.sources span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.sources a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.sources a:hover { color: var(--accent); }
.library-card .card-title { flex-wrap: wrap; }

/* Workout player */
.modal.xl { max-width: 1120px; padding: 26px 28px; }
.player-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.player-top h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; line-height: 1; margin: 10px 0 6px; }
.player-progress { display: flex; gap: 6px; margin: 18px 0 20px; }
.player-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.player-progress i.past { background: rgba(215, 255, 58, 0.45); }
.player-progress i.now { background: var(--accent); }
.player-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.stage { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1b1b21, #0b0b0e 70%); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stage-canvas { padding: 54px 10px 0; }
.stage-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.stage-hud .phase, .stage-hud .rep { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); }
.stage-hud .phase i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: mmPulse 1.2s ease-in-out infinite; }
.stage-hud .rep { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.06em; font-size: 15px; }
.stage-controls { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(8, 8, 10, 0.4); flex-wrap: wrap; }
.ctrl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.ctrl svg { width: 18px; height: 18px; }
.filter.speed button { height: 32px; padding: 0 12px; }
.stage-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stage-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-p { background: var(--accent); }
.lg-s { background: #8b9a5a; }
.player-info { display: flex; flex-direction: column; gap: 14px; }
.dose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dose-grid div { padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.dose-grid span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.dose-grid strong { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.dose-note { margin: 0; font-size: 13px; color: var(--muted); }
.map-wrap { padding: 14px 18px 4px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.map-legend { display: grid; gap: 8px; }
.map-legend > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lg-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); width: 82px; }
.player-lower { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: 20px; }
.sets-card, .howto { padding: 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.sets-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 34px; }
.sets-head h4 { margin: 0; font-size: 15px; }
.rest-timer { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(215, 255, 58, 0.1); color: var(--accent); border: 1px solid rgba(215, 255, 58, 0.35); font-variant-numeric: tabular-nums; }
.rest-timer[hidden] { display: none; }
.rest-timer svg { width: 16px; height: 16px; }
.rest-timer.ending { animation: mmPulse 0.8s ease-in-out infinite; }
.set-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.set-btn { position: relative; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); text-align: left; display: grid; gap: 2px; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.set-btn:active { transform: scale(0.96); }
.set-btn span { font-weight: 600; font-size: 14px; }
.set-btn small { color: var(--muted); font-size: 12px; }
.set-btn svg { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; opacity: 0; transition: opacity 0.2s; }
.set-btn.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.set-btn.done small { color: rgba(11, 11, 11, 0.6); }
.set-btn.done svg { opacity: 1; }
.howto-tabs { margin-bottom: 14px; }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14px; color: var(--text); }
.step-list li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--accent); }
.cue-list, .avoid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.cue-list li, .avoid-list li { display: flex; gap: 12px; align-items: flex-start; }
.cue-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.avoid-list svg { width: 16px; height: 16px; color: var(--danger); flex: none; margin-top: 3px; }
.alt { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.player-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.player-nav .btn svg { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  .program-hero { grid-template-columns: 1fr; }
  .day-strip { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .player-grid, .player-lower { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .day-strip { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .day-strip::-webkit-scrollbar { display: none; }
  .day-pill { flex: 0 0 120px; }
  .ex-row { grid-template-columns: 84px 1fr; grid-template-areas: "thumb main" "thumb dose"; gap: 4px 14px; padding: 12px; }
  .ex-num, .ex-go { display: none; }
  .ex-thumb { grid-area: thumb; width: 84px; }
  .ex-main { grid-area: main; }
  .ex-dose { grid-area: dose; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .ex-dose strong { font-size: 18px; }
  .ex-main .chips { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .today-card { flex-direction: column; align-items: stretch; }
  .today-side { flex-direction: row; justify-content: space-between; }
  .today-thumb { width: 120px; }
  .modal-backdrop:has(.modal.xl) { padding: 0; }
  .modal.xl { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; padding: 18px 16px; }
  .dose-grid strong { font-size: 18px; }
  .stage-legend { display: none; }
}


/* ==========================================================================
   Personal training hub
   ========================================================================== */
.pt-compare { margin-bottom: 20px; }
.pt-form select.input { appearance: auto; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.pt-grid.five { grid-template-columns: repeat(5, 1fr); }
.pt-injuries { border: 0; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.pt-injuries legend { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 8px; }
.pt-check { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; }
.pt-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.pt-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; margin-bottom: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pt-tabs button { min-height: 44px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.pt-tabs button small { font-weight: 500; opacity: 0.75; }
.pt-tabs button.active { background: var(--accent); color: var(--accent-ink); }
.pt-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-summary .pt-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; line-height: 1.05; margin: 10px 0 8px; }
.pt-days { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 2px; margin-bottom: 20px; scrollbar-width: none; }
.pt-days::-webkit-scrollbar { display: none; }
.pt-days .day-pill { flex: 1 0 130px; }
.pt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.pt-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.pt-dates button { flex: 0 0 72px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; gap: 2px; text-align: center; transition: background 0.2s, color 0.2s; }
.pt-dates small { font-size: 11px; color: var(--muted); }
.pt-dates strong { font-size: 13px; }
.pt-dates button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pt-dates button.active small { color: rgba(11, 11, 11, 0.65); }
.pt-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-times button { min-height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color 0.2s, background 0.2s; }
.pt-times button:hover:not(:disabled) { border-color: var(--accent); background: rgba(215, 255, 58, 0.06); }
.pt-times button:disabled { opacity: 0.4; cursor: not-allowed; }
.pt-times small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); flex-wrap: wrap; }
.pt-list strong { display: block; font-size: 15px; }
.pt-list small { color: var(--muted); font-size: 12.5px; }
.pt-past { margin-top: 16px; font-size: 14px; color: var(--muted); }
.pt-past summary { cursor: pointer; margin-bottom: 12px; }
.pt-past .table-wrap { margin: 0; }

.pt-chart { position: relative; }
.pt-chart svg { display: block; touch-action: pan-y; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-axis { font: 500 11px var(--font-body); fill: var(--faint); }
.pc-cross { stroke: var(--line-strong); stroke-width: 1; }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pc-tip { position: absolute; width: 92px; padding: 7px 10px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-strong); pointer-events: none; }
.pc-tip[hidden] { display: none; }
.pc-tip small { display: block; font-size: 11px; color: var(--muted); }
.pc-tip strong { font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) { .pt-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .pt-grid, .pt-grid.five { grid-template-columns: 1fr 1fr; }
  .pt-tabs { grid-template-columns: 1fr 1fr; }
  .pt-times { grid-template-columns: repeat(3, 1fr); }
  .pt-kpis { grid-template-columns: 1fr 1fr; }
}

/* Foundation Training */
.eq-footplate { stroke: #4e4e5a; }
.f-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.f-phases button { text-align: left; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; transition: border-color 0.2s; }
.f-phases button:hover { border-color: var(--line-strong); }
.f-phases small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.f-phases strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.f-phases span { font-size: 12.5px; color: var(--muted); }
.f-phases button.active { border-color: var(--accent); background: rgba(215, 255, 58, 0.07); }
.f-screen { margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255, 181, 71, 0.3); background: rgba(255, 181, 71, 0.06); font-size: 14px; }
.f-screen summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.f-screen summary svg { width: 18px; height: 18px; color: var(--warn); flex: none; }
.f-screen p { margin: 10px 0 2px; color: var(--muted); }
.f-grad { margin-bottom: 20px; }
@media (max-width: 800px) { .f-phases { grid-template-columns: 1fr 1fr; } }

/* Library modules */
.rig-rope { fill: none; stroke: #8c8c98; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rig-rope.far { stroke: #5a5a65; }
.module .m-live { position: relative; height: 190px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, rgba(215, 255, 58, 0.14), transparent 62%), #0c0c0f; }
.module .m-live .m-figure { position: absolute; inset: 6px 0 0; display: grid; place-items: center; }
.module .m-live .rig { position: absolute; inset: 0; width: 100%; height: 100%; }
.module .m-live .m-top { z-index: 2; }
.lib-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.lib-days { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0; padding-bottom: 4px; scrollbar-width: none; }
.lib-days::-webkit-scrollbar { display: none; }
.lib-days button { flex: 0 0 auto; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.lib-days button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.lib-ex { position: relative; text-align: left; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.25s; }
.lib-ex:hover { transform: translateY(-3px); border-color: rgba(215, 255, 58, 0.4); }
.lib-ex .lx-stage { aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 35%, #1b1b21, #0b0b0e 72%); }
.lib-ex .lx-text { padding: 12px 14px 14px; display: grid; gap: 3px; }
.lib-ex strong { font-size: 14.5px; line-height: 1.25; }
.lib-ex small { font-size: 12.5px; color: var(--muted); }
.lib-ex .lx-dose { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; color: var(--accent); }
.lib-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
