/* ============================================================
   BESTSMMSITE - SERVICES PAGE PREMIUM MARKETPLACE STYLESHEET
   World-Class Two-Column SaaS Directory (Stripe & Vercel Inspired)
   Zero Horizontal Scrollbars • Grid Cards & Clean Table Dual-Mode
   ============================================================ */

:root {
    --mkt-bg: #f8fafc;
    --mkt-surface: #ffffff;
    --mkt-surface-subtle: #f1f5f9;
    --mkt-border: #e2e8f0;
    --mkt-border-focus: #ff5e28;
    --mkt-text-heading: #0f172a;
    --mkt-text-body: #334155;
    --mkt-text-muted: #64748b;
    --mkt-primary: #ff5e28;
    --mkt-primary-dark: #e04a18;
    --mkt-primary-gradient: linear-gradient(135deg, #ff5e28 0%, #ff385c 100%);
    --mkt-primary-glow: rgba(255, 94, 40, 0.25);
    --mkt-emerald: #059669;
    --mkt-emerald-bg: rgba(16, 185, 129, 0.08);
    --mkt-emerald-border: rgba(16, 185, 129, 0.22);
    --mkt-radius-sm: 8px;
    --mkt-radius-md: 12px;
    --mkt-radius-lg: 16px;
    --mkt-radius-pill: 9999px;
    --mkt-shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    --mkt-shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.06);
    --mkt-shadow-card-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.1);
    --mkt-shadow-btn-hover: 0 8px 24px -2px rgba(255, 94, 40, 0.35);
    --mkt-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mkt-font-mono: 'JetBrains Mono', monospace;
    --mkt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes mktFadeUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mktShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes mktPulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.92);
    }
}

/* Base Wrapper */
.mkt-page-wrapper {
    background: var(--mkt-bg);
    min-height: 100vh;
    padding-bottom: 4rem;
}

.mkt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

/* Hero Section */
.mkt-hero {
    position: relative;
    padding: 3.5rem 1.25rem 2.25rem;
    text-align: center;
    background: radial-gradient(circle at 50% -30%, rgba(255, 94, 40, 0.1) 0%, rgba(248, 250, 252, 0) 70%);
    animation: mktFadeUp 0.5s var(--mkt-ease) forwards;
}

.mkt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--mkt-radius-pill);
    background: #ffffff;
    border: 1px solid rgba(255, 94, 40, 0.22);
    box-shadow: 0 2px 10px rgba(255, 94, 40, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mkt-primary);
    margin-bottom: 1rem;
}

.mkt-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: mktPulseGlow 2s infinite ease-in-out;
}

.mkt-hero-title {
    font-family: var(--mkt-font-sans);
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--mkt-text-heading);
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
}

.mkt-hero-title-accent {
    background: var(--mkt-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mkt-hero-sub {
    font-size: 1rem;
    color: var(--mkt-text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Hero Integrated Search Box */
.mkt-hero-search-box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    box-shadow: 0 6px 24px -2px rgba(15, 23, 42, 0.06);
    padding: 0.35rem 0.6rem 0.35rem 1.25rem;
    transition: all 0.2s var(--mkt-ease);
}

.mkt-hero-search-box:focus-within {
    border-color: var(--mkt-primary);
    box-shadow: 0 8px 30px -2px rgba(255, 94, 40, 0.18), 0 0 0 4px rgba(255, 94, 40, 0.1);
}

.mkt-hero-search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mkt-hero-search-box:focus-within .mkt-hero-search-icon {
    color: var(--mkt-primary);
}

.mkt-hero-search-input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--mkt-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mkt-text-heading);
}

.mkt-hero-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.mkt-search-clear-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    margin-right: 0.5rem;
    transition: all 0.15s ease;
}

.mkt-search-clear-btn:hover {
    background: #e2e8f0;
    color: var(--mkt-text-heading);
}

.mkt-search-clear-btn.visible {
    display: flex;
}

.mkt-search-kbd-chip {
    font-family: var(--mkt-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    pointer-events: none;
}

/* Two-Column Marketplace Layout */
.mkt-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.5rem;
}

/* Left Sidebar */
.mkt-sidebar {
    position: sticky;
    top: 90px;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow-subtle);
    padding: 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.mkt-sidebar::-webkit-scrollbar {
    width: 5px;
}

.mkt-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.mkt-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.mkt-sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--mkt-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mkt-sidebar-reset-btn {
    font-size: 0.74rem;
    color: var(--mkt-primary);
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s ease;
}

.mkt-sidebar-reset-btn:hover {
    opacity: 0.8;
}

/* Platform Nav List */
.mkt-platform-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mkt-platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: var(--mkt-radius-sm);
    color: var(--mkt-text-body);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.15s var(--mkt-ease);
}

.mkt-platform-item-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mkt-platform-item-icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mkt-platform-item-count {
    font-family: var(--mkt-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.mkt-platform-item:hover {
    background: #f8fafc;
    color: var(--mkt-text-heading);
    transform: translateX(2px);
}

.mkt-platform-item.active {
    background: var(--mkt-primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 94, 40, 0.28);
}

.mkt-platform-item.active .mkt-platform-item-icon i {
    color: #ffffff !important;
}

.mkt-platform-item.active .mkt-platform-item-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Sidebar Feature Filter Section */
.mkt-sidebar-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 1.15rem 0 0.85rem;
}

.mkt-feature-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mkt-feature-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--mkt-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mkt-text-body);
    background: #f8fafc;
    border: 1px solid var(--mkt-border);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mkt-feature-filter-btn:hover {
    border-color: #cbd5e1;
    color: var(--mkt-text-heading);
}

.mkt-feature-filter-btn.active {
    background: rgba(255, 94, 40, 0.08);
    border-color: rgba(255, 94, 40, 0.3);
    color: var(--mkt-primary);
}

/* Mobile Platform Select Bar (Hidden on desktop) */
.mkt-mobile-filter-bar {
    display: none;
    margin-bottom: 1.25rem;
}

.mkt-mobile-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--mkt-radius-md);
    border: 1.5px solid var(--mkt-border);
    background: #ffffff;
    font-family: var(--mkt-font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mkt-text-heading);
    outline: none;
    box-shadow: var(--mkt-shadow-subtle);
}

/* Right Main Catalog Area */
.mkt-main-content {
    min-width: 0;
}

/* Top Action Toolbar */
.mkt-toolbar-card {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    box-shadow: var(--mkt-shadow-subtle);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.mkt-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mkt-active-cat-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mkt-text-heading);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mkt-active-count-tag {
    font-family: var(--mkt-font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.mkt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mkt-dropdown-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mkt-text-muted);
}

.mkt-select-input {
    background: #ffffff;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-sm);
    padding: 0.35rem 0.6rem;
    font-family: var(--mkt-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mkt-text-heading);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mkt-select-input:focus {
    border-color: var(--mkt-primary);
}

/* View Switcher Buttons (Cards / Table) */
.mkt-view-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: var(--mkt-radius-sm);
    border: 1px solid var(--mkt-border);
}

.mkt-view-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.32rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.mkt-view-btn.active {
    background: #ffffff;
    color: var(--mkt-text-heading);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   VIEW MODE 1: MARKETPLACE CARDS (Modern Visual SaaS Grid)
   ============================================================ */
.mkt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2rem;
}

.mkt-service-card {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow-subtle);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s var(--mkt-ease);
    position: relative;
}

.mkt-service-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--mkt-shadow-card-hover);
    transform: translateY(-2px);
}

.mkt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.mkt-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mkt-badge-id {
    font-family: var(--mkt-font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mkt-platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mkt-card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.mkt-platform-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.mkt-card-title {
    font-family: var(--mkt-font-sans);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--mkt-text-heading);
    line-height: 1.45;
    word-break: break-word;
    flex: 1;
}

.mkt-card-category-path {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding-left: 2.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-card-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-left: 2.85rem;
}

.mkt-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mkt-chip.refill {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.mkt-chip.speed {
    background: rgba(255, 94, 40, 0.08);
    color: var(--mkt-primary);
    border-color: rgba(255, 94, 40, 0.2);
}

/* Card Bottom Metrics & Action */
.mkt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.mkt-price-box {
    display: flex;
    flex-direction: column;
}

.mkt-rate-badge {
    font-family: var(--mkt-font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--mkt-emerald);
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.mkt-rate-unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.mkt-minmax-label {
    font-family: var(--mkt-font-mono);
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
}

.mkt-btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    background: var(--mkt-primary-gradient);
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: var(--mkt-radius-sm);
    font-family: var(--mkt-font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 94, 40, 0.22);
    transition: all 0.18s var(--mkt-ease);
    white-space: nowrap;
}

.mkt-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: var(--mkt-shadow-btn-hover);
}

/* ============================================================
   VIEW MODE 2: CLEAN TABLE VIEW
   ============================================================ */
.mkt-table-wrapper {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow-subtle);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}

.mkt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.mkt-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    border-bottom: 1.5px solid var(--mkt-border);
    padding: 0.75rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.mkt-table thead th:first-child,
.mkt-table tbody td:first-child {
    padding-left: 1rem;
}

.mkt-table thead th:last-child,
.mkt-table tbody td:last-child {
    padding-right: 1rem;
    text-align: right;
    width: 95px;
    white-space: nowrap;
}

.mkt-table tbody tr {
    transition: background-color 0.12s ease;
    border-bottom: 1px solid #f1f5f9;
}

.mkt-table tbody tr:hover {
    background-color: #fafcff;
}

.mkt-table tbody tr:last-child td {
    border-bottom: none;
}

.mkt-table td {
    padding: 0.75rem 0.65rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.84rem;
    color: var(--mkt-text-body);
}

.mkt-table-title-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.mkt-table .mkt-btn-order {
    padding: 0.38rem 0.85rem;
    font-size: 0.78rem;
    border-radius: var(--mkt-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0;
}

/* Skeleton Loading Placeholder */
.mkt-skeleton-card {
    background: #ffffff;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    padding: 1.25rem;
}

.mkt-skeleton-bar {
    height: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: mktShimmer 1.5s infinite;
}

/* Empty Search State */
.mkt-empty-state {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    box-shadow: var(--mkt-shadow-subtle);
    margin-bottom: 2rem;
}

.mkt-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.15rem;
}

.mkt-empty-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mkt-text-heading);
    margin: 0 0 0.35rem 0;
}

.mkt-empty-desc {
    font-size: 0.88rem;
    color: var(--mkt-text-muted);
    max-width: 420px;
    margin: 0 auto 1.35rem;
    line-height: 1.5;
}

.mkt-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mkt-text-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mkt-empty-btn:hover {
    background: #f8fafc;
    border-color: var(--mkt-primary);
    color: var(--mkt-primary);
}

/* Pagination Bar */
.mkt-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    box-shadow: var(--mkt-shadow-subtle);
}

.mkt-pagination-info {
    font-size: 0.83rem;
    color: var(--mkt-text-muted);
}

.mkt-pagination-info strong {
    color: var(--mkt-text-heading);
}

.mkt-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mkt-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--mkt-border);
    background: #ffffff;
    color: var(--mkt-text-body);
    font-family: var(--mkt-font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mkt-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--mkt-text-heading);
}

.mkt-page-btn.active {
    background: var(--mkt-primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 94, 40, 0.28);
}

.mkt-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mkt-page-ellipsis {
    padding: 0 0.4rem;
    color: #94a3b8;
    font-weight: 800;
    user-select: none;
}

/* Responsive Viewports */
@media (max-width: 992px) {
    .mkt-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .mkt-sidebar {
        display: none; /* Collapsed on mobile, replaced by dropdown */
    }

    .mkt-mobile-filter-bar {
        display: block;
    }

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

@media (max-width: 768px) {
    .mkt-hero {
        padding: 2.25rem 0.5rem 1.5rem;
    }

    .mkt-hero-title {
        font-size: 1.85rem;
    }

    .mkt-search-kbd-chip {
        display: none;
    }

    .mkt-toolbar-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .mkt-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .mkt-table-wrapper {
        overflow-x: auto;
    }

    .mkt-pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
        padding: 1rem;
    }
}

/* ============================================================
   DASHBOARD INTEGRATION & DARK THEME COMPATIBILITY
   ============================================================ */
#page-services .mkt-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

#page-services .mkt-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

#page-services .mkt-sidebar {
    top: 85px;
    max-height: calc(100vh - 110px);
}

@media (max-width: 992px) {
    #page-services .mkt-layout {
        grid-template-columns: 1fr;
    }
}

body.dark {
    --mkt-bg: #070a12;
    --mkt-surface: #0f172a;
    --mkt-surface-subtle: #1e293b;
    --mkt-border: rgba(255, 255, 255, 0.08);
    --mkt-border-focus: #ff5e28;
    --mkt-text-heading: #f8fafc;
    --mkt-text-body: #cbd5e1;
    --mkt-text-muted: #94a3b8;
    --mkt-shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --mkt-shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
    --mkt-shadow-card-hover: 0 16px 36px -4px rgba(0, 0, 0, 0.7);
}

body.dark .mkt-hero {
    background: radial-gradient(circle at 50% -30%, rgba(255, 94, 40, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

body.dark .mkt-hero-badge {
    background: #0f172a;
    border-color: rgba(255, 94, 40, 0.3);
    color: #ff7a45;
}

body.dark .mkt-hero-search-box {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .mkt-hero-search-input {
    color: #f8fafc;
}

body.dark .mkt-hero-search-input::placeholder {
    color: #64748b;
}

body.dark .mkt-search-kbd-chip {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.dark .mkt-search-clear-btn {
    color: #94a3b8;
}

body.dark .mkt-search-clear-btn:hover {
    color: #f8fafc;
}

body.dark .mkt-sidebar {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-sidebar-title {
    color: #f8fafc;
}

body.dark .mkt-platform-item {
    color: #cbd5e1;
}

body.dark .mkt-platform-item:hover {
    background: #1e293b;
    color: #ffffff;
}

body.dark .mkt-platform-item.active {
    background: rgba(255, 94, 40, 0.16);
    color: #ff5e28;
    font-weight: 700;
}

body.dark .mkt-platform-item-count {
    background: #1e293b;
    color: #94a3b8;
}

body.dark .mkt-feature-filter-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark .mkt-feature-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark .mkt-feature-filter-btn.active {
    background: rgba(255, 94, 40, 0.16);
    border-color: #ff5e28;
    color: #ff5e28;
}

body.dark .mkt-mobile-select {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

body.dark .mkt-toolbar-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-active-cat-title {
    color: #f8fafc;
}

body.dark .mkt-select-input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

body.dark .mkt-view-toggle {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-view-btn {
    color: #94a3b8;
}

body.dark .mkt-view-btn.active {
    background: #0f172a;
    color: #ff5e28;
}

body.dark .mkt-service-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-service-card:hover {
    border-color: rgba(255, 94, 40, 0.45);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6);
}

body.dark .mkt-service-name {
    color: #f8fafc;
}

body.dark .mkt-service-cat {
    color: #94a3b8;
}

body.dark .mkt-chip {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark .mkt-card-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark .mkt-table-wrapper {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-table thead th {
    background: #1e293b;
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

body.dark .mkt-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

body.dark .mkt-empty-state {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-empty-title {
    color: #f8fafc;
}

body.dark .mkt-empty-desc {
    color: #94a3b8;
}

body.dark .mkt-pagination {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .mkt-page-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark .mkt-page-btn:hover:not(:disabled) {
    background: #334155;
    color: #ffffff;
}

body.dark .mkt-page-btn.active {
    background: #ff5e28;
    color: #ffffff;
    border-color: #ff5e28;
}

