/* Task365 Buy Leads Listing — reference card layout */
.t365-buy-leads,
.t365-buy-leads * { box-sizing: border-box; }

.t365-buy-leads {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 0 64px;
    color: #10213f;
    font-family: inherit;
}

.t365-buy-leads__header { margin: 0 0 24px; }
.t365-buy-leads__header h2 {
    margin: 0 0 8px;
    color: #10213f;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -1.2px;
}
.t365-buy-leads__header p {
    margin: 0;
    color: #526887;
    font-size: 16px;
    line-height: 1.55;
}

.t365-buy-leads__filters {
    display: grid;
    grid-template-columns: minmax(210px, 230px) minmax(210px, 230px) 1fr;
    align-items: end;
    gap: 12px;
    margin: 0 0 12px;
}
.t365-filter { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t365-filter > span {
    color: #10213f;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 650;
}
.t365-filter select {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 38px 0 14px;
    border: 1px solid #d5e0f2;
    border-radius: 10px;
    background-color: #fff;
    color: #10213f;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
    outline: none;
}
.t365-filter select:focus {
    border-color: #9bb5ff;
    box-shadow: 0 0 0 3px rgba(37, 83, 239, .09);
}
.t365-results-count {
    justify-self: end;
    align-self: center;
    padding: 0 2px 8px;
    color: #526887;
    font-size: 14px;
}
.t365-leads-count { display: none; }

.t365-leads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
.t365-lead-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 264px;
    padding: 18px 17px 16px;
    border: 1px solid #d9e3f2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 9px rgba(16, 33, 63, .035);
    color: #10213f;
}
.t365-lead-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 13px;
}
.t365-lead-card__category {
    color: #174cf5;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}
.t365-lead-card__date {
    flex: 0 0 auto;
    color: #61738f;
    font-size: 13px;
    white-space: nowrap;
}
.t365-lead-card__title {
    margin: 0 0 10px;
    color: #101e38;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.35px;
}
.t365-lead-card__location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    color: #526887;
    font-size: 14px;
    line-height: 1.4;
}
.t365-lead-card__location i { color: #617895; font-size: 13px; }
.t365-lead-card__budget {
    margin: 0 0 14px;
    color: #526887;
    font-size: 14px;
    line-height: 1.45;
}
.t365-lead-card__budget strong { color: #344b6d; font-weight: 750; }
.t365-lead-card__divider {
    height: 1px;
    width: 100%;
    margin: auto 0 10px;
    background: #e7edf6;
}
.t365-lead-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 13px;
}
.t365-lead-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 7px;
    background: #edf2ff;
    color: #174cf5;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}
.t365-lead-card__badge.is-sold-out {
    background: #f0f2f5;
    color: #53647c;
}
.t365-lead-card__slots {
    color: #526887;
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
}
.t365-lead-card__action { margin-top: auto; }
.t365-lead-card__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px !important;
    border: 1px solid #254fe9 !important;
    border-radius: 12px !important;
    background: #254fe9 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 750 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 12px rgba(37, 79, 233, .15);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.t365-lead-card__button:hover {
    background: #173fd0 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(37, 79, 233, .2);
}
.t365-lead-card__button--secondary {
    background: #fff !important;
    color: #10213f !important;
    border-color: #d5e0f2 !important;
    box-shadow: none;
}
.t365-lead-card__button--secondary:hover {
    background: #f7f9fd !important;
    color: #10213f !important;
}
.t365-leads-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
}
.t365-page-button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d5e0f2;
    border-radius: 9px;
    background: #fff;
    color: #254fe9;
    font: inherit;
    cursor: pointer;
}
.t365-page-button.is-active { background: #254fe9; border-color: #254fe9; color: #fff; }
.t365-leads-empty,
.t365-leads-status {
    color: #526887;
    font-size: 14px;
}
.t365-leads-empty {
    padding: 28px;
    border: 1px solid #d9e3f2;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.t365-leads-status { margin-top: 10px; }

@media (max-width: 980px) {
    .t365-buy-leads { max-width: 760px; padding: 32px 18px 50px; }
    .t365-leads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .t365-buy-leads { padding: 26px 14px 42px; }
    .t365-buy-leads__filters { grid-template-columns: 1fr; gap: 12px; }
    .t365-results-count { justify-self: start; padding: 3px 0 0; }
    .t365-leads-grid { grid-template-columns: 1fr; gap: 13px; }
    .t365-lead-card { min-height: 0; padding: 17px 15px; }
    .t365-lead-card__title { font-size: 17px; }
}
