/* === Marketplace Public Pages === */

.mp-body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navigation --- */
.mp-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.mp-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
}
.mp-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.mp-search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.15s;
}
.mp-search-bar:focus-within {
    border-color: #007bff;
}
.mp-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 8px 16px !important;
    font-size: 14px;
    outline: none;
    width: auto !important;
}
.mp-search-btn {
    background: none;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
}
.mp-search-btn:hover { color: #007bff; }
.mp-nav-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mp-btn-login {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}
.mp-btn-login:hover { background: #007bff; color: #fff; }
.mp-btn-register {
    background: #007bff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}
.mp-btn-register:hover { background: #0056b3; }
.mp-btn-dashboard {
    background: #007bff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}
.mp-btn-dashboard:hover { background: #0056b3; }

/* --- Hero --- */
.mp-hero {
    text-align: center;
    padding: 48px 20px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.mp-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.mp-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.mp-hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.mp-hero-input {
    flex: 1;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 16px;
    outline: none;
    background: transparent !important;
    color: #333;
    width: auto !important;
}
.mp-hero-btn {
    border-radius: 0 28px 28px 0;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
}

/* --- Main content --- */
.mp-main {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.mp-section {
    padding: 32px 20px;
}
.mp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.mp-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}
.mp-section-header .mp-section-title {
    margin-bottom: 0;
}
.mp-see-all {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.mp-see-all:hover { text-decoration: underline; }

/* --- Category Grid --- */
.mp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.mp-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #334155;
    transition: all 0.15s;
    text-align: center;
}
.mp-cat-tile:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.12);
    transform: translateY(-2px);
}
.mp-cat-icon {
    font-size: 28px;
    line-height: 1;
}
.mp-cat-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* --- Listing Grid (shared by homepage + browse) --- */
.mp-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.mp-listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #333;
    transition: all 0.15s;
}
.mp-listing-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.mp-listing-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}
.mp-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mp-listing-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.mp-listing-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mp-listing-price {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.mp-listing-title {
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-listing-seller {
    font-size: 12px;
    color: #94a3b8;
}

/* --- Browse Layout --- */
.mp-browse-layout {
    display: flex;
    gap: 24px;
    padding: 24px 20px;
}
.mp-sidebar {
    width: 260px;
    flex-shrink: 0;
}
.mp-browse-content {
    flex: 1;
    min-width: 0;
}
.mp-browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.mp-result-count {
    font-size: 14px;
    color: #64748b;
}
.mp-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
}

/* Filter groups */
.mp-filter-group {
    margin-bottom: 20px;
}
.mp-filter-group h3 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.mp-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mp-chip {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.1s;
    white-space: nowrap;
}
.mp-chip:hover {
    border-color: #007bff;
    color: #007bff;
}
.mp-chip-active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.mp-chip-active:hover {
    color: #fff;
    background: #0056b3;
}
.mp-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.mp-price-input {
    width: 100px !important;
    padding: 6px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    font-size: 13px;
}
.mp-price-sep {
    color: #94a3b8;
}
.mp-filter-btn {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border-radius: 8px;
}
.mp-sort-select {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

/* Pagination */
.mp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}
.mp-page-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}
.mp-page-info {
    font-size: 14px;
    color: #64748b;
}

/* No results */
.mp-no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.mp-no-results p {
    margin: 16px 0;
    font-size: 16px;
    color: #94a3b8;
}

/* --- Detail Page --- */
.mp-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 24px 20px;
}
.mp-detail-photos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-gallery-main {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.mp-gallery-main img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f8f9fa;
    cursor: zoom-in;
}
.mp-gallery-prev, .mp-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.mp-gallery-prev { left: 10px; }
.mp-gallery-next { right: 10px; }
.mp-gallery-prev:hover, .mp-gallery-next:hover { background: #fff; }

.mp-gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
}
.mp-gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.1s;
}
.mp-gallery-thumb:hover { border-color: #94a3b8; }
.mp-thumb-active { border-color: #007bff !important; }

.mp-detail-noimg {
    background: #f1f5f9;
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

/* Detail info */
.mp-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mp-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.mp-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}
.mp-detail-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}
.mp-detail-label {
    color: #64748b;
    font-weight: 500;
}
.mp-detail-cat-link {
    color: #007bff;
    text-decoration: none;
}
.mp-detail-cat-link:hover { text-decoration: underline; }

.mp-detail-desc {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}
.mp-detail-desc h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}
.mp-detail-desc p {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}

/* Seller card */
.mp-seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}
.mp-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mp-seller-info {
    display: flex;
    flex-direction: column;
}
.mp-seller-info strong {
    font-size: 15px;
    color: #1e293b;
}
.mp-seller-details {
    font-size: 12px;
    color: #94a3b8;
}
.mp-back-btn {
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
}

/* --- Lightbox --- */
.mp-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.mp-lb-active {
    display: flex !important;
}
.mp-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.mp-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.mp-lb-prev, .mp-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-lb-prev { left: 16px; }
.mp-lb-next { right: 16px; }
.mp-lb-prev:hover, .mp-lb-next:hover { background: rgba(255,255,255,0.25); }
.mp-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* --- Footer --- */
.mp-footer {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 13px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .mp-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mp-nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 0;
        gap: 8px;
    }
    .mp-search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
    .mp-hero h1 { font-size: 24px; }
    .mp-hero p { font-size: 14px; }
    .mp-hero-input { font-size: 14px; padding: 10px 16px !important; }
    .mp-hero-btn { padding: 10px 20px; font-size: 14px; }
    .mp-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .mp-cat-icon { font-size: 22px; }
    .mp-cat-name { font-size: 11px; }
    .mp-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .mp-browse-layout {
        flex-direction: column;
        padding: 16px 12px;
    }
    .mp-sidebar {
        display: none;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        border: 1px solid #e2e8f0;
    }
    .mp-sidebar-open {
        display: block !important;
    }
    .mp-mobile-filter-btn {
        display: flex;
    }
    .mp-detail-title { font-size: 20px; }
    .mp-detail-price { font-size: 22px; }
    .mp-seller-profile-header { flex-direction: column; text-align: center; }
    .mp-seller-profile-avatar { margin: 0 auto; }
}

/* --- Avatar Initials --- */
.mp-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}
.mp-avatar-initial-lg {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

/* --- Seller Profile Page --- */
.mp-seller-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
}
.mp-seller-profile-avatar {
    flex-shrink: 0;
}
.mp-seller-profile-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}
.mp-seller-profile-info {
    flex: 1;
}
.mp-seller-profile-name {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.mp-seller-profile-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}
.mp-seller-profile-bio {
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 8px 0;
}
.mp-seller-profile-contact {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.mp-seller-profile-listings h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

/* --- Location on listing cards --- */
.mp-listing-location {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 3px;
}
.mp-listing-location::before {
    content: "\1F4CD";
    font-size: 10px;
}

/* --- Inbox Nav Button --- */
.mp-btn-inbox {
    background: transparent;
    color: #475569;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    position: relative;
}
.mp-btn-inbox:hover { background: #f1f5f9; color: #1e293b; }
.mp-btn-inbox-active { background: #f1f5f9; color: #1e293b; font-weight: 600; }

/* --- Unread Badge --- */
.mp-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    line-height: 1.4;
}
.mp-unread-badge-lg {
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
}
.mp-unread-badge-sm {
    font-size: 10px;
    padding: 0 5px;
    min-width: 16px;
    margin-right: 4px;
}

/* --- Inbox Page --- */
.mp-inbox-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}
.mp-inbox-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mp-inbox-empty {
    text-align: center;
    padding: 60px 20px;
}
.mp-inbox-empty p {
    margin: 16px 0;
    font-size: 16px;
    color: #94a3b8;
}

/* --- Conversation List --- */
.mp-conv-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.mp-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
    border-bottom: 1px solid #f1f5f9;
}
.mp-conv-item:last-child { border-bottom: none; }
.mp-conv-item:hover { background: #f8f9fa; }
.mp-conv-unread { background: #f0f7ff; }
.mp-conv-unread:hover { background: #e6f0fa; }
.mp-conv-photo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.mp-conv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mp-conv-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-conv-content {
    flex: 1;
    min-width: 0;
}
.mp-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.mp-conv-listing-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-conv-time {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 8px;
}
.mp-conv-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}
.mp-conv-preview {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* --- Chat / Conversation Thread --- */
.mp-chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px - 60px);
}
.mp-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.mp-chat-back {
    font-size: 20px;
    color: #64748b;
    text-decoration: none;
    padding: 4px 8px;
}
.mp-chat-back:hover { color: #1e293b; }
.mp-chat-header-info {
    display: flex;
    flex-direction: column;
}
.mp-chat-header-info strong {
    font-size: 16px;
    color: #1e293b;
}
.mp-chat-listing-link {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}
.mp-chat-listing-link:hover { text-decoration: underline; }

.mp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-msg {
    display: flex;
}
.mp-msg-mine { justify-content: flex-end; }
.mp-msg-other { justify-content: flex-start; }
.mp-msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
}
.mp-msg-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.mp-msg-bubble-mine {
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.mp-msg-bubble-other {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}
.mp-msg-sender {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
    display: block;
}
.mp-msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.mp-chat-input {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}
.mp-chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.mp-chat-textarea {
    flex: 1;
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px;
    font-size: 14px;
    resize: none;
    outline: none;
    max-height: 120px;
    font-family: inherit;
}
.mp-chat-textarea:focus { border-color: #007bff !important; }
.mp-chat-send-btn {
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* --- Contact Seller (on listing detail) --- */
.mp-contact-seller {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}
.mp-contact-seller h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.mp-msg-textarea {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.mp-msg-textarea:focus { border-color: #007bff !important; }
.mp-msg-send-btn {
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}
.mp-msg-success {
    text-align: center;
    padding: 16px;
    color: #16a34a;
}
.mp-msg-success a { color: #007bff; }
.mp-msg-error {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    padding: 8px;
}
.mp-contact-login {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    padding: 8px;
}
.mp-contact-login a { color: #007bff; }

/* --- Responsive for messaging --- */
@media (max-width: 768px) {
    .mp-chat-container { height: calc(100vh - 80px - 60px); padding: 0 12px 16px; }
    .mp-msg-bubble { max-width: 85%; }
    .mp-inbox-container { padding: 16px 12px; }
    .mp-conv-photo { width: 48px; height: 48px; }
}
