/* Completed Deals page */
.fm-deals-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.fm-deals-stat {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(22, 33, 62, 0.08);
    padding: 22px 24px;
}
.fm-deals-stat strong {
    display: block;
    color: #16213e;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}
.fm-deals-stat span {
    color: #6b7488;
    font-size: 0.875rem;
}

.fm-deals-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}
.fm-deals-filter a {
    background: #fff;
    border: 1px solid #dfe4ee;
    border-radius: 999px;
    color: #1f2a44;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 18px;
    text-decoration: none;
}
.fm-deals-filter a:hover { border-color: #0d6efd; color: #0d6efd; }
.fm-deals-filter a.is-active { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.fm-deals-filter a small { font-size: 0.75rem; margin-left: 4px; opacity: 0.75; }

.fm-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
.fm-deal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(22, 33, 62, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* The photo sits over the icon, so a missing file simply shows the icon. */
.fm-deal-media {
    align-items: center;
    background: #eef3fb;
    color: #8fa3c4;
    display: flex;
    font-size: 2.75rem;
    height: 140px;
    justify-content: center;
    position: relative;
}
.fm-deal-photo {
    background-position: center;
    background-size: cover;
    inset: 0;
    position: absolute;
}
.fm-deal-status {
    align-items: center;
    background: #198754;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
    left: 12px;
    padding: 4px 10px;
    position: absolute;
    top: 12px;
}
.fm-deal-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.fm-deal-kind { color: #6b7488; font-size: 0.8125rem; }
.fm-deal-body h3 {
    color: #16213e;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2px 0 14px;
    overflow-wrap: anywhere;
}
.fm-deal-body h3 small { color: #6b7488; display: block; font-size: 0.8125rem; font-weight: 500; margin-top: 2px; }
.fm-deal-facts { display: grid; gap: 8px 14px; grid-template-columns: 1fr 1fr; margin: 0 0 14px; }
.fm-deal-facts dt { color: #6b7488; font-size: 0.75rem; font-weight: 500; }
.fm-deal-facts dd { color: #1f2a44; font-size: 0.875rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.fm-deal-foot {
    align-items: center;
    border-top: 1px solid #eef1f7;
    color: #6b7488;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    gap: 4px 10px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.fm-deals-empty {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(22, 33, 62, 0.08);
    padding: 48px 24px;
    text-align: center;
}
.fm-deals-empty i { color: #8fa3c4; font-size: 3.5rem; }
.fm-deals-empty h3 { color: #16213e; font-weight: 700; margin: 12px 0 6px; }
.fm-deals-note { color: #6b7488; font-size: 0.8125rem; margin: 24px auto 0; max-width: 640px; text-align: center; }

@media (max-width: 575px) {
    .fm-deals-stats { gap: 10px; }
    .fm-deals-stat { padding: 14px 12px; }
    .fm-deals-stat strong { font-size: 1.5rem; }
    .fm-deals-stat span { font-size: 0.75rem; }
}

.fm-hero h1, .fm-hero p { color: #fff; }
