/* Fitness App – fallback when Vite build not present (brand colours + layout) */
:root {
    --color-primary: #00b3e6;
    --color-dark: #4d4e56;
    --color-muted: #a2a1a5;
    --color-light: #e1dfe1;
    --color-accent: #ff674c;
    /* Extra cushion under iOS status / liquid-glass so the topbar content isn’t blurred. */
    --app-safe-top: env(safe-area-inset-top, 0px);
    --app-safe-top-extra: 1.25rem;
    --app-header-content-height: 3.75rem;
    --app-header-height: calc(var(--app-header-content-height) + var(--app-safe-top) + var(--app-safe-top-extra));
    --app-bottom-nav-height: 0px;
    --app-frame: 100lvh;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, #f8f7fa 0%, #f0eff2 25%, #e8e6ea 50%, #e0dee2 100%);
    background-attachment: scroll;
    color: var(--color-dark);
    overflow-x: clip;
}

body.app-body {
    background: linear-gradient(135deg, #f8f7fa 0%, #f0eff2 25%, #e8e6ea 50%, #e0dee2 100%);
    background-attachment: scroll;
}

@media (min-width: 769px) {
    body,
    body.app-body {
        background-attachment: fixed;
    }
}

/* Installed iOS/Android web app: lock rubber-band so OS chrome does not peek in. */
html.ios-standalone,
html.ios-standalone body {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}
html.ios-standalone body,
html.ios-standalone body.app-body {
    /* fixed backgrounds fight iOS standalone compositing and can flash browser chrome */
    background-attachment: scroll !important;
}

/* Full-screen web-app shell for pages that are not the dashboard app-shell
   (login, signup, platform, maintenance, etc.). */
@media (max-width: 767.98px) {
    html.ios-standalone:not(:has(.app-shell)),
    html.ios-standalone:not(:has(.app-shell)) body {
        height: var(--app-frame, 100dvh);
        max-height: var(--app-frame, 100dvh);
        overflow: hidden;
    }
    html.ios-standalone:not(:has(.app-shell)) body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
}

img, video, canvas, svg {
    max-width: 100%;
}

/* Prevent iOS Safari zooming focused inputs */
@media (max-width: 768px) {
    input, select, textarea, button {
        font-size: 16px;
    }

    .app-main {
        padding-left: calc(0.85rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.85rem + env(safe-area-inset-right, 0px));
    }

    /* Sticky heroes use negative margins to bleed to the shell edge.
       Those must match the mobile .app-main padding (0.85rem), not desktop 1.5rem,
       or the bar overflows and clips action buttons against the viewport. */
    .app-main > .bk-hero,
    .app-main > .profile-sticky-stack {
        margin-left: calc(-0.85rem - env(safe-area-inset-left, 0px));
        margin-right: calc(-0.85rem - env(safe-area-inset-right, 0px));
        padding-left: calc(0.85rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.85rem + env(safe-area-inset-right, 0px));
    }
    .app-main--dashboard {
        --dash-pad-x: calc(0.85rem + env(safe-area-inset-left, 0px));
        --dash-pad-xr: calc(0.85rem + env(safe-area-inset-right, 0px));
        padding-left: 0;
        padding-right: 0;
    }

    /* Generic wide tables / admin grids that aren't soft-table */
    .overflow-x-auto,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }
@media (hover: none) {
    a:hover { text-decoration: none; }
}
a.dashboard-week-item:hover,
a.dashboard-week-item:focus,
a.dashboard-week-item:active,
a.dashboard-week-item:visited,
button.dashboard-week-item:hover,
button.dashboard-week-item:focus,
button.dashboard-week-item:active {
    text-decoration: none !important;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}
button:hover { opacity: 0.9; }

/* Layout */
html, body {
    min-height: 100%;
    min-height: 100lvh;
    min-height: 100dvh;
}
body {
    overflow-x: clip;
}
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.antialiased { -webkit-font-smoothing: antialiased; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
h2.text-lg {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0;
}
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.02em; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.log-out-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
}
.log-out-btn:hover { background: rgba(0, 179, 230, 0.1); }

/* Brand colours */
.text-\[#00b3e6\], .text-primary { color: #00b3e6; }
.text-\[#4d4e56\], .text-dark { color: #4d4e56; }
.text-\[#a2a1a5\], .text-muted { color: #a2a1a5; }
.bg-\[#e1dfe1\], .bg-light { background-color: #e1dfe1; }
.bg-white { background-color: #fff; }
.bg-red-100 { background-color: #fee2e2; }
.text-red-800 { color: #991b1b; }

/* Borders */
.border { border-width: 1px; }
.border-\[#e1dfe1\], .border-light { border-color: #e1dfe1; }
.border-\[#a2a1a5\] { border-color: #a2a1a5; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow & cards – stronger depth so it doesn’t look flat */
.shadow {
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.06);
}
.card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(77, 78, 86, 0.08);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.06);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 50%, #0088b3 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    box-shadow: 0 4px 14px rgba(0, 179, 230, 0.35);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: inherit;
    text-decoration: none;
}
.btn-primary:hover {
    opacity: 1;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 179, 230, 0.45);
}
.btn-primary:focus {
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 179, 230, 0.35), 0 0 0 3px rgba(0, 179, 230, 0.2);
}
.btn-primary:focus {
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 179, 230, 0.35), 0 0 0 3px rgba(0, 179, 230, 0.2);
}
.bg-\[#00b3e6\] {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 50%, #0088b3 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 179, 230, 0.35);
    transition: all 0.3s ease;
}
.bg-\[#00b3e6\]:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 179, 230, 0.45);
}
.btn-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff4d2e 50%, #ff3d1f 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(255, 103, 76, 0.35);
    transition: all 0.3s ease;
}
.btn-accent:hover {
    opacity: 1;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 76, 0.45);
}

/* Flex */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.min-w-0 { min-width: 0; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.shrink-0 { flex-shrink: 0; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }

/* Lists & dividers */
ul.bg-white {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.divide-y > * + * { border-top: 1px solid var(--color-light); }

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    border: 0;
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #0f172a;
    background-color: #f1f5f9;
    box-sizing: border-box;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 179, 230, 0.22);
}
input:disabled,
input[readonly],
textarea:disabled,
select:disabled {
    background-color: #e8edf2;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}
.w-full { width: 100%; }

/* Hover states for links/buttons used in views */
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }
.text-\[#4d4e56\].hover\:text-\[#00b3e6\]:hover,
a.hover\:text-\[#00b3e6\]:hover { color: #00b3e6; }
.text-\[#a2a1a5\].hover\:text-\[#4d4e56\]:hover:hover { color: #4d4e56; }
.text-\[#a2a1a5\].hover\:text-\[#ff674c\]:hover:hover { color: #ff674c; }

/* Nav links – pill style so they feel like buttons, not flat text */
.nav-links a {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    background: rgba(0, 179, 230, 0.08);
    transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
    background: rgba(0, 179, 230, 0.18);
    color: #0099c7;
    text-decoration: none;
}
.nav-links .sep { color: var(--color-muted); padding: 0 0.25rem; font-weight: normal; }

/* Alerts / messages */
.bg-\[\#00b3e6\]\/10 { background-color: rgba(0, 179, 230, 0.1); }
.border-\[\#00b3e6\]\/30 { border-color: rgba(0, 179, 230, 0.3); }
.bg-\[\#ff674c\]\/10 { background-color: rgba(255, 103, 76, 0.1); }
.border-\[\#ff674c\]\/30 { border-color: rgba(255, 103, 76, 0.3); }

/* ========== App shell (dashboard layout) ========== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.app-shell {
    min-height: 100vh;
    min-height: 100lvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f7fa 0%, #f0eff2 25%, #e8e6ea 50%, #e0dee2 100%);
    /* Do NOT use background-attachment:fixed here — on iOS it makes
       position:fixed children (bottom nav) stick to the shell, not the screen. */
    background-attachment: scroll;
}
.app-topbar {
    min-height: var(--app-header-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: calc(var(--app-safe-top) + var(--app-safe-top-extra)) calc(1rem + env(safe-area-inset-right, 0px)) 0.5rem calc(1rem + env(safe-area-inset-left, 0px));
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f7 100%);
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #00b3e6 0%, #ff674c 50%, #00b3e6 100%) 1;
    box-shadow: 0 4px 20px rgba(0, 179, 230, 0.15), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}
.app-topbar::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b3e6 0%, #ff674c 50%, #00b3e6 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
.app-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
.app-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.2s;
}
@media (min-width: 768px) {
    .app-menu-toggle { display: none; }
}
.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    text-decoration: none;
}
.app-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 50%, #ff674c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.app-logo:hover { 
    text-decoration: none;
}
.app-logo:hover .app-logo-text {
    background: linear-gradient(135deg, #0099c7 0%, var(--color-primary) 50%, #ff674c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.app-logo-img {
    height: 32px;
    max-width: 150px;
    object-fit: contain;
}
.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.app-notice-dropdown {
    position: relative;
}
.app-notice-bell {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.app-notice-bell:hover {
    background: #e2e8f0;
}
.app-notice-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ff674c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}
.app-notice-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(22rem, calc(100dvh - var(--app-header-height) - 1.5rem));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 220;
    overflow: hidden;
}
.app-notice-dropdown.open .app-notice-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.app-notice-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--color-primary, #00b3e6) 0%, var(--color-primary-dark, #0099c7) 55%, var(--color-accent, #ff674c) 100%);
    border-bottom: 0;
    flex-shrink: 0;
}
.app-notice-clear {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    padding: 0.2rem 0;
}
.app-notice-clear:hover {
    color: #fff;
}
.app-notice-menu-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}
/* Small phones: menu was anchored to the bell (left of avatar) at ~full viewport
   width, so it clipped off the left. Position against the topbar instead. */
@media (max-width: 768px) {
    .app-notice-dropdown {
        position: static;
    }
    .app-notice-menu {
        top: calc(100% + 0.35rem);
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        width: auto;
        /* Leave room for the bottom tab bar + home indicator */
        max-height: min(22rem, calc(100dvh - var(--app-header-height) - 5.5rem));
    }
}
.app-notice-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}
.app-notice-swipe {
    position: relative;
    overflow: hidden;
    background: #e11d48;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.app-notice-swipe-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1.05rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
}
.app-notice-swipe-front {
    position: relative;
    z-index: 1;
    background: #fff;
    will-change: transform;
}
.app-notice-swipe.is-swiping .app-notice-swipe-front {
    transition: none;
}
.app-notice-swipe.is-removing .app-notice-swipe-front {
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.app-notice-swipe:not(.is-swiping):not(.is-removing) .app-notice-swipe-front {
    transition: transform 0.18s ease;
}
.app-notice-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    touch-action: pan-y;
}
.app-notice-item:hover {
    background: #f8fafc;
}
.app-notice-item.is-unread {
    background: #f0f9ff;
}
.app-notice-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}
.app-notice-item.is-unread .app-notice-item-title {
    color: #0369a1;
}
.app-notice-item-body {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #475569;
}
.app-notice-item-at {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    color: #94a3b8;
}
#push-notice.modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
#push-notice .modal-dialog {
    align-self: center;
    width: min(26rem, 100%);
    max-width: 26rem;
    margin: 0 auto;
    animation: push-notice-in 0.2s ease;
}
#push-notice .modal-content {
    border-radius: 1rem;
}
#push-notice .modal-header {
    background: linear-gradient(135deg, var(--color-primary, #00b3e6) 0%, var(--color-primary-dark, #0099c7) 55%, var(--color-accent, #ff674c) 100%);
    border-bottom: 0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
#push-notice .modal-title {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}
#push-notice .modal-close {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}
#push-notice .modal-close:hover {
    background: #fff;
    color: #0f172a;
}
#push-notice .push-notice-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
}
@keyframes push-notice-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.app-user {
    font-size: 0.875rem;
    color: var(--color-dark);
    font-weight: 500;
}
.app-user-dropdown {
    position: relative;
}
.app-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    border: none;
    padding: 0;
}
.app-user-avatar:hover {
    background: #0099c7;
    transform: scale(1.05);
}
.app-user-avatar svg {
    width: 1.25rem;
    height: 1.25rem;
}
.app-user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.app-user-avatar-initials {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Admin: attendee avatar in session attendees list */
.admin-attendee-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.2) 0%, rgba(0, 179, 230, 0.1) 100%);
    border: 1px solid rgba(0, 179, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-attendee-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-attendee-avatar-initials {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00b3e6;
    letter-spacing: -0.02em;
}

/* ========== Admin panel branding (same as My Profile) ========== */
.admin-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.08) 0%, rgba(255, 103, 76, 0.06) 100%);
    border-bottom: 2px solid rgba(0, 179, 230, 0.15);
    flex-wrap: wrap;
    border-radius: 0.75rem 0.75rem 0 0;
}
.admin-panel-header-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-panel-header-icon--users {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.admin-panel-header-icon--sessions {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.admin-panel-header-icon--locations {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}
.admin-panel-header-icon--class-types {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.admin-panel-header-icon--invoices {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}
.admin-panel-header-icon--injuries {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.admin-panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00b3e6 0%, #ff674c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.admin-panel-tagline {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.admin-panel-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 2px solid #e1dfe1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.admin-panel-body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.admin-panel-body--no-top {
    padding-top: 0;
}
.admin-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.2) 0%, rgba(0, 179, 230, 0.1) 100%);
    border: 1px solid rgba(0, 179, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-user-avatar-initials {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00b3e6;
    letter-spacing: -0.02em;
}

.app-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s;
    z-index: 200;
    overflow: hidden;
}
.app-user-dropdown.open .app-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.app-user-dropdown-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.app-user-dropdown-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}
.app-user-dropdown-email {
    font-size: 0.75rem;
    color: var(--color-muted);
}
.app-user-dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 0.25rem 0;
}
.app-user-dropdown-form {
    margin: 0;
    padding: 0;
}
.app-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.app-user-dropdown-item:hover {
    background: rgba(0, 179, 230, 0.08);
    color: var(--color-primary);
}
.app-user-dropdown-item--logout {
    color: var(--color-accent);
}
.app-user-dropdown-item--logout:hover {
    background: rgba(255, 103, 76, 0.1);
    color: #ff674c;
}
.app-user-dropdown-item svg {
    flex-shrink: 0;
}
.app-logout {
    font-size: 0.875rem;
    color: var(--color-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.15s;
    font-weight: 500;
}
.app-logout:hover { color: #fff; background: var(--color-accent); }
.app-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}
.app-overlay.open { display: block; }
.app-sidebar {
    width: 16rem;
    flex-shrink: 0;
    background: #4d4e56;
    border-right: 2px solid rgba(0, 179, 230, 0.3);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--app-header-height);
    left: 0;
    bottom: 0;
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.app-sidebar.open { transform: translateX(0); }
.app-nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0; }
.app-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
    position: relative;
}
.app-nav-item:hover {
    background: rgba(0, 179, 230, 0.2);
    color: #fff;
    text-decoration: none;
    border-left-color: var(--color-primary);
    transform: translateX(4px);
}
.app-nav-item.active {
    background: linear-gradient(90deg, rgba(0, 179, 230, 0.35) 0%, rgba(0, 179, 230, 0.2) 100%);
    color: #fff;
    font-weight: 700;
    border-left-width: 4px;
    border-left-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 179, 230, 0.3);
}
.app-nav-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s;
}
.app-nav-item:hover .app-nav-icon,
.app-nav-item.active .app-nav-icon {
    opacity: 1;
    transform: scale(1.1);
}
.app-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.5rem;
}
.app-nav-label {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}
.app-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.5rem;
}
.app-nav-label {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.5rem;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
    overflow: auto;
    margin-top: 3.75rem;
}

/* Sticky page title bar (Book a Session, My Sessions, My Profile) */
.app-main:has(> .bk-hero) {
    --bk-sticky-hero: 3.75rem;
    padding-top: 0;
}
.app-main > .bk-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--bk-sticky-hero);
    margin: 0 calc(-1.5rem - env(safe-area-inset-right, 0px)) 1rem calc(-1.5rem - env(safe-area-inset-left, 0px));
    padding: 0.5rem calc(1.5rem + env(safe-area-inset-right, 0px)) 0.5rem calc(1.5rem + env(safe-area-inset-left, 0px));
    border-radius: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #ede9fe 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid #bfdbfe;
}
.app-main > .bk-hero h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .app-main:has(> .bk-hero),
    .app-main:has(> .profile-sticky-stack) {
        padding-top: 0;
    }
    .app-main > .bk-hero {
        flex-wrap: nowrap;
        gap: 0.5rem;
        min-height: 3.5rem;
    }
    .app-main > .bk-hero h1 {
        font-size: 1.15rem;
    }
}
.app-main:has(> .profile-sticky-stack) {
    padding-top: 0;
}
.app-main > .profile-sticky-stack {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0 calc(-1.5rem - env(safe-area-inset-right, 0px)) 1rem calc(-1.5rem - env(safe-area-inset-left, 0px));
    padding: 0.5rem calc(1.5rem + env(safe-area-inset-right, 0px)) 0.55rem calc(1.5rem + env(safe-area-inset-left, 0px));
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #ede9fe 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid #bfdbfe;
}
.app-main > .profile-sticky-stack h1 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
@media (min-width: 768px) {
    .app-main > .profile-sticky-stack {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) {
    .app-main > .profile-sticky-stack {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 3.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .app-main > .profile-sticky-stack h1 {
        margin: 0;
        font-size: 1.35rem;
        flex-shrink: 0;
    }
}

/* Sticky header tabs (My Profile + admin member) */
.profile-sticky-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    padding: 0.18rem;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
    gap: 0.12rem;
}
.profile-sticky-tabs .profile-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    border: 0;
    background: transparent;
    color: #64748b;
    min-height: 3.15rem;
    padding: 0.3rem 0.1rem 0.35rem;
    border-radius: 0.75rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.profile-sticky-tabs .profile-tab:hover {
    color: #0369a1;
    background: #f0f9ff;
}
.profile-sticky-tabs .profile-tab-active,
.profile-sticky-tabs .profile-tab[aria-selected="true"] {
    color: #0369a1;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.16);
}
.profile-sticky-tabs .profile-tab svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: currentColor;
}
.profile-sticky-tabs .profile-tab-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 1024px) {
    .profile-sticky-tabs {
        width: auto;
        margin-left: auto;
        display: flex;
        align-items: center;
        border-radius: 999px;
        padding: 0.18rem;
        gap: 0.1rem;
    }
    .profile-sticky-tabs .profile-tab {
        flex-direction: row;
        min-height: 2.35rem;
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.78rem;
        gap: 0.4rem;
        letter-spacing: 0;
        white-space: nowrap;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .profile-sticky-tabs .profile-tab {
        padding: 0.35rem 0.55rem;
        font-size: 0.72rem;
        gap: 0.3rem;
    }
}
@media (max-width: 380px) {
    .profile-sticky-tabs .profile-tab {
        font-size: 0.58rem;
    }
}

@media (min-width: 768px) {
    .app-main > .bk-hero {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .app-main > .bk-hero h1 {
        font-size: 1.35rem;
    }
    .app-main--dashboard {
        --dash-pad-x: 2rem;
        --dash-pad-xr: 2rem;
    }
}

/* Admin list pages: sticky hero with action buttons */
.app-main > .bk-hero.bk-hero--tools {
    flex-wrap: wrap;
    row-gap: 0.45rem;
}
.app-main > .bk-hero .ss-hero-title,
.app-main > .profile-sticky-stack .ss-hero-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.app-main > .bk-hero .ss-hero-title h1,
.app-main > .profile-sticky-stack .ss-hero-title h1 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-main > .bk-hero .ss-hero-back,
.app-main > .profile-sticky-stack .ss-hero-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    flex-shrink: 0;
    background: #fff;
    color: #334155;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    text-decoration: none;
}
.app-main > .bk-hero .ss-hero-back:hover,
.app-main > .profile-sticky-stack .ss-hero-back:hover {
    background: #f8fafc;
    color: #0891b2;
}
.app-main > .bk-hero .ss-hero-actions,
.app-main > .bk-hero .soft-hero-actions,
.app-main > .profile-sticky-stack .soft-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}
.app-main > .bk-hero .soft-btn,
.app-main > .profile-sticky-stack .soft-btn {
    min-height: 2.35rem;
    padding: 0.4rem 0.85rem;
}
.app-main > .profile-sticky-stack .nt-sticky-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}
.app-main > .profile-sticky-stack .nt-sticky-top h1 {
    margin: 0;
}
.app-main > .profile-sticky-stack .nt-tabs--sticky {
    margin: 0.45rem 0 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}
@media (min-width: 1024px) {
    .app-main > .profile-sticky-stack.nt-sticky-stack {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        min-height: 0;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
    .app-main > .profile-sticky-stack .nt-tabs--sticky {
        margin-top: 0;
    }
}
@media (max-width: 767.98px) {
    /*
     * Tools heroes: same language as desktop — full-bleed sticky bar,
     * comfortable pills, wrap when the row is tight (don’t shrink buttons).
     */
    .app-main > .bk-hero.bk-hero--tools {
        min-height: 3.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.55rem 0.75rem;
        row-gap: 0.55rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        border-radius: 0;
    }
    .app-main > .bk-hero.bk-hero--tools h1 {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.35rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .app-main > .bk-hero.bk-hero--tools .ss-hero-actions,
    .app-main > .bk-hero.bk-hero--tools .soft-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }
    .app-main > .bk-hero.bk-hero--tools .ss-hero-actions .soft-btn,
    .app-main > .bk-hero.bk-hero--tools .soft-hero-actions .soft-btn,
    .app-main > .bk-hero .soft-btn,
    .app-main > .profile-sticky-stack .soft-btn {
        min-height: 2.35rem;
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    .app-main {
        scrollbar-width: none;
    }
    .app-main::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}
.app-footer {
    display: none;
    padding: 0.875rem 2rem;
    background: linear-gradient(160deg, #25262c 0%, #1a1b20 50%, #15161a 100%);
    border-top: 1px solid rgba(0, 179, 230, 0.15);
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 14rem;
    right: 0;
    z-index: 5;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(8px);
}
.app-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}
.app-footer-copyright {
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}
.app-footer-copyright::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-right: 0.5rem;
    vertical-align: middle;
    opacity: 0.7;
    box-shadow: 0 0 8px var(--color-primary);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}
.pagination-wrapper--top {
    margin: 0;
    width: auto;
    justify-content: flex-end;
}
.pagination-wrapper--top nav {
    width: auto;
}
.pagination-wrapper--bottom {
    margin: 1.25rem 0 0;
}
.pagination-wrapper nav {
    display: flex;
    justify-content: center;
    width: 100%;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination li {
    display: flex;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 2px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.5rem;
    background: #fff;
    color: #2d2e35;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.pagination a:hover {
    background: rgba(0, 179, 230, 0.1);
    border-color: rgba(0, 179, 230, 0.4);
    color: var(--color-primary);
    transform: translateY(-1px);
}
.pagination .active span {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 100%);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}
.app-bottom-nav {
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 100;
    /* Cap safe-area — iOS 26 sometimes reports ~100px+ and leaves a huge white band */
    padding: 0.55rem 0 calc(0.55rem + var(--safe-bottom-nav, min(env(safe-area-inset-bottom, 0px), 34px)));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    justify-content: space-around;
    align-items: flex-end;
    overflow: visible;
}
.app-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    min-height: 44px;
    padding: 0.25rem 0.5rem 0.45rem;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 120px;
    -webkit-tap-highlight-color: transparent;
}
.app-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: all 0.2s;
}
.app-bottom-nav-item.active {
    color: var(--color-primary);
}
.app-bottom-nav-item.active svg {
    stroke-width: 2.5;
    transform: scale(1.1);
}
.app-bottom-nav-item span {
    font-size: 0.6875rem;
    line-height: 1.2;
    white-space: nowrap;
}
.app-bottom-nav-item--hero {
    overflow: visible;
    max-width: 7rem;
    color: var(--color-muted);
}
.app-bottom-nav-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    margin-top: -1.85rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 50%, #0088b3 100%);
    box-shadow: 0 8px 20px rgba(0, 179, 230, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-bottom-nav-hero-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    transform: none;
    color: #fff;
}
.app-bottom-nav-item--hero:hover .app-bottom-nav-hero-btn,
.app-bottom-nav-item--hero:focus-visible .app-bottom-nav-hero-btn {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(0, 179, 230, 0.5);
}
.app-bottom-nav-item--hero:active .app-bottom-nav-hero-btn {
    transform: scale(0.94);
}
.app-bottom-nav-item--hero.active {
    color: var(--color-primary);
}
.app-bottom-nav-item--hero.active .app-bottom-nav-hero-btn {
    box-shadow: 0 8px 20px rgba(0, 179, 230, 0.45), 0 0 0 3px rgba(0, 179, 230, 0.22);
}
.app-bottom-nav-item--hero.active svg {
    transform: none;
}
@media (min-width: 768px) {
    .app-shell {
        flex-direction: row;
        min-height: 100vh;
    }
    .app-topbar-left {
        display: none;
    }
    .app-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: calc(var(--app-safe-top) + var(--app-safe-top-extra)) calc(1.5rem + env(safe-area-inset-right, 0px)) 0.5rem calc(1.5rem + env(safe-area-inset-left, 0px));
    }
    .app-sidebar {
        position: fixed;
        transform: translateX(0);
        width: 14rem;
        padding-top: 1rem;
        bottom: 0;
    }
    .app-main {
        margin-left: 14rem;
        margin-top: var(--app-header-height);
        padding: 1.5rem 2rem 4rem;
        min-height: calc(100vh - var(--app-header-height));
        width: auto;
        max-width: none;
    }
    .app-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 14rem;
        right: 0;
        z-index: 5;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }
    .app-bottom-nav { display: none; }
}
/* Toast Notifications */
.app-toast {
    position: fixed;
    top: calc(var(--app-header-height, env(safe-area-inset-top, 0px)) + 0.75rem);
    right: max(2rem, env(safe-area-inset-right, 0px));
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: toastSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}
.app-toast--dismissing {
    animation: toastSlideOut 0.3s ease-in forwards;
}
.app-toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.app-toast-icon {
    flex-shrink: 0;
}
.app-toast--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: #fff;
    border: 2px solid rgba(16, 185, 129, 0.3);
}
.app-toast--error {
    background: linear-gradient(135deg, rgba(255, 103, 76, 0.95) 0%, rgba(239, 68, 68, 0.95) 100%);
    color: #fff;
    border: 2px solid rgba(255, 103, 76, 0.3);
}
.app-toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.app-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .app-toast {
        right: max(1rem, env(safe-area-inset-right, 0px));
        left: max(1rem, env(safe-area-inset-left, 0px));
        min-width: auto;
        max-width: none;
    }
    @keyframes toastSlideIn {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    @keyframes toastSlideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

/* Legacy alert support */
.app-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}
.app-alert--success { background: rgba(0, 179, 230, 0.1); color: #0077a3; border: 1px solid rgba(0, 179, 230, 0.25); }
.app-alert--error { background: rgba(255, 103, 76, 0.1); color: #c94a3a; border: 1px solid rgba(255, 103, 76, 0.25); }

/* Dashboard page – stat cards */
/* Full-bleed overview: drop main side padding, re-apply it to siblings */
.app-main--dashboard {
    --dash-pad-x: calc(1.5rem + env(safe-area-inset-left, 0px));
    --dash-pad-xr: calc(1.5rem + env(safe-area-inset-right, 0px));
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}
.app-main--dashboard > .push-banner,
.app-main--dashboard > #bk-root {
    margin-left: var(--dash-pad-x);
    margin-right: var(--dash-pad-xr);
}
.app-main > .dashboard-hero,
.dashboard-hero {
    margin: 0 0 1.25rem;
    padding: 1.25rem var(--dash-pad-xr, 1.5rem) 1.5rem var(--dash-pad-x, 1.5rem);
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.08) 0%, rgba(255, 103, 76, 0.05) 50%, rgba(0, 179, 230, 0.03) 100%);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 179, 230, 0.15);
    box-shadow: none;
    width: 100%;
}
.dashboard-hero--compact {
    padding: 0.75rem 1.25rem 1rem;
    margin-bottom: 1.25rem;
}
.dashboard-hero--compact h1 {
    font-size: 1.375rem;
    margin: 0 0 0.25rem 0;
}
.dashboard-hero--compact p {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
}
.dashboard-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}
.dashboard-hero-copy {
    text-align: left;
}
.dashboard-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    width: auto;
}
.dashboard-hero-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}
.dashboard-book-fab {
    display: none;
}
.dashboard-hero-stats {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0;
}
.dashboard-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0 0 0.35rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 50%, #ff674c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-align: left;
}
.dashboard-hero-stat {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}
.dashboard-hero-stat--week {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.12) 0%, rgba(0, 179, 230, 0.08) 100%);
    border: 2px solid rgba(0, 179, 230, 0.25);
    box-shadow: 0 2px 8px rgba(0, 179, 230, 0.15);
}
.dashboard-hero-stat--week .dashboard-hero-stat-value {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-hero-stat--month {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 2px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}
.dashboard-hero-stat--month .dashboard-hero-stat-value {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-hero-stat--total {
    background: linear-gradient(135deg, rgba(255, 103, 76, 0.12) 0%, rgba(255, 103, 76, 0.08) 100%);
    border: 2px solid rgba(255, 103, 76, 0.25);
    box-shadow: 0 2px 8px rgba(255, 103, 76, 0.15);
}
.dashboard-hero-stat--total .dashboard-hero-stat-value {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff4d2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.dashboard-hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}
.dashboard-hero-stat-label-short { display: none; }
.dashboard-hero-stat-label-full { display: inline; }
@media (max-width: 768px) {
    /*
     * iPhone PWA shell: 100dvh + capped safe-area (closes white gap under tab bar).
     * JS overwrites --app-shell-height with measured pixels on load.
     */
    html:has(.app-shell),
    html.ios-standalone:has(.app-shell) {
        width: 100%;
        height: var(--app-shell-height, calc(100dvh + min(env(safe-area-inset-bottom, 0px), 28px)));
        overflow: hidden;
        overscroll-behavior: none;
    }
    body:has(.app-shell),
    html.ios-standalone body:has(.app-shell),
    body.app-body:has(.app-shell) {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        height: var(--app-shell-height, calc(100dvh + min(env(safe-area-inset-bottom, 0px), 28px)));
        min-height: var(--app-shell-height, calc(100dvh + min(env(safe-area-inset-bottom, 0px), 28px)));
        max-height: var(--app-shell-height, calc(100dvh + min(env(safe-area-inset-bottom, 0px), 28px)));
        overflow: hidden;
        overscroll-behavior: none;
        padding-bottom: 0 !important;
    }
    .app-shell {
        position: relative;
        flex: 1 1 0;
        width: 100%;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: hidden;
        overscroll-behavior: none;
    }
    .app-topbar {
        position: relative;
        flex-shrink: 0;
        align-items: center;
    }
    .app-topbar-left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .app-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: 0;
    }
    .app-logo-img {
        height: 36px;
        max-width: 160px;
    }
    .app-logo--with-image .app-logo-text {
        display: none;
    }
    .app-topbar-right {
        flex: 1;
        justify-content: flex-end;
    }
    .app-main {
        margin-top: 0;
        flex: 1 1 0;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        /* Extra room for the raised Book FAB that overhangs the tab bar */
        padding-bottom: 2.75rem;
    }
    /* In-flow at the end of the body flex; padding capped for iOS 26 */
    .app-bottom-nav,
    body > .app-bottom-nav {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        flex: 0 0 auto;
        transform: none !important;
        padding: 0.55rem 0 calc(0.55rem + var(--safe-bottom-nav, min(env(safe-area-inset-bottom, 0px), 34px))) !important;
        padding-left: env(safe-area-inset-left, 0px) !important;
        padding-right: env(safe-area-inset-right, 0px) !important;
        z-index: 120;
    }
    .app-shell--session-live .app-main {
        padding-bottom: 1.25rem;
    }
    /*
     * Sidebar must reach the physical bottom (bottom: 0). Using
     * --app-bottom-nav-height left a gap: the tab bar sits lower after the
     * iOS shell-height compensation. Nav z-index stays above the drawer.
     */
    .app-sidebar {
        bottom: 0;
        padding-bottom: calc(0.75rem + var(--app-bottom-nav-height, 5.5rem));
    }
    .app-overlay {
        bottom: 0;
    }
    .pagination-wrapper--bottom {
        display: none;
    }

    /* Dashboard — compact mobile layout */
    .app-main--dashboard {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .app-main > .dashboard-hero,
    .dashboard-hero {
        margin: 0 0 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1.1rem;
        border-radius: 0;
    }
    .dashboard-hero h1 {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
        text-align: center;
    }
    .dashboard-hero-header {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }
    .dashboard-hero-header > div:first-child {
        text-align: center;
    }
    .dashboard-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
    }
    .dashboard-hero-book-btn {
        display: none;
    }
    .dashboard-book-fab {
        display: none;
    }
    .dashboard-hero-stats {
        margin-top: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .dashboard-hero-stat {
        flex: none;
        min-width: 0;
        padding: 0.65rem 0.35rem;
        border-radius: 0.65rem;
    }
    .dashboard-hero-stat-value {
        font-size: 1.35rem;
        margin-bottom: 0.15rem;
    }
    .dashboard-hero-stat-label {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
        line-height: 1.2;
    }
    .dashboard-hero-stat-label-short { display: inline; }
    .dashboard-hero-stat-label-full { display: none; }
    .dashboard-hero-live {
        margin-top: 0.75rem;
    }
    .dashboard-hero-live-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .dashboard-week {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .dashboard-week-day {
        padding: 0.7rem 0.75rem;
        border-radius: 0.9rem;
        box-shadow: none;
        gap: 0.75rem;
    }
    .dashboard-week-day:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    .dashboard-week-day--today {
        transform: none;
        box-shadow: none;
    }
    .dashboard-week-day--today:hover {
        transform: none;
    }

    .dashboard-week-day-header {
        min-width: 2.6rem;
        margin: 0;
        padding: 0;
        gap: 0.05rem;
    }
    .dashboard-week-day-name {
        margin-bottom: 0;
        font-size: 0.65rem;
    }
    .dashboard-week-day-date {
        font-size: 1.15rem;
    }

    .dashboard-week-day-content {
        min-height: 0;
        gap: 0.35rem;
    }
    .dashboard-week-section {
        margin-bottom: 0;
    }
    .dashboard-week-section-label {
        margin-bottom: 0.45rem;
        font-size: 0.65rem;
    }

    .dashboard-week-item {
        padding: 0.55rem 0.7rem;
        margin-bottom: 0;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        align-items: stretch;
    }
    .dashboard-week-item-name {
        font-size: 0.9rem;
    }
    .dashboard-week-item-time {
        font-size: 0.78rem;
        flex-shrink: 0;
    }
    .dashboard-week-item-location {
        font-size: 0.72rem;
    }
    .dashboard-week-item-address {
        display: none; /* keep cards short on phone */
    }

    .dashboard-week-empty {
        padding: 0.35rem 0;
        font-size: 0.8rem;
        font-style: normal;
        text-align: left;
    }
    .dashboard-week-empty--today {
        font-size: 0.84rem;
        padding: 0.2rem 0 0.1rem;
    }
    .dashboard-week-empty::before {
        display: none;
    }
    .dashboard-week-day--today.dashboard-week-day--empty .dashboard-week-day-content {
        min-height: 0;
    }

    .dashboard-week-rest-summary {
        min-height: 44px;
        border-radius: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
    .dashboard-week-rest-title {
        font-size: 0.84rem;
    }
    .dashboard-week-rest-content {
        gap: 0.4rem;
    }
    .dashboard-earlier {
        margin-top: 0.75rem;
    }
    .dashboard-earlier-summary {
        min-height: 44px;
        border-radius: 0.75rem;
        padding: 0.65rem 0.9rem;
    }
    .dashboard-earlier-content .dashboard-week {
        gap: 0.45rem;
    }
    .dashboard-next-session {
        margin-top: 0.85rem;
        padding: 0.9rem 1rem;
        border-radius: 0.9rem;
    }
}

/* Text gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff4d2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional utility classes for login page */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.object-cover { object-fit: cover; }
.border-2 { border-width: 2px; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.flex { display: flex; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.focus\:outline-none:focus { outline: none; }
.focus\:border-\[#00b3e6\]:focus { border-color: #00b3e6; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.2); }
.focus\:ring-\[#00b3e6\]\/20:focus { box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.2); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.border-white\/50 { border-color: rgba(255, 255, 255, 0.5); }
.text-\[#2d2e35\] { color: #2d2e35; }
.text-\[#8b8c94\] { color: #8b8c94; }
.text-\[#ff674c\] { color: #ff674c; }
.border-\[#e1dfe1\] { border-color: #e1dfe1; }
.dash-day-short { display: none; }
.dash-day-full { display: inline; }
.dashboard-week {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 769px) {
    .dashboard-week {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-week-day {
        padding: 1.5rem 1.35rem;
    }
}
@media (min-width: 1024px) {
    .dashboard-week {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1280px) {
    .dashboard-week {
        grid-template-columns: repeat(7, 1fr);
    }
}
.dashboard-week-day {
    display: block;
    background: #ffffff;
    border-radius: 1.25rem;
    border: none;
    padding: 1.1rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.dashboard-week-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    width: auto;
    bottom: auto;
    background: linear-gradient(90deg, #00b3e6 0%, #ff674c 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: block;
}
.dashboard-week-day::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    background: radial-gradient(circle at top right, rgba(0, 179, 230, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.dashboard-week-day:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 179, 230, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 179, 230, 0.2);
}
.dashboard-week-day:hover::before {
    opacity: 1;
}
.dashboard-week-day:hover::after {
    opacity: 1;
}
.dashboard-week-day--today {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.08) 0%, rgba(255, 103, 76, 0.04) 50%, rgba(255, 255, 255, 0.98) 100%);
    border: 2px solid var(--color-primary);
    box-shadow: 0 12px 32px rgba(0, 179, 230, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: scale(1.03);
}
.dashboard-week-day--today::before {
    opacity: 1;
    height: 5px;
    width: auto;
    bottom: auto;
    background: linear-gradient(90deg, #00b3e6 0%, #ff674c 100%);
    box-shadow: 0 2px 8px rgba(0, 179, 230, 0.4);
}
.dashboard-week-day--today::after {
    opacity: 1;
    display: block;
    background: radial-gradient(circle at top right, rgba(0, 179, 230, 0.12) 0%, rgba(255, 103, 76, 0.06) 50%, transparent 80%);
}
.dashboard-week-day-header {
    display: block;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(0, 179, 230, 0.1);
    min-width: 0;
    position: relative;
    z-index: 1;
}
.dashboard-week-day--today .dashboard-week-day-header {
    border-bottom-color: rgba(0, 179, 230, 0.2);
}
.dashboard-week-day-name {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    color: inherit;
}
.dashboard-week-day--today .dashboard-week-day-name {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff674c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: inherit;
    text-shadow: 0 0 20px rgba(0, 179, 230, 0.3);
}
.dashboard-week-day-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}
.dashboard-week-day--today .dashboard-week-day-date {
    color: var(--color-primary);
}
.dashboard-week-day-date::after {
    content: '';
    display: none;
}
.dashboard-week-day--today .dashboard-week-day-date::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 179, 230, 0.5);
}
.dashboard-week-day-today {
    display: none;
}
.dashboard-week-day-content {
    min-height: 4rem;
    display: block;
    flex: none;
}
@media (max-width: 768px) {
    .dashboard-hero-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }
    .dashboard-hero-copy,
    .dashboard-hero h1 {
        text-align: center;
    }
    .dashboard-hero-actions {
        align-items: stretch;
        width: 100%;
    }
    .dashboard-hero-stats {
        justify-content: center;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .dash-day-short { display: inline; }
    .dash-day-full { display: none; }

    .dashboard-week {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    .dashboard-week-day {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.7rem 0.75rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: none;
        transform: none;
        backdrop-filter: none;
    }
    .dashboard-week-day::before,
    .dashboard-week-day::after {
        display: none;
    }
    .dashboard-week-day:hover {
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(15, 23, 42, 0.06);
    }
    .dashboard-week-day--today {
        transform: none;
        box-shadow: none;
        background: #fff;
        border-color: rgba(0, 179, 230, 0.35);
    }
    .dashboard-week-day--today::before {
        display: block;
        top: 0;
        left: 0;
        bottom: 0;
        right: auto;
        width: 3px;
        height: auto;
        opacity: 1;
        background: var(--color-primary);
        box-shadow: none;
    }
    .dashboard-week-day--today::after {
        display: none;
    }
    .dashboard-week-day-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 2.6rem;
        margin: 0;
        padding: 0.15rem 0 0;
        border: none;
        flex-shrink: 0;
    }
    .dashboard-week-day-name {
        margin-bottom: 0;
        font-size: 0.65rem;
        background: none;
        -webkit-text-fill-color: #94a3b8;
        color: #94a3b8;
    }
    .dashboard-week-day--today .dashboard-week-day-name {
        background: none;
        -webkit-text-fill-color: var(--color-primary);
        color: var(--color-primary);
        text-shadow: none;
    }
    .dashboard-week-day-date {
        font-size: 1.15rem;
        font-weight: 800;
        display: block;
        line-height: 1.1;
    }
    .dashboard-week-day-date::after,
    .dashboard-week-day--today .dashboard-week-day-date::after {
        display: none;
    }
    .dashboard-week-day-today {
        display: inline-block;
        margin-top: 0.2rem;
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #fff;
        background: var(--color-primary);
        border-radius: 999px;
        padding: 0.12rem 0.35rem;
    }
    .dashboard-week-day-content {
        flex: 1;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }
}
.dashboard-week-section {
    margin-bottom: 2rem;
}
.dashboard-week-section:last-child {
    margin-bottom: 0;
}
.dashboard-week-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}
.dashboard-week-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    text-decoration: none !important;
    transition: none !important;
    margin-bottom: 0;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    box-shadow: none;
    pointer-events: auto;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
}
.dashboard-week-item:hover,
.dashboard-week-item:focus,
.dashboard-week-item:active,
.dashboard-week-item:visited {
    text-decoration: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border-color: #e1dfe1 !important;
    background: #ffffff !important;
}
.dashboard-week-item,
.dashboard-week-item:hover,
.dashboard-week-item:focus,
.dashboard-week-item:active,
.dashboard-week-item:visited {
    text-decoration: none !important;
    transition: none !important;
}
.dashboard-week-item *,
.dashboard-week-item:hover *,
.dashboard-week-item:focus *,
.dashboard-week-item:active *,
.dashboard-week-item:visited * {
    text-decoration: none !important;
}
.dashboard-week-item:last-child {
    margin-bottom: 0;
}
.dashboard-week-item--booking {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.08) 0%, rgba(0, 179, 230, 0.04) 100%);
    border: 1px solid rgba(0, 179, 230, 0.2);
    box-shadow: 0 1px 3px rgba(0, 179, 230, 0.1);
    position: relative;
}
.dashboard-week-item--booking::before {
    display: none;
}
.dashboard-week-item--booking:hover {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.08) 0%, rgba(0, 179, 230, 0.04) 100%) !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 179, 230, 0.1) !important;
    border-color: rgba(0, 179, 230, 0.2) !important;
    text-decoration: none !important;
    transition: none !important;
}
.dashboard-week-item--available {
    background: #ffffff;
    border: 1px solid #e1dfe1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dashboard-week-item--available:hover {
    background: #ffffff !important;
    border-color: #e1dfe1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
    text-decoration: none !important;
    transition: none !important;
}
.dashboard-week-item-content,
.dashboard-week-item-top {
    min-width: 0;
    width: 100%;
}
.dashboard-week-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
}
.dashboard-week-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
    min-width: 0;
}
.dashboard-week-item-time {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}
.dashboard-week-item-location {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8b8c94;
    line-height: 1.5;
    width: 100%;
}
.dashboard-week-item-address {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #a2a1a5;
    line-height: 1.4;
    margin-top: 0.125rem;
}
.dashboard-week-item-spots {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.dashboard-week-item-spots:empty {
    display: none;
}
.dashboard-week-empty {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-style: normal;
    text-align: left;
    padding: 0.45rem 0;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}
.dashboard-week-empty--today {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.72;
}
.dashboard-week-empty::before {
    display: none;
}
.dashboard-week-day-empty {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-style: italic;
    margin: 0;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}
.dashboard-week-day--empty .dashboard-week-day-content {
    min-height: 2rem;
}
.dashboard-week-rest {
    border: none;
    padding: 0;
    margin: 0;
    grid-column: 1 / -1;
}
.dashboard-week-rest-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    user-select: none;
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.dashboard-week-rest-summary::-webkit-details-marker,
.dashboard-week-rest-summary::marker {
    display: none;
}
.dashboard-week-rest-summary:hover {
    border-color: rgba(0, 179, 230, 0.25);
    background: rgba(0, 179, 230, 0.06);
}
.dashboard-week-rest-title {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--color-dark);
    letter-spacing: 0.01em;
}
.dashboard-week-rest-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--color-muted);
}
.dashboard-week-rest[open] .dashboard-week-rest-summary {
    color: var(--color-primary);
    background: rgba(0, 179, 230, 0.08);
    border-color: rgba(0, 179, 230, 0.22);
}
.dashboard-week-rest[open] .dashboard-week-rest-title {
    color: var(--color-primary);
}
.dashboard-week-rest[open] .dashboard-week-rest-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}
.dashboard-week-rest-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.dashboard-earlier {
    margin-top: 1.5rem;
}
.dashboard-earlier-details {
    border: none;
    padding: 0;
    margin: 0;
}
.dashboard-earlier-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    background: #e8e6ea;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.dashboard-earlier-summary::-webkit-details-marker,
.dashboard-earlier-summary::marker {
    display: none;
}
.dashboard-earlier-summary:hover {
    color: var(--color-primary);
    background: rgba(0, 179, 230, 0.12);
    border-color: rgba(0, 179, 230, 0.25);
}
.dashboard-earlier-pill-text {
    letter-spacing: 0.01em;
}
.dashboard-earlier-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: inherit;
    opacity: 0.8;
}
.dashboard-earlier-details[open] .dashboard-earlier-summary {
    color: var(--color-primary);
    background: rgba(0, 179, 230, 0.12);
    border-color: rgba(0, 179, 230, 0.2);
}
.dashboard-earlier-details[open] .dashboard-earlier-chevron {
    transform: rotate(180deg);
}
.dashboard-earlier-content {
    margin-top: 0.75rem;
    padding: 0;
}
.dashboard-earlier-view-all {
    display: block;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}
.dashboard-earlier-view-all:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}
.dashboard-earlier-content .dashboard-week {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .dashboard-earlier-content .dashboard-week {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .dashboard-earlier-content .dashboard-week {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1280px) {
    .dashboard-earlier-content .dashboard-week {
        grid-template-columns: repeat(7, 1fr);
    }
}
.dashboard-earlier-content .dashboard-week-day {
    padding: 1.25rem 1.25rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: none;
    border-bottom: none;
}
.dashboard-earlier-content .dashboard-week-day::before {
    height: 3px;
    opacity: 0.6;
}
.dashboard-earlier-content .dashboard-week-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 179, 230, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(0, 179, 230, 0.2);
}
.dashboard-earlier-content .dashboard-week-day:hover::before,
.dashboard-earlier-content .dashboard-week-day:hover::after {
    opacity: 1;
}
.dashboard-earlier-content .dashboard-week-day--past .dashboard-week-day-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 179, 230, 0.1);
}
.dashboard-earlier-content .dashboard-week-day--past .dashboard-week-day-name {
    font-size: 0.75rem;
}
.dashboard-earlier-content .dashboard-week-day--past .dashboard-week-day-date {
    font-size: 0.9375rem;
}
.dashboard-next-session {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.1) 0%, rgba(255, 103, 76, 0.05) 50%, rgba(0, 179, 230, 0.05) 100%);
    border: 2px solid rgba(0, 179, 230, 0.25);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(0, 179, 230, 0.15);
}
.dashboard-next-session-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}
.dashboard-next-session-link {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--color-dark);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.dashboard-next-session-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.dashboard-next-session-details {
    font-size: 0.8125rem;
    color: var(--color-muted);
}
.dashboard-next-session-link:hover .dashboard-next-session-name {
    color: #0099c7;
}

/* Session cards */
.space-y-4 > * + * { margin-top: 1rem; }
.bg-white.rounded-lg.border {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f7 100%);
    border-color: rgba(0, 179, 230, 0.2) !important;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0, 179, 230, 0.1);
    transition: all 0.3s ease;
}
.bg-white.rounded-lg.border:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 179, 230, 0.15), 0 0 0 1px rgba(0, 179, 230, 0.2);
    border-color: rgba(0, 179, 230, 0.3) !important;
}

/* Admin pages */
.max-w-4xl { max-width: 56rem; }
.bg-white.rounded.border {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-color: rgba(0, 179, 230, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.divide-y > * + * { border-top-color: rgba(0, 179, 230, 0.08) !important; }

@media (min-width: 768px) {
    .md\:p-6 { padding: 1.5rem; }
    .md\:p-8 { padding: 2rem; }
}

/* Active Session View */
.session-active {
    max-width: 48rem;
    margin: 0 auto;
}
.session-active-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.session-active-back {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.session-active-back:hover {
    text-decoration: underline;
}
.session-active-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.session-active-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.session-active-timer {
    text-align: right;
    flex-shrink: 0;
}
.session-active-time-remaining {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.session-active-time-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
.session-active-progress {
    height: 0.5rem;
    background: rgba(0, 179, 230, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.session-active-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #0099c7 100%);
    border-radius: 9999px;
    transition: width 0.3s;
}
.session-active-progress-text {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}
.session-active-plan {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 179, 230, 0.12);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.session-active-plan-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 1.5rem 0;
}
.session-active-exercises {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.session-active-exercise {
    background: #fff;
    border: 2px solid rgba(0, 179, 230, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s;
}
.session-active-exercise.completed {
    background: rgba(0, 179, 230, 0.05);
    border-color: var(--color-primary);
    opacity: 0.8;
}
.session-active-exercise.completed .session-active-exercise-name {
    text-decoration: line-through;
    color: var(--color-muted);
}
.session-active-exercise-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.session-active-exercise-checkbox {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.session-active-exercise-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
}
.checkmark {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 0.25rem;
    background: #fff;
    transition: all 0.15s;
}
.session-active-exercise-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.session-active-exercise-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}
.session-active-exercise-info {
    flex: 1;
    min-width: 0;
}
.session-active-exercise-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.25rem 0;
}
.session-active-exercise-description {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}
.session-active-exercise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.session-active-exercise-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 179, 230, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.session-active-no-plan {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 179, 230, 0.12);
    padding: 2rem;
    text-align: center;
    color: var(--color-muted);
}
.session-active-phase {
    margin-bottom: 2rem;
}
.session-active-phase:last-child {
    margin-bottom: 0;
}
.session-active-phase-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 179, 230, 0.2);
}
.session-active-exercise--sequence {
    border-left: 3px solid var(--color-accent);
}
.session-active-exercise-intensity {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.875em;
}
.session-active-alternatives {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 179, 230, 0.2);
}
.session-active-alternatives-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.session-active-alternative {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 179, 230, 0.05);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.session-active-alternative-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
}

/* Immersive live workout — hide dashboard chrome so the session fills the phone */
.app-shell--session-live .app-topbar,
.app-shell--session-live .app-sidebar,
.app-shell--session-live .app-overlay,
.app-shell--session-live .app-bottom-nav,
.app-shell--session-live .app-footer,
.app-shell--session-live .push-banner,
.app-shell--session-live .dashboard-book-fab {
    display: none !important;
}
.app-shell--session-live .app-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: none;
    background: #f4f3f6;
}
@media (min-width: 768px) {
    .app-shell--session-live .app-main {
        margin-left: 0 !important;
        min-height: 100vh;
        padding-bottom: 0 !important;
    }
}
@media (max-width: 767.98px) {
    html:has(.app-shell--session-live) {
        --app-header-height: 0px;
        --app-bottom-nav-height: 0px;
    }
    .app-shell--session-live .app-main {
        padding-bottom: 0 !important;
    }
}

/* Session Plan Builder - Desktop Layout */
.session-plan-builder-desktop {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    max-height: none;
    overflow-y: visible;
}
.phase-container-desktop {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.phase-header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 0.75rem;
}
.phase-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.phase-index,
.exercise-index {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}
.phase-name-input {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 750;
    color: #0f172a;
    padding: 0.45rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #f8fafc;
}
.phase-name-input:focus {
    outline: none;
    background: #fff;
    border-color: #00b3e6;
    box-shadow: 0 0 0 3px rgba(0, 179, 230, 0.15);
}
.phase-empty {
    padding: 0.85rem 0.9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.65rem;
    color: #94a3b8;
    font-size: 0.88rem;
    background: #f8fafc;
}
.phase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}
.exercises-list-desktop {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.exercise-item-desktop {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    position: relative;
}
.exercise-header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.7rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.exercise-title-block {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    flex: 1;
    min-width: 220px;
}
.exercise-name-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}
.exercise-name-group .exercise-name {
    font-size: 0.98rem;
    font-weight: 750;
    padding: 0.45rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}
.exercise-name-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
}
.exercise-linked,
.exercise-custom {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-weight: 750;
}
.exercise-linked { background: #ecfeff; color: #0e7490; }
.exercise-custom { background: #f1f5f9; color: #64748b; }
.session-plan-link-btn {
    border: 0;
    background: transparent;
    color: #0891b2;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}
.session-plan-link-btn:hover { text-decoration: underline; }
.exercise-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.exercise-header-actions .exercise-type {
    min-width: 7.5rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 650;
}
.exercise-content-desktop {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.exercise-row-desktop {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}
.exercise-properties-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.55rem;
}
.property-group-desktop {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.property-group-desktop label {
    font-size: 0.72rem;
    font-weight: 750;
    color: #64748b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.property-group-desktop input,
.property-group-desktop textarea,
.property-group-desktop select,
.exercise-name-group input {
    padding: 0.45rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.property-group-desktop input:focus,
.property-group-desktop textarea:focus,
.property-group-desktop select:focus,
.exercise-name-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 230, 0.12);
}
.property-group-desktop input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}
.property-group-full {
    grid-column: 1 / -1;
}
.per-set-variation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px dashed #cbd5e1;
    font-weight: 650;
    font-size: 0.84rem;
    color: #334155;
    cursor: pointer;
    width: fit-content;
}
.set-details-section {
    margin-top: 0.15rem;
    padding: 0.65rem;
    background: #fff;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
}
.set-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.set-detail-row {
    display: grid;
    grid-template-columns: 70px repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.45rem;
    align-items: end;
    padding: 0.45rem 0.55rem;
    background: #f8fafc;
    border-radius: 0.45rem;
}
.set-number {
    font-weight: 750;
    color: var(--color-primary);
    font-size: 0.8rem;
    padding-bottom: 0.35rem;
}
.set-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.set-detail-field label {
    font-size: 0.68rem;
    font-weight: 750;
    color: #94a3b8;
    text-transform: uppercase;
}
.set-detail-field input {
    padding: 0.4rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    background: #fff;
}

/* Exercise Bank Modal */
.exercise-bank-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}
.exercise-bank-content {
    background: #fff;
    border-radius: 1rem;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
@media (min-width: 1024px) {
    .exercise-bank-content {
        width: 85%;
        max-width: 1400px;
    }
}
@media (max-width: 768px) {
    .exercise-bank-content {
        width: 95%;
        max-width: 100%;
    }
}
.exercise-bank-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.exercise-bank-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}
.exercise-bank-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}
.close-exercise-bank {
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.15s;
}
.close-exercise-bank:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.exercise-bank-toolbar {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.exercise-bank-search-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    background: #f8fafc;
}
.exercise-bank-search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 230, 0.12);
}
.exercise-bank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.exercise-bank-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}
.exercise-bank-tab.is-active,
.exercise-bank-tab:hover {
    background: #ecfeff;
    border-color: #67e8f9;
    color: #0e7490;
}
.exercise-bank-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1.25rem 1.25rem;
}
.exercise-bank-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}
.exercise-bank-category {
    margin-bottom: 1rem;
}
.exercise-bank-category h4 {
    margin: 0 0 0.45rem 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.exercise-bank-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.45rem;
}
@media (min-width: 1024px) {
    .exercise-bank-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.5rem;
    }
}
.exercise-bank-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 650;
    color: #0f172a;
    text-align: left;
    margin-bottom: 0;
    width: 100%;
}
.exercise-bank-item-name {
    font-size: 0.88rem;
    font-weight: 750;
}
.exercise-bank-item-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}
.exercise-bank-item:hover {
    background: #ecfeff;
    border-color: #67e8f9;
}

/* Grid utilities for desktop layout */
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gap-2 {
    gap: 0.5rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-6 {
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Profile overview: full-width cards; stack on small screens, side-by-side on tablet+ */
#content-overview .profile-overview-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
}
@media (min-width: 768px) {
    #content-overview .profile-overview-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
    }
}

/* Profile Information: photo left, name/email/gender beside it */
#content-overview .profile-info-fields {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}
#content-overview .profile-info-avatar-row {
    grid-column: auto !important;
}
#content-overview .profile-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

.profile-info-compact {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem 0.35rem;
    border-bottom: 1px solid #f3f4f6;
}
.profile-info-compact-fields {
    flex: 1;
    min-width: 0;
}

/* Notifications on My Profile */
.profile-push-body {
    padding: 1rem 1.1rem 1.2rem;
}
.profile-push-status {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}
.profile-push-hint {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.45;
}
.profile-push-toggle {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    min-height: 3.4rem;
    border: 0;
    border-radius: 0.9rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.profile-push-toggle.is-on {
    background: #ecfeff;
    box-shadow: inset 0 0 0 1px #a5f3fc;
}
.profile-push-toggle:disabled {
    opacity: 0.65;
    cursor: wait;
}
.profile-push-switch {
    position: relative;
    width: 2.7rem;
    height: 1.55rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.15s ease;
}
.profile-push-toggle.is-on .profile-push-switch {
    background: #00b3e6;
}
.profile-push-switch::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease;
}
.profile-push-toggle.is-on .profile-push-switch::after {
    transform: translateX(1.15rem);
}
.profile-push-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.profile-push-toggle-copy strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}
.profile-push-toggle-copy span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

/* Injury card: header with edit top-right, details edge-to-edge, compact */
.goal-card--injury .goal-card-body {
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    width: 100%;
    min-width: 0;
}
.injury-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.injury-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.injury-card-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    margin: 0;
    border: 1px solid #e1dfe1;
    background: #fff;
    color: #5a5b62;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.1;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.injury-card-edit:hover {
    color: #00b3e6;
    border-color: rgba(0, 179, 230, 0.4);
    background: rgba(0, 179, 230, 0.08);
}
.injury-card-edit svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}
.injury-card-edit-text {
    white-space: nowrap;
}
.injury-details {
    margin-top: 0;
    padding-top: 0.25rem;
    border: none;
    background: transparent;
    border-radius: 0;
}
.injury-detail-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f0eff2;
    transition: background 0.2s ease;
    overflow: hidden;
}
.injury-detail-row:last-child {
    border-bottom: none;
}
.injury-detail-row:hover {
    background: rgba(0, 179, 230, 0.04);
}
.injury-detail-row-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00b3e6, #0099c7);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.injury-detail-row:hover .injury-detail-row-accent {
    opacity: 1;
}
.injury-detail-row--restrictions .injury-detail-row-accent {
    background: linear-gradient(180deg, #ff674c, #e55a3e);
}
.injury-detail-row--recovered .injury-detail-row-accent {
    background: linear-gradient(180deg, #10b981, #059669);
}
.injury-detail-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}
.injury-detail-icon--desc {
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.18), rgba(0, 179, 230, 0.1));
    color: #0088b3;
}
.injury-detail-icon--restrictions {
    background: linear-gradient(135deg, rgba(255, 103, 76, 0.18), rgba(255, 103, 76, 0.1));
    color: #cc5333;
}
.injury-detail-icon--date {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.1));
    color: #6d28d9;
}
.injury-detail-icon--recovered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.1));
    color: #047857;
}
.injury-detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
    flex: 1;
}
.injury-detail-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.injury-detail-row--restrictions .injury-detail-label {
    color: #cc5333;
}
.injury-detail-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2d2e35;
    line-height: 1.35;
}
.injury-detail-row--restrictions .injury-detail-value {
    color: #991b1b;
}

/* Health condition card: same layout as injury, with Edit + Remove */
.goal-card--health .goal-card-body {
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    width: 100%;
    min-width: 0;
}
.health-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}
.health-card-actions form {
    display: inline-flex;
}
.health-card-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    margin: 0;
    border: 1px solid #e1dfe1;
    background: #fff;
    color: #5a5b62;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.1;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.health-card-delete:hover {
    color: #ff674c;
    border-color: rgba(255, 103, 76, 0.4);
    background: rgba(255, 103, 76, 0.08);
}
.health-card-delete svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}
.injury-detail-icon--affects {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #b45309;
}
.injury-detail-row--affects .injury-detail-row-accent {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}
.injury-detail-row--affects .injury-detail-label {
    color: #b45309;
}

/* Goal card: same layout as injury/health, with Edit + Remove */
.goal-card--goal .goal-card-body {
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    width: 100%;
    min-width: 0;
}
.injury-detail-icon--target {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #047857;
}
.injury-detail-row--goal-target .injury-detail-row-accent {
    background: linear-gradient(180deg, #10b981, #059669);
}

/* Session Plan Builder - Legacy Support */
.session-plan-builder {
    background: #fff;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}
.phase-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid rgba(0, 179, 230, 0.15);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}
.phase-name-input {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.375rem;
    background: #fff;
}
.phase-name-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 179, 230, 0.1);
}
.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.exercise-item {
    background: #fff;
    border: 1px solid rgba(0, 179, 230, 0.15);
    border-radius: 0.375rem;
    padding: 0.75rem;
    position: relative;
}
.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.exercise-move-buttons {
    display: flex;
    gap: 0.25rem;
}
.session-plan-btn {
    padding: 0.42rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.15s;
}
.session-plan-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.session-plan-btn--primary {
    background: linear-gradient(135deg, #00b3e6, #0099c7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 179, 230, 0.25);
}
.session-plan-btn--primary:hover {
    background: #0099c7;
    color: #fff;
}
.session-plan-btn--danger {
    background: #fff;
    color: #e11d48;
    border-color: #fecdd3;
}
.session-plan-btn--danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
}
.session-plan-btn-icon {
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}
.session-plan-btn-icon:hover {
    background: #ecfeff;
    color: #0891b2;
    border-color: #a5f3fc;
}
.exercise-move-buttons {
    display: inline-flex;
    gap: 0.2rem;
}
.exercise-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.exercise-row {
    display: flex;
    gap: 0.75rem;
}
.exercise-name {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.exercise-name:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.1);
}
.exercise-type {
    width: 140px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background: #fff;
}
.exercise-type:focus {
    outline: none;
    border-color: var(--color-primary);
}
.exercise-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}
.property-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.property-group--full {
    grid-column: 1 / -1;
}
.property-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.property-group input[type="text"],
.property-group input[type="number"] {
    padding: 0.5rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.property-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.1);
}
.property-group input[type="checkbox"] {
    margin-right: 0.5rem;
}
.alternatives-section {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 179, 230, 0.2);
}
.alternatives-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}
.alternative-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 179, 230, 0.05);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.alternative-item input[type="text"] {
    padding: 0.5rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.alternative-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}
.alternative-properties input {
    padding: 0.375rem;
    border: 1px solid rgba(0, 179, 230, 0.2);
    border-radius: 0.25rem;
    font-size: 0.8125rem;
}
.alternative-item .delete-alternative-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}
.add-exercise-btn,
.add-alternative-btn {
    margin-top: 0.5rem;
}
.add-phase-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Action Menu Dropdown */
.action-menu-wrapper {
    position: relative;
}
.action-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    background: transparent;
    border: 1px solid #e1dfe1;
    border-radius: 0.375rem;
    color: #8b8c94;
    cursor: pointer;
    transition: all 0.2s;
}
.action-menu-btn:hover {
    background: #00b3e6;
    border-color: #00b3e6;
    color: #fff;
    transform: scale(1.05);
}
.action-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e1dfe1;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease-out;
    z-index: 100;
    overflow: hidden;
}
.action-menu-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.action-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    color: #2d2e35;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    background: none;
    cursor: pointer;
}
.action-menu-item:hover {
    background: #f0f2f5;
    color: #00b3e6;
}
.action-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.action-menu-item:hover svg {
    opacity: 1;
}
.action-menu-item--danger {
    color: #ff674c;
}
.action-menu-item--danger:hover {
    background: rgba(255, 103, 76, 0.1);
    color: #ff674c;
}
.action-menu-item span {
    flex: 1;
    text-align: left;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1rem;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb-link {
    color: #8b8c94;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb-link:hover {
    color: #00b3e6;
    text-decoration: none;
}
.breadcrumb-current {
    color: #2d2e35;
    font-size: 0.8125rem;
    font-weight: 600;
}
.breadcrumb-separator {
    color: #8b8c94;
    opacity: 0.5;
    flex-shrink: 0;
}

/* My Sessions */
.ms-page {
    width: 100%;
}
.ms-section {
    margin-bottom: 1.75rem;
}
.ms-section--past {
    margin-bottom: 0;
}
.ms-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ms-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: #fff;
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
button.ms-card:hover,
button.ms-card:focus {
    opacity: 1;
    border-color: rgba(0, 179, 230, 0.25);
    box-shadow: 0 4px 16px rgba(0, 179, 230, 0.1);
}
button.ms-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.ms-card-main {
    flex: 1;
    min-width: 0;
}
.ms-card-chevron {
    flex-shrink: 0;
    color: #94a3b8;
}
.ms-card-title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
button.ms-card:hover .ms-card-title {
    color: var(--color-primary-dark);
}
.ms-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.65rem;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.45;
}
.ms-card-meta-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
}
.ms-card-meta-primary {
    font-weight: 600;
    color: #475569;
}
.ms-card-meta-sep {
    margin: 0 0.35rem;
    opacity: 0.65;
}
.ms-card-meta-loc {
    display: inline;
}
.ms-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}
.ms-cancel-form {
    margin: 0;
    width: 100%;
}
.ms-empty {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.ms-empty p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}
.ms-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.ms-more-hint {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
}
.ms-cancel-copy {
    margin: 0 0 1.25rem;
    color: #2d2e35;
}

@media (max-width: 768px) {
    .ms-section {
        margin-bottom: 1.35rem;
    }
    .ms-list {
        gap: 0.6rem;
    }
    .ms-card {
        align-items: center;
        gap: 0.65rem;
        padding: 0.95rem 1rem;
        border-radius: 0.85rem;
    }
    .ms-card-title {
        font-size: 1rem;
    }
    .ms-card-meta {
        font-size: 0.8125rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    .ms-card-meta-loc {
        display: block;
    }
    .ms-card-open .my-sessions-attendees {
        display: none;
    }
    .ms-empty {
        padding: 1.35rem 1rem;
    }
    .past-sessions-heading-row {
        margin-bottom: 0.65rem;
        gap: 0.5rem;
    }
    .ms-section--past.is-expanded .past-sessions-heading-row {
        margin-bottom: 0.65rem;
    }
    .past-filters-toggle-btn {
        min-height: 40px;
        padding: 0.45rem 0.7rem;
        font-size: 0.8125rem;
    }
    .past-sessions-list {
        gap: 0.4rem;
    }
    .past-sessions-list .past-sessions-card {
        padding: 0.65rem 0.8rem;
        border-radius: 0.7rem;
        box-shadow: none;
    }
    .past-sessions-card-header {
        margin-bottom: 0.1rem;
    }
    .past-sessions-card-name {
        font-size: 0.9375rem;
    }
    .past-sessions-card-meta {
        font-size: 0.75rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.1rem 0;
    }
    .past-sessions-card-dot {
        margin: 0 0.3rem;
    }
    .ms-past-toggle {
        min-height: 44px;
    }
    .cancel-booking-modal-actions {
        flex-direction: column-reverse;
        gap: 0.65rem;
    }
    .cancel-booking-modal-keep,
    .cancel-booking-modal-confirm {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    .modal-dialog {
        align-self: flex-end;
        max-width: none;
        margin: 0;
    }
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-content {
        border-radius: 1rem 1rem 0 0;
        max-height: min(88vh, 100%);
    }
    #push-notice.modal-overlay {
        align-items: center;
        padding: 1.25rem;
    }
    #push-notice .modal-dialog {
        align-self: center;
        max-width: 26rem;
        margin: 0 auto;
        width: min(26rem, calc(100% - 2rem));
    }
    #push-notice .modal-content {
        border-radius: 1rem;
        max-height: min(80vh, 100%);
    }
    #cancelBookingModal,
    #clearNoticesModal {
        z-index: 1300;
    }
    #cancelBookingModal .modal-content,
    #clearNoticesModal .modal-content {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    #cancelBookingModal .modal-body {
        padding-bottom: 1.15rem;
    }
    .modal-header,
    .modal-body {
        padding: 1rem 1.15rem;
    }
    .past-sessions-input {
        font-size: 16px;
        min-height: 44px;
    }
}

/* Past sessions page */
.my-sessions-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.my-sessions-section-title--spaced {
    margin-bottom: 1rem;
}
.past-sessions-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ms-section--past:not(.is-expanded) .past-sessions-heading-row {
    margin-bottom: 0;
}
.ms-past-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    padding: 0.15rem 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.ms-past-toggle:hover,
.ms-past-toggle:focus {
    opacity: 1;
}
.ms-past-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.ms-past-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(0, 179, 230, 0.12);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
}
.ms-past-chevron {
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform 0.2s ease;
}
.ms-section--past.is-expanded .ms-past-chevron,
.ms-past-toggle[aria-expanded="true"] .ms-past-chevron {
    transform: rotate(180deg);
}
.ms-sheet-start {
    text-decoration: none !important;
    color: #fff !important;
    margin-bottom: 0.65rem;
}
.ms-sheet-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #ff674c 0%, #ff4d2e 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 103, 76, 0.28);
}
.ms-sheet-cancel:hover,
.ms-sheet-cancel:focus {
    opacity: 1;
    color: #fff;
}
.ms-sheet-unavailable {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
}
.ms-sheet-unavailable strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}
.ms-sheet-unavailable p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.9;
}
.past-filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-dark);
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.past-filters-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 179, 230, 0.05);
}
.past-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 0.625rem;
}
.past-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.past-filters-overlay.show {
    opacity: 1;
}
.past-filters-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.past-filters-offcanvas.open {
    transform: translateX(0);
}
.past-filters-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.past-filters-offcanvas-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.past-filters-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    flex-shrink: 0;
}
.past-filters-close-btn:hover,
.past-filters-close-btn:focus {
    opacity: 1;
}
.past-filters-close-btn:hover {
    background: rgba(0, 179, 230, 0.25);
    color: #fff;
}
.past-filters-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.past-filters-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.past-filters-actions {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
    .past-filters-overlay {
        top: var(--app-header-height);
        z-index: 1200;
    }
    .past-filters-offcanvas {
        top: var(--app-header-height);
        right: 0;
        bottom: 0;
        height: auto;
        max-width: 100%;
        padding-bottom: env(safe-area-inset-bottom, 0);
        z-index: 1210;
    }
    .past-filters-offcanvas-header {
        padding: 0.75rem 1rem;
    }
    .past-filters-close-btn {
        width: 44px;
        height: 44px;
    }
}
.past-sessions-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.past-sessions-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}
.past-sessions-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: #fff;
}
.past-sessions-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 179, 230, 0.2);
}
.past-sessions-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.past-sessions-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.past-sessions-clear {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    background: #fff;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.past-sessions-clear:hover {
    color: var(--color-primary);
    border-color: rgba(0, 179, 230, 0.3);
    background: rgba(0, 179, 230, 0.06);
    text-decoration: none;
}
.past-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.past-sessions-card,
.past-sessions-card:hover,
.past-sessions-card:focus,
.past-sessions-card:visited {
    text-decoration: none !important;
}
.past-sessions-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.past-sessions-card-main {
    min-width: 0;
    flex: 1;
}
.past-sessions-card-chevron {
    flex-shrink: 0;
    color: #94a3b8;
}
.past-sessions-card:hover,
.past-sessions-card:focus {
    opacity: 1;
    border-color: rgba(0, 179, 230, 0.25);
    box-shadow: 0 4px 16px rgba(0, 179, 230, 0.1);
}
.past-sessions-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.past-sessions-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.past-sessions-card-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
}
.past-sessions-card:hover .past-sessions-card-name {
    color: var(--color-primary-dark);
}
.past-sessions-card-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}
.past-sessions-card-badge--cancelled {
    background: rgba(255, 103, 76, 0.12);
    color: var(--color-accent);
}
.past-sessions-card-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
}
.past-sessions-card-dot {
    margin: 0 0.35rem;
    opacity: 0.7;
}
.past-sessions-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 1rem;
    color: var(--color-muted);
}
.past-sessions-empty a {
    color: var(--color-primary);
    font-weight: 500;
}
.past-sessions-empty a:hover {
    text-decoration: none;
}
.past-sessions-pagination {
    margin: 1.25rem 0 0.5rem;
    display: flex;
    justify-content: center;
}
.past-sessions-back {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 1.5rem;
}
.past-sessions-back a {
    color: var(--color-primary);
}
.past-sessions-back a:hover {
    text-decoration: none;
}
.past-sessions-back-sep {
    margin: 0 0.5rem;
}

/* Modal (shared: profile, admin, sessions) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    z-index: 1051;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    pointer-events: none;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    max-height: 90vh;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background-color: #fff;
}
.modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.modal-close {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f1f5f9;
    border: 0;
    border-radius: 0.65rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
}

/* My Sessions & Session detail – Who's going */
.my-sessions-attendees {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.my-sessions-attendees--past {
    margin-top: 0.5rem;
}
.my-sessions-attendees-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #8b8c94;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.my-sessions-attendees-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}
.my-sessions-avatar {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.2) 0%, rgba(0, 179, 230, 0.1) 100%);
    border: 1px solid rgba(0, 179, 230, 0.3);
    font-size: 0.5625rem;
    font-weight: 700;
    color: #00b3e6;
    letter-spacing: -0.02em;
}
.my-sessions-avatar-img {
    width: 100%;
    height: 100%;
    max-width: 1.75rem;
    max-height: 1.75rem;
    object-fit: cover;
    display: block;
}

.my-sessions-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff674c 0%, #ff4d2e 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 103, 76, 0.3);
    -webkit-tap-highlight-color: transparent;
}
.my-sessions-cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 103, 76, 0.4);
    color: #fff;
}
.my-sessions-cancel-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b6c74;
    background: #e8e6ea;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

.cancel-booking-modal-keep {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #2d2e35;
    background: #e1dfe1;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cancel-booking-modal-keep:hover {
    background: #d0ced0;
}

.cancel-booking-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
}

/* Session detail page – Who's going */
.session-detail-attendees {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1dfe1;
}
.session-detail-attendees-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b8c94;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.session-detail-attendees-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.session-detail-avatar {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 179, 230, 0.2) 0%, rgba(0, 179, 230, 0.1) 100%);
    border: 1px solid rgba(0, 179, 230, 0.3);
    font-size: 0.625rem;
    font-weight: 700;
    color: #00b3e6;
    letter-spacing: -0.02em;
}
.session-detail-avatar-img {
    width: 100%;
    height: 100%;
    max-width: 2rem;
    max-height: 2rem;
    object-fit: cover;
    display: block;
}

.push-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 2px solid #e1dfe1;
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.push-banner[hidden],
[data-push-panel][hidden] {
    display: none !important;
}
.push-banner-copy strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 750;
    color: #0f172a;
}
.push-banner-copy p {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}
.push-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.push-banner-btn {
    background: var(--color-primary, #00b3e6);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.push-banner-dismiss {
    background: transparent;
    border: 0;
    color: #334155;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.push-banner-dismiss:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* iOS/Android Add to Home Screen sheet (matches the old FFF portal prompt) */
.add-home-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.add-home-sheet[hidden] {
    display: none !important;
}
.add-home-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.add-home-sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    margin: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}
.add-home-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem 0.7rem;
    border-bottom: 1px solid #e1dfe1;
}
.add-home-sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d2e35;
}
.add-home-sheet-close {
    background: transparent;
    border: 0;
    color: #8b8c94;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.add-home-sheet-body {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}
.add-home-sheet-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.7rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.add-home-sheet-name {
    margin: 0.7rem 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2e35;
}
.add-home-sheet-copy,
.add-home-sheet-steps {
    margin: 0.2rem 0;
    font-size: 0.92rem;
    color: #4d4e56;
    line-height: 1.45;
}
.add-home-sheet-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.2em;
    color: #00b3e6;
    font-weight: 800;
    padding: 0 0.15rem;
}
.add-home-sheet--ios .add-home-sheet-copy--android,
.add-home-sheet--android .add-home-sheet-copy--ios {
    display: none;
}
