*, *:before, *:after {
    box-sizing: border-box;
}

:root {
    --tpa-burgundy: #630B1A;
    --tpa-burgundy-dark: #4f0713;
    --tpa-red: #ec0016;
    --tpa-green: #08733d;
    --tpa-gray: #6f7a82;
    --tpa-page: #e9e9e9;
    --tpa-text: #20242a;
    --tpa-muted: #4f5761;
    --tpa-border: #d6d6d6;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #303030;
    color: var(--tpa-text);
    font-family: "DM Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

a,
button,
input,
select {
    font-family: inherit;
}

.tpa-site-wrapper {
    min-height: 100vh;
    background: var(--tpa-page);
}

.tpa-site-content {
    min-height: calc(100vh - 166px);
    background: var(--tpa-page);
}

.tpa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--tpa-page);
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.12);
}

.tpa-topbar {
    height: 35px;
    background: var(--tpa-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpa-topbar-nav {
    width: min(1120px, calc(100% - 48px));
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}

.tpa-topbar-nav a {
    color: #fff;
    font-family: "Inter", "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.tpa-navband {
    min-height: 88px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
        url("Images/NavbarImage.png") center 40% / cover no-repeat;
    border-top: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
    padding: 0 clamp(24px, 3vw, 48px);
}

.tpa-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.tpa-logo-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.tpa-logo-circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tpa-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 42px);
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.tpa-main-nav a {
    color: #222831;
    font-size: clamp(13px, 0.95vw, 15px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 32px 0 26px;
    border-bottom: 3px solid transparent;
}

.tpa-main-nav a.is-active {
    color: var(--tpa-burgundy);
    border-bottom-color: var(--tpa-burgundy);
}

.tpa-main-nav a:hover,
.tpa-main-nav a:focus {
    color: var(--tpa-burgundy);
    text-decoration: none;
}

.tpa-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 112px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 7px;
    color: #242a31;
    background: rgba(255, 255, 255, 0.28);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tpa-logout-link:hover,
.tpa-logout-link:focus {
    color: var(--tpa-burgundy);
    background: rgba(255, 255, 255, 0.46);
    text-decoration: none;
}

.tpa-menu-toggle,
.tpa-mobile-menu {
    display: none;
}

.tpa-find-coach-page {
    background: var(--tpa-page);
    padding: 46px 24px 58px;
}

.tpa-content-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.tpa-page-titlebar h1 {
    margin: 0 0 30px;
    color: #24282e;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
}

.tpa-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.tpa-result-count {
    margin: 0;
    color: #4b535c;
    font-size: 17px;
    font-weight: 500;
}

.tpa-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 116px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #bfc3c8;
    border-radius: 8px;
    background: #fff;
    color: #24282e;
    font-size: 16px;
    font-weight: 700;
}

.tpa-filter-toggle:hover,
.tpa-filter-toggle:focus {
    border-color: var(--tpa-burgundy);
    color: var(--tpa-burgundy);
    outline: none;
}

.tpa-filter-panel {
    display: none;
    margin: 0 0 24px;
    padding: 26px 30px 34px;
    background: #fff;
    border: 1px solid #e0e4eb;
    border-radius: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.tpa-filter-panel.is-open {
    display: block;
}

.tpa-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.tpa-filter-header h2 {
    margin: 0;
    color: #171c28;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.tpa-filter-close {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    padding: 0;
}

.tpa-filter-close:hover,
.tpa-filter-close:focus {
    color: var(--tpa-burgundy);
    outline: none;
}

.tpa-filter-block {
    margin: 0 0 22px;
}

.tpa-filter-block:last-child {
    margin-bottom: 0;
}

.tpa-filter-label,
.tpa-filter-check-group legend {
    display: block;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: #344055;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.tpa-search-wrap {
    position: relative;
}

.tpa-search-wrap .fa {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 20px;
    pointer-events: none;
}

.tpa-search-input,
.tpa-text-input,
.tpa-select {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #cfd1d6;
    border-radius: 9px;
    background: #fff;
    color: #343941;
    font-size: 17px;
    font-weight: 500;
}

.tpa-search-input {
    padding-left: 46px;
}

.tpa-search-input:focus,
.tpa-text-input:focus,
.tpa-select:focus {
    border-color: var(--tpa-burgundy);
    box-shadow: 0 0 0 2px rgba(103, 0, 21, 0.08);
    outline: none;
}

.tpa-filter-check-group {
    border: 0;
    padding: 0;
}

.tpa-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #344055;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.tpa-check-item input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #b8c0cc;
    border-radius: 2px;
    accent-color: var(--tpa-burgundy);
    flex: 0 0 auto;
}

.tpa-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.tpa-btn-apply,
.tpa-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.tpa-btn-apply {
    border: 1px solid var(--tpa-burgundy);
    background: var(--tpa-burgundy);
    color: #fff;
}

.tpa-btn-reset {
    border: 1px solid #cfd1d6;
    background: #fff;
    color: #343941;
}

.tpa-btn-apply:hover,
.tpa-btn-apply:focus {
    background: var(--tpa-burgundy-dark);
    color: #fff;
    outline: none;
}

.tpa-btn-reset:hover,
.tpa-btn-reset:focus {
    border-color: var(--tpa-burgundy);
    color: var(--tpa-burgundy);
    text-decoration: none;
    outline: none;
}

.tpa-coach-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.tpa-coach-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    min-height: 136px;
    padding: 20px 22px 16px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08);
}

.tpa-avatar-sq {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    color: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.tpa-avatar-sq img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpa-status-active {
    background: var(--tpa-green);
}

.tpa-status-inactive {
    background: var(--tpa-gray);
}

.tpa-status-pending {
    background: var(--tpa-red);
}

.tpa-coach-info {
    min-width: 0;
}

.tpa-coach-info h2 {
    margin: 1px 0 7px;
    color: #24282e;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
}

.tpa-coach-meta {
    margin: 0 0 4px;
    color: #4c545d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.tpa-coach-meta strong {
    color: #343941;
    font-weight: 800;
}

.tpa-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.tpa-status-pill.tpa-status-pending {
    border: 1px solid #ff8a92;
    background: #fff;
    color: #9f1824;
}

.tpa-missing-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tpa-missing-list li {
    margin: 0 0 3px;
    color: var(--tpa-red);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.tpa-check-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid var(--tpa-green);
    border-radius: 4px;
    color: var(--tpa-green);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.tpa-check-badge-btn:hover,
.tpa-check-badge-btn:focus {
    background: #eef9f3;
    color: #05582f;
    text-decoration: none;
    outline: none;
}

.tpa-check-badge-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.tpa-empty-state {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
}

.tpa-empty-state .fa {
    color: #b9bdc2;
    font-size: 34px;
}

.tpa-empty-state h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.tpa-empty-state p {
    margin: 0 0 16px;
    color: #5d646d;
}

.tpa-clear-link {
    color: var(--tpa-burgundy);
    font-weight: 800;
}

.tpa-pagination-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 0 0;
    overflow-x: auto;
}

.tpa-pagination-wrap .pagination {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tpa-pagination-wrap .pagination > li {
    flex: 0 0 auto;
}

.tpa-pagination-wrap .pagination > li > a,
.tpa-pagination-wrap .pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #c2c5ca;
    border-radius: 5px;
    background: #fff;
    color: #4d535b;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.tpa-pagination-wrap .pagination > .active > span,
.tpa-pagination-wrap .pagination > .active > a {
    border-color: var(--tpa-burgundy);
    background: var(--tpa-burgundy);
    color: #fff;
}

.tpa-pagination-wrap .pagination > li > a:hover,
.tpa-pagination-wrap .pagination > li > a:focus {
    border-color: var(--tpa-burgundy);
    color: var(--tpa-burgundy);
    outline: none;
}

.tpa-pagination-wrap .pagination > .disabled > span,
.tpa-pagination-wrap .pagination > .disabled > a {
    color: #5f646b;
    cursor: default;
}

.tpa-pagination-wrap .pagination > .tpa-page-ellipsis > span {
    min-width: 22px;
    padding: 0 0;
    border-color: transparent;
    background: transparent;
}

.tpa-footer {
    background: var(--tpa-burgundy);
    color: rgba(255, 255, 255, 0.72);
    padding: 18px 24px;
    font-size: 12px;
}

.tpa-footer-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tpa-footer-brand {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .tpa-navband {
        gap: 16px;
        padding: 0 22px;
    }

    .tpa-main-nav {
        gap: 16px;
    }

    .tpa-main-nav a {
        font-size: 13px;
    }

    .tpa-logout-link {
        min-width: 104px;
        padding: 0 12px;
        font-size: 13px;
    }

    .tpa-coach-card {
        padding: 20px 18px 16px;
    }
}

@media (max-width: 860px) {
    .tpa-topbar,
    .tpa-main-nav,
    .tpa-logout-link {
        display: none;
    }

    .tpa-navband {
        justify-content: space-between;
        min-height: 94px;
        padding: 0 20px;
    }

    .tpa-logo-circle {
        width: 72px;
        height: 72px;
    }

    .tpa-menu-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .tpa-menu-toggle span {
        width: 32px;
        height: 4px;
        background: var(--tpa-burgundy);
    }

    .tpa-mobile-menu {
        display: flex;
        position: fixed;
        top: 94px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 20px;
        padding: 32px 28px;
        background: var(--tpa-burgundy);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .tpa-menu-open .tpa-mobile-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .tpa-mobile-menu a {
        color: #fff;
        font-size: 20px;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
    }

    .tpa-menu-close {
        align-self: flex-end;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 38px;
        line-height: 1;
        padding: 0;
    }

    .tpa-find-coach-page {
        padding: 44px 16px 56px;
    }

    .tpa-page-titlebar h1 {
        margin-bottom: 28px;
        font-size: 34px;
    }

    .tpa-results-toolbar {
        align-items: flex-start;
    }

    .tpa-filter-panel {
        padding: 24px 24px 32px;
    }

    .tpa-coach-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tpa-results-toolbar {
        flex-direction: column;
        gap: 16px;
    }

    .tpa-filter-toggle {
        width: 100%;
    }

    .tpa-filter-panel {
        padding: 22px 18px 28px;
    }

    .tpa-filter-header {
        margin-bottom: 18px;
    }

    .tpa-filter-header h2 {
        font-size: 22px;
    }

    .tpa-filter-label,
    .tpa-filter-check-group legend,
    .tpa-check-item {
        font-size: 16px;
    }

    .tpa-search-input,
    .tpa-text-input,
    .tpa-select {
        height: 46px;
        font-size: 16px;
    }

    .tpa-coach-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        padding: 22px 18px;
    }

    .tpa-avatar-sq {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .tpa-coach-info h2 {
        font-size: 18px;
    }

    .tpa-coach-meta {
        font-size: 14px;
    }

    .tpa-pagination-wrap .pagination {
        gap: 6px;
    }

    .tpa-pagination-wrap .pagination > li > a,
    .tpa-pagination-wrap .pagination > li > span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 16px;
    }
}
