/* --- Marketplace & Pricing --- */

:root {
    --icon-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Marketplace */
.marketplace-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-hover);
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.marketplace-grid {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.market-card {
    position: relative;
}

.market-card .card-metrics {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.market-card .card-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.market-card .card-metric svg {
    width: 12px;
    height: 12px;
}

body:not(.mode-dark) .market-card .card-icon {
    color: #0f172a;
}

.detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 28px;
    height: 28px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-section {
    padding-top: calc(6rem - 20px);
}

.pricing-section .section-header {
    margin-bottom: 2rem;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: max-content;
    margin: -1rem auto 3rem;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-hover);
    --toggle-active-bg: rgba(59, 130, 246, 0.16);
    --toggle-active-text: var(--heading-color);
}

body.mode-dark .pricing-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    --toggle-active-bg: rgba(59, 130, 246, 0.22);
    --toggle-active-text: #f8fafc;
}

.pricing-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pricing-toggle-pill {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pricing-toggle-pill span {
    font-weight: 600;
    opacity: 0.85;
}

.pricing-toggle input:checked + .pricing-toggle-pill {
    background: var(--toggle-active-bg);
    color: var(--toggle-active-text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.pricing-toggle-pill:hover {
    color: var(--text-color);
}


.pricing-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    will-change: transform;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.45);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.06) translateY(-10px);
    box-shadow: 0 24px 55px rgba(59, 130, 246, 0.25), 0 18px 45px rgba(0, 0, 0, 0.35);
    border-color: var(--primary-color);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--heading-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price .price-currency {
    font-size: 0.85em;
    color: var(--heading-color);
    font-weight: 600;
    margin-right: 0.1rem;
}

.price .price-amount {
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.price .price-term {
    font-size: 0.9rem;
    color: var(--heading-color);
    font-weight: 500;
    margin-left: 0.35rem;
}

.price-note {
    margin-top: -0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-cta {
    margin-top: 0.5rem;
}

.pricing-cta p {
    margin-bottom: 0.75rem;
}

.pricing-cta-btn {
    margin-bottom: 0.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li {
    position: relative;
    display: block;
    padding-left: 1.6rem;
}

.pricing-features li::before {
    content: '';
    width: 12px;
    height: 12px;
    display: inline-block;
    background: var(--primary-color);
    -webkit-mask: var(--icon-check-mask) no-repeat center / contain;
    mask: var(--icon-check-mask) no-repeat center / contain;
    position: absolute;
    left: 0;
    top: 0.35rem;
}

.pricing-features {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

.check-icon {
    color: var(--primary-color);
    font-weight: bold;
}
