/* =====================================================================
   TraceHub Marketplace 2026 - Premium marketplace components
   Layered on top of tracehub-2026.css design tokens.
   Covers: Directory, Experts, Jobs, RFPs, Templates (list + detail).
   RTL-safe (uses logical properties). Light + dark via tokens.
   ===================================================================== */

/* ---------- Page hero (compact, for list pages) ---------- */
.mkt-hero { padding-top: 3.25rem; padding-bottom: 2.5rem; }
.mkt-hero .th-hero-title { margin-bottom: 0.75rem; }

/* Count chips under the hero */
.mkt-count-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.mkt-count-chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 1rem; border-radius: var(--th-radius-pill);
    font-size: 0.875rem; font-weight: 600; border: none;
}

/* ---------- Filter toolbar ---------- */
.mkt-toolbar {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-xl);
    box-shadow: var(--th-shadow-sm);
    padding: var(--th-space-4) var(--th-space-5);
    margin-bottom: var(--th-space-5);
}
.mkt-toolbar .form-select,
.mkt-toolbar .form-control { min-height: 44px; }
.mkt-toolbar-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; color: var(--th-text-muted); margin-bottom: 0.35rem; display: block;
}

/* Section heading row (title + "view all") */
.mkt-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: var(--th-space-4);
}
.mkt-section-head h2,
.mkt-section-head h3 { margin: 0; }
.mkt-result-count { color: var(--th-text-3); font-size: 0.9rem; margin: 0; }

/* ---------- Job card ---------- */
.mkt-job {
    position: relative;
    display: flex; flex-direction: column; gap: var(--th-space-3);
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: var(--th-space-5);
    height: 100%;
    text-decoration: none; color: inherit;
    overflow: hidden; isolation: isolate;
    transition: transform var(--th-dur-3) var(--th-ease-out),
                box-shadow var(--th-dur-3) var(--th-ease),
                border-color var(--th-dur-2) var(--th-ease);
}
.mkt-job::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
    background: var(--th-gradient-success); opacity: 0;
    transform: scaleX(0.3); transform-origin: center;
    transition: opacity var(--th-dur-3) var(--th-ease), transform var(--th-dur-3) var(--th-ease);
}
.mkt-job:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lg); border-color: var(--th-border-strong); color: inherit; }
.mkt-job:hover::before { opacity: 1; transform: scaleX(1); }
.mkt-job.is-featured { border-color: rgba(245, 158, 11, 0.4); }
.mkt-job.is-featured::before { background: var(--th-gradient-warm); opacity: 1; transform: scaleX(1); }

.mkt-job-head { display: flex; align-items: flex-start; gap: var(--th-space-3); }
.mkt-logo {
    width: 52px; height: 52px; border-radius: var(--th-radius-md);
    object-fit: cover; background: var(--th-surface-3);
    border: 1px solid var(--th-border); flex-shrink: 0;
}
.mkt-logo-fallback {
    width: 52px; height: 52px; border-radius: var(--th-radius-md);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.25rem; color: #fff; flex-shrink: 0;
    background: var(--th-gradient-primary); letter-spacing: -0.02em;
}
.mkt-job-title { font-size: 1.075rem; font-weight: 700; color: var(--th-text); line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.mkt-job-company { font-size: 0.85rem; color: var(--th-text-3); margin-top: 2px; }
.mkt-job-company a { color: var(--th-text-2); font-weight: 600; text-decoration: none; }
.mkt-job-company a:hover { color: var(--th-primary); }

/* Meta chip row (employment type, location, salary...) */
.mkt-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mkt-meta-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.65rem; border-radius: var(--th-radius-pill);
    background: var(--th-surface-3); border: 1px solid var(--th-border);
    color: var(--th-text-2); font-size: 0.78rem; font-weight: 500;
}
.mkt-meta-item i { color: var(--th-text-muted); font-size: 0.72rem; }
.mkt-meta-item.is-salary { background: rgba(16,185,129,0.12); border-color: transparent; color: #047857; }
.mkt-meta-item.is-remote { background: var(--th-accent-soft); border-color: transparent; color: var(--th-teal-700); }
.mkt-meta-item.is-open { background: rgba(16,185,129,0.12); border-color: transparent; color: #047857; }
.mkt-meta-item.is-open i { color: #10b981; }
.mkt-meta-item.is-closed { background: var(--th-surface-3); border-color: var(--th-border); color: var(--th-text-muted); }
.mkt-meta-item.is-closed i { color: var(--th-text-muted); }
[data-theme="dark"] .mkt-meta-item.is-salary { color: #6ee7b7; }
[data-theme="dark"] .mkt-meta-item.is-remote { color: #67e8f9; }
[data-theme="dark"] .mkt-meta-item.is-open { color: #6ee7b7; }
[data-theme="dark"] .mkt-meta-item.is-open i { color: #6ee7b7; }

.mkt-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; margin-top: auto; padding-top: var(--th-space-3);
    border-top: 1px solid var(--th-divider);
}
.mkt-posted { font-size: 0.78rem; color: var(--th-text-muted); }
.mkt-go { color: var(--th-primary); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.mkt-job:hover .mkt-go i,
.mkt-rfp:hover .mkt-go i { transform: translateX(3px); }
.mkt-go i { transition: transform var(--th-dur-2) var(--th-ease); }

/* ---------- RFP card ---------- */
.mkt-rfp {
    position: relative;
    display: flex; flex-direction: column; gap: var(--th-space-3);
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: var(--th-space-5);
    height: 100%;
    text-decoration: none; color: inherit;
    overflow: hidden; isolation: isolate;
    transition: transform var(--th-dur-3) var(--th-ease-out),
                box-shadow var(--th-dur-3) var(--th-ease),
                border-color var(--th-dur-2) var(--th-ease);
}
.mkt-rfp::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
    background: var(--th-gradient-warm); opacity: 0;
    transform: scaleX(0.3); transform-origin: center;
    transition: opacity var(--th-dur-3) var(--th-ease), transform var(--th-dur-3) var(--th-ease);
}
.mkt-rfp:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lg); border-color: var(--th-border-strong); color: inherit; }
.mkt-rfp:hover::before { opacity: 1; transform: scaleX(1); }
.mkt-rfp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mkt-rfp-title { font-size: 1.075rem; font-weight: 700; color: var(--th-text); line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.mkt-rfp-summary {
    color: var(--th-text-3); font-size: 0.875rem; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Deadline pill */
.mkt-deadline {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.7rem; border-radius: var(--th-radius-pill);
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
    background: var(--th-surface-3); color: var(--th-text-3); border: 1px solid var(--th-border);
}
.mkt-deadline.is-soon { background: rgba(245,158,11,0.14); color: #b45309; border-color: transparent; }
.mkt-deadline.is-overdue { background: rgba(244,63,94,0.12); color: #be123c; border-color: transparent; }
[data-theme="dark"] .mkt-deadline.is-soon { color: #fbbf24; }
[data-theme="dark"] .mkt-deadline.is-overdue { color: #fda4af; }

/* Status pill */
.mkt-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.7rem; border-radius: var(--th-radius-pill);
    font-size: 0.75rem; font-weight: 700;
    background: var(--th-primary-soft); color: var(--th-primary);
}
.mkt-status.is-open { background: rgba(16,185,129,0.14); color: #047857; }
.mkt-status.is-closed,
.mkt-status.is-awarded { background: var(--th-surface-3); color: var(--th-text-3); }
[data-theme="dark"] .mkt-status.is-open { color: #6ee7b7; }

/* ---------- Detail page hero band ---------- */
.mkt-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--th-text-3); font-weight: 600; font-size: 0.875rem;
    text-decoration: none; margin-bottom: var(--th-space-4);
    transition: color var(--th-dur-1) var(--th-ease);
}
.mkt-back:hover { color: var(--th-primary); }
.mkt-back i { transition: transform var(--th-dur-2) var(--th-ease); }
.mkt-back:hover i { transform: translateX(-3px); }
[dir="rtl"] .mkt-back i { transform: scaleX(-1); }
[dir="rtl"] .mkt-back:hover i { transform: scaleX(-1) translateX(-3px); }

.mkt-detail-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-2xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--th-shadow-sm);
}
.mkt-detail-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 60% at 0% 0%, var(--th-primary-soft) 0%, transparent 70%),
        radial-gradient(40% 50% at 100% 0%, var(--th-accent-soft) 0%, transparent 70%);
    opacity: 0.9;
}
.mkt-detail-head { display: flex; align-items: flex-start; gap: var(--th-space-4); flex-wrap: wrap; }
.mkt-detail-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; color: var(--th-text); line-height: 1.15; margin: 0.5rem 0; }
.mkt-detail-sub { color: var(--th-text-3); font-size: 0.95rem; }
.mkt-detail-sub a { color: var(--th-text-2); font-weight: 600; text-decoration: none; }
.mkt-detail-sub a:hover { color: var(--th-primary); }

.mkt-detail-icon {
    width: 64px; height: 64px; border-radius: var(--th-radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
    background: var(--th-primary-soft); color: var(--th-primary);
}
.mkt-detail-icon.is-emerald { background: rgba(16,185,129,0.14); color: #047857; }
.mkt-detail-icon.is-amber { background: rgba(245,158,11,0.14); color: #b45309; }
.mkt-detail-icon.is-teal { background: var(--th-accent-soft); color: var(--th-teal-600); }
[data-theme="dark"] .mkt-detail-icon.is-emerald { color: #6ee7b7; }
[data-theme="dark"] .mkt-detail-icon.is-amber { color: #fbbf24; }

/* ---------- Content card + prose ---------- */
.mkt-card {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: var(--th-space-6);
}
.mkt-card-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.05rem; font-weight: 700; color: var(--th-text);
    margin: 0 0 var(--th-space-4);
}
.mkt-card-title i { color: var(--th-primary); }
.mkt-prose { color: var(--th-text-2); line-height: 1.75; white-space: pre-wrap; }
.mkt-prose:last-child { margin-bottom: 0; }

/* ---------- Sticky aside (apply / book / download) ---------- */
.mkt-aside {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-lg);
    padding: var(--th-space-5);
    box-shadow: var(--th-shadow-sm);
    position: sticky; top: calc(var(--th-nav-height) + 16px);
}
.mkt-aside-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0; border-bottom: 1px solid var(--th-divider); font-size: 0.9rem; }
.mkt-aside-row:last-of-type { border-bottom: none; }
.mkt-aside-row i { width: 32px; height: 32px; border-radius: 9px; background: var(--th-primary-soft); color: var(--th-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mkt-aside-row .lbl { color: var(--th-text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.mkt-aside-row .val { color: var(--th-text); font-weight: 600; }

/* Big price / highlight figure */
.mkt-figure { text-align: center; padding: var(--th-space-4) 0 var(--th-space-3); }
.mkt-figure-value { font-family: 'Plus Jakarta Sans','Inter',sans-serif; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--th-text); line-height: 1; }
.mkt-figure-value .th-grad { background: var(--th-gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-figure-label { font-size: 0.78rem; color: var(--th-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.35rem; }

/* ---------- Expert profile detail ---------- */
.mkt-expert-photo {
    width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--th-surface); box-shadow: var(--th-shadow-md);
}
.mkt-expert-photo-fallback {
    width: 132px; height: 132px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 2.75rem;
    background: var(--th-gradient-primary);
    border: 4px solid var(--th-surface); box-shadow: var(--th-shadow-md);
}

/* ---------- Tag pills ---------- */
.mkt-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mkt-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.75rem; border-radius: var(--th-radius-pill);
    background: var(--th-primary-soft); color: var(--th-primary);
    font-size: 0.8rem; font-weight: 600;
}

/* ---------- Form card ---------- */
.mkt-form-card {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-xl);
    box-shadow: var(--th-shadow-sm);
    overflow: hidden;
}
.mkt-form-card .mkt-form-body { padding: var(--th-space-6); }
.mkt-form-card .mkt-form-foot {
    padding: var(--th-space-4) var(--th-space-6);
    background: var(--th-surface-2);
    border-top: 1px solid var(--th-divider);
    display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap;
}

/* ---------- Empty state ---------- */
.mkt-empty {
    background: var(--th-surface);
    border: 1px dashed var(--th-border-strong);
    border-radius: var(--th-radius-xl);
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    text-align: center;
}
.mkt-empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--th-surface-3); color: var(--th-text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: var(--th-space-4);
}
.mkt-empty h5 { color: var(--th-text); margin-bottom: 0.5rem; }
.mkt-empty p { color: var(--th-text-3); margin-bottom: var(--th-space-4); }

/* ---------- Success / confirmation panel ---------- */
.mkt-success {
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-2xl);
    box-shadow: var(--th-shadow-md);
    padding: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
}
.mkt-success-icon {
    width: 88px; height: 88px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #fff; margin-bottom: var(--th-space-4);
    background: var(--th-gradient-success);
    box-shadow: 0 10px 24px rgba(16,185,129,0.32);
}

/* ---------- Tabs (marketplace home pills) ---------- */
.mkt-tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-pill);
    padding: 0.35rem;
    margin-bottom: var(--th-space-5);
    box-shadow: var(--th-shadow-xs);
}
.mkt-tabs .nav-link {
    border: none !important; background: transparent;
    border-radius: var(--th-radius-pill) !important;
    color: var(--th-text-2); font-weight: 600; font-size: 0.9rem;
    padding: 0.55rem 1.1rem !important;
    transition: background var(--th-dur-2) var(--th-ease), color var(--th-dur-2) var(--th-ease);
}
.mkt-tabs .nav-link:hover { background: var(--th-surface-3); color: var(--th-text); }
.mkt-tabs .nav-link.active {
    background: var(--th-gradient-primary-2) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
/* Dark mode: the tab bar sits on the dark hero, so labels + icons must be
   white to be readable. */
[data-theme="dark"] .mkt-tabs .nav-link,
[data-theme="dark"] .mkt-tabs .nav-link i,
[data-theme="dark"] .mkt-tabs .nav-link:hover { color: #fff !important; }

@media (max-width: 575.98px) {
    .mkt-tabs { border-radius: var(--th-radius-lg); }
}

/* =====================================================================
   Company Services - per-company mini-marketplace listings
   Used on: public profile storefront, service detail "more from",
   and the marketplace home "Top Services" strip.
   ===================================================================== */

.mkt-svc-grid {
    display: grid;
    gap: var(--th-space-4);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mkt-svc {
    position: relative; display: flex; flex-direction: column;
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-xl);
    overflow: hidden; isolation: isolate; height: 100%;
    text-decoration: none; color: inherit;
    transition: transform var(--th-dur-3) var(--th-ease-out),
                box-shadow var(--th-dur-3) var(--th-ease),
                border-color var(--th-dur-2) var(--th-ease);
}
.mkt-svc:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lg); border-color: var(--th-border-strong); color: inherit; }
.mkt-svc.is-featured { border-color: rgba(99,102,241,0.45); }

/* Cover */
.mkt-svc-cover {
    position: relative; aspect-ratio: 16 / 8; width: 100%;
    background: var(--th-surface-3); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.mkt-svc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--th-dur-4) var(--th-ease); }
.mkt-svc:hover .mkt-svc-cover img { transform: scale(1.04); }
.mkt-svc-cover-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.1rem; color: #fff;
    background: var(--th-gradient-primary);
}
.mkt-svc-ribbon {
    position: absolute; inset-block-start: 0.7rem; inset-inline-start: 0.7rem; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.28rem 0.6rem; border-radius: var(--th-radius-pill);
    font-size: 0.72rem; font-weight: 700; color: #fff;
    background: var(--th-gradient-primary); box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

/* Body */
.mkt-svc-body { display: flex; flex-direction: column; gap: 0.5rem; padding: var(--th-space-4); flex: 1; }
.mkt-svc-cat {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem; border-radius: var(--th-radius-pill);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    background: var(--th-primary-soft); color: var(--th-primary);
}
.mkt-svc-title { font-size: 1.05rem; font-weight: 700; color: var(--th-text); line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.mkt-svc-desc {
    color: var(--th-text-3); font-size: 0.875rem; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-svc-company { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--th-text-3); }
.mkt-svc-company img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; border: 1px solid var(--th-border); flex-shrink: 0; }
.mkt-svc-company .ico { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #fff; background: var(--th-gradient-primary); flex-shrink: 0; }
.mkt-svc-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    margin-top: auto; padding-top: var(--th-space-3); border-top: 1px solid var(--th-divider);
}
.mkt-svc-price { font-weight: 800; color: var(--th-text); font-size: 0.95rem; }
.mkt-svc-price .lbl { font-size: 0.7rem; font-weight: 600; color: var(--th-text-muted); display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.mkt-svc-go { color: var(--th-primary); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.mkt-svc-go i { transition: transform var(--th-dur-2) var(--th-ease); }
.mkt-svc:hover .mkt-svc-go i { transform: translateX(3px); }
[dir="rtl"] .mkt-svc-go i { transform: scaleX(-1); }
[dir="rtl"] .mkt-svc:hover .mkt-svc-go i { transform: scaleX(-1) translateX(3px); }

.mkt-svc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mkt-svc-tag {
    display: inline-flex; padding: 0.18rem 0.5rem; border-radius: var(--th-radius-pill);
    background: var(--th-surface-3); border: 1px solid var(--th-border);
    color: var(--th-text-2); font-size: 0.72rem; font-weight: 600;
}

/* ---------- Storefront filter pills (client-side) ---------- */
.mkt-svc-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: var(--th-space-4); }
.mkt-svc-filterbar .th-search-icon-wrap { position: relative; flex: 1 1 220px; min-width: 200px; }
.mkt-svc-filterbar input[type="search"] { width: 100%; }
.mkt-svc-pill {
    display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
    padding: 0.45rem 0.9rem; border-radius: var(--th-radius-pill);
    background: var(--th-surface); border: 1px solid var(--th-border);
    color: var(--th-text-2); font-size: 0.85rem; font-weight: 600;
    transition: background var(--th-dur-2) var(--th-ease), color var(--th-dur-2) var(--th-ease), border-color var(--th-dur-2) var(--th-ease);
}
.mkt-svc-pill:hover { background: var(--th-surface-3); color: var(--th-text); }
.mkt-svc-pill.active { background: var(--th-gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(99,102,241,0.28); }

/* ---------- Detail page ---------- */
.mkt-svc-hero-cover {
    width: 100%; max-height: 420px; aspect-ratio: 16 / 7; object-fit: cover;
    border-radius: var(--th-radius-2xl); border: 1px solid var(--th-border); background: var(--th-surface-3);
}
.mkt-svc-hero-fallback {
    width: 100%; aspect-ratio: 16 / 7; max-height: 360px; border-radius: var(--th-radius-2xl);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem;
    background: var(--th-gradient-primary);
}
.mkt-svc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
.mkt-svc-gallery img {
    width: 100%; height: 110px; object-fit: cover; border-radius: var(--th-radius-md);
    border: 1px solid var(--th-border); cursor: pointer;
    transition: transform var(--th-dur-2) var(--th-ease), box-shadow var(--th-dur-2) var(--th-ease);
}
.mkt-svc-gallery img:hover { transform: translateY(-2px); box-shadow: var(--th-shadow-md); }

/* ---------- Lightbox ---------- */
.mkt-lightbox {
    position: fixed; inset: 0; z-index: 2000; display: none;
    align-items: center; justify-content: center; padding: 2rem;
    background: rgba(2, 6, 23, 0.86); backdrop-filter: blur(4px);
}
.mkt-lightbox.open { display: flex; }
.mkt-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--th-radius-lg); box-shadow: var(--th-shadow-lg); }
.mkt-lightbox-close {
    position: absolute; top: 1.1rem; inset-inline-end: 1.3rem; width: 44px; height: 44px;
    border-radius: 50%; border: none; cursor: pointer; font-size: 1.2rem;
    background: rgba(255,255,255,0.15); color: #fff;
}
.mkt-lightbox-close:hover { background: rgba(255,255,255,0.28); }
