:root {
    --bg: #f4f7f4;
    --card: #ffffff;
    --text: #1d2a22;
    --muted: #647067;
    --border: #dfe7df;
    --primary: #175f35;
    --primary-dark: #0f4727;
    --success-bg: #e8f7ed;
    --success-border: #8ccda1;
    --error-bg: #fff0f0;
    --error-border: #e3a5a5;
    --warning-bg: #fff7df;
    --warning-border: #e0c36c;
    --free: #eefaf1;
    --booked: #fdeaea;
    --blocked: #f3f0ea;
    --pending: #fff6d8;
    --shadow: 0 14px 40px rgba(18, 54, 32, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

a {
    color: var(--primary);
}

.page-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0;
}

.page-shell.narrow {
    width: min(760px, calc(100% - 28px));
}

.booking-day-shell.member-day-shell {
    width: min(1540px, calc(100% - 28px));
}

.booking-day-shell.member-day-shell .public-slots-table {
    min-width: 1420px;
}


.site-header,
.admin-header {
    background: linear-gradient(135deg, #144d2e, #228149);
    color: #fff;
    padding: 26px 0;
}

.site-header .page-shell,
.admin-header .page-shell {
    padding: 0;
}

.site-header h1,
.admin-header h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
}

.site-header p,
.admin-header p {
    margin: 8px 0 0;
    opacity: .9;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 7px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.admin-logo {
    width: 78px;
    height: 78px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.login-brand h1 {
    margin: 0;
}

.login-brand p {
    margin: 6px 0 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 16px;
    border: 1px solid var(--border);
}

.alert.success {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.alert.error {
    background: var(--error-bg);
    border-color: var(--error-border);
}

.alert.warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid h2,
.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    color: #25372b;
}

input,
select,
textarea {
    width: 100%;
    display: block;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #cbd7cd;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button:hover,
button.button:hover {
    background: var(--primary-dark);
    color: #fff;
}

.button.secondary {
    background: #e7eee8;
    color: var(--text);
}

.button.danger {
    background: #a93030;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.filter-bar label {
    min-width: 190px;
}

.url-form { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.5fr) auto; gap: 14px; align-items: end; }
.url-form-actions, .url-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.url-row-actions form { margin: 0; }
.url-address { max-width: 680px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .url-form { grid-template-columns: 1fr; } }

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.availability-table {
    min-width: 760px;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f7faf7;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #47574c;
}

.availability-table th,
.availability-table td {
    text-align: center;
}

.availability-table th:first-child,
.availability-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #f7faf7;
    z-index: 1;
}


.slots-table-scroll {
    max-height: 72vh;
    overflow: auto;
    position: relative;
}

.slots-table-scroll .availability-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
}

.slots-table-scroll .availability-table thead th:first-child {
    z-index: 5;
}



.court-group-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 30px;
    margin: 18px 0 16px;
}

.court-group-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 246px;
    padding: 34px 20px 18px;
    border: 1px solid #dce7f0;
    border-radius: 0;
    background: #fff;
    color: #173b28;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.court-group-card:hover,
.court-group-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(43, 125, 196, .42);
    box-shadow: 0 10px 24px rgba(36, 70, 103, .08);
    outline: none;
}

.court-group-card.active {
    border-color: #b7d0e7;
    background: #fff;
    box-shadow: 0 10px 24px rgba(36, 70, 103, .06);
}

.court-group-card-top {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.court-group-card-copy {
    display: grid;
    justify-items: center;
    gap: 0;
    min-width: 0;
}

.court-group-card-thumb {
    width: 200px;
    height: 113px;
    border-radius: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
    flex: 0 0 auto;
    background: #fff;
}

.court-group-heading-thumb {
    width: 68px;
    height: 50px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(23, 95, 53, .16);
    box-shadow: 0 8px 20px rgba(20, 55, 34, .10);
    flex: 0 0 auto;
    background: #fff;
}

.court-group-card-title,
.court-group-card-subtitle,
.court-group-card-count {
    display: block;
}

.court-group-card-title {
    color: #2b7dc4;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.court-group-card-subtitle {
    display: none;
}

.court-group-card-count {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #00a6bd;
    font-size: 14px;
    font-weight: 900;
}

.court-group-card-count::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.216 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.784ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.216 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.784ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.court-grouped-availability {
    display: grid;
    gap: 22px;
    margin-top: 8px;
}

.court-availability-group {
    display: grid;
    gap: 10px;
}

.court-availability-group[hidden] {
    display: none !important;
}

.court-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid rgba(23, 95, 53, .14);
    border-radius: 16px;
    background: #f7faf7;
}

.court-group-heading-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.court-group-heading h3 {
    margin: 0;
    font-size: 18px;
    color: #173b28;
}

.court-group-heading span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef7ef;
    color: #176137;
    font-size: 12px;
    font-weight: 700;
}

.grouped-slots-table {
    min-width: 760px;
}

.admin-court-group-selector .court-group-card,
.admin-court-grouped-availability .court-group-heading {
    background: #fff;
}

.admin-court-group-selector .court-group-card.active {
    background: #fff;
}

.slot-cell {
    min-width: 92px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.slot-cell span {
    display: block;
    margin-top: 3px;
    font-weight: 600;
}

.slot-free {
    background: var(--free);
    color: #176137;
    cursor: pointer;
}

.slot-booked {
    background: var(--booked);
    color: #922323;
}

.slot-booked.slot-trainer-booking {
    background: lightcyan;
    color: #064852;
}

.slot-blocked {
    background: var(--blocked);
    color: #6b6258;
}

.slot-blocked .slot-reason {
    font-size: 11px;
    line-height: 1.2;
    opacity: .85;
}

.badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #edf2ed;
}

.badge.pending { background: var(--pending); color: #735a00; }
.badge.confirmed { background: var(--success-bg); color: #176137; }
.badge.cancelled { background: var(--booked); color: #922323; }
.badge.completed { background: #e5eef9; color: #204a77; }

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.admin-nav-dropdown {
    position: relative;
}

.admin-nav-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    user-select: none;
}

.admin-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.admin-nav-dropdown summary::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
    opacity: .85;
    transition: transform .15s ease;
}

.admin-nav-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.admin-nav-dropdown.active-section summary,
.admin-nav-dropdown summary:hover,
.admin-nav-dropdown[open] summary {
    background: #fff;
    color: #176137;
    border-color: #fff;
}

.admin-nav-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0,0,0,.18);
}

.admin-nav-menu a {
    display: block;
    color: #183524;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.admin-nav-menu a.active,
.admin-nav-menu a:hover {
    background: #edf7ef;
    color: #176137;
}

.admin-nav-dropdown:not([open]) .admin-nav-menu {
    display: none;
}

.admin-nav-dropdown[open] .admin-nav-menu {
    display: block;
}

.admin-nav-dropdown[open] summary {
    outline: 0;
}


@media (hover: hover) and (pointer: fine) {
    .admin-nav-dropdown:hover .admin-nav-menu {
        display: block;
    }

    .admin-nav-dropdown:hover summary {
        background: #fff;
        color: #176137;
        border-color: #fff;
    }
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.inline-form {
    display: inline-flex;
    gap: 6px;
    margin: 2px 0;
}

.inline-form select {
    min-width: 130px;
    padding: 7px 9px;
    margin-top: 0;
}

.inline-form button {
    padding: 7px 10px;
}

.muted {
    color: var(--muted);
}

footer {
    color: var(--muted);
    padding: 24px 0 40px;
}

@media (max-width: 780px) {

    .public-header-top {
        align-items: stretch;
        flex-direction: column;
    }

    .member-status-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-left: 0;
    }

    .brand-lockup,
    .login-brand {
        align-items: flex-start;
    }

    .app-logo {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }
    .form-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
        border-radius: 14px;
    }

    th,
    td {
        padding: 9px 8px;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-nav-dropdown summary {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .admin-nav-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }
}

.readonly-input {
    background: #f3f6f3;
    color: var(--muted);
}

.members-table {
    min-width: 1180px;
}

.members-table input,
.members-table select {
    min-width: 130px;
}


.public-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.member-status-card {
    margin-left: auto;
    min-width: 250px;
    max-width: 360px;
    background: rgba(255, 255, 255, .96);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    text-align: left;
}

.member-status-label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.member-status-card strong {
    display: block;
    color: #10251a;
    font-size: 18px;
    line-height: 1.2;
}

.member-status-username {
    display: block;
    margin-top: 4px;
    color: #4d5f54;
    font-size: 13px;
    font-weight: 700;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.public-nav a,
.public-nav span {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    padding: 9px 12px;
    border-radius: 999px;
}

.public-nav span {
    background: rgba(255,255,255,.20);
}

.form-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-two-box {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #f9fbf9;
}

.player-two-box h3 {
    margin-top: 0;
}

.required-asterisk {
    color: #d32f2f;
    font-weight: 800;
    margin-left: 4px;
}

.required-note {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--warning-bg);
    color: #735a00;
    font-size: 12px;
}

.bookings-table {
    min-width: 1380px;
}

@media (max-width: 780px) {

    .brand-lockup,
    .login-brand {
        align-items: flex-start;
    }

    .app-logo {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }
    .form-grid.compact {
        grid-template-columns: 1fr;
    }

    .court-group-card-thumb,
    .court-group-heading-thumb {
        width: 58px;
        height: 42px;
    }

    .public-nav a,
    .public-nav span {
        width: 100%;
        border-radius: 12px;
    }
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.action-stack .inline-form {
    margin: 0;
}


.slot-booking-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.slot-booking-actions .inline-form {
    margin: 0;
}

.slot-booking-actions .button {
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.1;
}


.booking-slot-card.slot-booked {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 88px;
}

.booking-slot-card .slot-booking-actions {
    width: 100%;
    margin-top: auto;
}

.booking-slot-card .slot-booking-actions .inline-form,
.booking-slot-card .slot-booking-actions .button {
    width: 100%;
}

.button.danger:hover {
    background: #7d1f1f;
}

.danger-card {
    border-color: #e3a5a5;
}

.danger-card h2 {
    color: #8c2424;
}


.password-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: -4px;
}

.password-toggle input {
    width: auto;
}

.admin-slots-table,
.public-slots-table {
    min-width: 1180px;
}

.admin-slot-card,
.booking-slot-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    align-content: center;
    justify-items: center;
    text-align: center;
    line-height: 1.35;
}

.admin-slot-card[data-free="1"]:hover,
.booking-slot-card[data-free="1"]:hover {
    outline: 2px solid var(--success-border);
    outline-offset: 2px;
}

.admin-slot-card span,
.booking-slot-card span {
    display: block;
    font-weight: 600;
}

.admin-slot-card .badge,
.booking-slot-card .badge {
    display: inline-flex;
    width: fit-content;
    margin: 2px 0;
}

.slot-vs {
    font-weight: 900;
}


.slot-booking-display {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: 100%;
    text-align: center;
}

.slot-team {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    word-break: break-word;
}

.slot-separator {
    font-size: 0.78rem;
    font-weight: 900;
}

.slot-created-by {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}


/* Απλή εμφάνιση πεδίων μέσα στη λίστα μελών, χωρίς πλαίσια. */
.members-table input,
.members-table select {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 2px 0;
    margin-top: 0;
    font: inherit;
    color: var(--text);
}

.members-table select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.members-table input:focus,
.members-table select:focus {
    outline: 1px solid var(--success-border);
    outline-offset: 2px;
    background: #fff;
}

.members-table input[type="password"]::placeholder {
    color: #899489;
}

.report-actions {
    align-items: end;
}

.report-actions .muted {
    align-self: center;
}

.report-shell {
    width: min(1600px, calc(100% - 28px));
}

.report-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.report-header h1 {
    margin: 0 0 8px;
}

.report-header p {
    margin: 4px 0;
}

.report-table-scroll {
    border-radius: 8px;
}

.report-table {
    font-size: 13px;
    min-width: 1100px;
}

.bookings-report-table {
    min-width: 1850px;
}

.members-report-table {
    min-width: 1050px;
}

.report-table th,
.report-table td {
    padding: 8px 7px;
    vertical-align: top;
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11px;
    }

    .no-print,
    .admin-header,
    .site-header,
    footer,
    .public-nav,
    .admin-nav {
        display: none !important;
    }

    .page-shell,
    .report-shell {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .card,
    .report-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .table-scroll,
    .report-table-scroll {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .report-table,
    .bookings-report-table,
    .members-report-table {
        min-width: 0;
        width: 100%;
        font-size: 10px;
    }

    th,
    td {
        border: 1px solid #999 !important;
        padding: 4px !important;
    }

    th {
        background: #eee !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}



@media (max-width: 700px) {
    .court-group-selector {
        grid-template-columns: 1fr;
    }

    .court-group-card {
        min-height: 96px;
        padding: 16px;
    }
}

@media print {
    .slots-table-scroll {
        max-height: none;
        overflow: visible;
    }

    .slots-table-scroll .availability-table thead th {
        position: static;
    }
}

.slot-past {
    background: #eef0ee;
    color: #6b746d;
    cursor: not-allowed;
    opacity: .78;
}

.slot-past[data-free="1"],
.admin-slot-card.slot-past,
.booking-slot-card.slot-past {
    cursor: not-allowed;
}

.admin-slot-card.slot-past[data-free="1"]:hover,
.booking-slot-card.slot-past[data-free="1"]:hover {
    outline: 0;
}

.pricing-table {
    min-width: 760px;
}

.pricing-table th,
.pricing-table td {
    vertical-align: middle;
}

.money-input {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
}

.money-input input {
    margin-top: 0;
    text-align: right;
}

.money-input span {
    font-weight: 800;
    color: var(--muted);
}

.form-actions {
    margin-top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.member-card-header .form-actions {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.detail-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #f9fbf9;
}

.detail-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.detail-item strong {
    display: block;
    word-break: break-word;
}

.member-stats-grid {
    margin-bottom: 22px;
}

.member-bookings-table {
    min-width: 1180px;
}

.role-badge {
    background: #edf7ef;
    color: #176137;
}

@media (max-width: 780px) {
    .member-card-header {
        display: block;
    }

    .member-card-header .form-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}

.members-table {
    min-width: 1320px;
}

.member-hidden-form {
    display: none;
}

.member-row-locked input[readonly],
.member-row-locked select:disabled,
.member-row-locked input:disabled {
    background: #f3f6f3;
    color: var(--muted);
    border-color: #d9e2da;
    cursor: not-allowed;
}

.member-row-editing {
    background: #fbfff8;
}

.member-actions {
    white-space: nowrap;
}

.member-actions .button {
    margin: 2px;
}

/* v1.5.8: Κρυφή προσθήκη μέλους, μεγαλύτερη λίστα πελατών και modal καρτέλας. */
.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.section-heading-row h2 {
    margin-bottom: 6px;
}

.section-heading-row .button {
    flex: 0 0 auto;
}

.collapsible-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.collapsible-panel[hidden] {
    display: none !important;
}

.members-list-card {
    width: min(1700px, calc(100vw - 28px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.members-list-card .table-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

.members-list-card .members-table {
    min-width: 1460px;
}

.member-card-modal {
    width: min(1500px, calc(100vw - 32px));
    height: min(900px, calc(100vh - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    background: #fff;
}

.member-card-modal::backdrop {
    background: rgba(8, 26, 16, .56);
}

.member-card-modal-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
}

.member-card-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fbf8;
}

.member-card-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-card-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.modal-member-card-page {
    background: #fff;
}

.modal-member-card-shell {
    width: 100%;
    max-width: none;
    padding: 18px;
}

.modal-member-card-shell .card {
    box-shadow: none;
}

@media (max-width: 780px) {
    .section-heading-row,
    .member-card-modal-toolbar {
        display: block;
    }

    .section-heading-row .button,
    .member-card-modal-actions {
        margin-top: 12px;
    }

    .members-list-card {
        width: min(100%, calc(100vw - 20px));
    }

    .member-card-modal {
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        border-radius: 14px;
    }
}

/* v1.5.9: αριστερό admin μενού τύπου WordPress/Bootstrap, pagination μελών και password pages. */
.admin-layout-body {
    background: #eef3ef;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #17251d;
    color: #fff;
    padding: 18px 14px;
    box-shadow: 8px 0 28px rgba(12, 29, 18, .12);
    z-index: 20;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 16px;
}

.admin-sidebar-brand .admin-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    padding: 5px;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand span {
    display: block;
}

.admin-sidebar-brand strong {
    font-size: 17px;
}

.admin-sidebar-brand span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    margin-top: 2px;
}

.admin-sidebar-section {
    margin: 16px 0;
}

.admin-sidebar-section-title {
    padding: 0 10px 7px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    margin: 2px 0;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: #fff;
    color: #176137;
    transform: translateX(2px);
}

.admin-sidebar-icon {
    width: 24px;
    text-align: center;
    flex: 0 0 auto;
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 22px;
}

.admin-topbar p {
    margin: 3px 0 0;
    color: var(--muted);
}

.admin-main-shell {
    width: min(1500px, calc(100% - 28px));
    padding-top: 22px;
}

.admin-footer .page-shell {
    width: min(1500px, calc(100% - 28px));
}

.admin-layout-body .members-list-card {
    width: min(1800px, 100%);
    margin-left: 0;
    transform: none;
}

.admin-layout-body .members-list-card .members-table {
    min-width: 1500px;
}

.pagination-summary {
    flex: 0 0 auto;
    text-align: right;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f7faf7;
    font-weight: 900;
}

.pagination-summary span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #e7eee8;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
}

.pagination-link.active {
    background: var(--primary);
    color: #fff;
}

.pagination-link.disabled {
    opacity: .45;
    pointer-events: none;
}

.password-card {
    max-width: 820px;
}

.password-change-form {
    margin-top: 16px;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        display: block;
        padding: 12px;
    }

    .admin-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 8px;
    }

    .admin-sidebar-section {
        margin: 0;
    }

    .admin-sidebar-section-title {
        padding-top: 8px;
    }

    .admin-sidebar-link:hover,
    .admin-sidebar-link.active {
        transform: none;
    }

    .admin-topbar {
        position: static;
        display: block;
    }

    .admin-topbar .button {
        margin-top: 12px;
    }

    .pagination,
    .pagination-summary {
        justify-content: flex-start;
        text-align: left;
    }
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .admin-footer,
    .pagination {
        display: none !important;
    }

    .admin-layout {
        display: block;
    }
}

/* v1.5.11: ξεχωριστό menu για προσθήκη/import μελών, πιο λεπτό sidebar menu και πιο compact λίστα πελατών. */
.admin-sidebar-brand strong {
    font-weight: 600;
}

.admin-sidebar-section-title {
    font-weight: 600;
}

.admin-sidebar-link {
    font-weight: 500;
}

.admin-sidebar-link.active {
    font-weight: 500;
}

.members-list-card .members-table,
.admin-layout-body .members-list-card .members-table {
    min-width: 1320px;
    font-size: 12px;
}

.members-table th,
.members-table td {
    padding: 7px 6px;
}

.members-table th {
    font-size: 10.5px;
    letter-spacing: .02em;
}

.members-table input,
.members-table select {
    min-width: 88px;
    font-size: 12px;
    line-height: 1.25;
}

.members-table td:nth-child(3) input,
.members-table td:nth-child(4) input {
    min-width: 104px;
}

.members-table td:nth-child(5) input {
    min-width: 92px;
}

.members-table td:nth-child(6) input {
    min-width: 150px;
}

.members-table td:nth-child(7) select,
.members-table td:nth-child(8) input {
    min-width: 82px;
}

.members-table td:nth-child(9) select {
    min-width: 58px;
}

.members-table .button {
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.member-actions .button {
    margin: 1px;
}

/* v1.5.13: Η επεξεργασία μέλους γίνεται σε modal, όχι μέσα στη γραμμή. */
.members-table-readonly {
    min-width: 1180px !important;
}

.members-table-readonly td {
    vertical-align: middle;
}

.member-table-text {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.member-table-email {
    max-width: 220px;
}

.member-edit-modal {
    width: min(780px, calc(100vw - 32px));
    max-height: min(860px, calc(100vh - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .30);
    background: #fff;
    overflow: hidden;
}

.member-edit-modal::backdrop {
    background: rgba(8, 26, 16, .56);
}

.member-edit-modal.is-fallback-open {
    position: fixed;
    inset: 24px auto auto 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.member-edit-modal-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    max-height: inherit;
}

.member-edit-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fbf8;
}

.member-edit-modal-toolbar strong,
.member-edit-modal-toolbar span {
    display: block;
}

.member-edit-modal-toolbar span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.member-edit-form {
    padding: 18px;
    overflow: auto;
}

.member-edit-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-edit-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 780px) {
    .member-edit-modal {
        width: calc(100vw - 12px);
        max-height: calc(100vh - 12px);
        border-radius: 14px;
    }

    .member-edit-modal-toolbar {
        display: block;
    }

    .member-edit-modal-toolbar .button {
        margin-top: 12px;
    }

    .member-edit-form .form-grid {
        grid-template-columns: 1fr;
    }

    .member-edit-form-actions {
        justify-content: flex-start;
    }
}


/* v1.5.15: Εκτύπωση παικτών που χρωστάνε. */
.member-dues-card {
    max-width: 980px;
}

.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.report-summary > div {
    min-width: 210px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f7faf7;
}

.report-summary span,
.report-summary strong {
    display: block;
}

.report-summary span {
    color: var(--muted);
    font-size: 12px;
}

.report-summary strong {
    margin-top: 4px;
    font-size: 20px;
}

.member-dues-table {
    min-width: 720px;
}

/* v1.5.49: Ταξινόμηση οφειλών ανά παίκτη ή ημέρα κράτησης. */
.member-dues-table .table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.member-dues-table .table-sort-link:hover,
.member-dues-table .table-sort-link:focus-visible {
    text-decoration: underline;
}

.member-dues-table .sort-indicator {
    min-width: 1em;
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

.money-cell {
    text-align: right;
    white-space: nowrap;
}

.member-dues-table tfoot th {
    background: #edf4ee;
    font-size: 14px;
}

@media print {
    .member-dues-card {
        max-width: none;
    }

    .report-summary {
        margin: 8px 0 12px;
        gap: 8px;
    }

    .report-summary > div {
        border: 1px solid #999;
        border-radius: 0;
        padding: 6px 8px;
    }

    .member-dues-table {
        min-width: 0;
        width: 100%;
    }

    .member-dues-table .table-sort-link {
        color: #000;
        text-decoration: none;
    }

    .member-dues-table .sort-indicator {
        display: none;
    }
}

/* v1.5.16: Φίλτρα οφειλών, κλείδωμα εφαρμογής και κατάσταση admin. */
.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-lock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    background: #eef7ef;
    color: #176137;
    border: 1px solid #cfe4d1;
}

.admin-lock-status.locked {
    background: #fff3e7;
    color: #9a4d00;
    border-color: #ffd9a8;
}

.app-lock-admin-card,
.app-locked-card {
    max-width: 820px;
}

.app-lock-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #f7faf7;
}

.app-lock-state span {
    color: var(--muted);
}

.app-lock-state strong {
    font-size: 20px;
}

.app-lock-state.locked {
    background: #fff7ed;
    border-color: #ffd9a8;
}

.app-locked-message {
    margin: 16px 0 8px;
    padding: 16px;
    border-radius: 16px;
    background: #fff3e7;
    border: 1px solid #ffd9a8;
    font-size: 18px;
    font-weight: 700;
    color: #7a3d00;
}

@media print {
    .report-actions,
    .filter-bar.no-print {
        display: none !important;
    }
}

/* v1.5.17: ξεχωριστές προβολές στη διαχείριση κρατήσεων. */
.booking-view-selector h2 {
    margin-bottom: 6px;
}

.booking-view-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.field-help {
    margin: 6px 0 10px;
    font-weight: 600;
}

.court-checkbox-groups {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.court-checkbox-group {
    display: grid;
    gap: 8px;
}

.court-checkbox-group h3 {
    margin: 0;
    color: #2b7dc4;
    font-size: 16px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.check-card input {
    width: auto;
    margin: 0;
}

.check-card span {
    display: inline-block;
}

/* v1.5.27: μοντέρνο design φόρμας εισόδου μέλους/admin. */
body.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(135deg, #103e27 0%, #19683a 52%, #2d8d57 100%);
    color: #143622;
}

body.auth-page::before,
body.auth-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.auth-page::before {
    background: radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .18), transparent 28%);
}

body.auth-page::after {
    background: linear-gradient(160deg, transparent 0 68%, rgba(255, 255, 255, .10) 68.2% 100%);
}

.auth-site-header {
    position: relative;
    z-index: 2;
}

.auth-site-header .public-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .96);
    color: #176137;
    border-color: rgba(255, 255, 255, .96);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100% - 32px));
    min-height: calc(100vh - 212px);
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: minmax(360px, 1.18fr) minmax(330px, .92fr);
    gap: 28px;
    align-items: center;
}

.auth-hero-card,
.auth-card {
    border-radius: 24px;
}

.auth-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: rgba(13, 67, 37, .78);
    border: 1px solid rgba(255, 255, 255, .36);
    box-shadow: 0 24px 70px rgba(8, 48, 25, .30);
    backdrop-filter: blur(6px);
}

.auth-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, .18) 49.2% 100%);
}

.auth-hero-card > * {
    position: relative;
    z-index: 1;
}

.auth-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    padding: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #46a96d, #176137);
    box-shadow: 0 16px 32px rgba(8, 48, 25, .32);
    margin-bottom: 24px;
}

.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.auth-eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.auth-hero-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: .98;
    letter-spacing: -.045em;
}

.auth-hero-card p:not(.auth-eyebrow) {
    max-width: 500px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
}

.auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.auth-pill-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.auth-card {
    padding: 38px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 24px 80px rgba(15, 32, 64, .16);
}

.auth-form-head {
    margin-bottom: 22px;
}

.auth-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #68758b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-form-head h2 {
    margin: 0;
    color: #10203d;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -.04em;
}

.auth-form-head p {
    margin: 13px 0 0;
    color: #66748a;
    font-weight: 600;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-form label {
    color: #15213a;
    font-size: 15px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input:not([type]) {
    min-height: 48px;
    border-radius: 14px;
    border-color: #cfd8e8;
    background: #fffcd2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 rgba(16, 32, 61, .04);
    color: #17233d;
    font-weight: 700;
}

.auth-form input:focus {
    outline: none;
    border-color: #3678f4;
    box-shadow: 0 0 0 4px rgba(54, 120, 244, .14);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #647188;
    font-weight: 800;
}

.auth-check input {
    width: auto;
    margin: 0;
}

.auth-submit {
    min-height: 52px;
    width: 100%;
    margin-top: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2d9858, #176137);
    box-shadow: 0 16px 30px rgba(23, 97, 55, .24);
    font-size: 16px;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #228149, #0f4727);
}

.auth-link {
    justify-self: center;
    color: #35517b;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-card .alert {
    margin-bottom: 16px;
}



/* v1.5.35: premium οθόνη όταν η δημόσια εφαρμογή είναι κλειδωμένη. */
body.auth-page.app-locked-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .16), transparent 32%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(135deg, #103e27 0%, #19683a 55%, #2d8d57 100%);
}

body.auth-page.app-locked-page::before {
    background:
        linear-gradient(135deg, rgba(8, 48, 25, .42) 0%, rgba(15, 71, 39, .10) 46%, transparent 46.2%),
        radial-gradient(circle at 52% 70%, rgba(34, 129, 73, .16), transparent 38%);
}

body.auth-page.app-locked-page::after {
    background:
        linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, .50) 44.2% 48%, transparent 48.2% 100%),
        linear-gradient(45deg, transparent 0 82%, rgba(255, 255, 255, .38) 82.2% 100%);
}

.locked-shell {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    place-items: center;
}

.locked-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 34px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 30px 90px rgba(8, 24, 58, .24);
    color: #11203c;
    isolation: isolate;
}

.locked-card::before,
.locked-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.locked-card::before {
    width: 270px;
    height: 270px;
    right: -96px;
    top: -108px;
    background: radial-gradient(circle, rgba(54, 120, 244, .20), transparent 67%);
}

.locked-card::after {
    width: 220px;
    height: 220px;
    left: -92px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(23, 95, 53, .16), transparent 68%);
}

.locked-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.locked-logo-frame {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 14px 34px rgba(13, 36, 79, .16);
    border: 1px solid rgba(207, 216, 232, .82);
}

.locked-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.locked-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a4d00;
    border: 1px solid #ffd9a8;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
    white-space: nowrap;
}

.locked-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, .16);
}

.locked-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    color: #176137;
    background: linear-gradient(135deg, #e9f8ed, #ffffff);
    border: 1px solid #cfead6;
    box-shadow: 0 18px 42px rgba(23, 95, 53, .14);
}

.locked-icon svg {
    width: 48px;
    height: 48px;
}

.locked-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.locked-card h1 {
    max-width: 620px;
    margin: 0;
    color: #10203d;
    font-size: clamp(36px, 6vw, 58px);
    line-height: .96;
    letter-spacing: -.055em;
}

.locked-lead {
    max-width: 620px;
    margin: 18px 0 0;
    color: #52627a;
    font-size: clamp(17px, 2.4vw, 21px);
    font-weight: 700;
}

.locked-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 0;
}

.locked-info-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.locked-info-grid span {
    display: block;
    margin-bottom: 5px;
    color: #718096;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.locked-info-grid strong {
    display: block;
    color: #14213d;
    font-size: 16px;
}

.locked-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.locked-actions .button {
    min-height: 50px;
    border-radius: 15px;
    padding-inline: 20px;
}

.locked-primary {
    background: linear-gradient(135deg, #228149, #176137);
    box-shadow: 0 16px 30px rgba(23, 95, 53, .22);
}

.locked-primary:hover,
.locked-primary:focus {
    background: linear-gradient(135deg, #1c743f, #0f4727);
}

.button.locked-secondary {
    background: #edf2f7;
    color: #1e2f4d;
    border: 1px solid #d9e2ef;
}

.button.locked-secondary:hover,
.button.locked-secondary:focus {
    background: #e2e8f0;
    color: #10203d;
}

.locked-footnote {
    margin: 22px 0 0;
    color: #738199;
    font-size: 14px;
    font-weight: 650;
}

@media (max-width: 900px) {
    body.auth-page {
        background:
            radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .14), transparent 34%),
            linear-gradient(160deg, #103e27 0%, #19683a 55%, #2d8d57 100%);
    }

    .auth-shell {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 28px));
        padding: 28px 0;
        align-items: start;
    }

    .auth-hero-card {
        min-height: auto;
        padding: 30px;
    }

    .auth-card {
        padding: 28px;
    }
}

@media (max-width: 900px) {
    .locked-shell {
        width: min(620px, calc(100% - 28px));
        padding: 28px 0;
        align-items: start;
    }

    .locked-card {
        border-radius: 28px;
    }
}

@media (max-width: 560px) {
    .locked-shell {
        width: min(620px, calc(100% - 18px));
        padding: 10px 0 18px;
    }

    .locked-card {
        padding: 22px;
        border-radius: 22px;
    }

    .locked-brand-row {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .locked-logo-frame {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .locked-status-pill {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .locked-icon {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        margin-bottom: 20px;
    }

    .locked-icon svg {
        width: 40px;
        height: 40px;
    }

    .locked-card h1 {
        font-size: 36px;
    }

    .locked-info-grid {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .locked-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .locked-actions .button {
        width: 100%;
    }

    .auth-shell {
        width: min(620px, calc(100% - 18px));
        padding: 10px 0 18px;
        gap: 14px;
    }

    .auth-hero-card,
    .auth-card {
        border-radius: 20px;
        padding: 22px;
    }

    .auth-icon-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 18px;
    }

    .auth-hero-card h1 {
        font-size: 34px;
    }

    .auth-hero-card p:not(.auth-eyebrow) {
        font-size: 15px;
    }

    .auth-pill-row {
        margin-top: 22px;
    }

    .auth-pill-row span {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .auth-form-head h2 {
        font-size: 32px;
    }
}

.booking-top-actions .section-heading-row h2 {
    margin-bottom: 6px;
}

.booking-form-panel[hidden] {
    display: none !important;
}



/* Public page redesign v1.5.36 */
body.public-page {
    background:
        radial-gradient(circle at top left, rgba(164, 215, 181, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 22%),
        linear-gradient(180deg, #eef6f0 0%, #f5f8f4 280px, var(--bg) 100%);
}

/* Collapsible information tab on the public homepage. */
.public-info-panel {
    padding: 0;
    overflow: hidden;
}

.public-info-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 15px 20px;
    color: #143f27;
    background: linear-gradient(135deg, #ffffff 0%, #edf7f0 100%);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.public-info-tab::-webkit-details-marker {
    display: none;
}

.public-info-tab:hover,
.public-info-tab:focus-visible {
    background: linear-gradient(135deg, #f9fdfa 0%, #e4f3e9 100%);
}

.public-info-tab:focus-visible {
    outline: 3px solid rgba(23, 95, 53, .22);
    outline-offset: -3px;
}

.public-info-tab-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: #176137;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 800;
}

.public-info-tab-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.public-info-tab-copy strong {
    font-size: 17px;
}

.public-info-tab-copy small {
    color: #607267;
    font-size: 13px;
    font-weight: 600;
}

.public-info-tab-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #176137;
    font-size: 13px;
    font-weight: 800;
}

.public-info-close-label {
    display: none;
}

.public-info-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(23, 95, 53, .09);
    font-size: 23px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .2s ease;
}

.public-info-panel[open] .public-info-tab {
    border-bottom: 1px solid rgba(23, 95, 53, .1);
}

.public-info-panel[open] .public-info-open-label {
    display: none;
}

.public-info-panel[open] .public-info-close-label {
    display: inline;
}

.public-info-panel[open] .public-info-chevron {
    transform: rotate(180deg);
}

.public-info-panel .public-hero {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    .public-info-tab {
        gap: 11px;
        min-height: 68px;
        padding: 13px 14px;
    }

    .public-info-tab-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .public-info-tab-copy strong {
        font-size: 15px;
    }

    .public-info-tab-copy small,
    .public-info-open-label,
    .public-info-close-label {
        display: none !important;
    }

    .public-info-chevron {
        width: 30px;
        height: 30px;
    }
}

.public-page .site-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #103e27 0%, #19683a 55%, #2d8d57 100%);
    box-shadow: 0 22px 50px rgba(15, 57, 33, 0.18);
}

.public-page .site-header::before {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 62%, transparent 70%);
    pointer-events: none;
}

.public-page .public-nav a,
.public-page .public-nav span {
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
    backdrop-filter: blur(6px);
}

.public-page .public-nav a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.96);
    color: #176137;
    border-color: rgba(255,255,255,.96);
}

.public-page .booking-day-shell {
    padding-top: 24px;
    padding-bottom: 36px;
}

.public-page .card {
    border-color: rgba(17, 61, 35, 0.08);
    box-shadow: 0 18px 45px rgba(18, 54, 32, 0.08);
}

.public-hero,
.public-login-cta {
    position: relative;
    overflow: hidden;
}

.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, .9fr);
    gap: 22px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(242, 248, 244, .94)),
        #fff;
}

.public-hero::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    width: 280px;
    height: 320px;
    opacity: .08;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20360%20420%27%20fill%3D%27none%27%20stroke%3D%27%23175f35%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%27205%27%20cy%3D%2772%27%20r%3D%2728%27%2F%3E%3Cpath%20d%3D%27M205%20102l-18%2062%2045%2049%27%2F%3E%3Cpath%20d%3D%27M190%20164l-54%2042%27%2F%3E%3Cpath%20d%3D%27M231%20152l56-39%27%2F%3E%3Cpath%20d%3D%27M171%20248l-43%2078%27%2F%3E%3Cpath%20d%3D%27M217%20214l29%20112%27%2F%3E%3Cellipse%20cx%3D%27301%27%20cy%3D%2796%27%20rx%3D%2736%27%20ry%3D%2750%27%20transform%3D%27rotate%2822%20301%2096%29%27%2F%3E%3Cpath%20d%3D%27M267%20122l-38%2028%27%2F%3E%3Cpath%20d%3D%27M274%2076h54%27%2F%3E%3Cpath%20d%3D%27M125%20327l36%2031%27%2F%3E%3C%2Fsvg%3E");
    pointer-events: none;
}

.public-hero > * {
    position: relative;
    z-index: 1;
}

.public-hero-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.06;
    max-width: 12ch;
}

.public-hero-copy > p {
    margin: 14px 0 0;
    max-width: 62ch;
    color: #496154;
    font-size: 16px;
}

/* Compact guest hero on the public homepage. Availability layout stays unchanged. */
body.public-page .public-hero-guest {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .78fr);
    gap: 16px;
    padding: 20px 24px;
}

.public-hero-guest::after {
    width: 230px;
    height: 260px;
}

.public-hero-guest .public-hero-copy h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    max-width: 16ch;
}

.public-hero-guest .public-hero-copy > p {
    margin-top: 10px;
    max-width: 58ch;
    font-size: 15px;
}

.public-hero-guest .eyebrow-badge {
    min-height: 30px;
    margin-bottom: 10px;
    padding: 5px 10px;
}

.public-hero-guest .hero-actions {
    gap: 8px;
    margin-top: 16px;
}

.public-hero-guest .hero-metrics {
    gap: 10px;
    margin-top: 16px;
}

.public-hero-guest .hero-metric {
    padding: 11px 14px;
    border-radius: 14px;
}

.public-hero-guest .hero-metric span {
    margin-top: 4px;
}

.public-hero-guest .public-hero-aside {
    gap: 10px;
}

.public-hero-guest .hero-aside-card {
    padding: 14px 16px;
    border-radius: 16px;
}

.public-hero-guest .hero-aside-card h3 {
    margin-bottom: 8px;
}

.public-hero-guest .hero-checklist {
    gap: 7px;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf6ed;
    color: #176137;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.eyebrow-badge.soft {
    background: rgba(255,255,255,.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.button.secondary.ghost {
    background: rgba(23, 95, 53, 0.08);
    color: #176137;
    border: 1px solid rgba(23, 95, 53, 0.14);
}

.button.secondary.ghost:hover {
    background: rgba(23, 95, 53, 0.14);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    max-width: 760px;
}

.hero-metric {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(23, 95, 53, 0.08);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(6px);
}

.hero-metric strong {
    display: block;
    font-size: clamp(18px, 2.3vw, 24px);
    color: #10251a;
}

.hero-metric span {
    display: block;
    margin-top: 6px;
    color: #5a6c60;
    font-size: 13px;
    font-weight: 700;
}

.public-hero-aside {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-aside-card {
    padding: 18px 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(23, 95, 53, 0.08);
    background: rgba(247, 251, 248, 0.95);
}

.hero-aside-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.hero-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero-checklist li {
    position: relative;
    padding-left: 26px;
    color: #3f5447;
    font-weight: 600;
}

.hero-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #176137;
    font-weight: 900;
}

.legend-pills,
.availability-mini-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.04);
    font-size: 12px;
    font-weight: 800;
}

.legend-pill.free {
    background: var(--free);
    color: #176137;
}

.legend-pill.booked {
    background: var(--booked);
    color: #922323;
}

.legend-pill.blocked {
    background: var(--blocked);
    color: #6b6258;
}

.legend-pill.trainer {
    background: #e5fbfb;
    color: #064852;
}

.availability-section {
    padding: 24px;
    scroll-margin-top: 24px;
}

.availability-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.availability-filter {
    padding: 14px 16px;
    border: 1px solid rgba(23, 95, 53, 0.08);
    border-radius: 16px;
    background: #f8fbf8;
}

.availability-filter label {
    min-width: 230px;
}

.availability-section .table-scroll {
    margin-top: 8px;
    border-color: rgba(23, 95, 53, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.public-page .availability-table th {
    background: #f1f7f2;
}

.public-page .availability-table th:first-child,
.public-page .availability-table td:first-child {
    background: #f1f7f2;
}

.public-page .slot-cell {
    border: 1px solid rgba(16, 37, 26, 0.05);
}

.public-page .slot-free {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.public-page .slot-booked,
.public-page .slot-blocked,
.public-page .slot-past {
    opacity: .96;
}

.public-login-cta {
    background: linear-gradient(135deg, #173b28 0%, #1f6a3e 100%);
    color: #fff;
    border: 0;
}

.public-login-cta::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 60%, transparent 70%);
    pointer-events: none;
}

.public-login-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.public-login-cta h2,
.public-login-cta p {
    color: #fff;
}

.public-login-cta p {
    max-width: 70ch;
    opacity: .92;
}

.public-login-cta .button.secondary {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}

.public-login-cta .button.secondary:hover {
    background: rgba(255,255,255,.2);
}

#new-booking-modal,
#availability-grid {
    scroll-margin-top: 24px;
}

.booking-modal {
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
}

.booking-modal::backdrop {
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(3px);
}

.booking-modal-content {
    margin: 0;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.booking-modal-header h2 { margin: 0; }

.booking-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #253047;
    font: 700 28px/1 sans-serif;
    cursor: pointer;
}

.booking-modal-close:hover { background: #dfe6ef; }

body:has(.booking-modal[open]) { overflow: hidden; }

@media (max-width: 1040px) {
    .public-hero {
        grid-template-columns: 1fr;
    }

    .public-hero::after {
        width: 220px;
        height: 260px;
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .availability-heading-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 780px) {
    .public-page .booking-day-shell {
        padding-top: 18px;
    }

    .public-hero,
    .availability-section,
    .public-login-cta {
        padding: 18px;
    }

    .public-hero-copy h2 {
        font-size: 30px;
        max-width: none;
    }

    .hero-actions,
    .public-login-cta-content,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-metric {
        padding: 14px 16px;
    }

    .availability-filter label {
        min-width: 0;
        width: 100%;
    }

    .availability-mini-legend {
        gap: 6px;
    }
}



/* Public scroll-to-top arrow v1.5.37 */
html {
    scroll-behavior: smooth;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #175f35, #2d8d57);
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 16px 32px rgba(18, 54, 32, .24);
    border: 1px solid rgba(255,255,255,.35);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.scroll-top-button:hover,
.scroll-top-button:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(18, 54, 32, .30);
    outline: 0;
}

@media (max-width: 780px) {
    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
}


/* Member password notifications v1.5.39 */
.alert.info {
    background: #eef6ff;
    border-color: #b7d5f8;
    color: #214b73;
}

.admin-password-alert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    background: #eef7ef;
    color: #176137;
    border: 1px solid #cfe4d1;
}

.admin-password-alert-link:hover {
    background: #fff;
    color: #176137;
}

.admin-password-alert-link.has-unread {
    background: #fff7df;
    color: #735a00;
    border-color: #e0c36c;
}

.admin-password-alert-link strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #a93030;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.stat.stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stat.stat-link:hover {
    transform: translateY(-1px);
    border-color: var(--success-border);
}

.password-alert-stat.attention {
    border-color: #e0c36c;
    background: #fff9e8;
}

.password-notification-stats {
    margin: 18px 0;
}

.password-notification-stats.compact-stats {
    margin-bottom: 0;
}

.password-notifications-table {
    min-width: 920px;
}

.notification-unread-row td {
    background: #fffdf4;
}

.password-dashboard-recent {
    margin-top: 18px;
}

.password-tracking-note {
    margin-top: 6px;
}

.username-email-password-followup {
    background: #f9fbf9;
    margin-top: 18px;
    box-shadow: none;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--text);
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 780px) {
    .admin-password-alert-link {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
}


/* Reset member passwords command v1.5.40 */
.reset-passwords-overview-card,
.reset-passwords-command-card {
    position: relative;
    overflow: hidden;
}

.reset-passwords-command-card {
    border-color: #e3a5a5;
}

.reset-passwords-stats {
    margin-top: 18px;
}

.reset-warning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.reset-warning-step {
    margin: 0;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reset-confirm-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f9fbf9;
    font-weight: 700;
}

.reset-confirm-line input {
    width: auto;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.reset-member-passwords-form .button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.member-reset-password-form {
    display: grid;
    gap: 14px;
}

.member-actions .button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.member-reset-password-panel {
    max-width: 680px;
}

@media (max-width: 780px) {
    .reset-warning-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.5.47: Μεγαλύτερα slots κρατήσεων μόνο σε admin/admin1 και σε συνδεδεμένα μέλη/προπονητές. Η δημόσια προβολή επισκέπτη μένει όπως ήταν. */
.admin-layout-body,
.booking-day-shell.member-day-shell {
    --court-slot-width: 220px;
    --court-slot-height: 178px;
    --court-slot-time-width: 136px;
}

.admin-layout-body .slots-table-scroll .availability-table,
.booking-day-shell.member-day-shell .slots-table-scroll .availability-table {
    table-layout: fixed;
    width: max-content !important;
    min-width: max-content !important;
}

.admin-layout-body .availability-table th:first-child,
.admin-layout-body .availability-table td:first-child,
.booking-day-shell.member-day-shell .availability-table th:first-child,
.booking-day-shell.member-day-shell .availability-table td:first-child {
    width: var(--court-slot-time-width);
    min-width: var(--court-slot-time-width);
    max-width: var(--court-slot-time-width);
}

.admin-layout-body .availability-table th:not(:first-child),
.admin-layout-body .availability-table td:not(:first-child),
.booking-day-shell.member-day-shell .availability-table th:not(:first-child),
.booking-day-shell.member-day-shell .availability-table td:not(:first-child) {
    width: var(--court-slot-width);
    min-width: var(--court-slot-width);
    max-width: var(--court-slot-width);
}

.admin-layout-body .availability-table td:not(:first-child),
.booking-day-shell.member-day-shell .availability-table td:not(:first-child) {
    height: auto;
    min-height: calc(var(--court-slot-height) + 22px);
    vertical-align: top;
}

.admin-layout-body .availability-table .slot-cell,
.admin-layout-body .availability-table .admin-slot-card,
.admin-layout-body .availability-table .daily-slot-card,
.admin-layout-body .availability-table .dashboard-slot-card,
.booking-day-shell.member-day-shell .availability-table .slot-cell,
.booking-day-shell.member-day-shell .availability-table .booking-slot-card,
.booking-day-shell.member-day-shell .booking-slot-card.slot-booked {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: var(--court-slot-height);
    max-height: none;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-content: center;
    justify-items: center;
    overflow: visible;
}

.admin-layout-body .availability-table .slot-booking-display,
.booking-day-shell.member-day-shell .availability-table .slot-booking-display {
    gap: 8px;
    min-width: 0;
}

.admin-layout-body .availability-table .slot-team,
.admin-layout-body .availability-table .slot-separator,
.admin-layout-body .availability-table .slot-created-by,
.admin-layout-body .availability-table .slot-cell span,
.booking-day-shell.member-day-shell .availability-table .slot-team,
.booking-day-shell.member-day-shell .availability-table .slot-separator,
.booking-day-shell.member-day-shell .availability-table .slot-created-by,
.booking-day-shell.member-day-shell .availability-table .slot-cell span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.admin-layout-body .availability-table .slot-team,
.booking-day-shell.member-day-shell .availability-table .slot-team {
    font-size: 0.86rem;
}

.admin-layout-body .availability-table .slot-booking-actions,
.booking-day-shell.member-day-shell .availability-table .slot-booking-actions {
    max-width: 100%;
}

@media (max-width: 780px) {
    .admin-layout-body,
    .booking-day-shell.member-day-shell {
        --court-slot-width: 190px;
        --court-slot-height: 164px;
        --court-slot-time-width: 122px;
    }
}

/* Help Desk manual v1.5.48 */
.help-desk-shell {
    padding-top: 24px;
    padding-bottom: 42px;
}

.help-desk-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(circle at right top, rgba(60, 150, 91, .16), transparent 34%),
        linear-gradient(135deg, #ffffff, #f2f8f4);
}

.help-desk-hero h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.help-desk-subtitle {
    margin: 10px 0 0;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.help-desk-audience {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.help-desk-version {
    min-width: 120px;
    padding: 18px 22px;
    border: 1px solid rgba(23, 95, 53, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    text-align: center;
    box-shadow: 0 12px 28px rgba(18, 54, 32, .07);
}

.help-desk-version span,
.help-desk-version strong {
    display: block;
}

.help-desk-version span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.help-desk-version strong {
    margin-top: 4px;
    color: var(--primary);
    font-size: 30px;
}

.help-desk-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.help-toc {
    position: sticky;
    top: 18px;
    margin-bottom: 0;
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.help-toc h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.help-toc nav {
    display: grid;
    gap: 4px;
}

.help-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: #294334;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.help-toc a:hover,
.help-toc a:focus-visible {
    background: #edf6ef;
    color: var(--primary);
}

.help-content {
    min-width: 0;
}

.help-section {
    scroll-margin-top: 18px;
    padding: clamp(22px, 3vw, 34px);
}

.help-section > h2 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: #153f28;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.help-section h3 {
    margin: 26px 0 8px;
    color: #214e32;
    font-size: 19px;
}

.help-section p {
    margin: 0 0 14px;
}

.help-section ul,
.help-section ol {
    margin: 10px 0 18px;
    padding-left: 24px;
}

.help-section li {
    margin: 7px 0;
    padding-left: 3px;
}

.help-callout {
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 18px 20px;
    background: #f7fbf8;
}

.help-desk-shell > .help-callout {
    margin-bottom: 0;
}

.help-callout h2,
.help-callout h3 {
    margin: 0 0 7px;
    color: #173f29;
    font-size: 18px;
}

.help-callout p:last-child {
    margin-bottom: 0;
}

.help-section .help-callout {
    margin: 20px 0 6px;
}

.help-callout-info {
    background: #eef7f1;
}

.help-callout-tip {
    border-left-color: #2f7f4d;
    background: #f0f8f2;
}

.help-callout-warning {
    border-left-color: #c4931e;
    background: #fff9e8;
}

.help-callout-example {
    border-left-color: #4879a8;
    background: #f1f6fb;
}

.help-example-line {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f7f4;
}

.help-table-scroll {
    margin-top: 12px;
}

.help-table {
    min-width: 620px;
}

.help-table th {
    font-size: 12px;
}

.help-table th:first-child,
.help-table td:first-child {
    width: 30%;
}

.help-table td {
    vertical-align: top;
    line-height: 1.5;
}

.help-problems-table {
    min-width: 760px;
}

.help-problems-table th:first-child,
.help-problems-table td:first-child {
    width: 34%;
}

@media (max-width: 900px) {
    .help-desk-layout {
        grid-template-columns: 1fr;
    }

    .help-toc {
        position: static;
        max-height: none;
    }

    .help-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .help-desk-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .help-desk-version {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .help-desk-version span,
    .help-desk-version strong {
        display: inline;
    }

    .help-desk-version strong {
        margin-left: 6px;
        font-size: 22px;
    }

    .help-toc nav {
        grid-template-columns: 1fr;
    }

    .help-section {
        padding: 20px;
    }
}
