/* ============================================================================
 * ECA v4 — /people/ page redesign
 * Hero + filters sidebar + card grid for all 4 views (find, friend_requests, sent)
 * ========================================================================== */

/* ---------- page wrap --------------------------------------------------- */
.eca-pp-page { padding-bottom: 40px; }

/* ---------- hero -------------------------------------------------------- */
.eca-pp-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
body.night-mode .eca-pp-hero {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

.eca-pp-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eca-pp-hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #1d2129;
    letter-spacing: -0.02em;
}
body.night-mode .eca-pp-hero-title { color: #e4e6eb; }

.eca-pp-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eaf3ee;
    color: #2e6b4d;
    flex-shrink: 0;
}
body.night-mode .eca-pp-hero-icon { background: #1f2f26; color: #6fae89; }

.eca-pp-hero-subtitle {
    margin: 0;
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}
body.night-mode .eca-pp-hero-subtitle { color: #b0b3b8; }

.eca-pp-hero-illustration {
    flex: 0 0 360px;
    max-width: 360px;
    height: 130px;
    pointer-events: none;
}
.eca-pp-hero-illustration svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 991.98px) {
    .eca-pp-hero { padding: 22px 22px; }
    .eca-pp-hero-illustration { flex: 0 0 240px; max-width: 240px; height: 110px; }
}
@media (max-width: 767.98px) {
    .eca-pp-hero {
        padding: 20px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .eca-pp-hero-title { font-size: 24px; }
    .eca-pp-hero-icon { width: 38px; height: 38px; }
    .eca-pp-hero-illustration {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 90px;
        opacity: 0.7;
    }
}

/* ---------- tabs row tweaks --------------------------------------------- */
.eca-pp-tabs { margin-bottom: 16px; }

/* ---------- row gap ----------------------------------------------------- */
.eca-pp-row > [class*="col-"] { margin-bottom: 16px; }

/* ---------- filters sidebar -------------------------------------------- */
.eca-pp-filters {
    padding: 18px 18px 20px !important;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6e8ec;
}
body.night-mode .eca-pp-filters {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

.eca-pp-filters-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e6e8ec;
    color: #1d2129;
}
.eca-pp-filters-head b {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.eca-pp-filters-head svg { color: #2e6b4d; }
body.night-mode .eca-pp-filters-head { color: #e4e6eb; border-bottom-color: #2a2a2a; }
body.night-mode .eca-pp-filters-head svg { color: #6fae89; }

/* pill input */
.eca-pp-field-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 42px;
    border: 1px solid #e0e3e8;
    border-radius: 999px;
    background: #f7f8fa;
    margin-bottom: 10px;
    transition: border-color 0.15s, background 0.15s;
}
.eca-pp-field-pill:focus-within {
    border-color: #2e6b4d;
    background: #fff;
}
.eca-pp-field-pill svg { color: #65676b; flex-shrink: 0; }
.eca-pp-field-pill input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1d2129;
    min-width: 0;
}
.eca-pp-field-pill input::placeholder { color: #8a8d91; }
body.night-mode .eca-pp-field-pill {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
body.night-mode .eca-pp-field-pill:focus-within {
    background: #262626;
    border-color: #6fae89;
}
body.night-mode .eca-pp-field-pill input { color: #e4e6eb; }
body.night-mode .eca-pp-field-pill input::placeholder { color: #8a8d91; }

/* select pill */
.eca-pp-field-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 42px;
    border: 1px solid #e0e3e8;
    border-radius: 999px;
    background: #f7f8fa;
    margin-bottom: 10px;
    position: relative;
}
.eca-pp-field-select:focus-within {
    border-color: #2e6b4d;
    background: #fff;
}
.eca-pp-field-select svg { color: #65676b; flex-shrink: 0; }
.eca-pp-field-select select {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1d2129;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2365676b' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
body.night-mode .eca-pp-field-select {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
body.night-mode .eca-pp-field-select select { color: #e4e6eb; }
body.night-mode .eca-pp-field-select select option { background: #2a2a2a; color: #e4e6eb; }

/* range field */
.eca-pp-field-range {
    padding: 12px 0 4px;
    margin-bottom: 10px;
}
.eca-pp-field-range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #65676b;
    margin-bottom: 6px;
    font-weight: 500;
}
.eca-pp-field-range-value {
    color: #2e6b4d;
    font-weight: 600;
    font-size: 13px;
}
body.night-mode .eca-pp-field-range-label { color: #b0b3b8; }
body.night-mode .eca-pp-field-range-value { color: #6fae89; }

.eca-pp-range {
    width: 100%;
    accent-color: #2e6b4d;
}
.eca-pp-range::-webkit-slider-thumb { background: #2e6b4d; }
.eca-pp-range::-moz-range-thumb { background: #2e6b4d; }

.eca-pp-range-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8a8d91;
    margin-top: 4px;
}

/* generic field */
.eca-pp-field {
    margin-bottom: 14px;
}
.eca-pp-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    margin-bottom: 8px;
}
body.night-mode .eca-pp-field-label { color: #b0b3b8; }

/* pill group (gender) */
.eca-pp-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.eca-pp-pill-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.eca-pp-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #e0e3e8;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}
.eca-pp-pill:hover { border-color: #2e6b4d; color: #2e6b4d; }
.eca-pp-pill-group input[type="radio"]:checked + .eca-pp-pill {
    background: #2e6b4d;
    border-color: #2e6b4d;
    color: #fff;
}
body.night-mode .eca-pp-pill {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #c0c0c0;
}
body.night-mode .eca-pp-pill:hover { color: #6fae89; border-color: #6fae89; }

/* more filters toggle */
.eca-pp-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    color: #2e6b4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}
.eca-pp-more-toggle:hover { color: #1f4f37; }
body.night-mode .eca-pp-more-toggle { color: #6fae89; }

.eca-pp-more {
    padding-top: 6px;
}

/* submit (orange CTA from mockup) */
.eca-pp-submit {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4a017 0%, #c8901a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s;
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.25);
}
.eca-pp-submit:hover { filter: brightness(1.05); }
.eca-pp-submit:active { transform: translateY(1px); }

/* ---------- results panel ---------------------------------------------- */
.eca-pp-results {
    padding: 18px 18px 22px !important;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6e8ec;
}
body.night-mode .eca-pp-results {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

.eca-pp-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e6e8ec;
}
body.night-mode .eca-pp-results-head { border-bottom-color: #2a2a2a; }

.eca-pp-results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #1d2129;
}
.eca-pp-results-title b {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eca-pp-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf3ee;
    color: #2e6b4d;
    flex-shrink: 0;
}
body.night-mode .eca-pp-results-title { color: #e4e6eb; }
body.night-mode .eca-pp-results-icon { background: #1f2f26; color: #6fae89; }

.eca-pp-results-link {
    font-size: 13px;
    font-weight: 600;
    color: #2e6b4d;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.eca-pp-results-link:hover { color: #1f4f37; }
body.night-mode .eca-pp-results-link { color: #6fae89; }

/* ---------- card grid -------------------------------------------------- */
.eca-pp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 1199.98px) {
    .eca-pp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .eca-pp-grid { grid-template-columns: 1fr; gap: 12px; }
}

.eca-pp-card-item { list-style: none; }

/* ---------- card ------------------------------------------------------- */
.eca-pp-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 22px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    height: 100%;
}
.eca-pp-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d0dbd3;
}
body.night-mode .eca-pp-card {
    background: #262626;
    border-color: #3a3a3a;
}
body.night-mode .eca-pp-card:hover { border-color: #4a5d51; }

/* avatar with online dot */
.eca-pp-card-avatar-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 12px;
}
.eca-pp-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f2f5;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
body.night-mode .eca-pp-card-avatar { border-color: #262626; }

.eca-pp-card-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #31a24c;
    border: 3px solid #fff;
    box-sizing: border-box;
}
body.night-mode .eca-pp-card-dot { border-color: #262626; }

/* name */
.eca-pp-card-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2129;
    line-height: 1.3;
    max-width: 100%;
    margin-bottom: 6px;
}
.eca-pp-card-name a {
    color: inherit !important;
    text-decoration: none !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eca-pp-card-name a:hover { text-decoration: underline !important; }
.eca-pp-card-name .verified-color svg { flex-shrink: 0; }
body.night-mode .eca-pp-card-name { color: #e4e6eb; }

/* meta rows (job, company, location) */
.eca-pp-card-meta {
    font-size: 13px;
    color: #65676b;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}
.eca-pp-card-job { color: #1d2129; font-weight: 500; }
.eca-pp-card-company { color: #65676b; }
.eca-pp-card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #65676b;
}
.eca-pp-card-location svg { flex-shrink: 0; color: #2e6b4d; }
.eca-pp-card-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.night-mode .eca-pp-card-job { color: #e4e6eb; }
body.night-mode .eca-pp-card-meta { color: #b0b3b8; }
body.night-mode .eca-pp-card-location svg { color: #6fae89; }

/* mutual friends pill */
.eca-pp-card-mutual {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eaf3ee;
    color: #2e6b4d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    max-width: 100%;
    line-height: 1;
}
.eca-pp-card-mutual:hover { background: #d8e8de; }
.eca-pp-card-mutual svg { flex-shrink: 0; }
.eca-pp-card-mutual span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.night-mode .eca-pp-card-mutual { background: #1f2f26; color: #6fae89; }
body.night-mode .eca-pp-card-mutual:hover { background: #2a3d33; }

/* action buttons */
.eca-pp-card-action {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.eca-pp-card-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    padding: 0 14px !important;
    border: 1.5px solid #2e6b4d !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #2e6b4d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.eca-pp-card-btn:hover,
.eca-pp-card-btn:focus {
    background: #2e6b4d !important;
    color: #fff !important;
}
.eca-pp-card-btn-primary {
    background: #2e6b4d !important;
    color: #fff !important;
}
.eca-pp-card-btn-primary:hover,
.eca-pp-card-btn-primary:focus {
    background: #1f4f37 !important;
    border-color: #1f4f37 !important;
}
.eca-pp-card-btn svg { flex-shrink: 0; }
body.night-mode .eca-pp-card-btn {
    background: transparent !important;
    color: #6fae89 !important;
    border-color: #6fae89 !important;
}
body.night-mode .eca-pp-card-btn:hover,
body.night-mode .eca-pp-card-btn:focus {
    background: #2e6b4d !important;
    color: #fff !important;
}
body.night-mode .eca-pp-card-btn-primary {
    background: #2e6b4d !important;
    color: #fff !important;
}

/* ---------- see more + empty ------------------------------------------ */
.eca-pp-see-more {
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #e6e8ec;
    background: #f7f8fa;
    color: #2e6b4d;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.eca-pp-see-more:hover { background: #eaf3ee; }
body.night-mode .eca-pp-see-more {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #6fae89;
}

.eca-pp-empty {
    padding: 40px 20px;
    color: #8a8d91;
}
.eca-pp-empty svg { color: #c0c4cc; margin-bottom: 12px; }
.eca-pp-empty p { margin: 0; font-size: 14px; }
body.night-mode .eca-pp-empty svg { color: #4a4d52; }
