/* Coach Search — directory-specific styles, layered on core.css */

/* ---------- Nav ---------- */

nav.cs_nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cs_nav_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 32px;
}

.cs_nav_logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--dark-font-color);
    text-decoration: none;
}

.cs_logo_mark {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: var(--dark-font-color);
}

.cs_logo_mark strong {
    font-weight: 700;
    color: var(--primary-color);
}

.cs_logo_mark.white,
.cs_logo_mark.white strong {
    color: var(--light-font-color);
}

.cs_logo_tag {
    font-size: 10px;
    color: var(--mid-grey-color);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.cs_nav_links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.cs_nav_links li { margin: 0; }

.cs_nav_links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-font-color);
}

.cs_nav_links a:hover { color: var(--primary-color); }

.cs_nav_cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs_nav_login {
    font-size: 14px;
    color: var(--mid-grey-color);
    font-weight: 500;
}

.cs_nav_join {
    padding: 8px 16px;
    font-size: 14px;
}

.cs_nav_burger {
    background: none;
    border: 0;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.cs_nav_burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-font-color);
}

.cs_nav_mobile {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 16px 5%;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cs_nav_mobile a {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 767px) {
    .cs_nav_burger { display: flex; }
    .cs_nav_links { display: none; }
    .cs_nav_login { display: none; }
    .cs_nav_join { font-size: 13px; padding: 7px 12px; }
    .cs_nav_mobile.is-open { display: flex; }
}

/* ---------- Hero ---------- */

section.cs_hero {
    position: relative;
    padding: 0;
    background: #122c2c;
    overflow: hidden;
    isolation: isolate;
}

.cs_hero_bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(110deg, rgba(8, 36, 36, 0.78) 0%, rgba(8, 36, 36, 0.45) 55%, rgba(8, 36, 36, 0.25) 100%),
        url('/assets/img/hero-fallback.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cs_hero_inner {
    position: relative;
    z-index: 1;
    padding: 110px 0 130px;
    color: #ffffff;
}

.cs_hero_inner h1 {
    color: #ffffff;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 720px;
    margin-bottom: 18px;
    font-weight: 600;
}

.cs_hero_inner p.lead {
    color: rgba(255,255,255,0.86);
    font-size: 19px;
    line-height: 1.55;
    max-width: 600px;
    margin-bottom: 36px;
    font-weight: 400;
}

.cs_search_box {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    max-width: 780px;
}

.cs_search_box form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.cs_search_box input,
.cs_search_box select {
    padding: 13px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: #fff;
    color: var(--dark-font-color);
    min-width: 0;
}

.cs_search_box button {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
    grid-column: 1 / -1;
}

@media (min-width: 720px) {
    /* On wider viewports let a 3-input form (postcode + niche + button)
       sit on a single row. The 4-input search page form wraps to two
       rows: 3 inputs / button-full-width. */
    .cs_search_box form:has(> :nth-child(3):last-child) {
        grid-template-columns: 1fr 1fr auto;
    }
    .cs_search_box form:has(> :nth-child(3):last-child) button {
        grid-column: auto;
    }
}

.cs_search_meta {
    margin: 16px 4px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.78);
}

.cs_search_meta a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .cs_hero_inner { padding: 70px 0 80px; }
    .cs_hero_inner h1 { font-size: 32px; }
    .cs_hero_inner p.lead { font-size: 16px; margin-bottom: 24px; }
    .cs_search_box form { grid-template-columns: 1fr; }
}

/* ---------- Sub-page hero (niche, search, niche+location) ---------- */

section.cs_subhero {
    background: var(--warm-cream-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 32px 0 28px;
}

.cs_subhero_breadcrumb {
    font-size: 13px;
    color: var(--mid-grey-color);
    margin: 0 0 10px;
    font-weight: 500;
}

.cs_subhero_breadcrumb a {
    color: var(--mid-grey-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cs_subhero_breadcrumb a:hover { color: var(--primary-color-dark); }

section.cs_subhero h1 {
    font-size: 32px;
    margin: 0 0 8px;
    line-height: 1.15;
}

section.cs_subhero p.lead {
    font-size: 16px;
    color: var(--mid-grey-color);
    max-width: 720px;
    margin: 0 0 18px;
}

section.cs_subhero .cs_search_box {
    margin-top: 4px;
    box-shadow: 0 6px 18px rgba(13, 80, 78, 0.07);
}

section.cs_subhero .cs_search_meta {
    color: var(--mid-grey-color);
    font-size: 13px;
    margin-top: 12px;
}

section.cs_subhero .cs_search_meta a {
    color: var(--primary-color-dark);
}

@media (max-width: 767px) {
    section.cs_subhero { padding: 22px 0 20px; }
    section.cs_subhero h1 { font-size: 24px; }
}

/* ---------- Trust strip ---------- */

section.cs_trust_strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 28px 0;
}

.cs_trust_row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    align-items: center;
}

.cs_trust_item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs_trust_icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color-soft);
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.cs_trust_item h5 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
}

.cs_trust_item p {
    margin: 0;
    font-size: 13px;
    color: var(--mid-grey-color);
}

@media (max-width: 767px) {
    .cs_trust_row { grid-template-columns: 1fr; gap: 16px; }
    section.cs_trust_strip { padding: 22px 0; }
}

/* ---------- TCA strip ---------- */

section.cs_tca_strip {
    background: var(--warm-cream-color);
    color: var(--dark-font-color);
    padding: 36px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

section.cs_tca_strip .flex_row {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

section.cs_tca_strip p {
    color: var(--mid-grey-color);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

section.cs_tca_strip p strong {
    color: var(--dark-font-color);
    font-weight: 600;
}

section.cs_tca_strip a.button { margin: 0; }

/* ---------- Coach card ---------- */

.cs_coach_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 900px) {
    .cs_coach_grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

.cs_coach_card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 18px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    align-items: start;
    color: var(--dark-font-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cs_coach_card:hover {
    border-color: rgba(26, 163, 155, 0.4);
    box-shadow: 0 8px 22px rgba(13, 80, 78, 0.06);
    transform: translateY(-1px);
}

.cs_coach_card_photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-grey-color);
    border: 2px solid var(--primary-color);
    padding: 2px;
    box-sizing: border-box;
    background-clip: content-box;
    display: block;
}

.cs_coach_card_body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cs_coach_card_name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--dark-font-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs_coach_card_headline {
    font-size: 14px;
    color: var(--mid-grey-color);
    margin: 4px 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs_coach_card_meta {
    font-size: 13px;
    color: var(--mid-grey-color);
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-weight: 500;
}

.cs_coach_card_meta span::before {
    content: '·';
    margin-right: 8px;
    color: rgba(0,0,0,0.2);
}

.cs_coach_card_meta span:first-child::before {
    content: '';
    margin-right: 0;
}

.cs_badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--primary-color-soft);
    color: var(--primary-color-dark);
}

.cs_badge_tick {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    margin-left: 4px;
}

.cs_card_cta {
    margin-top: auto;
    align-self: flex-start;
    padding: 7px 14px !important;
    font-size: 13px !important;
    font-weight: 500;
}

@media (max-width: 480px) {
    .cs_coach_card { grid-template-columns: 64px 1fr; padding: 14px; gap: 12px; }
    .cs_coach_card_photo { width: 64px; height: 64px; }
}

/* ---------- Niche tiles ---------- */

.cs_niche_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.cs_niche_tile {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 16px;
    color: var(--dark-font-color);
    background: #fff;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: block;
}

.cs_niche_tile:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 80, 78, 0.06);
}

.cs_niche_tile h4 {
    font-size: 15px;
    margin: 0 0 4px;
    font-weight: 600;
}

.cs_niche_tile p {
    margin: 0;
    font-size: 13px;
    color: var(--mid-grey-color);
    line-height: 1.45;
}

/* ---------- Profile page ---------- */

.cs_profile_breadcrumb {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 0;
}

.cs_back_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--mid-grey-color);
    font-weight: 500;
}

.cs_back_link:hover { color: var(--primary-color); }

.cs_profile_header {
    background: var(--warm-cream-color);
    padding: 32px 0 28px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cs_profile_header_inner {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 32px;
    align-items: center;
}

.cs_profile_avatar {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 4px;
    background-clip: content-box;
    background: #fff content-box;
    overflow: hidden;
    box-sizing: border-box;
}

.cs_profile_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cs_profile_identity h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cs_verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color-dark);
    background: var(--primary-color-soft);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}

.cs_verified_dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.cs_profile_meta {
    color: var(--mid-grey-color);
    font-size: 15px;
    margin: 0 0 18px;
    font-weight: 500;
}

.cs_profile_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cs_btn_icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
}

.cs_phone_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-font-color);
    margin-left: 6px;
    padding: 9px 12px;
}

.cs_phone_link:hover { color: var(--primary-color); }

@media (max-width: 767px) {
    .cs_profile_header_inner { grid-template-columns: 110px 1fr; gap: 18px; }
    .cs_profile_avatar { width: 110px; height: 110px; }
    .cs_profile_identity h1 { font-size: 24px; }
    .cs_profile_meta { font-size: 14px; margin-bottom: 14px; }
    .cs_profile_actions { gap: 8px; }
}

@media (max-width: 480px) {
    .cs_profile_header_inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .cs_profile_avatar { margin: 0 auto; }
    .cs_profile_actions { justify-content: center; }
}

.cs_profile_body {
    background: var(--light-grey-color);
    padding: 32px 0 56px;
}

.cs_profile_grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .cs_profile_grid { grid-template-columns: 1fr; }
}

.cs_profile_main { display: flex; flex-direction: column; gap: 20px; }
.cs_profile_aside { display: flex; flex-direction: column; gap: 16px; }

.cs_profile_card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 28px 32px;
}

.cs_profile_card h2 {
    font-size: 20px;
    margin: 0 0 14px;
    color: var(--dark-font-color);
}

.cs_profile_card h3 {
    font-size: 16px;
    margin: 26px 0 10px;
    color: var(--dark-font-color);
}

.cs_profile_card p {
    font-size: 15px;
    line-height: 1.65;
    color: #2c3a40;
    margin-bottom: 14px;
}

.cs_profile_card p:last-child { margin-bottom: 0; }

.cs_niche_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs_niche_chip {
    display: inline-block;
    padding: 7px 12px;
    background: var(--primary-color-soft);
    color: var(--primary-color-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.cs_niche_chip:hover {
    background: var(--primary-color);
    color: #fff;
}

.cs_aside_card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 20px 22px;
}

.cs_aside_card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mid-grey-color);
    margin: 0 0 12px;
    font-weight: 600;
}

.cs_aside_card p {
    margin: 0;
    font-size: 15px;
    color: var(--dark-font-color);
}

.cs_aside_card_tinted {
    background: var(--primary-color-soft);
    border-color: rgba(26, 163, 155, 0.2);
}

.cs_aside_card_tinted p { color: var(--dark-font-color); font-size: 14px; line-height: 1.55; }
.cs_aside_card_tinted h4 { color: var(--primary-color-dark); }
.cs_aside_card_tinted a { color: var(--primary-color-dark); }

.cs_aside_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs_aside_list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    margin: 0;
    color: var(--dark-font-color);
}

.cs_aside_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex: 0 0 6px;
}

/* Contact section */

.cs_contact_section {
    background: #fff;
    padding: 56px 0 80px;
}

.cs_contact_card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 20px rgba(13, 80, 78, 0.04);
}

.cs_contact_intro h2 { font-size: 24px; margin: 0 0 8px; }
.cs_contact_intro p { color: var(--mid-grey-color); font-size: 15px; margin: 0 0 22px; }

.cs_contact_form .check_item_holder span { font-size: 14px; color: var(--mid-grey-color); }
.cs_contact_form button { width: 100%; }

/* ---------- Pricing page ---------- */

.cs_pricing_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .cs_pricing_grid { grid-template-columns: 1fr; }
}

.cs_pricing_card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
}

.cs_pricing_card_featured {
    border-color: var(--primary-color);
    box-shadow: 0 12px 36px rgba(13, 80, 78, 0.1);
    background: #fff;
}

.cs_pricing_card_comp {
    background: var(--warm-cream-color);
}

.cs_pricing_eyebrow {
    color: var(--primary-color-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 12px;
    margin: 0 0 6px;
}

.cs_pricing_amount {
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 6px;
    color: var(--dark-font-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cs_pricing_amount span {
    font-size: 16px;
    font-weight: 500;
    color: var(--mid-grey-color);
}

.cs_pricing_desc {
    color: var(--mid-grey-color);
    font-size: 14px;
    margin: 0 0 18px;
}

.cs_pricing_cta {
    margin-bottom: 22px;
    text-align: center;
}

.cs_pricing_features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 16px;
}

.cs_pricing_features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dark-font-color);
    line-height: 1.5;
}

.cs_pricing_features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    background-image: linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.05) 50%);
}

.cs_pricing_features li::after {
    content: '\2713';
    position: absolute;
    left: 3px;
    top: 4px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- TCA feature card (about page etc.) ---------- */

.cs_tca_feature {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(13, 80, 78, 0.06);
}

.cs_tca_feature_img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--light-grey-color);
}

.cs_tca_feature_body {
    padding: 24px 26px 26px;
}

.cs_tca_feature_label {
    color: var(--primary-color-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 12px;
    margin: 0 0 8px;
}

.cs_tca_feature_body p {
    margin: 0 0 14px;
    color: var(--mid-grey-color);
    line-height: 1.55;
}

/* ---------- Long-form prose (legal, about) ---------- */

.cs_prose {
    max-width: 720px;
    margin: 0 auto;
}

.cs_prose h2 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.cs_prose h2:first-child { margin-top: 0; }

.cs_prose h3 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.cs_prose p,
.cs_prose ul,
.cs_prose li {
    line-height: 1.65;
    color: #2c3a40;
}

.cs_prose ul {
    margin-top: 0;
}

.cs_prose table.simple {
    margin: 12px 0 24px;
    font-size: 14px;
}

.cs_prose table.simple th {
    font-weight: 600;
    color: var(--mid-grey-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 12px;
}

/* ---------- Leads inbox ---------- */

.cs_leads_layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .cs_leads_layout { grid-template-columns: 1fr; }
}

.cs_leads_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 70vh;
    overflow-y: auto;
}

.cs_lead_row {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--dark-font-color);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cs_lead_row:hover { border-color: var(--primary-color); }
.cs_lead_row.is-open { border-color: var(--primary-color); background: var(--primary-color-soft); }
.cs_lead_row.is-unread { border-left: 3px solid var(--primary-color); }

.cs_lead_meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}

.cs_lead_meta strong { font-weight: 600; }
.cs_lead_meta span { color: var(--mid-grey-color); font-size: 12px; }

.cs_lead_preview {
    color: var(--mid-grey-color);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cs_lead_source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mid-grey-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.cs_lead_dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-left: auto;
}

/* ---------- Match results ---------- */

.cs_match_results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.cs_match_card {
    display: grid;
    grid-template-columns: 24px 88px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
}

.cs_match_card:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color-soft);
}

.cs_match_card input[type="checkbox"] {
    margin: 4px 0 0;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.cs_match_photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: #fff content-box;
    background-clip: content-box;
    box-sizing: border-box;
}

.cs_match_body {
    min-width: 0;
}

.cs_match_name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .cs_match_card { grid-template-columns: 24px 64px 1fr; gap: 12px; padding: 14px; }
    .cs_match_photo { width: 64px; height: 64px; }
}

/* ---------- Profile editor ---------- */

.cs_photo_editor {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 600px) {
    .cs_photo_editor { grid-template-columns: 1fr; }
}

.cs_photo_preview {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    padding: 4px;
    background: #fff content-box;
    background-clip: content-box;
    box-sizing: border-box;
    display: block;
}

.cs_photo_form {
    margin: 0;
}

.cs_niche_picker {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 22px;
}

.cs_niche_picker_group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--mid-grey-color);
    margin: 0 0 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 8px;
}

.cs_niche_picker_group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 3;
    column-gap: 28px;
}

@media (max-width: 720px) {
    .cs_niche_picker_group ul { column-count: 2; }
}

@media (max-width: 420px) {
    .cs_niche_picker_group ul { column-count: 1; }
}

.cs_niche_picker_group li {
    margin: 0 0 6px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.cs_niche_picker_group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: var(--dark-font-color);
    transition: color 0.15s ease;
}

.cs_niche_picker_group label:hover {
    color: var(--primary-color-dark);
}

.cs_niche_picker_group label:has(input:checked) {
    color: var(--primary-color-dark);
    font-weight: 600;
}

.cs_niche_picker_group input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    cursor: pointer;
}

.cs_aside_jumpnav .cs_aside_list a {
    color: var(--mid-grey-color);
    font-size: 14px;
}

.cs_aside_jumpnav .cs_aside_list a:hover {
    color: var(--primary-color-dark);
}

/* ---------- Dashboard setup checklist ---------- */

.cs_setup_header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cs_setup_progress {
    font-size: 13px;
    font-weight: 600;
    color: var(--mid-grey-color);
}

.cs_setup_progressbar {
    height: 6px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: 18px;
}

.cs_setup_progressbar > span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.cs_setup_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs_setup_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin: 0;
    font-size: 15px;
}

.cs_setup_item:last-child { border-bottom: 0; }

.cs_setup_tick {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #C7CCD1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: transparent;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cs_setup_item.is-done .cs_setup_tick {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cs_setup_link {
    color: var(--dark-font-color);
    text-decoration: none;
    flex: 1;
    font-weight: 500;
}

.cs_setup_link:hover { color: var(--primary-color-dark); }

.cs_setup_item.is-done .cs_setup_link {
    color: var(--mid-grey-color);
    text-decoration: line-through;
    text-decoration-color: rgba(0,0,0,0.2);
    font-weight: 400;
}

.cs_setup_complete {
    color: var(--primary-color-dark);
    font-weight: 600;
    margin: 14px 0 0;
}

/* ---------- Billing dashboard ---------- */

.cs_billing_status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cs_billing_status_active   { background: var(--primary-color-soft); color: var(--primary-color-dark); }
.cs_billing_status_comped   { background: #FEF3C7; color: #92400E; }
.cs_billing_status_past_due { background: #FEE2E2; color: #B91C1C; }
.cs_billing_status_canceled { background: #F3F4F6; color: #4B5563; }
.cs_billing_status_none     { background: #F3F4F6; color: #4B5563; }

.cs_billing_meta {
    color: var(--mid-grey-color);
    font-size: 14px;
    margin: 12px 0 22px;
}

/* ---------- Plan picker / register form ---------- */

.cs_plan_picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .cs_plan_picker { grid-template-columns: 1fr; }
}

.cs_plan_option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 16px 44px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
}

.cs_plan_option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #C7CCD1;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cs_plan_option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cs_plan_option:hover {
    border-color: var(--primary-color);
}

.cs_plan_option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-color-soft);
}

.cs_plan_option:has(input:checked)::before {
    border-color: var(--primary-color);
}

.cs_plan_option:has(input:checked)::after {
    opacity: 1;
}

.cs_plan_option input[type="radio"] {
    /* visually hidden — the card is the toggle */
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.cs_plan_option input[type="radio"]:focus-visible + .cs_plan_label {
    outline: 2px solid var(--primary-color);
    outline-offset: 6px;
    border-radius: 4px;
}

.cs_plan_label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.cs_plan_label strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-font-color);
}

.cs_plan_label span {
    font-size: 13px;
    color: var(--mid-grey-color);
}

.cs_field_error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #b91c1c;
    font-size: 13px;
    margin: 8px 0 0;
    font-weight: 600;
    line-height: 1.4;
}

.cs_field_error::before {
    content: '!';
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b91c1c;
    color: #fff;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.cs_field_hint {
    font-size: 13px;
    color: var(--mid-grey-color);
    margin: 6px 0 0;
}

/* ---------- Auth pages ---------- */

.cs_auth_card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(13, 80, 78, 0.04);
}

.cs_auth_error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.cs_auth_notice {
    background: var(--primary-color-soft);
    color: var(--primary-color-dark);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ---------- Footer ---------- */

footer.cs_footer {
    background: var(--dark-grey-color);
    color: var(--light-font-color);
    padding: 56px 0 36px;
    margin-top: 80px;
}

footer.cs_footer h5 {
    color: var(--light-font-color);
    margin-bottom: 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

footer.cs_footer p,
footer.cs_footer li,
footer.cs_footer a {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

footer.cs_footer a:hover { color: var(--light-font-color); }

footer.cs_footer ul {
    padding-left: 0;
    list-style: none;
}

footer.cs_footer ul li { margin-bottom: 8px; }

.cs_footer_brand {
    max-width: 360px;
}

.cs_footer_brand .button { margin-top: 6px; }

.cs_footer_legals p {
    font-size: 12px;
    margin: 0;
    color: rgba(255,255,255,0.5);
}
