/* ═══════════ MARKETPLACE — ENTERPRISE BATCH BUILDER ═══════════ */

/* ── Filter Bar ── */
.mp-filter-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.mp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 140px;
}

.mp-filter-group .filter-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary, #6b7280);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-filter-group .filter-input {
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--bg-glass-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s ease;
}

.mp-filter-group .filter-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mp-filter-group .filter-input:hover {
    border-color: var(--text-secondary);
}

/* ── Select Dropdown (theme-aware) ── */
.mp-filter-group select.filter-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.mp-filter-group select.filter-input option {
    background: var(--bg-surface, #403838);
    color: var(--text-primary);
    padding: 8px;
}

.mp-filter-group select.filter-input option:checked {
    background: rgba(99, 102, 241, 0.3);
}

/* ── Light Theme: Marketplace Filters ── */
[data-theme="light"] .mp-filter-group .filter-input {
    background: #ffffff;
    border-color: #d0d7de;
    color: #24292f;
}

[data-theme="light"] .mp-filter-group .filter-input:hover {
    border-color: #8c959f;
}

[data-theme="light"] .mp-filter-group .filter-input:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

[data-theme="light"] .mp-filter-group select.filter-input option {
    background: #ffffff;
    color: #24292f;
}

/* ── Batch Builder Card ── */
.mp-batch-builder {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.mp-builder-section {
    padding: 1.75rem 2.25rem;
}

.mp-builder-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    margin: 0;
}

/* ── Step Headers (ENTERPRISE) ── */
.mp-builder-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mp-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    position: relative;
}

.mp-step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 2px solid rgba(99, 102, 241, 0.15);
    pointer-events: none;
}

.mp-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.15rem 0 0;
    letter-spacing: -0.01em;
}

.mp-step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0;
    opacity: 0.85;
}

/* ── Match Panel (Step 2 — ENTERPRISE) ── */
.mp-match-panel {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.mp-match-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mp-match-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.mp-match-count {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.mp-match-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* ── Quantity Selector (ENTERPRISE) ── */
.mp-quantity-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mp-qty-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mp-qty-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mp-qty-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-qty-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mp-qty-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #818cf8;
    color: #a5b4fc;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.mp-qty-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-qty-input {
    width: 100px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.mp-qty-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ── Preview Section (Step 3 — ENTERPRISE) ── */
.mp-preview-section {
    margin-bottom: 1.5rem;
}

.mp-preview-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mp-preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.mp-preview-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-preview-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mp-preview-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.mp-preview-info {
    flex: 1;
    overflow: hidden;
}

.mp-preview-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-preview-title {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

.mp-preview-tags {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.mp-preview-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mp-preview-tag.industry {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.15);
}

.mp-preview-tag.region {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.mp-preview-tag.seniority {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.mp-preview-more {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.65rem;
    font-weight: 500;
}

/* ── Purchase Summary (ENTERPRISE) ── */
.mp-purchase-summary {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.mp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.mp-summary-row strong {
    color: var(--text-primary);
    font-weight: 700;
}

.mp-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    margin: 0.85rem 0;
}

/* ── Buy Batch Button (ENTERPRISE — focused, not full-width) ── */
.mp-buy-batch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #7c3aed 100%);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.mp-buy-batch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mp-buy-batch-btn:hover:not(:disabled)::before {
    left: 100%;
}

.mp-buy-batch-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.mp-buy-batch-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mp-buy-batch-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.mp-purchase-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    justify-content: center;
}

/* ── Credits Badge (ENTERPRISE) ── */
.mp-credits-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

/* ── Compliance Badge ── */
.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.compliance-badge.gdpr {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Empty State (Recent Batches) ── */
.mp-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.mp-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.mp-empty-state-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.mp-empty-state-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin: 0.25rem 0 0;
}

/* ── Spin animation ── */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Shimmer for Buy Button ── */
@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .mp-filter-row {
        flex-direction: column;
    }

    .mp-filter-group {
        min-width: 100%;
    }

    .mp-match-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-match-stat {
        min-width: auto;
    }

    .mp-preview-cards {
        grid-template-columns: 1fr;
    }

    .mp-qty-presets {
        flex-wrap: wrap;
    }

    .mp-builder-section {
        padding: 1.25rem 1rem;
    }

    .mp-buy-batch-btn {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .mp-preview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════ INDIVIDUAL CONTACT CATALOG ═══════════ */

/* ── Mode Toggle (Premium Segmented Control) ── */
.mp-mode-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding: 5px;
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mp-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-tertiary, #6b7280);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.mp-mode-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mp-mode-btn:hover {
    color: var(--text-primary, #e5e7eb);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.1);
}

.mp-mode-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mp-mode-btn.active:hover {
    background: linear-gradient(135deg, #7c7ff7, #9d78f8);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .mp-mode-toggle {
    background: #f0f2f5;
    border-color: #d0d5dd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 #fff;
}

[data-theme="light"] .mp-mode-btn {
    color: #667085;
}

[data-theme="light"] .mp-mode-btn:hover {
    color: #344054;
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .mp-mode-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Catalog Layout ── */
.ic-catalog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

/* ── Contact Table ── */
.ic-table-panel {
    padding: 0 !important;
    overflow: hidden;
}

.ic-table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ic-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 65vh;
}

.ic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ic-table thead th {
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-surface, #1a1a2e);
    z-index: 1;
}

.ic-table tbody td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.ic-row {
    transition: background 0.2s ease;
}

.ic-row:hover {
    background: rgba(99, 102, 241, 0.04);
}

.ic-row-selected {
    background: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="light"] .ic-table thead th {
    background: #f6f8fa;
    border-bottom-color: #d0d7de;
    color: #57606a;
}

[data-theme="light"] .ic-table tbody td {
    border-bottom-color: #eaeef2;
}

[data-theme="light"] .ic-row:hover {
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .ic-row-selected {
    background: rgba(99, 102, 241, 0.06) !important;
}

/* ── Name Cell ── */
.ic-name-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ic-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ic-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.ic-company {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.ic-cell-title {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

/* ── Custom Checkbox ── */
.ic-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    width: 20px;
    height: 20px;
}

.ic-checkbox-label input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.ic-checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ic-checkbox-label input:checked+.ic-checkmark {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #818cf8;
}

.ic-checkbox-label input:checked+.ic-checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.ic-checkbox-label input:indeterminate+.ic-checkmark {
    background: rgba(99, 102, 241, 0.3);
    border-color: #818cf8;
}

.ic-checkbox-label input:indeterminate+.ic-checkmark::after {
    content: '–';
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

[data-theme="light"] .ic-checkmark {
    border-color: #c9d1d9;
    background: #fff;
}

.ic-th-checkbox {
    width: 44px;
}

/* ── Credit Badge ── */
.ic-credit-badge {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ── Pagination ── */
.ic-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ic-page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.ic-page-btn:hover:not(.disabled):not(.active) {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.ic-page-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #818cf8;
    color: #fff;
}

.ic-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ic-page-dots {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    padding: 0 0.25rem;
}

/* ── Cart Sidebar ── */
.ic-cart-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border: 1px solid rgba(99, 102, 241, 0.12);
    max-height: calc(100vh - 120px);
}

.ic-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ic-cart-header h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ic-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0 6px;
}

.ic-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    min-height: 80px;
}

.ic-cart-empty {
    text-align: center;
    padding: 1.5rem 0.75rem;
    color: var(--text-tertiary);
}

.ic-cart-empty p {
    font-size: 0.78rem;
    margin: 0.5rem 0 0;
}

.ic-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ic-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
}

.ic-cart-item-name {
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ic-cart-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.25rem;
    transition: color 0.2s;
    line-height: 1;
}

.ic-cart-remove:hover {
    color: #ef4444;
}

.ic-cart-more {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    padding: 0.25rem 0;
}

.ic-cart-footer {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ic-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.ic-cart-total strong {
    color: var(--accent-primary);
    font-weight: 800;
}

/* ── Toast Notification ── */
.ic-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ic-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.ic-toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    color: #fff;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.ic-toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
    color: #fff;
    border: 1px solid rgba(252, 165, 165, 0.3);
}

.ic-toast-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.95));
    color: #fff;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

/* ── Mobile Responsive (Individual Catalog) ── */
@media (max-width: 900px) {
    .ic-catalog-layout {
        grid-template-columns: 1fr;
    }

    .ic-cart-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 45vh;
        border-radius: 20px 20px 0 0;
        z-index: 100;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    }

    .mp-mode-toggle {
        width: 100%;
    }

    .mp-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        gap: 8px;
    }

    .ic-cell-title,
    .ic-cell-tag {
        display: none;
    }

    .ic-table thead th:nth-child(3),
    .ic-table thead th:nth-child(4),
    .ic-table thead th:nth-child(5),
    .ic-table thead th:nth-child(6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .ic-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}