/* ==========================================================================
   MARKETPLACE BROWSER — Deep Glass Extension
   ========================================================================== */

/* ── Page Layout ── */
.mp-page {
    width: 100%;
}

/* ── KPI Stats Bar ── */
.mp-kpi-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.mp-kpi-item {
    background: var(--glass-surface);
    backdrop-filter: blur(24px);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
}

.mp-kpi-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--neon-primary);
    flex-shrink: 0;
}

.mp-kpi-item:hover .mp-kpi-icon {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.mp-kpi-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.mp-kpi-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.mp-kpi-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.mp-kpi-sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Panel Navigation ── */
.mp-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mp-nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: rgba(30, 30, 60, 0.5);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.mp-nav-btn:hover {
    background: rgba(40, 40, 70, 0.7);
    border-color: var(--panel-border-hover);
    color: var(--text-primary);
}

.mp-nav-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* ── Search & Filters ── */
.mp-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
}

.mp-search {
    flex: 1;
    min-width: 200px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.5rem 0.875rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.625rem center;
    background-size: 1.125rem;
}

.mp-search:focus {
    border-color: var(--neon-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.mp-search::placeholder {
    color: var(--text-muted);
}

.mp-filter-select {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-filter-select:focus {
    border-color: var(--neon-primary);
    outline: none;
}

/* ── Miner Card Grid ── */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.mp-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mp-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
}

.mp-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: rgba(15, 15, 30, 0.8);
    display: block;
}

.mp-card-body {
    padding: 0.875rem 1rem;
}

.mp-card-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.375rem;
}

.mp-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.mp-card-stat-label {
    color: var(--text-muted);
}

.mp-card-stat-value {
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mp-card-footer {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    gap: 0.75rem;
}

.mp-card-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mp-card-owner {
    color: var(--neon-accent);
    cursor: pointer;
    transition: color 0.2s;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-card-owner:hover {
    color: var(--text-primary);
}

.mp-card-price {
    font-weight: 700;
    color: var(--success-color);
    white-space: nowrap;
}

.mp-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    width: 100%;
}

.mp-buy-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mp-modal-buy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mp-modal-buy-link:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.mp-card-badge,
.mp-card-roi-badge {
    position: absolute;
    top: 10px;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    text-transform: uppercase;
}

.mp-card-badge {
    left: 10px;
    background: var(--accent-color);
    color: #fff;
}

.mp-card-roi-badge {
    right: 10px;
    background: #00d084;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
}

.mp-hot-deal-badge {
    position: absolute;
    top: 50px;
    left: 10px;
    background: linear-gradient(135deg, #ff4d4d, #f97316);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.mp-card-metrics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mp-card-rank-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.mp-card-rank-pill.absolute {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5;
}

/* ── Pagination ── */
.mp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.mp-page-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-surface);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.mp-page-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.mp-page-btn.active {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    color: #fff;
    border-color: transparent;
}

.mp-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.mp-page-info {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ── Empty & Error States ── */
.mp-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--glass-surface);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    margin: 2rem 0;
}

.mp-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.mp-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mp-empty-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

/* ── Detail Modal ── */
.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mp-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mp-modal {
    background: rgba(10, 10, 22, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mp-modal::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.mp-modal-overlay.open .mp-modal {
    transform: translateY(0);
}

.mp-modal-header {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    align-items: flex-start;
}

.mp-modal-img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.mp-modal-info {
    flex: 1;
    min-width: 0;
}

.mp-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mp-modal-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.mp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.mp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mp-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.mp-modal-stat {
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.mp-modal-stat-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.mp-modal-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.125rem;
    font-variant-numeric: tabular-nums;
}

.mp-modal-section {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.mp-modal-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Ownership Timeline ── */
/* ── Ownership History SaaS Table ── */
.mp-history-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 1rem;
}

.mp-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.mp-history-table th {
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-history-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.mp-history-table tr:last-child td {
    border-bottom: none;
}

.mp-history-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.mp-td-date {
    white-space: nowrap;
}

.mp-date-primary {
    color: var(--text-primary);
    font-weight: 600;
}

.mp-date-secondary {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Badges */
.mp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mp-badge-sale {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.mp-badge-transfer {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Entity Pills */
.mp-entity-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
}

.mp-entity-pill.interactive {
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-entity-pill.interactive:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.mp-price-highlight {
    color: #fff;
    font-weight: 700;
}

.mp-card-stat-value {
    color: #fff;
    font-weight: 600;
}

.mp-card-th-val {
    font-size: 0.85rem;
    color: #00d084;
    font-weight: 700;
}

/* ── Sales Feed (Large Cards) ── */
/* ── Sales SaaS Grid ── */
#overview-feed,
#sales-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.mp-saas-card {
    background: var(--glass-surface);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.mp-saas-card:hover {
    transform: translateY(-8px);
    background: var(--panel-bg-hover);
    border-color: var(--neon-primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.mp-saas-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #000;
}

.mp-saas-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mp-saas-card:hover .mp-saas-card-header img {
    transform: scale(1.1);
}

.mp-saas-card-id {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-saas-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-saas-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mp-saas-card-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.mp-saas-card-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.mp-saas-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mp-saas-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.625rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.mp-saas-stat .label {
    font-size: 0.5625rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.mp-saas-stat .val {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mp-saas-card-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-saas-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-saas-user-row .user-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mp-saas-card-footer {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-saas-price-box .price-gmt {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.mp-saas-price-box .price-gmt span {
    font-size: 0.625rem;
    color: var(--neon-primary);
}

.mp-saas-price-box .price-usd {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.125rem;
}

.mp-saas-card-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--neon-primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.mp-saas-card:hover .mp-saas-card-btn {
    transform: rotate(-45deg);
    background: #fff;
    color: var(--neon-primary);
}

.mp-feed-card-pricing .price-gmt .unit {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.mp-feed-card-pricing .price-usd {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mp-feed-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
}

.user-block {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-block .name {
    font-weight: 700;
    color: #fff;
}

.user-block .uid {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-family: monospace;
}

.user-block.buyer .dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    margin-bottom: 4px;
}

.transfer-arrow {
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
    font-weight: 300;
}

/* ── User Profile Panel ── */
.mp-profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.mp-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.mp-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mp-profile-id {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.mp-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ── Section Panel ── */
.mp-panel {
    display: none;
}

.mp-panel.active {
    display: block;
    animation: mpFadeIn 0.3s ease;
}

@keyframes mpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loaders */
.mp-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: mp-skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes mp-skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.mp-skeleton-card {
    height: 380px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-skeleton-img {
    height: 180px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.mp-skeleton-line {
    height: 14px;
    width: 60%;
    background: rgba(255, 255, 255, 0.03);
}

.mp-skeleton-line.short {
    width: 30%;
}

.mp-skeleton-line.mid {
    width: 80%;
}

.mp-saas-card {
    will-change: transform, opacity;
}

/* ── Table (for upgrades, transactions) ── */
.mp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.mp-table thead th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6875rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 15, 30, 0.3);
}

.mp-table tbody td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.mp-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.03);
}

.mp-table .text-right {
    text-align: right;
}

/* ── Charts ── */
.mp-chart-container {
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

/* ── Loading Spinner ── */
.mp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    gap: 0.75rem;
}

.mp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--neon-primary);
    border-radius: 50%;
    animation: mpSpin 0.8s linear infinite;
}

@keyframes mpSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Back Button ── */
.mp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 1rem;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.mp-back-btn:hover {
    color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mp-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .mp-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mp-modal-img {
        width: 80px;
        height: 80px;
    }

    .mp-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .mp-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── User Link (inline clickable alias) ── */
.mp-user-link {
    color: var(--neon-accent);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.mp-user-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ── Deep Dark Calculator ── */
.mp-modal-calculator {
    background: rgba(20, 20, 35, 0.4);
    border-radius: 16px;
    margin: 1rem 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-calc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mp-calc-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-calc-tab:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.mp-calc-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.mp-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 24px;
}

.mp-calc-label img {
    flex-shrink: 0;
    vertical-align: middle;
}

/* Numeric Input Styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    border-color: var(--neon-primary) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.mp-calc-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-calc-input-group select {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    text-align: right;
}

.mp-calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1.5rem 0;
}

.mp-calc-toggle-btns {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-calc-toggle-btns button {
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mp-calc-toggle-btns button.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.calc-pill {
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calc-pill-red {
    background: var(--color-danger);
    color: #fff;
}

.calc-pill-green {
    background: var(--color-success);
    color: #000;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.mp-calc-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.mp-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.mp-calc-result-values {
    display: flex;
    align-items: center;
}

/* ── Custom Toggle Switch ── */
.mp-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.mp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mp-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
}

.mp-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.mp-slider {
    background-color: var(--neon-primary);
}

input:focus+.mp-slider {
    box-shadow: 0 0 1px var(--neon-primary);
}

input:checked+.mp-slider:before {
    transform: translateX(16px);
}

/* ── Deal Verdict ── */
.mp-deal-verdict {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.mp-deal-verdict-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.mp-deal-verdict-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mp-deal-verdict-content {
    flex: 1;
}


.mp-deal-verdict-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.mp-deal-verdict-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mp-deal-verdict-score {
    text-align: right;
    flex-shrink: 0;
}

.mp-deal-verdict-score .score {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.mp-deal-verdict-score .total {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Premium Analytics Styles */
.mp-arbitrage-score {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.mp-arbitrage-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-arbitrage-value {
    font-weight: 800;
    color: var(--success-color);
    margin-left: auto;
}

.mp-arbitrage-value.discount {
    color: var(--color-success);
}

.mp-arbitrage-value.premium {
    color: #f43f5e;
}

.mp-momentum-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.mp-momentum-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mp-momentum-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.mp-momentum-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-momentum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-momentum-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mp-momentum-value {
    font-family: var(--font-mono);
    font-weight: 600;
}

.mp-momentum-listings {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 4px;
}

.mp-price-chart-container {
    height: 180px;
    margin: 1.5rem 0;
    position: relative;
}


/* Post-Sale Deal Quality Badges */
.mp-deal-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mp-deal-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mp-deal-good {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mp-deal-fair {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mp-deal-premium {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Interactive Deal Insights Tooltip */
.mp-deal-badge {
    position: relative;
    cursor: help;
}

.mp-deal-badge:hover .mp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.mp-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    width: 200px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

.mp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* ═══════════════════════════════════════════════════════
   CART COMBINATIONS (SWEEP THE FLOOR)
   ═══════════════════════════════════════════════════════ */
.mp-card-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    font-size: 1.2rem;
}

.mp-card-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.8);
}

.mp-card-checkbox.selected {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    color: #fff;
}

#mp-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

#mp-cart-bar.visible {
    transform: translateY(0);
}

.mp-cart-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-cart-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mp-cart-count {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e293b;
    background: var(--neon-primary);
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.mp-cart-stat {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-cart-stat i {
    color: rgba(255, 255, 255, 0.7);
}

.mp-cart-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mp-cart-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
    text-align: right;
    line-height: 1.2;
}

.mp-cart-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-main);
}

.mp-cart-clear:hover {
    color: #fff;
}

.mp-cart-checkout {
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .mp-cart-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Time on Market Badges */
.mp-stale-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── V2 Card Styles (Image Heavy) ── */
.mp-card.mp-v2 {
    background: #1e1e24;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

.mp-card.mp-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.mp-v2-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #111;
}

.mp-v2-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-v2-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.mp-v2-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.mp-v2-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.mp-v2-badge {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-v2-badge.roi {
    background: rgba(0, 0, 0, 0.5);
}

.mp-v2-badge.hot {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.8), rgba(249, 115, 22, 0.8));
    border: none;
}

.mp-v2-bottom-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

.mp-v2-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.mp-v2-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-v2-footer {
    padding: 12px 14px;
    background: #252530;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    text-align: left;
}

.mp-card.mp-v2 .mp-card-checkbox {
    top: auto !important;
    bottom: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 10;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.mp-card.mp-v2 .mp-card-checkbox.selected {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    color: #fff;
}