.market-compare-shell {
    padding: 92px 0 48px;
    max-width: 1460px;
}

.market-compare-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.market-compare-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.market-compare-header p {
    margin: 6px 0 0;
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
}

.market-compare-summary {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.market-compare-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(126px, 0.6fr)) repeat(4, minmax(112px, 0.5fr)) minmax(170px, auto);
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.market-compare-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.market-compare-toolbar span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.market-compare-toolbar input,
.market-compare-toolbar select {
    width: 100%;
    min-height: 39px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 9px 10px;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
}

.market-compare-toolbar .source-dropdown-trigger {
    min-height: 39px;
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.market-compare-toolbar .source-dropdown span {
    color: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.market-compare-toolbar .source-dropdown-trigger > span,
.market-compare-toolbar .source-option-label,
.market-compare-toolbar .source-option-text {
    font-size: inherit;
    font-weight: inherit;
}

.market-compare-toolbar .source-search-input {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.market-compare-toolbar .source-search-input:focus {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.market-compare-toolbar .source-list-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--dropdown-item-text);
    font-size: 0.85rem;
    font-weight: 500;
    font: inherit;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.market-compare-toolbar .source-option-fallback {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.market-compare-toolbar input:focus,
.market-compare-toolbar select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.market-compare-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

.market-compare-search-button,
.market-compare-reset {
    min-height: 39px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.market-compare-search-button {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.market-compare-search-button:hover {
    filter: brightness(1.05);
}

.market-compare-reset {
    background: var(--bg-card);
    color: var(--text-primary);
}

.market-compare-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.market-compare-dirty-note {
    margin: -4px 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.market-compare-access-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 12px 16px;
    border: 1px solid var(--accent);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(227, 151, 116, 0.12);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.market-compare-access-note::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.market-compare-access-note strong {
    color: var(--accent);
    font-weight: 900;
}

.market-compare-access-note[data-tone="limit"] {
    border-color: #e35a5a;
    background: rgba(227, 90, 90, 0.14);
}

.market-compare-access-note[data-tone="limit"]::before {
    content: "!";
    color: #e35a5a;
}

.market-compare-access-note[data-tone="limit"] strong {
    color: #e35a5a;
}

.market-compare-blacklists {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: -2px 0 14px;
}

.market-compare-blacklist-group {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.market-compare-blacklist-group > span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.market-compare-blacklist-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.market-compare-blacklist-input input {
    width: 100%;
    min-height: 39px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 9px 10px;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
}

.market-compare-blacklist-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.market-compare-blacklist-input button {
    min-height: 39px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0 13px;
    font-weight: 800;
    cursor: pointer;
}

.market-compare-blacklist-input button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.market-compare-blacklist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.market-compare-blacklist-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.market-compare-blacklist-tag button {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.market-compare-status,
.market-compare-empty,
.market-compare-results-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
}

.market-compare-status {
    margin-bottom: 12px;
    padding: 11px 13px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.market-compare-status[data-tone="error"] {
    border-color: rgba(227, 90, 90, 0.5);
    background: rgba(227, 90, 90, 0.12);
    color: #fff;
}

.market-compare-results-panel {
    overflow: hidden;
}

.market-compare-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.market-compare-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.market-compare-table th,
.market-compare-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    vertical-align: middle;
    font-size: 0.88rem;
}

.market-compare-table th {
    height: 48px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-compare-table th.market-compare-sortable {
    user-select: none;
}

.market-compare-sort-button {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    padding: 0;
    text-transform: inherit;
}

.market-compare-table th.market-compare-sortable:hover .market-compare-sort-button,
.market-compare-sort-button:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.market-compare-sort-button:focus-visible {
    border-radius: 4px;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.market-compare-table th.market-compare-sortable .market-compare-sort-label {
    margin-right: 6px;
}

.market-compare-table th.market-compare-sortable .market-compare-sort-indicator {
    display: inline-block;
    width: 9px;
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.7rem;
    line-height: 1;
}

.market-compare-table th.market-compare-sortable .market-compare-sort-indicator::before {
    content: "\2195";
}

.market-compare-table th.market-compare-sortable[data-sort-direction="desc"] {
    color: var(--accent);
}

.market-compare-table th.market-compare-sortable[data-sort-direction="desc"] .market-compare-sort-indicator {
    color: var(--accent);
    opacity: 1;
}

.market-compare-table th.market-compare-sortable[data-sort-direction="desc"] .market-compare-sort-indicator::before {
    content: "\2193";
}

.market-compare-table th.market-compare-sortable[data-sort-direction="asc"] {
    color: var(--accent);
}

.market-compare-table th.market-compare-sortable[data-sort-direction="asc"] .market-compare-sort-indicator {
    color: var(--accent);
    opacity: 1;
}

.market-compare-table th.market-compare-sortable[data-sort-direction="asc"] .market-compare-sort-indicator::before {
    content: "\2191";
}

.market-compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.market-compare-item-cell {
    display: grid;
    grid-template-columns: 66px minmax(240px, 1fr);
    gap: 12px;
    align-items: center;
}

.market-compare-thumb {
    width: 66px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    background: var(--bg-primary);
    overflow: hidden;
}

.market-compare-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-compare-item-main {
    min-width: 0;
}

.market-compare-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.market-compare-item-meta {
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.market-compare-market-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 164px;
    min-height: 44px;
    padding: 8px 11px 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    text-decoration: none;
}

.market-compare-market-pill:hover {
    border-color: var(--accent);
}

.market-compare-market-link {
    color: inherit;
    text-decoration: none;
}

.market-compare-price {
    font-weight: 800;
    white-space: nowrap;
}

.market-compare-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.market-compare-source img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.22);
}

.market-compare-arrow {
    color: var(--text-secondary);
    font-size: 1.35rem !important;
    text-align: center !important;
}

.market-compare-age {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.market-compare-age.fresh {
    background: rgba(22, 163, 74, 0.13);
    color: #16a34a;
}

.market-compare-age.aging {
    background: rgba(227, 151, 116, 0.15);
    color: var(--accent);
}

.market-compare-age.stale {
    background: rgba(227, 90, 90, 0.14);
    color: #e35a5a;
}

.market-compare-profit,
.market-compare-roi {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.13);
    color: #16a34a;
    font-weight: 900;
    white-space: nowrap;
}

.market-compare-profit.negative,
.market-compare-roi.negative {
    background: rgba(227, 90, 90, 0.14);
    color: #e35a5a;
}

.market-compare-table tbody tr.negative {
    background: rgba(227, 90, 90, 0.05);
}

.market-compare-table tbody tr.negative:hover {
    background: rgba(227, 90, 90, 0.08);
}

.market-compare-empty {
    margin: 18px;
    padding: 38px 18px;
    color: var(--text-secondary);
    text-align: center;
}

.market-compare-muted {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

@media (max-width: 1320px) {
    .market-compare-toolbar {
        grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(130px, 1fr));
    }

    .market-compare-reset {
        width: 100%;
    }

    .market-compare-actions {
        width: 100%;
    }

    .market-compare-actions button {
        flex: 1;
    }
}

@media (max-width: 760px) {
    .market-compare-shell {
        padding-top: 82px;
    }

    .market-compare-header,
    .market-compare-toolbar,
    .market-compare-blacklists {
        grid-template-columns: 1fr;
    }

    .market-compare-header {
        align-items: flex-start;
    }

    .market-compare-summary {
        white-space: normal;
    }
}

/* ---- Free-tier locked-spread teaser (decorative; carries no real data) --- */
.mc-locked-row td {
    opacity: 0.55;
}

.mc-locked-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.mc-locked-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: mcLockedShimmer 1.6s infinite;
}

@keyframes mcLockedShimmer {
    100% { transform: translateX(100%); }
}

.mc-locked-bar {
    height: 12px;
    width: 100%;
}

.mc-locked-bar--wide { width: 70%; margin-bottom: 6px; }
.mc-locked-bar--narrow { width: 45%; }
.market-compare-thumb.mc-locked-shimmer { display: block; }

.mc-locked-cta-row td {
    padding: 0;
    border: none;
}

.mc-locked-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: -6px;
    padding: 18px 20px;
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(91, 33, 182, 0.55)),
        #14182a;
    border: 1px solid rgba(167, 139, 250, 0.55);
    box-shadow: 0 -28px 32px -22px rgba(13, 17, 28, 0.9);
}

.mc-locked-cta__text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #fff;
}

.mc-locked-cta__lock {
    font-size: 16px;
}

.mc-locked-cta__text strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.mc-locked-cta__sub {
    flex-basis: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
}

.mc-locked-cta__btn {
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
}

/* Inline upgrade CTA on the free-tier access note (top of results). */
.market-compare-access-note {
    flex-wrap: wrap;
}

.mc-access-note__text {
    flex: 1 1 240px;
    min-width: 0;
}

.mc-access-note__cta {
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 7px;
    background: #7c3aed;
    border: 1px solid rgba(167, 139, 250, 0.7);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.mc-access-note__cta:hover {
    background: #6d28d9;
}

@media (max-width: 520px) {
    .market-compare-access-note {
        align-items: stretch;
    }

    .market-compare-access-note::before {
        margin-top: 2px;
    }

    .mc-access-note__text {
        flex-basis: calc(100% - 34px);
    }

    .mc-access-note__cta {
        width: 100%;
        margin-left: 28px;
        text-align: center;
        white-space: normal;
    }

    .mc-locked-cta {
        align-items: stretch;
    }

    .mc-locked-cta__btn {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-locked-shimmer::after {
        animation: none;
        transform: none;
    }
}
