/* ========================================================
   HomeInv — Stylesheet matching Electro template DNA
   Font: Montserrat | Primary: #D10024 | Dark: #1E1F29
   ======================================================== */

/* --- BASE --- */
* { box-sizing: border-box; }
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f6f6f6;
}
a { color: #D10024; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #a0001c; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
img { max-width: 100%; }

/* --- TOP HEADER --- */
#top-header {
    background: #1E1F29;
    padding: 8px 0;
    font-size: 12px;
}
.header-links { margin: 0; padding: 0; list-style: none; }
.header-links li { display: inline-block; }
.header-links li a {
    color: #B9BABC;
    padding: 0 12px;
    font-weight: 500;
}
.header-links li a:hover { color: #D10024; }
.header-links li a i { margin-right: 4px; }

/* --- MAIN HEADER --- */
#header {
    background: #15161D;
    padding: 20px 0;
}
.header-logo {
    padding: 8px 0;
}
.header-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.header-logo .logo-text i {
    color: #D10024;
    margin-right: 6px;
}
.header-logo a:hover { color: #fff; text-decoration: none; }

/* --- SEARCH BAR --- */
.header-search {
    position: relative;
    padding: 10px 0;
}
.header-search form {
    position: relative;
    display: flex;
}
.header-search .input-select {
    background: #fff;
    border: none;
    padding: 0 15px;
    height: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    border-radius: 20px 0 0 20px;
    width: 140px;
    flex-shrink: 0;
}
.header-search .input {
    flex: 1;
    height: 40px;
    border: none;
    padding: 0 15px;
    font-size: 13px;
    background: #fff;
}
.header-search .search-btn {
    background: #D10024;
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}
.header-search .search-btn:hover { background: #a0001c; }

/* --- HEADER CTN (icons) --- */
.header-ctn {
    float: right;
    padding: 10px 0;
}
.header-ctn > div {
    display: inline-block;
    margin-left: 8px;
}
.header-ctn > div > a {
    color: #fff;
    text-align: center;
    display: block;
    padding: 5px 10px;
    font-size: 12px;
}
.header-ctn > div > a > i { font-size: 18px; display: block; margin-bottom: 2px; }
.header-ctn > div > a:hover { color: #D10024; }
.header-badge {
    display: inline-block;
    background: #D10024;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    position: relative;
    top: -8px;
    margin-left: -4px;
}

/* --- NAVIGATION --- */
#navigation {
    background: #1E1F29;
    border-bottom: 3px solid #D10024;
}
.main-nav { margin: 0; padding: 0; list-style: none; }
.main-nav li { display: inline-block; }
.main-nav li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s;
}
.main-nav li a:hover, .main-nav li.active a { color: #D10024; }

/* --- SECTIONS --- */
.section { padding: 30px 0; }
.section-title {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}
.section-title .title {
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    margin: 0;
}
.section-title .title::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 2px;
    background: #D10024;
    margin-left: 15px;
    vertical-align: middle;
}

/* --- AUTH PAGES --- */
.auth-section {
    max-width: 450px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.auth-section h2 {
    text-transform: uppercase;
    font-size: 20px;
    margin: 0 0 25px;
    text-align: center;
}
.auth-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #D10024;
    margin: 12px auto 0;
}
.auth-section .form-group { margin-bottom: 18px; }
.auth-section label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
}
.auth-section .form-control {
    height: 42px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 0 20px;
    transition: border-color 0.2s;
}
.auth-section .form-control:focus {
    border-color: #D10024;
    box-shadow: 0 0 0 2px rgba(209,0,36,0.1);
}
.auth-section .btn-primary {
    background: #D10024;
    border: none;
    border-radius: 20px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-section .btn-primary:hover { background: #a0001c; }
.auth-section .auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}
.auth-section .auth-alt a { font-weight: 700; }
.auth-section .alert {
    border-radius: 20px;
    font-size: 13px;
}

/* --- PROFILE PAGE --- */
.profile-section {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 35px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.profile-section h2 {
    text-transform: uppercase;
    font-size: 18px;
    margin: 0 0 25px;
}
.profile-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #D10024;
    margin-top: 10px;
}
.profile-section .form-group { margin-bottom: 16px; }
.profile-section label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 5px;
}
.profile-section .form-control {
    height: 40px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 0 18px;
}
.profile-section .form-control:focus {
    border-color: #D10024;
    box-shadow: 0 0 0 2px rgba(209,0,36,0.1);
}
.profile-section .btn-save-profile {
    background: #D10024;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.profile-section .btn-save-profile:hover { background: #a0001c; }

.location-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.location-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 8px;
}
.location-status.set { background: #e6f9ed; color: #2ea043; }
.location-status.unset { background: #fff3e0; color: #d29922; }

/* Radius selector */
.radius-options {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.radius-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}
.radius-option:hover { border-color: #D10024; }
.radius-option.selected {
    border-color: #D10024;
    background: #fef0f0;
    color: #D10024;
}

/* --- FOOTER --- */
#footer { background: #1E1F29; }
#footer .section { padding: 30px 0; }
.footer-title {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
}
#footer p { color: #B9BABC; font-size: 13px; line-height: 1.6; }
.footer-links { padding: 0; list-style: none; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
    color: #B9BABC;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links li a:hover { color: #D10024; }
.footer-links li a i { margin-right: 6px; width: 14px; text-align: center; }

#bottom-footer {
    background: #15161D;
    padding: 15px 0 !important;
}
.copyright {
    color: #B9BABC;
    font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .header-search .input-select { display: none; }
    .auth-section { margin: 30px 15px; padding: 25px; }
    .profile-section { margin: 20px 15px; padding: 25px; }
}
@media (max-width: 767px) {
    .header-ctn > div > a > span { display: none; }
    .header-ctn > div > a > i { font-size: 22px; }
    .main-nav li a { padding: 10px 12px; font-size: 12px; }
    #responsive-nav { text-align: center; }
    .header-links.pull-right { float: none !important; text-align: center; margin-top: 5px; }
    .header-links.pull-left { float: none !important; text-align: center; }
}

/* --- MENU TOGGLE (mobile) --- */
.menu-toggle { display: none; }
@media (max-width: 767px) {
    .menu-toggle { display: inline-block; }
}

/* ===== PRODUCT CARDS (Electro style) ===== */
.product {
    background: #fff;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.product:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.product-img {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}
.product-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.product-img-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 32px;
}

.product-label {
    position: absolute;
    top: 10px;
    right: 10px;
}
.product-label span {
    display: block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 4px;
}
.product-label .sale { background: #D10024; color: #fff; }
.product-label .new { background: #2ea043; color: #fff; }
.product-label .private { background: #888; color: #fff; }
.product-label .sold { background: #333; color: #fff; }

.product-body { padding: 12px 14px; }

.product-category {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    margin: 0 0 4px;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    max-height: 34px;
    overflow: hidden;
}
.product-name a { color: #333; }
.product-name a:hover { color: #D10024; }

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #D10024;
    margin: 0 0 4px;
}
.product-price.est { color: #888; font-size: 13px; }
.product-price small { font-size: 10px; font-weight: 500; color: #aaa; }

.product-meta {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
}

.product-distance {
    font-size: 11px;
    color: #D10024;
    font-weight: 600;
}
.product-distance i { margin-right: 3px; }

/* Add-to-cart bar (used as action bar) */
.add-to-cart { background: #1E1F29; text-align: center; }
.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.add-to-cart-btn:hover { color: #D10024; }

/* ===== INVENTORY PAGE ===== */
.inv-filters {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.filter-input {
    height: 38px;
    border-radius: 20px !important;
    border: 1px solid #ddd;
    font-size: 13px;
    margin-bottom: 8px;
}
.filter-input:focus { border-color: #D10024; box-shadow: 0 0 0 2px rgba(209,0,36,0.1); }

.inv-scan-btn {
    display: inline-block;
    background: #D10024;
    color: #fff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    transition: background 0.2s;
}
.inv-scan-btn:hover { background: #a0001c; color: #fff; text-decoration: none; }

.inv-status {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* Product actions (inventory cards) */
.product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
.vis-select {
    flex: 1;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    cursor: pointer;
    background: #fff;
}
.vis-select:focus { border-color: #D10024; outline: none; }
.product-del-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    transition: color 0.2s, border-color 0.2s;
}
.product-del-btn:hover { color: #D10024; border-color: #D10024; }
.product-edit-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    transition: color 0.2s, border-color 0.2s;
}
.product-edit-btn:hover { color: #4a90d9; border-color: #4a90d9; }

/* Edit modal form */
#editModal .form-group { margin-bottom: 12px; }
#editModal label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #888;
    margin-bottom: 3px;
}
#editModal .form-control {
    height: 36px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 0 15px;
}
#editModal .form-control:focus {
    border-color: #D10024;
    box-shadow: 0 0 0 2px rgba(209,0,36,0.1);
}

/* Pagination */
.inv-pagination {
    text-align: center;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.inv-total { font-size: 12px; color: #999; font-weight: 600; }
.inv-pages { display: inline-flex; gap: 4px; }
.inv-pages a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}
.inv-pages a:hover { background: #f0f0f0; }
.inv-pages a.active { background: #D10024; color: #fff; border-color: #D10024; }

/* ===== ITEM DETAIL PAGE ===== */
.item-detail-img {
    position: relative;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.item-detail-img img {
    width: 100%;
    display: block;
}
.item-detail-body { padding: 0 0 20px; }
.item-detail-name {
    font-size: 22px;
    text-transform: uppercase;
    margin: 5px 0 15px;
}
.item-detail-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.item-attrs {
    width: 100%;
    margin-bottom: 20px;
    font-size: 13px;
}
.item-attrs tr { border-bottom: 1px solid #eee; }
.item-attrs td { padding: 8px 0; }
.attr-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: #888;
    width: 100px;
    padding-right: 15px;
}

.item-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}
.item-detail-meta i { color: #D10024; margin-right: 4px; }

.item-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.item-action-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.item-action-btn.primary { background: #D10024; color: #fff; }
.item-action-btn.primary:hover { background: #a0001c; color: #fff; text-decoration: none; }
.item-action-btn.secondary { background: #eee; color: #333; }
.item-action-btn.secondary:hover { background: #ddd; color: #333; text-decoration: none; }

/* ===== RESPONSIVE (product grid) ===== */
@media (max-width: 767px) {
    .inv-filters .row > div { margin-bottom: 8px; }
    .inv-scan-btn { width: 100%; text-align: center; margin-top: 4px; }
    .item-detail-name { font-size: 18px; }
    .item-detail-actions { flex-direction: column; }
    .item-action-btn { text-align: center; }
}

/* ===== CONVERSATION LIST ===== */
.convo-list { max-width: 700px; }
.convo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}
.convo-row:hover { background: #fafafa; text-decoration: none; color: #333; }
.convo-row.unread { background: #fef8f0; }
.convo-row:first-child { border-radius: 4px 4px 0 0; }
.convo-row:last-child { border-radius: 0 0 4px 4px; border-bottom: none; }

.convo-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 18px;
}
.convo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.convo-info { flex: 1; min-width: 0; }
.convo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.convo-alias { font-weight: 700; font-size: 13px; }
.convo-role { font-size: 10px; color: #999; text-transform: uppercase; font-weight: 600; }
.convo-item-name { font-size: 12px; color: #555; margin-bottom: 2px; }
.convo-preview { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.convo-meta { text-align: right; flex-shrink: 0; }
.convo-badge {
    display: inline-block;
    background: #D10024;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 4px;
}
.convo-time { display: block; font-size: 11px; color: #999; }

/* ===== CHAT PAGE ===== */
.chat-panel {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 400px;
}

.chat-header {
    background: #1E1F29;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.chat-back { color: #B9BABC; font-size: 18px; }
.chat-back:hover { color: #fff; }
.chat-you { font-size: 11px; color: #B9BABC; margin-left: 4px; }
.convo-role-tag {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f6f6f6;
}

.chat-msg { margin-bottom: 14px; max-width: 80%; }
.chat-msg.mine { margin-left: auto; text-align: right; }
.chat-msg.theirs { margin-right: auto; }
.chat-msg.system { margin: 10px auto; max-width: 90%; text-align: center; }

.msg-alias {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.msg-bubble {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    word-break: break-word;
}
.chat-msg.mine .msg-bubble { background: #D10024; color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg.theirs .msg-bubble { background: #fff; color: #333; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.chat-msg.system .msg-bubble { background: #e8f4fd; color: #555; font-size: 12px; border-radius: 8px; }
.chat-msg.system .msg-bubble i { color: #4a90d9; margin-right: 4px; }

.msg-time { display: block; font-size: 10px; color: #bbb; margin-top: 3px; }

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}
.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
}
.chat-input input:focus { border-color: #D10024; }
.chat-input button {
    background: #D10024;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.chat-input button:hover { background: #a0001c; }

/* ===== CHAT SIDEBAR ===== */
.chat-sidebar-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}
.sidebar-item-img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.sidebar-item-body { padding: 14px; }
.sidebar-item-body h4 { font-size: 14px; margin: 0 0 4px; }

/* ===== ESCROW UI ===== */
.escrow-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0;
}
.escrow-pending  { background: #fff3e0; color: #e65100; }
.escrow-funded   { background: #e8f5e9; color: #2e7d32; }
.escrow-confirmed { background: #e8f5e9; color: #2e7d32; }
.escrow-released { background: #e0f2f1; color: #00695c; }
.escrow-disputed { background: #fce4ec; color: #c62828; }
.escrow-refunded { background: #f3e5f5; color: #6a1b9a; }

.escrow-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.15s;
}
.escrow-btn:hover { opacity: 0.9; }
.escrow-btn.fund { background: #D10024; color: #fff; }
.escrow-btn.confirm { background: #2ea043; color: #fff; }
.escrow-btn.dispute { background: transparent; color: #D10024; border: 1px solid #D10024; }

/* ===== RESPONSIVE (chat) ===== */
@media (max-width: 991px) {
    .chat-panel { height: calc(100vh - 180px); }
}
@media (max-width: 767px) {
    .chat-panel { height: calc(100vh - 150px); min-height: 350px; }
    .chat-msg { max-width: 90%; }
}

/* ===== DASHBOARD ===== */
.dash-card {
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    color: #fff;
}
.dash-card.primary { background: linear-gradient(135deg, #D10024 0%, #a0001c 100%); }
.dash-card.green { background: linear-gradient(135deg, #2ea043 0%, #1a7a30 100%); }
.dash-card.dark { background: #1E1F29; }

.dash-card-icon { font-size: 32px; opacity: 0.7; }
.dash-card-body { flex: 1; }
.dash-card-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    opacity: 0.8;
}
.dash-card-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.dash-card-sub {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.dash-panel {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dash-panel-title {
    font-size: 13px;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D10024;
}

/* Category bars */
.cat-row { margin-bottom: 12px; }
.cat-row-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cat-name { font-size: 12px; font-weight: 700; }
.cat-meta { font-size: 11px; color: #999; }
.cat-row-bar {
    position: relative;
    background: #f0f0f0;
    border-radius: 3px;
    height: 22px;
    overflow: hidden;
}
.cat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D10024, #ff4d4d);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.cat-bar-value {
    position: absolute;
    right: 8px;
    top: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

/* Visibility breakdown */
.vis-breakdown { }
.vis-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.vis-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vis-dot.private { background: #888; }
.vis-dot.public { background: #4a90d9; }
.vis-dot.for-sale { background: #D10024; }
.vis-dot.sold { background: #333; }
.vis-label { font-size: 12px; font-weight: 600; width: 60px; }
.vis-count { font-size: 12px; color: #888; width: 30px; text-align: right; }
.vis-bar { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.vis-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.vis-bar-fill.private { background: #888; }
.vis-bar-fill.public { background: #4a90d9; }
.vis-bar-fill.for-sale { background: #D10024; }
.vis-bar-fill.sold { background: #333; }

/* Quick actions */
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-action-btn {
    flex: 1 1 45%;
    display: block;
    text-align: center;
    padding: 10px;
    background: #f6f6f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s;
}
.dash-action-btn:hover { background: #eee; color: #D10024; text-decoration: none; }
.dash-action-btn i { display: block; font-size: 20px; margin-bottom: 4px; color: #D10024; }

/* ===== PRODUCT VALUE FIELDS (inventory cards) ===== */
.product-values {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.pv-row { flex: 1; }
.pv-row label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}
.pv-input-wrap { position: relative; }
.pv-dollar {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    font-weight: 700;
    pointer-events: none;
}
.pv-input-wrap input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 5px 5px 22px;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.3s;
}
.pv-input-wrap input:focus { outline: none; border-color: #D10024; }

.product-sale-tag {
    font-size: 11px;
    color: #2ea043;
    font-weight: 700;
    margin-top: 2px;
}

/* ===== OFFER UI ===== */
.offer-incoming { text-align: center; padding: 8px 0; }
.offer-amount {
    font-size: 24px;
    font-weight: 700;
    color: #D10024;
    margin: 4px 0;
}
.offer-actions { display: flex; gap: 6px; }
.offer-actions .escrow-btn { flex: 1; }
.offer-pending-mine { text-align: center; padding: 8px 0; }

@media (max-width: 767px) {
    .dash-card-value { font-size: 22px; }
    .dash-card { padding: 14px; gap: 12px; }
    .dash-actions { flex-direction: column; }
    .dash-action-btn { flex: 1 1 100%; }
}
