/* ================================================================
   BuyMyProjectCar – Frontend Styles
   Dark theme with red accent
================================================================ */

:root {
    --bmp-bg:          #0f0f0f;
    --bmp-card:        #1a1a1a;
    --bmp-card-2:      #222222;
    --bmp-border:      #2d2d2d;
    --bmp-border-2:    #3a3a3a;
    --bmp-red:         #c0392b;
    --bmp-red-hover:   #a93226;
    --bmp-red-light:   rgba(192,57,43,0.15);
    --bmp-text:        #f0f0f0;
    --bmp-muted:       #888888;
    --bmp-input-bg:    #1e1e1e;
    --bmp-radius:      8px;
    --bmp-radius-sm:   4px;
    --bmp-shadow:      0 4px 24px rgba(0,0,0,0.5);
    --bmp-font:        "Exo 2", sans-serif;
}

/* ── Base wrapper ── */
.bmp-wrap {
    font-family: var(--bmp-font);
    color: var(--bmp-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ── Card ── */
.bmp-card {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    padding: 40px;
    box-shadow: var(--bmp-shadow);
}
.bmp-register-card,
.bmp-login-card {
    max-width: 520px;
    margin: 0 auto;
}
.bmp-submit-card {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Typography ── */
.bmp-card h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bmp-text);
}
.bmp-sub {
    color: var(--bmp-muted);
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Steps progress bar ── */
.bmp-steps-bar {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--bmp-border);
    padding-bottom: 20px;
}
.bmp-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bmp-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.bmp-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bmp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.bmp-step.active {
    color: var(--bmp-text);
}
.bmp-step.active span {
    background: var(--bmp-red);
    color: #fff;
}
.bmp-step.completed span {
    background: #27ae60;
    color: #fff;
}
.bmp-step.completed {
    color: #27ae60;
}

/* ── Form steps ── */
.bmp-form-step { display: none; }
.bmp-form-step.active { display: block; }

/* ── Form fields ── */
.bmp-field {
    margin-bottom: 20px;
}
.bmp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bmp-text);
    margin-bottom: 6px;
}
.bmp-field label small {
    font-weight: 400;
    color: var(--bmp-muted);
}
.bmp-field input[type="text"],
.bmp-field input[type="email"],
.bmp-field input[type="password"],
.bmp-field input[type="number"],
.bmp-field input[type="tel"],
.bmp-field select,
.bmp-field textarea {
    width: 100%;
    background: var(--bmp-input-bg);
    border: 1px solid var(--bmp-border-2);
    border-radius: var(--bmp-radius-sm);
    color: var(--bmp-text);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--bmp-font);
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.bmp-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.bmp-field input:focus,
.bmp-field select:focus,
.bmp-field textarea:focus {
    outline: none;
    background: var(--bmp-input-bg);
    border-color: var(--bmp-red);
    box-shadow: 0 0 0 3px var(--bmp-red-light);
    color: var(--bmp-text);
}
.bmp-field textarea {
    resize: vertical;
    min-height: 100px;
}
.bmp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Stripe element ── */
.bmp-stripe-element {
    background: var(--bmp-input-bg);
    border: 1px solid var(--bmp-border-2);
    border-radius: var(--bmp-radius-sm);
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.bmp-stripe-element--focus {
    border-color: var(--bmp-red);
    box-shadow: 0 0 0 3px var(--bmp-red-light);
}

/* ── Buttons ── */
.bmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: var(--bmp-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--bmp-font);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.bmp-btn:active { transform: scale(0.98); }
.bmp-btn-primary {
    background: var(--bmp-red);
    color: #fff;
}
.bmp-btn-primary:hover {
    background: var(--bmp-red-hover);
    color: #fff;
}
.bmp-btn-ghost {
    background: transparent;
    color: var(--bmp-muted);
    border: 1px solid var(--bmp-border-2);
}
.bmp-btn-ghost:hover {
    border-color: var(--bmp-text);
    color: var(--bmp-text);
}
.bmp-btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
    background: var(--bmp-red);
    color: #fff;
}
.bmp-btn-sm:hover { background: var(--bmp-red-hover); color:#fff; }
.bmp-btn-search {
    width: 100%;
}

/* ── Step nav ── */
.bmp-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--bmp-border);
    gap: 12px;
}
.bmp-step-nav > div { display: flex; gap: 10px; }

/* ── Alerts ── */
.bmp-alert {
    padding: 12px 16px;
    border-radius: var(--bmp-radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.bmp-alert-error {
    background: rgba(192,57,43,0.15);
    border: 1px solid var(--bmp-red);
    color: #ff6b6b;
}
.bmp-alert-success {
    background: rgba(39,174,96,0.15);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

/* ── Notice ── */
.bmp-notice {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
    padding: 16px 20px;
    color: var(--bmp-text);
    font-family: var(--bmp-font);
}
.bmp-notice a { color: var(--bmp-red); }

/* ── Login link ── */
.bmp-login-link {
    text-align: center;
    color: var(--bmp-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}
.bmp-login-link a { color: var(--bmp-red); text-decoration: none; }

/* ── Checkbox ── */
.bmp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bmp-text);
    margin: 20px 0;
}
.bmp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bmp-red);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Upload zone ── */
.bmp-upload-zone {
    border: 2px dashed var(--bmp-border-2);
    border-radius: var(--bmp-radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bmp-input-bg);
}
.bmp-upload-zone:hover,
.bmp-upload-zone.bmp-drag-over {
    border-color: var(--bmp-red);
    background: var(--bmp-red-light);
}
.bmp-upload-icon {
    margin-bottom: 10px;
    color: var(--bmp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bmp-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.bmp-gallery-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: var(--bmp-radius-sm);
    overflow: hidden;
    border: 2px solid var(--bmp-border-2);
}
.bmp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bmp-gallery-thumb .bmp-remove-photo {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: var(--bmp-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    border: none;
}
.bmp-gallery-thumb .bmp-uploading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}

/* ── Review summary ── */
.bmp-review-summary {
    background: var(--bmp-card-2);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}
.bmp-review-summary table {
    width: 100%;
    border-collapse: collapse;
}
.bmp-review-summary td {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bmp-border);
    vertical-align: top;
}
.bmp-review-summary td:first-child {
    color: var(--bmp-muted);
    width: 140px;
    font-weight: 500;
}

/* ── Success state ── */
.bmp-success-icon {
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
#bmp-reg-step-success h2 { text-align:center; }
#bmp-reg-step-success p { text-align:center; color:var(--bmp-muted); }

/* ================================================================
   DASHBOARD – full-page shell
================================================================ */
.bmp-db-shell {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
    font-family: var(--bmp-font);
    color: var(--bmp-text);
}

/* ── Sidebar ── */
.bmp-db-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bmp-card);
    border-right: 1px solid var(--bmp-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.bmp-db-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--bmp-border);
}
.bmp-avatar-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--bmp-border-2);
}
.bmp-db-user-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bmp-text);
}
.bmp-db-user-info span {
    display: block;
    font-size: 0.72rem;
    color: var(--bmp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bmp-db-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bmp-db-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bmp-muted);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    font-family: var(--bmp-font);
    width: 100%;
    text-align: left;
}
.bmp-db-nav-item svg { flex-shrink: 0; }
.bmp-db-nav-item:hover { background: var(--bmp-card-2); color: var(--bmp-text); }
.bmp-db-nav-item.active { background: var(--bmp-red-light); color: var(--bmp-red); }
.bmp-db-count {
    margin-left: auto;
    background: var(--bmp-border-2);
    color: var(--bmp-muted);
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}
.bmp-db-nav-item.active .bmp-db-count { background: var(--bmp-red); color: #fff; }
.bmp-db-sidebar-foot { padding: 12px; border-top: 1px solid var(--bmp-border); }
.bmp-db-logout { color: var(--bmp-muted) !important; }
.bmp-db-logout:hover { color: #e74c3c !important; background: rgba(192,57,43,0.1) !important; }

/* ── Main area ── */
.bmp-db-main { flex: 1; min-width: 0; overflow-x: hidden; }
.bmp-db-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 36px 0;
    margin-bottom: 28px;
}
.bmp-db-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; }
.bmp-db-subtitle { color: var(--bmp-muted); font-size: 0.88rem; margin: 0; }

/* ── Stat cards ── */
.bmp-db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 36px;
    margin-bottom: 32px;
}
.bmp-stat-card {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.bmp-stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--bmp-red-light);
    color: var(--bmp-red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bmp-stat-green  { background: rgba(39,174,96,0.15);  color: #2ecc71; }
.bmp-stat-yellow { background: rgba(241,196,15,0.15); color: #f1c40f; }
.bmp-stat-num { font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.bmp-stat-label { font-size: 0.78rem; color: var(--bmp-muted); font-weight: 500; }

/* ── Sections ── */
.bmp-db-section {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    margin: 0 36px 24px;
    overflow: hidden;
}
.bmp-db-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--bmp-border);
}
.bmp-db-section-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.bmp-db-section-danger { border-color: rgba(192,57,43,0.3); }
.bmp-link { font-size: 0.82rem; color: var(--bmp-red); text-decoration: none; }
.bmp-link:hover { text-decoration: underline; }

/* ── Projects table ── */
.bmp-proj-table { width: 100%; }
.bmp-proj-head,
.bmp-proj-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr 1.6fr;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.83rem;
}
.bmp-proj-head {
    background: #161616;
    color: var(--bmp-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bmp-proj-row { border-top: 1px solid var(--bmp-border); transition: background 0.15s; }
.bmp-proj-row:hover { background: #1e1e1e; }
.bmp-proj-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bmp-proj-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bmp-mini-thumb {
    width: 40px; height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}
.bmp-mini-placeholder {
    width: 40px; height: 36px;
    background: var(--bmp-card-2);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.bmp-proj-cat, .bmp-proj-date { color: var(--bmp-muted); }
.bmp-proj-price { font-weight: 600; }
.bmp-proj-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bmp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--bmp-font);
    color: var(--bmp-muted);
    background: var(--bmp-card-2);
    border: 1px solid var(--bmp-border-2);
    border-radius: 4px;
    padding: 4px 9px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}
.bmp-action-btn:hover { color: var(--bmp-text); border-color: #555; background: #252525; }
.bmp-action-delete:hover { color: var(--bmp-red) !important; border-color: var(--bmp-red) !important; }

/* ── Badges ── */
.bmp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bmp-badge-publish, .bmp-badge-Published { background: rgba(39,174,96,0.15); color: #2ecc71; }
.bmp-badge-draft    { background: rgba(128,128,128,0.15); color: #aaa; }
.bmp-badge-pending  { background: rgba(241,196,15,0.15);  color: #f1c40f; }

/* ── Empty state ── */
.bmp-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.bmp-empty-sm { padding: 40px 20px; }
.bmp-empty-icon { margin-bottom: 12px; color: var(--bmp-muted); display: flex; align-items: center; justify-content: center; }
.bmp-empty-state h3 { margin: 0 0 8px; font-size: 1.2rem; }
.bmp-empty-state p { color: var(--bmp-muted); margin-bottom: 20px; }

/* ── Settings ── */
.bmp-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 24px 0;
}
.bmp-settings-full { grid-column: 1 / -1; }
.bmp-db-section .bmp-field { margin-bottom: 0; }
.bmp-db-section .bmp-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bmp-text);
    margin-bottom: 6px;
    font-family: var(--bmp-font);
}
.bmp-db-section .bmp-field input {
    width: 100%;
    background: var(--bmp-input-bg);
    border: 1px solid var(--bmp-border-2);
    border-radius: var(--bmp-radius-sm);
    color: var(--bmp-text);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--bmp-font);
    box-sizing: border-box;
}
.bmp-db-section .bmp-field input:focus {
    outline: none;
    background: var(--bmp-input-bg);
    border-color: var(--bmp-red);
    box-shadow: 0 0 0 3px var(--bmp-red-light);
    color: var(--bmp-text);
}
.bmp-db-section > .bmp-btn { margin: 20px 24px 24px; }
.bmp-db-section .bmp-db-subtitle { padding: 16px 24px; margin: 0; }

/* ================================================================
   SEARCH PAGE WRAPPER
================================================================ */
.bmp-search-wrap {
    font-family: var(--bmp-font);
    color: var(--bmp-text);
    margin: 0 auto;
}

/* ── Single-row search bar ── */
.bmp-searchbar {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    padding: 10px 10px 10px 18px;
    margin-bottom: 36px;
    box-shadow: var(--bmp-shadow);
}
.bmp-searchbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 48px;
}

/* Keyword field */
.bmp-sb-keyword {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}
.bmp-sb-icon {
    color: var(--bmp-muted);
    flex-shrink: 0;
}
.bmp-sb-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--bmp-text);
    font-size: 0.95rem;
    font-family: var(--bmp-font);
    width: 100%;
    padding: 0;
}
.bmp-sb-input::placeholder { color: var(--bmp-muted); }

/* Dividers */
.bmp-sb-divider {
    width: 1px;
    height: 28px;
    background: var(--bmp-border-2);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Select wraps */
.bmp-sb-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bmp-sb-select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--bmp-text);
    font-size: 0.9rem;
    font-family: var(--bmp-font);
    padding: 8px 32px 8px 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
}
.bmp-sb-select option { background: var(--bmp-card); color: var(--bmp-text); }
.bmp-sb-caret {
    position: absolute;
    right: 10px;
    color: var(--bmp-muted);
    pointer-events: none;
}

/* Search button */
.bmp-sb-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bmp-red);
    color: #fff;
    border: none;
    border-radius: var(--bmp-radius-sm);
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--bmp-font);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.2s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.bmp-sb-btn:hover { background: var(--bmp-red-hover); }

/* Results meta */
.bmp-results-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--bmp-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.bmp-clear-filters {
    color: var(--bmp-muted);
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid var(--bmp-border-2);
    border-radius: 20px;
    padding: 3px 10px;
    transition: color 0.2s, border-color 0.2s;
}
.bmp-clear-filters:hover { color: var(--bmp-text); border-color: var(--bmp-text); }

/* ── Listings grid ── */
.bmp-grid-listings {
    display: grid;
	grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ── Listing card ── */
.bmp-listing-card {
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.bmp-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

/* Image wrap */
.bmp-listing-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    text-decoration: none;
    background: var(--bmp-card-2);
}
.bmp-listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bmp-listing-card:hover .bmp-listing-img { transform: scale(1.04); }
.bmp-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
}

/* Status badge on image */
.bmp-listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: none;
    padding: 4px 10px;
    border-radius: 3px;
    line-height: 1.4;
    pointer-events: none;
}
.bmp-badge-avail    { background: var(--bmp-red);   color: #fff; }
.bmp-badge-reserved { background: #b8860b;           color: #fff; }
.bmp-badge-sold     { background: #333;              color: #aaa; }
.bmp-badge-cat      { background: rgba(0,0,0,0.75);  color: #fff; border: 1px solid rgba(255,255,255,0.15); }

/* Card body */
.bmp-listing-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title + price on same line */
.bmp-listing-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.bmp-listing-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}
.bmp-listing-title a {
    color: var(--bmp-text);
    text-decoration: none;
}
.bmp-listing-title a:hover { color: var(--bmp-red); }
.bmp-listing-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bmp-text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Short reason/subtitle */
.bmp-listing-reason {
    color: var(--bmp-muted);
    font-size: 0.8rem;
    margin: 2px 0 8px;
}

/* Excerpt */
.bmp-listing-excerpt {
    color: #999;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags row + view button */
.bmp-listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--bmp-border);
}
.bmp-listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.bmp-tag {
    display: inline-block;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #bbb;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.6;
}
.bmp-tag-view {
    background: var(--bmp-red);
    border-color: var(--bmp-red);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.bmp-tag-view:hover { background: var(--bmp-red-hover); border-color: var(--bmp-red-hover); color: #fff; }

/* ── Quote button / modal ── */
.bmp-btn-quote {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bmp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bmp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    cursor: pointer;
}
.bmp-modal-box {
    position: relative;
    background: var(--bmp-card);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--bmp-shadow);
    max-height: 90vh;
    overflow-y: auto;
}
.bmp-modal-box h3 { margin: 0 0 6px; font-size: 1.3rem; }
.bmp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--bmp-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.bmp-modal-close:hover { color: var(--bmp-text); }
.bmp-modal-box .bmp-field { margin-bottom: 16px; }
.bmp-modal-box .bmp-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bmp-text);
    margin-bottom: 5px;
    font-family: var(--bmp-font);
}
.bmp-modal-box .bmp-field input,
.bmp-modal-box .bmp-field textarea {
    width: 100%;
    background: var(--bmp-input-bg);
    border: 1px solid var(--bmp-border-2);
    border-radius: var(--bmp-radius-sm);
    color: var(--bmp-text);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--bmp-font);
    box-sizing: border-box;
}
.bmp-modal-box .bmp-field input:focus,
.bmp-modal-box .bmp-field textarea:focus {
    outline: none;
    background: var(--bmp-input-bg);
    border-color: var(--bmp-red);
    box-shadow: 0 0 0 3px var(--bmp-red-light);
    color: var(--bmp-text);
}
.bmp-modal-box .bmp-field textarea { resize: vertical; min-height: 90px; }
.bmp-modal-box .bmp-btn { width: 100%; }

/* ── Spinner ── */
.bmp-spinner { opacity: 0.7; }

/* ── Add New sidebar button ── */
.bmp-db-sidebar-add {
    padding: 0 12px 8px;
}
.bmp-btn-addnew {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* ── Mobile menu toggle ── */
.bmp-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--bmp-border-2);
    border-radius: 6px;
    color: var(--bmp-muted);
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}
.bmp-menu-toggle:hover { color: var(--bmp-text); border-color: #555; }
.bmp-toggle-close { display: none; }
.bmp-menu-toggle[aria-expanded="true"] .bmp-toggle-open  { display: none; }
.bmp-menu-toggle[aria-expanded="true"] .bmp-toggle-close { display: block; }

/* Desktop: nav-wrap always visible */
.bmp-db-nav-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .bmp-db-shell { flex-direction: column; }
    .bmp-db-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid var(--bmp-border);
    }
    .bmp-db-user {
        border-bottom: none;
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .bmp-menu-toggle { display: flex; }

    /* Nav wrap hidden by default on mobile, shown when open */
    .bmp-db-nav-wrap {
        display: none;
        border-top: 1px solid var(--bmp-border);
        overflow: hidden;
    }
    .bmp-db-nav-wrap.open { display: flex; }

    .bmp-db-nav { flex-direction: column; padding: 8px 12px; gap: 2px; }
    .bmp-db-nav-item { padding: 10px 12px; white-space: nowrap; }
    .bmp-db-sidebar-add { padding: 4px 12px 8px; }
    .bmp-db-sidebar-foot { padding: 8px 12px 12px; border-top: 1px solid var(--bmp-border); }
    .bmp-db-topbar { padding: 20px 20px 0; }
    .bmp-db-stats { padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
    .bmp-db-section { margin: 0 20px 20px; }
    .bmp-proj-head,
    .bmp-proj-row { grid-template-columns: 2fr 1fr 1fr; padding: 10px 16px; }
    .bmp-proj-row > span:nth-child(3),
    .bmp-proj-row > span:nth-child(5),
    .bmp-proj-head > span:nth-child(3),
    .bmp-proj-head > span:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
    .bmp-card { padding: 24px 20px; }
    .bmp-grid-2 { grid-template-columns: 1fr; }
    .bmp-db-stats { grid-template-columns: 1fr 1fr; }
    .bmp-settings-grid { grid-template-columns: 1fr; }
    .bmp-searchbar { padding: 8px; }
    .bmp-searchbar-inner { flex-wrap: wrap; gap: 6px; }
    .bmp-sb-keyword { flex: 1 1 100%; }
    .bmp-sb-divider { display: none; }
    .bmp-sb-select-wrap { flex: 1 1 calc(50% - 6px); }
    .bmp-sb-select-wrap:last-of-type { flex: 1 1 100%; }
    .bmp-sb-btn { flex: 1 1 100%; justify-content: center; margin-left: 0; }
    .bmp-grid-listings { grid-template-columns: 1fr; }
    .bmp-proj-head,
    .bmp-proj-row { grid-template-columns: 1fr 1fr; }
    .bmp-proj-row > span:nth-child(4),
    .bmp-proj-head > span:nth-child(4) { display: none; }
    .bmp-modal-box { padding: 24px 20px; }
}
