/* Fan shop. Storefront rules are sportsacademy's fan-app shop
   (resources/css/app.scss, "Fan-app shop"), flattened; the colours come from
   the academy's branding via the variables on <body>. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg-solid);
    background: var(--app-bg) fixed;
    color: var(--fanapp-text);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sh-muted: color-mix(in srgb, var(--fanapp-text) 62%, transparent);
    --sh-haze: rgba(255, 255, 255, 0.07);
    --sh-hair: rgba(255, 255, 255, 0.09);
    --sh-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --sheet: color-mix(in srgb, var(--app-bg-solid) 90%, #fff);
}
@supports (color: oklch(from red l c h)) { body { --sheet: oklch(from var(--app-bg-solid) calc(l + 0.05) calc(c * 1.3) h); } }
main { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { main { max-width: none; padding-inline: clamp(24px, 4vw, 64px); } }
a { color: inherit; }
button { cursor: pointer; }
.ic { width: 1em; height: 1em; }
[hidden] { display: none !important; }

/* ── Landing ── */

.hub-brand { flex: 1; font-weight: 800; letter-spacing: -0.3px; font-size: 1.05rem; }
.hub-h2 { margin: 4px 0 12px; font-size: 1.1rem; font-weight: 700; }

/* ── Storefront ── */
.sh-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.my-back-link { width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; font-size: 1.6rem; color: inherit; }
.sh-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: contain; display: grid; place-items: center; background: var(--sh-haze); font-weight: 700; }
.my-page-title { flex: 1; min-width: 0; margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--sh-haze); font-size: 0.85rem; }

.sh-bar2 { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.sh-view { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 12px; background: var(--sh-haze); }
.sh-view button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--sh-muted); font-size: 1.05rem; }
.sh-view button.active { background: rgba(255, 255, 255, 0.14); color: var(--fanapp-text); }

.sh-ph, .sh-coll > *, .sh-big { display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); color: rgba(255, 255, 255, 0.45); object-fit: contain; }

.sh-pack { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--brand-primary) 40%, transparent); border-radius: 20px; background: none; color: inherit; font: inherit; text-align: left; }
.sh-pack > b { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.sh-coll { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 84px; height: 84px; flex: none; border-radius: 14px; overflow: hidden; }
.sh-coll > * { width: 100%; height: 100%; min-height: 0; font-size: 1rem; }
.sh-pack-what { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.sh-pack-what small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: var(--sh-muted); }
.sh-pack-what em { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: 0.7rem; font-weight: 600; background: var(--brand-primary); color: var(--on-primary); }

.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
@media (min-width: 576px) { .sh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .sh-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; } }
.sh-item { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.sh-item .sh-ph { width: 100%; aspect-ratio: 1; border-radius: 18px; padding: 8px; font-size: 2.2rem; transition: transform 0.2s var(--sh-ease); }
.sh-item:active .sh-ph { transform: scale(0.97); }
.sh-item { position: relative; }
.sh-item .sh-ph-alt { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.35s ease, transform 0.45s ease; }
.eshop-view-list .sh-ph-alt { display: none; }
@media (hover: hover) {
    .sh-item:hover .sh-ph-alt { opacity: 1; }
    .sh-item:not(:has(.sh-ph-alt)):hover .sh-ph, .eshop-view-list .sh-item:hover .sh-ph { transform: scale(1.05); }
}
.sh-item b { display: block; margin-top: 8px; font-size: 0.95rem; font-weight: 700; }
.sh-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8rem; line-height: 1.3; opacity: 0.85; }
.sh-item small { display: block; margin-top: 3px; font-size: 0.7rem; color: var(--brand-primary); }
.sh-grid.eshop-view-list { grid-template-columns: 1fr; gap: 0; }
.eshop-view-list .sh-item { display: grid; grid-template-columns: 64px 1fr auto; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sh-hair); }
.eshop-view-list .sh-ph { grid-row: span 3; width: 64px; border-radius: 14px; padding: 4px; font-size: 1.4rem; }
.eshop-view-list .sh-item b { grid-column: 3; grid-row: 1 / span 3; margin: 0; }
.eshop-view-list .sh-name, .eshop-view-list .sh-item small { grid-column: 2; }
.sh-empty { padding: 48px 16px; text-align: center; color: var(--sh-muted); }
.sh-empty .ic { font-size: 3rem; opacity: 0.35; }
.sh-empty h2 { margin: 8px 0 4px; font-size: 1rem; font-weight: 600; color: var(--fanapp-text); }

/* Sheets: <dialog>, bottom sheet on phones, centred card from 576px. */
.sh-sheet {
    width: min(100%, 500px); max-height: 90vh; overflow-y: auto;
    margin: auto; padding: 10px 18px 20px;
    border: 0; border-radius: 26px;
    background: var(--sheet); color: var(--fanapp-text);
}
.sh-sheet::backdrop { background: rgba(0, 0, 0, 0.55); }
@media (max-width: 575.98px) {
    .sh-sheet { max-width: none; width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .sh-sheet[open] { animation: sh-up 0.45s var(--sh-ease); }
}
@keyframes sh-up { from { transform: translateY(40%); } }
.sh-grab { display: block; width: 40px; height: 4px; margin: 0 auto 26px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.sh-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: inherit; font-size: 1rem; }
.sh-sheet .sh-cta { position: sticky; bottom: 8px; z-index: 2; box-shadow: 0 -10px 18px 2px var(--sheet); }
img.is-broken {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.45)' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m4 18 5-5 4 4 3-3 4 4'/%3E%3C/svg%3E"), linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    background-size: 34%, cover; background-position: center; background-repeat: no-repeat;
    color: transparent;
}
.sh-big { display: block; width: min(100%, 34vh); aspect-ratio: 1; margin: 0 auto; object-fit: cover; border-radius: 20px; }
.sh-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.sh-thumbs img { width: 48px; height: 48px; flex: none; object-fit: cover; border: 2px solid transparent; border-radius: 12px; background: var(--sh-haze); cursor: pointer; }
.sh-thumbs img.active { border-color: var(--brand-primary); }
.sh-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.sh-sheet-title { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.sh-sheet-price { flex: none; font-size: 1.1rem; font-weight: 700; }
.sh-desc { margin: 6px 0 0; font-size: 0.85rem; color: var(--sh-muted); }
.sh-desc:empty { display: none; }
.sh-lab { display: flex; justify-content: space-between; margin: 10px 0 6px; font-size: 0.8rem; opacity: 0.7; }
.sh-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-sizes button { min-width: 44px; height: 34px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 0.85rem; font-weight: 500; }
.sh-sizes button.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--on-primary); }
.sh-qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.sh-qty-row .sh-lab { margin: 0; }
.sh-qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 13px; background: var(--sh-haze); }
.sh-qty button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: none; color: inherit; font-size: 1.2rem; }
.sh-qty input { width: 36px; border: 0; background: none; color: inherit; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button, .sh-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sh-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 16px; background: var(--brand-primary); color: var(--on-primary); font: inherit; font-size: 0.95rem; font-weight: 600; }
.sh-cta:disabled { opacity: 0.45; cursor: default; }
.sh-fine { margin: 0 0 4px; font-size: 0.75rem; text-align: center; opacity: 0.65; }
.sh-left { text-align: left; margin-top: 4px; }
.sh-select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: var(--sh-haze); color: inherit; font: inherit; }
.sh-select option, .sh-field select option { color: #111; }
.sh-bundle-items { margin-top: 12px; }
.eshop-bundle-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--sh-hair); }
.eshop-bundle-row > span { flex: 1; min-width: 0; }
.eshop-bundle-row .sh-select { width: auto; }
.eshop-bundle-row-img { width: 48px; height: 48px; flex: none; border-radius: 12px; object-fit: cover; background: var(--sh-haze); }

/* Basket */
.sh-basket-empty { padding: 28px 0; text-align: center; opacity: 0.6; }
.sh-basket-empty .ic { font-size: 2.4rem; }
.sh-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.sh-lines li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sh-hair); font-size: 0.875rem; }
.sh-line-what { flex: 1; min-width: 0; display: grid; }
.sh-line-what small { color: var(--sh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-step { display: inline-flex; align-items: center; gap: 4px; }
.sh-step span { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.sh-step button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: inherit; line-height: 1; }
.sh-step button:disabled { opacity: 0.35; }
.sh-tot { display: flex; justify-content: space-between; padding-top: 12px; font-size: 0.875rem; }
.sh-tot.is-save { color: var(--brand-primary); }
.sh-tot.is-all { font-size: 1.05rem; font-weight: 700; }

/* Checkout form */
.sh-field { display: grid; gap: 4px; margin-top: 10px; font-size: 0.8rem; color: var(--sh-muted); }
.sh-field small { opacity: 0.8; }
.sh-field input, .sh-field select, .sh-field textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: var(--sh-haze); color: var(--fanapp-text); font: inherit; font-size: 0.95rem; }
.sh-field input:focus, .sh-field select:focus, .sh-field textarea:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.sh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-set { margin: 14px 0 0; padding: 0; border: 0; }
.sh-set legend { margin-bottom: 6px; font-size: 0.8rem; color: var(--sh-muted); }
.sh-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; font-size: 0.9rem; cursor: pointer; }
.sh-opt:has(:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.sh-opt small { margin-left: auto; font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
.sh-opt input, .sh-check input { accent-color: var(--brand-primary); }
.sh-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.85rem; }
.sh-error { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(220, 53, 69, 0.18); color: #ffb3ba; font-size: 0.85rem; }
.sh-addr { margin: 4px 0 12px; padding: 9px 12px; border-radius: 12px; font-size: 0.82rem; line-height: 1.35; }
.sh-addr.is-ok { background: rgba(46, 160, 67, 0.2); }
.sh-addr.is-bad { background: rgba(220, 53, 69, 0.18); color: #ffb3ba; }

/* Top bar: academy left, account + basket right. Pinned; its tint runs edge to edge. */
.sh-top { position: sticky; top: 0; z-index: 9; margin: -16px 0 14px; padding: 10px 0;
    background: color-mix(in srgb, var(--app-bg-solid) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--app-bg-solid) 90%, transparent); clip-path: inset(0 -100vmax); }
.sh-top .sh-head { margin: 0; gap: 10px; }
.sh-icon-btn { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
    background: var(--sh-haze); color: inherit; font-size: 1.35rem; text-decoration: none; cursor: pointer; }
.sh-icon-btn:hover { background: color-mix(in srgb, var(--fanapp-text) 14%, transparent); }
.sh-icon-btn.is-bump { animation: sh-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sh-bag-n { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
    background: var(--brand-primary); color: var(--on-primary); font-size: 0.72rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--app-bg-solid); }
.sh-bag-n.is-zero { display: none; }
@media (max-width: 420px) { .sh-top .my-page-title { font-size: 1.2rem; letter-spacing: -0.3px; } .sh-top .sh-logo { width: 32px; height: 32px; } }
.sh-cta.is-ghost { margin-top: 8px; background: var(--sh-haze); color: var(--fanapp-text); text-decoration: none; }
@keyframes sh-bump { 40% { transform: scale(1.04); } }

/* Order status */
.sh-ord { margin-bottom: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.sh-ord ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.85rem; }
.sh-ord li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.sh-ord li span:last-child { white-space: nowrap; color: var(--sh-muted); }
.sh-ord li.is-save { color: var(--brand-primary); }
.sh-ord li.is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--sh-hair); font-weight: 600; }
.sh-ord li.is-save span:last-child, .sh-ord li.is-total span:last-child { color: inherit; }
.sh-ord-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; }
.sh-ord-meta { display: block; font-size: 0.78rem; font-weight: 400; letter-spacing: 0; color: var(--sh-muted); }
.sh-chip { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0; background: var(--sh-haze); }
.sh-chip.is-wait { background: color-mix(in srgb, #f5b942 22%, transparent); color: #f5b942; }
.sh-chip.is-ok { background: color-mix(in srgb, var(--brand-primary) 18%, transparent); color: var(--brand-primary); }

/* Entrance, as the fan app */
@keyframes fh-up { from { opacity: 0; transform: translateY(12px); } }
.sh-enter .sh-head { animation: fh-up 0.6s var(--sh-ease) both; }
.sh-enter .sh-bar2 { animation: fh-up 0.6s var(--sh-ease) 0.08s both; }
@media (prefers-reduced-motion: reduce) {
    .sh-enter *, .sh-icon-btn.is-bump, .sh-sheet[open] { animation: none !important; }
}

/* ── Admin ── */

.adm-n { min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--sh-haze); font-size: 0.8rem; text-align: center; }
.adm-card { margin-top: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.adm-empty { color: var(--sh-muted); font-size: 0.9rem; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.adm-row { padding: 12px 0; border-bottom: 1px solid var(--sh-hair); }
.adm-row:last-child { border-bottom: 0; }
.adm-list { padding-top: 2px; padding-bottom: 2px; }
.adm-req-what { flex: 1 1 260px; min-width: 0; display: grid; gap: 3px; }
.adm-req-what small { color: var(--sh-muted); font-size: 0.8rem; }
.adm-req-what .sh-chip { margin-left: 6px; vertical-align: 1px; }
.adm-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.adm-acts form { margin: 0; }
.adm-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--sh-haze); color: inherit; font: inherit; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.adm-btn.is-primary { background: var(--brand-primary); color: var(--on-primary); }
/* Admin shell: sidebar + tab content; a strip of tabs on phones. */
main:has(> .adm-shell) { max-width: none; padding-bottom: 40px; }
.adm-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-side { position: sticky; top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.adm-side .hub-brand { padding: 0 8px; }
.adm-side nav { display: grid; gap: 2px; }
.adm-side nav a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; border-radius: 11px; color: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.adm-side nav a:hover { background: var(--sh-haze); }
.adm-side nav a.is-on { background: var(--brand-primary); color: var(--on-primary); }
.adm-side nav a.is-on .adm-n { background: rgba(0, 0, 0, 0.15); }
.adm-n.is-hot { background: #e5484d; color: #fff; }
.adm-side-foot { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--sh-hair); }
.adm-side-foot form { margin: 0; }
.adm-side-foot .adm-btn { width: 100%; justify-content: center; }
.adm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 4px 0 14px; }
.adm-top h1 { flex: 1 1 auto; margin: 0; font-size: 1.45rem; letter-spacing: -0.3px; }
.adm-search { flex: 0 1 320px; display: flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 12px; border-radius: 11px; background: var(--sh-haze); color: var(--sh-muted); }
.adm-search svg { width: 18px; height: 18px; flex: none; }
.adm-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--fanapp-text); font: inherit; font-size: 16px; outline: 0; }
.adm-top .adm-btn { height: 38px; }
.adm-modal { width: min(calc(100% - 32px), 460px); margin: auto; padding: 20px; border: 0; border-radius: 20px; background: var(--app-bg-solid, #2A2F42); color: var(--fanapp-text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.adm-modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-modal-head h2 { margin: 0; font-size: 1.15rem; }
.adm-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--sh-haze); color: inherit; }
.adm-x svg { width: 18px; height: 18px; }
.adm-side .adm-search { flex: none; }
.adm-list > .adm-empty { padding: 10px 0; }
.adm-main .hub-h2:first-of-type { margin-top: 6px; }
.adm-main mark { background: #ffe066; color: #16130b; border-radius: 2px; }
.adm-main .hub-h2 a { color: inherit; text-decoration: none; }
.adm-more { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: inherit; }
.adm-more a { color: inherit; }
.adm-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--sh-haze); color: inherit; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.adm-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 0.82rem; color: var(--sh-muted); }
.adm-range b { font-weight: 600; color: var(--fanapp-text); }
.adm-pg-row { display: inline-flex; border-radius: 10px; overflow: hidden; background: var(--sh-haze); }
.adm-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 10px; color: var(--fanapp-text); font-weight: 600; text-decoration: none; }
.adm-pg + .adm-pg { box-shadow: inset 1px 0 rgba(255,255,255,.08); }
a.adm-pg:hover { background: rgba(255,255,255,.08); }
.adm-pg[aria-current] { background: var(--brand-primary); color: var(--on-primary); }
.adm-pg[aria-disabled] { opacity: .45; }
.adm-pg[aria-label] { font-size: 1.15rem; }
.adm-modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.adm-card.adm-set { padding: 16px 18px; gap: 12px 20px; }
.adm-set .adm-req-what { flex: 1 1 260px; display: grid; gap: 4px; }
.adm-set .sh-check { margin: 0; }
.adm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.82rem; color: var(--sh-muted); }
.adm-filters label { display: inline-flex; align-items: center; gap: 8px; }
.adm-filters select { height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--sh-haze); color: var(--fanapp-text); font: inherit; font-weight: 600; color-scheme: dark; }
.adm-filters .adm-range { margin-left: auto; }
@media (max-width: 760px) {
    .adm-filters label { flex: 1 1 100%; }
    .adm-filters select { flex: 1; }
    .adm-filters .adm-btn { flex: 1; justify-content: center; height: 40px; }
    .adm-filters .adm-range { flex-basis: 100%; margin: 0; text-align: center; }
}
.adm-person { width: 100%; justify-content: space-between; flex-wrap: nowrap; padding: 12px 10px; margin: 0; border: 0; border-bottom: 1px solid var(--sh-hair); border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adm-person:hover, .adm-person:focus-visible { background: rgba(255, 255, 255, 0.05); }
.adm-person .adm-req-what { display: grid; gap: 4px; min-width: 0; }
.adm-person .adm-req-what small { overflow-wrap: anywhere; }
.adm-person .adm-btn { flex: none; }
.adm-modal .adm-modal-head h2 { overflow-wrap: anywhere; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0 0; font-size: 0.88rem; }
.adm-dl dt { color: var(--sh-muted); }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-h3 { margin: 18px 0 8px; font-size: 0.95rem; }
.adm-orders { display: grid; gap: 2px; max-height: 40vh; margin: 0; padding: 0; overflow: auto; list-style: none; font-size: 0.85rem; }
.adm-orders li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sh-hair); }
.adm-orders li:last-child { border-bottom: 0; }
.adm-orders a { color: var(--brand-primary); font-weight: 600; }
.adm-orders span:last-child { color: var(--sh-muted); }
@media (max-width: 760px) {
    .adm-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .adm-side { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; }
    .adm-side .hub-brand { padding: 0 4px; white-space: nowrap; font-size: 0.98rem; }
    .adm-side nav { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 1fr 1fr; gap: 4px; }
    .adm-side nav a { justify-content: center; gap: 5px; padding: 0 6px; font-size: 0.86rem; }
    .adm-side-foot { grid-template-columns: auto auto; padding: 0; border: 0; }
    .adm-side-foot .adm-btn { height: 34px; padding: 0 10px; white-space: nowrap; }
    .adm-side .adm-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
    .adm-pages { justify-content: center; }
    .adm-range { flex-basis: 100%; text-align: center; }
    .adm-top .adm-btn { height: 40px; }
    .adm-acts .adm-btn { height: 40px; }
}
.adm-slug { display: flex; align-items: center; gap: 2px; color: var(--fanapp-text); font-size: 0.9rem; }
.adm-slug input { flex: 1; min-width: 0; }
.sh-chip.is-bad { background: rgba(220, 53, 69, 0.2); color: #ffb3ba; }
.adm-log { display: grid; gap: 6px; font-size: 0.8rem; }
.adm-log div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.adm-log span { color: var(--sh-muted); font-variant-numeric: tabular-nums; }
.adm-login { min-height: 80vh; display: grid; place-items: center; }
.adm-login .adm-card { width: min(100%, 380px); padding: 22px; }
.adm-login h1 { margin: 0; font-size: 1.4rem; }

/* ── Marketplace (the owner's Amazon reference): header on every page,
   hero carousel, white cards on a light grey page. ── */
body.mk {
    --mk-bg: #eef1f6; --mk-card: #fff; --mk-ink: #141c28; --mk-muted: #5a6474; --mk-line: #d8dee8;
    --mk-shadow: 0 1px 2px rgba(19, 26, 34, 0.06), 0 8px 24px rgba(19, 26, 34, 0.06);
    --mk-top: #131a22; --mk-top2: #222c38; --mk-accent: #ffc928; --mk-accent-ink: #0f1111; --mk-link: #1f5fa8; --mk-deal: #cc0c39;
    background: var(--mk-bg); color: var(--mk-ink);
}
body.mk main { max-width: none; padding: 0 0 48px; }
body.mk a { color: var(--mk-link); }
body.is-shop main { padding-top: 16px; }
.mk-logo { flex: none; color: #fff !important; text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.6px; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; }
.mk-logo b { color: #ffc928; }
.mk-logo:hover { border-color: #fff; }
.mk-logo.is-dark { color: #0f1111 !important; }
.mk-logo.is-dark b { color: #e09b00; }
.mk-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-track::-webkit-scrollbar { display: none; }

.mk-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--mk-accent, #ffc928); color: #0f1111 !important; font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.mk-btn:hover { filter: brightness(0.95); }
.mk-btn.is-wide { width: 100%; }
.mk-btn.is-ghost { background: #fff; border: 1px solid var(--mk-line, #d5d9d9); }

/* Cards */
.mk-wrap { position: relative; padding: 0 clamp(16px, 4vw, 64px); }
.mk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-bottom: 8px; }
.mk-card { margin-bottom: 24px; padding: 24px 26px; border-radius: 16px; background: var(--mk-card); color: var(--mk-ink); box-shadow: var(--mk-shadow); }
.mk-cards .mk-card { margin: 0; display: flex; flex-direction: column; }
.mk-card h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; line-height: 1.2; display: flex; align-items: baseline; gap: 14px; }
.mk-fine { font-size: 0.8rem; color: var(--mk-muted, #565959); }
.mk-academies a { flex: 0 0 120px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--mk-ink) !important; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* Basket page */
.mk-basket { margin-top: 18px; }
.mk-basket h1 { margin: 0 0 4px; font-size: 1.7rem; font-weight: 500; }

/* Account */
.mk-auth { max-width: 380px; margin: 0 auto; padding: 24px 16px; display: grid; justify-items: center; gap: 14px; }
.mk-auth .mk-card { width: 100%; border: 1px solid var(--mk-line); border-radius: 8px; }
.mk-auth h1 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 500; }
.mk-field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 700; }
.mk-field small { font-weight: 400; color: var(--mk-muted); }
.mk-field input, .mk-field select { height: 38px; padding: 0 10px; border: 1px solid #a6a6a6; border-radius: 4px; font: inherit; font-weight: 400; color: var(--mk-ink); background: #fff; }
.mk-field input:focus, .mk-field select:focus { outline: 0; border-color: #e77600; box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.35); }
.mk-field input:disabled { background: #f3f3f3; }
.mk-divider { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; color: var(--mk-muted); font-size: 0.8rem; }
.mk-divider::before, .mk-divider::after { content: ""; flex: 1; border-top: 1px solid var(--mk-line); }
.mk-alert { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #c40000; border-radius: 6px; color: #c40000; font-size: 0.85rem; }
.mk-ok { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #067d62; border-radius: 6px; color: #067d62; font-size: 0.85rem; }
.mk-account h1 { margin: 20px 0 14px; font-size: 1.7rem; font-weight: 500; }
.mk-acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.mk-acc-grid .mk-card { margin: 0; }
.mk-account h3 { margin: 18px 0 10px; font-size: 1rem; }
.mk-account h3 small { font-weight: 400; color: var(--mk-muted); }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef0f0; color: var(--mk-ink) !important; text-decoration: none; }
.mk-order > span:first-child { display: grid; }
.mk-order small { color: var(--mk-muted); }
.mk-status { padding: 2px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; background: #eef0f0; }
.mk-status.is-paid, .mk-status.is-prepared, .mk-status.is-fulfilled { background: #e3f4ee; color: #067d62; }
.mk-status.is-pending { background: #fff4d6; color: #8a5a00; }
.mk-signout { margin-top: 18px; }
.mk-forgot { display: block; margin: -4px 0 14px; font-size: 0.8rem; }

/* Light marketplace defaults for anything shared with the shop styles
   (empty states, the 404 page): dark text, gold accent, dark-on-light haze. */
body.mk {
    --brand-primary: #ffc928; --on-primary: #0f1111; --fanapp-text: #0f1111; --app-bg-solid: #ffffff;
    --sh-muted: #565959; --sh-haze: rgba(0, 0, 0, 0.05); --sh-hair: #e3e6e6;
}
body.mk .sh-empty { color: var(--mk-muted); }
body.mk .sh-empty h2 { color: var(--mk-ink); }

/* ── Phones: slim pinned bar, tab bar at the bottom, thumb-sized targets ── */
 /* under 16px iOS zooms the page on focus */
.mk-forgot { padding: 6px 0; }
.sh-view button { width: 38px; height: 34px; }
@media (max-width: 760px) {
    .mk-logo { font-size: 1.15rem; padding: 4px 0; }

    /* Cards: full width, tighter; the sign-in card becomes a strip. */
    .mk-wrap { padding: 0 10px; }
    .mk-cards { grid-template-columns: 1fr; gap: 14px; }
    .mk-card { margin-bottom: 14px; padding: 18px 16px; border-radius: 14px; }
    .mk-card h2 { margin-bottom: 10px; font-size: 1.12rem; justify-content: space-between; }
    .mk-academies a { flex-basis: 96px; }
    .mk-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* Basket and account: full-width actions, 44px+ targets, 16px fields. */
    .mk-basket { margin-top: 10px; }
    .mk-basket h1, .mk-account h1 { font-size: 1.4rem; }
    .mk-btn { height: 46px; }
    .mk-field input, .mk-field select, .sh-field input, .sh-field select, .sh-field textarea, .sh-select { font-size: 16px; min-height: 44px; }
    .mk-two { grid-template-columns: 1fr; gap: 0; }
    .mk-auth { padding-top: 14px; }
    .mk-order { padding: 14px 0; }

    /* Shop sheets: 16px inputs and roomy steppers. */
    .sh-qty button { width: 40px; height: 40px; }
    .sh-qty input { font-size: 16px; }
    .sh-sizes button { min-width: 48px; height: 42px; }
    .sh-step button { width: 34px; height: 34px; }
    .sh-opt { padding: 13px 12px; }
}
.adm-req-what small .sh-chip { white-space: nowrap; }
/* Show / hide password (shop.js wraps each password input). */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px !important; box-sizing: border-box; }
.pw-eye { position: absolute; top: 50%; right: 3px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; opacity: 0.7; cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { opacity: 1; }
.pw-eye:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.mk-field .pw-eye { color: var(--mk-ink, #0f1111); }
.sh-field .pw-eye { color: var(--fanapp-text); }
.sh-pay { margin: 4px 0 10px; }
.sh-pay .sh-cta { width: 100%; }
.sh-pay .sh-fine { margin-top: 8px; }
.sh-note.is-ok { background: rgba(46, 160, 67, 0.22); }
/* Order page: clickable "Awaiting payment", cancel. */
button.sh-chip.is-pay { border: 0; font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
button.sh-chip.is-pay:hover { filter: brightness(1.15); }
.sh-cancel { display: block; width: 100%; min-height: 44px; margin: 4px 0 10px; border: 1px solid var(--sh-hair); border-radius: 14px; background: none; color: var(--fanapp-text); font: inherit; font-weight: 600; cursor: pointer; }
.adm-btn.is-danger { background: #d33; color: #fff; }
/* Account orders: the row links to the order; its unpaid status pays. */
.mk-order > a { display: grid; min-width: 0; color: var(--mk-ink) !important; text-decoration: none; }
.mk-order-end { display: flex; align-items: center; gap: 8px; flex: none; }
.mk-order-end form { margin: 0; }
button.mk-status.is-pay { border: 0; font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; min-height: 32px; }
button.mk-status.is-pay:hover { background: #ffe8a3; }
/* In-page payment window (shop.js). */
.pay-frame { width: min(100% - 24px, 480px); height: min(100% - 24px, 760px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.pay-frame[open] { display: flex; flex-direction: column; position: fixed; }
.pay-frame::backdrop { background: rgba(0, 0, 0, 0.6); }
.pay-frame-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: #f4f5f7; color: #0f1111; font-weight: 700; font-size: 0.9rem; }
.pay-frame-head button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.pay-frame iframe { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 760px) { .pay-frame { width: 100%; height: 100%; border-radius: 0; } }
a.mk-status.is-pay { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; color: #8a5a00 !important; }
.pay-frame-ask { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; background: rgba(15, 17, 17, 0.55); }
.pay-frame-ask[hidden] { display: none; }
.pay-frame-ask > div { width: min(100%, 340px); padding: 22px 20px 18px; border-radius: 18px; background: #fff; color: #0f1111; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.pay-frame-ask b { display: block; font-size: 1.1rem; }
.pay-frame-ask p { margin: 8px 0 4px; color: #565959; font-size: 0.88rem; line-height: 1.45; }
.pay-frame-ask .sh-cta.is-ghost { background: #eef0f3; color: #0f1111; }
.pay-frame-foot { padding: 10px 16px; background: #f4f5f7; color: #3a5bd9 !important; font-size: 0.8rem; text-align: center; }

/* ── Navy pitch, shared: home intro slide, account banner, sign-in panel ── */
body.mk { --mk-pitch: #1b2a41; }

/* Account: navy banner behind the greeting, cards overlap it. */
.mk-account::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 220px; background: var(--mk-pitch); }
.mk-account h1 { margin: 0; padding: 36px 0 26px; color: #fff; font-weight: 700; letter-spacing: -0.5px; }
.mk-account .mk-card h2 { font-size: 1.2rem; }

/* Sign in / create account: navy panel beside the form on desktop. */
.mk-auth-side { display: none; }
@media (min-width: 900px) {
    .mk-auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); }
    .mk-auth-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; padding: 48px clamp(32px, 6vw, 96px); background: var(--mk-pitch); color: #fff; }
    .mk-auth-side .mk-logo { position: absolute; top: 28px; }
    .mk-auth-side h2 { max-width: 14ch; margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -1.2px; }
    .mk-auth-side p { max-width: 40ch; margin: 0; font-size: 1.05rem; line-height: 1.55; opacity: 0.82; }
    .mk-auth-page .mk-auth { align-content: center; width: 100%; max-width: 440px; padding: 40px 24px; }
    .mk-auth-page .mk-auth > .mk-logo { display: none; }
    .mk-auth-page .mk-auth .mk-card { border: 0; border-radius: 16px; box-shadow: var(--mk-shadow); }
}

/* Order: receipt on the left, paying / cancelling on the right. */
@media (min-width: 992px) {
    .shop-page:has(> .sh-ord):has(> .sh-pay, > .sh-cancel) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 28px; align-items: start; }
    .shop-page:has(> .sh-ord) > * { grid-column: 1 / -1; }
    .shop-page:has(> .sh-ord) > .sh-ord { grid-column: 1; grid-row: span 3; }
    .shop-page:has(> .sh-ord) > :is(.sh-pay, .sh-cancel, .sh-fine) { grid-column: 2; }
    .sh-ord { padding: 24px 28px; border-radius: 20px; }
    .sh-ord-t { font-size: 1.25rem; }
    .sh-ord ul { margin-top: 18px; font-size: 1rem; }
    .sh-ord li { padding: 8px 0; }
    .sh-ord li.is-total { font-size: 1.1rem; }
}
body.mk main:has(> .mk-auth-page) { padding-bottom: 0; }

/* Shop by academy: logo on a white disc ringed in the academy's colour; room for the ring so nothing is clipped. */
.mk-academies { padding: 6px 6px 8px; }
.mk-academies a { flex-basis: 132px; }

/* ── Motion ──────────────────────────────────────────────────────────────
   Nothing here changes layout (motion.js marks what to reveal). Under reduced motion every rule below is switched off. */

:root { --mo-ease: cubic-bezier(0.22, 1, 0.36, 1); --mo-expo: cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: no-preference) {

    /* Page to page: a short cross-fade; the top bar stays put. */
    @view-transition { navigation: auto; }
    .adm-side { view-transition-name: adm-side; }
    ::view-transition-old(root) { animation: mo-out 0.18s ease both; }
    ::view-transition-new(root) { animation: mo-in 0.32s var(--mo-ease) both; }
    @keyframes mo-out { to { opacity: 0; } }
    @keyframes mo-in { from { opacity: 0; transform: translateY(10px); } }

    @keyframes mo-rise { from { opacity: 0; transform: translateY(16px); } }
    @keyframes mo-pop { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
    @keyframes mo-fade { from { opacity: 0; } }

    /* Reveal: motion.js marks groups (data-mo) and adds .mo-in as each item
       scrolls into view; items arriving together ripple in order (--i). */
    .mo [data-mo]:not(.mo-in) { opacity: 0; }
    .mo-in { animation: mo-pop 0.75s var(--mo-expo) backwards; animation-delay: calc(min(var(--i, 0), 12) * 70ms); }

    /* Photos zoom a touch inside their frame on hover. */
    .sh-ph { transition: transform 0.45s var(--mo-ease); }
    .mk-grid > a { overflow: hidden; }

    /* Buttons answer a press. */
    .mk-btn, .sh-cta, .adm-btn, .adm-pg, .sh-chip.is-pay { transition: transform 0.15s ease, filter 0.2s; }
    .mk-btn:active, .sh-cta:active, .adm-btn:active, a.adm-pg:active, .sh-chip.is-pay:active { transform: scale(0.96); }
    .mk-btn:hover, .sh-cta:hover { filter: brightness(1.06); }

    /* Basket counts pop when they change (motion.js adds .mo-pop). */
    .mo-pop { animation: mo-count 0.5s var(--mo-expo); }
    @keyframes mo-count { 40% { transform: scale(1.5); } }

    /* The flying photo on "Add to basket" (motion.js). */
    .mo-fly { position: fixed; z-index: 100; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
    .mo-dot { border-radius: 50%; background: var(--brand-primary, #f0b400); }

    /* Sheets and popovers: the backdrop fades, desktop sheets scale in. */
    .sh-sheet[open]::backdrop, .pay-frame[open]::backdrop { animation: mo-fade 0.3s ease both; }
    @media (min-width: 768px) { .sh-sheet[open] { animation: mo-pop 0.4s var(--mo-expo) both; } }
    .adm-modal:popover-open { animation: mo-pop 0.35s var(--mo-expo) both; }
    .sh-sizes button { transition: transform 0.2s var(--mo-expo), background-color 0.2s, color 0.2s; }
    .sh-sizes button:active { transform: scale(0.9); }

    /* Order: the receipt prints line by line; awaiting payment breathes. */
    .sh-ord { animation: mo-rise 0.6s var(--mo-ease) both; }
    .sh-ord li { animation: mo-rise 0.5s var(--mo-ease) both; animation-delay: calc(min(var(--i, 0), 10) * 70ms + 200ms); }
    .sh-chip.is-wait { animation: mo-wait 2.4s ease-in-out infinite; }
    @keyframes mo-wait { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 18%, transparent); } }
    .sh-note, .sh-error, .mk-ok { animation: mo-rise 0.5s var(--mo-ease) both; }
    .mo-tick { display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -5px; }
    .mo-tick circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: mo-draw 0.6s var(--mo-ease) 0.3s forwards; }
    .mo-tick path { stroke-dasharray: 14; stroke-dashoffset: 14; animation: mo-draw 0.35s var(--mo-ease) 0.85s forwards; }
    @keyframes mo-draw { to { stroke-dashoffset: 0; } }

    /* Sign in / register: the side panel's glow drifts slowly; fields light up. */
    .mk-auth-side { overflow: hidden; isolation: isolate; }
    .mk-auth-side::after { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(35% 35% at 50% 50%, rgba(255, 201, 40, 0.18), transparent 70%); animation: mo-drift 14s ease-in-out infinite alternate; }
    @keyframes mo-drift { from { transform: translate(-18%, -12%); } to { transform: translate(16%, 14%); } }
    .mk-auth > * { animation: mo-rise 0.6s var(--mo-ease) both; }
    .mk-auth > :nth-child(2) { animation-delay: 0.06s; }
    .mk-auth > :nth-child(3) { animation-delay: 0.12s; }
    .mk-field input, .sh-field input, .mk-field select { transition: box-shadow 0.25s var(--mo-ease), border-color 0.25s; }

    /* Admin: the panel rises, rows follow; the current page slides into place. */
    .adm-main { animation: mo-rise 0.5s var(--mo-ease) both; }
    .adm-row, .adm-card { transition: background-color 0.2s; }
    .adm-pg[aria-current] { animation: mo-pop 0.4s var(--mo-expo) both; }
    .adm-side nav a { transition: background-color 0.2s, color 0.2s, transform 0.2s var(--mo-ease); }
    .adm-side nav a:hover { transform: translateX(3px); }
}

/* Sign in / register / reset, opened from an academy's shop: its logo, name and colours; the logo leads back to the shop. */
.mk-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; letter-spacing: -0.2px; }
.mk-brand-img { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; }
span.mk-brand-img, span.mk-auth-crest { display: grid; place-items: center; padding: 0; background: var(--brand-primary); color: var(--on-primary); font-weight: 800; }
.mk-auth-crest { width: min(220px, 45%); height: auto; aspect-ratio: 1; align-self: center; object-fit: contain; border-radius: 50%; background: #fff; padding: 18px;
    box-shadow: 0 0 0 6px var(--brand-primary), 0 18px 50px rgba(0, 0, 0, 0.35); }
span.mk-auth-crest { font-size: 5rem; }
.mk-auth-page.is-brand .mk-auth-side { background: var(--app-bg-solid); background: var(--app-bg); color: var(--fanapp-text); }
.mk-auth-page.is-brand .mk-auth-side::after { background: radial-gradient(35% 35% at 50% 50%, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent 70%); }
.mk-auth-page.is-brand .mk-auth-side .mk-logo { color: var(--fanapp-text) !important; }
.mk-auth-page.is-brand .mk-btn:not(.is-ghost) { background: var(--brand-primary); color: var(--on-primary) !important; }
.mk-auth-page.is-brand .mk-field input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 35%, transparent); }
@media (max-width: 899px) {
    /* Phones: the academy's colours as a band behind the logo; the card sits over its edge. */
    .mk-auth-page.is-brand { background: linear-gradient(var(--app-bg-solid), var(--app-bg-solid)) top / 100% 150px no-repeat; }
    .mk-auth-page.is-brand .mk-auth > .mk-logo { color: var(--fanapp-text) !important; }
}

/* Delivery address: optional map pin. */
.sh-pin-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 99px; background: none; color: inherit; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.sh-pin-btn small { font-weight: 400; opacity: 0.7; }
.sh-pin-btn .ic { width: 16px; height: 16px; }
.sh-pin-btn.is-on { border-style: solid; border-color: var(--brand-primary); color: var(--brand-primary); }
.sh-pin { margin-bottom: 12px; }
.sh-map { height: 260px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.sh-pin .sh-fine { margin-top: 6px; }
.sh-linkbtn { padding: 0; border: 0; background: none; color: var(--brand-primary); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── aelvolleyball.shop additions ── */
.mk-back { display: inline-block; margin-bottom: 10px; color: inherit; font-size: .9rem; }
.adm-form { padding: 16px; margin-top: 14px; display: grid; gap: 10px; }
.adm-form .adm-h3 { margin: 0; }
.adm-set { margin-top: 14px; }
