/* ==========================================================================
   TropaTT Marketplace — Official Design System
   Matches tropatt.com & demo.tropatt.com authentic aesthetic
   Archetype: Precision Technical Tool & Engineered Registry (No AI-slop)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
    /* Brand Colors derived directly from tropatt.com & demo.tropatt.com */
    --bg-canvas: #f4f7f6;
    --bg-soft: #e9efee;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.88);
    --bg-hover: #eef3f2;
    --bg-active: #e2edea;
    
    /* Typography Inks */
    --text-ink: #101615;
    --text-ink-soft: #273533;
    --text-muted: #5e6f6d;
    --text-dim: #889997;
    
    /* Lines & Borders */
    --line-subtle: #e2e9e8;
    --line-medium: #d1dcda;
    --line-strong: #b2c4c1;
    --border-focus: #0f8f72;
    
    /* Official TropaTT Emerald Accents */
    --accent-emerald: #0f8f72;
    --accent-emerald-hover: #0b755d;
    --accent-emerald-soft: rgba(15, 143, 114, 0.08);
    --accent-emerald-border: rgba(15, 143, 114, 0.25);
    
    /* Secondary & Functional Accents */
    --brand-dark: #101918;
    --brand-dark-hover: #1c2b29;
    --accent-mint: #8ee0cd;
    --accent-mint-soft: #e6f6f2;
    
    /* Tropa Path Amber/Gold (from logo trail) */
    --accent-gold: #d9822b;
    --accent-gold-soft: rgba(217, 130, 43, 0.1);
    --accent-gold-border: rgba(217, 130, 43, 0.28);
    
    /* Semantic Status */
    --status-success-bg: #e6f7f2;
    --status-success-border: #a3e3d2;
    --status-success-text: #0b755d;
    
    --status-warning-bg: #fef7ed;
    --status-warning-border: #fed7aa;
    --status-warning-text: #c2410c;
    
    --status-danger-bg: #fef2f2;
    --status-danger-border: #fecaca;
    --status-danger-text: #b91c1c;

    --status-info-bg: #f0f9ff;
    --status-info-border: #bae6fd;
    --status-info-text: #0369a1;
    
    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(17, 37, 34, 0.04);
    --shadow-card: 0 4px 20px -4px rgba(17, 37, 34, 0.06), 0 1px 3px rgba(17, 37, 34, 0.03);
    --shadow-hover: 0 12px 32px -6px rgba(17, 37, 34, 0.12), 0 2px 6px rgba(17, 37, 34, 0.04);
    --shadow-popover: 0 16px 48px -8px rgba(17, 37, 34, 0.16);
    
    /* Motion */
    --ease-tropatt: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-snappy: 160ms var(--ease-tropatt);
}

/* Reset & Global Baseline */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Slim Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
    background: #cbd7d5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9cb1ad;
}

/* Monospace Code Typography */
code, pre, .font-monospace, .code-pill {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    letter-spacing: -0.02em;
}

code {
    font-size: 0.88em;
    color: var(--accent-emerald-hover);
    background: var(--accent-emerald-soft);
    padding: 0.15em 0.45em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-emerald-border);
}

/* Subtle background grid (from tropatt.com) */
.bg-tropatt-grid {
    background-image: 
        linear-gradient(to right, rgba(16, 25, 24, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 25, 24, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ==========================================================================
   Official Floating Island Header (matches tropatt.com/ru/)
   ========================================================================== */
.crm-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 300;
    width: min(calc(100% - 24px), 1216px);
    transform: translateX(-50%);
    transition: transform .45s cubic-bezier(.32, .72, 0, 1);
}

.crm-header-wrap {
    width: 100%;
}

.crm-header-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(250, 252, 251, 0.76);
    box-shadow: 0 12px 34px rgba(17, 37, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(1.1);
    transition: box-shadow .45s cubic-bezier(.32, .72, 0, 1),
                background .45s cubic-bezier(.32, .72, 0, 1),
                border-color .45s cubic-bezier(.32, .72, 0, 1);
}

.crm-header.scrolled .crm-header-inner {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(16, 25, 24, 0.1);
    box-shadow: 0 16px 44px rgba(17, 37, 34, 0.14);
}

/* Official TropaTT Logo */
.crm-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 0px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 860;
    text-decoration: none;
    color: var(--text-ink);
    white-space: nowrap;
    transition: color .25s cubic-bezier(.32, .72, 0, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.crm-logo:hover {
    color: var(--accent-emerald);
    transform: translateY(-1px);
}

.crm-logo::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-emerald), #163b34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 7px 7px 0 rgba(15, 143, 114, 0.18);
    transition: box-shadow .25s cubic-bezier(.32, .72, 0, 1), transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.crm-logo:hover::before {
    transform: rotate(-4deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 5px 5px 0 rgba(15, 143, 114, 0.24);
}

.brand-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.52rem;
    border-radius: var(--radius-full);
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
}

.crm-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crm-nav-link {
    display: none;
    position: relative;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-ink-soft);
    font-size: 0.84rem;
    font-weight: 680;
    text-decoration: none;
    transition: background .3s cubic-bezier(.32, .72, 0, 1),
                color .3s cubic-bezier(.32, .72, 0, 1),
                transform .3s cubic-bezier(.32, .72, 0, 1);
    white-space: nowrap;
}

@media (min-width: 930px) {
    .crm-nav-link {
        display: inline-flex;
    }
}

.crm-nav-link:hover, .crm-nav-link:focus-visible {
    color: var(--text-ink);
    background: rgba(15, 143, 114, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.crm-nav-link:active {
    transform: translateY(0px) scale(0.98);
}

.crm-nav-link.active {
    color: var(--accent-emerald);
    background: var(--accent-emerald-soft);
    font-weight: 750;
}

/* Header CTAs */
.crm-btn-pill-sec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text-ink-soft);
    background: rgba(244, 247, 246, 0.86);
    border: 1px solid rgba(16, 25, 24, 0.1);
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}

.crm-btn-pill-sec:hover {
    color: var(--text-ink);
    background: #ffffff;
    border-color: rgba(16, 25, 24, 0.2);
    box-shadow: 0 4px 12px rgba(17, 37, 34, 0.08);
    transform: translateY(-1px);
}

.crm-btn-pill-pri {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-hover));
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 143, 114, 0.25);
    transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
    white-space: nowrap;
}

.crm-btn-pill-pri:hover {
    background: linear-gradient(135deg, var(--accent-emerald-hover), #085a47);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 143, 114, 0.35);
    transform: translateY(-1px);
}

.crm-btn-pill-pri:active {
    transform: translateY(0) scale(0.98);
}

/* Official Hamburger */
.crm-hamburger {
    display: flex;
    position: relative;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s ease;
}

.crm-hamburger:hover {
    background: rgba(15, 143, 114, 0.08);
}

.crm-hamburger:focus-visible {
    outline: 2px solid var(--accent-emerald);
    outline-offset: 3px;
}

@media (min-width: 930px) {
    .crm-hamburger {
        display: none;
    }
}

.crm-hamburger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-ink);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1),
                opacity .25s cubic-bezier(.32, .72, 0, 1),
                top .35s cubic-bezier(.32, .72, 0, 1);
}

.crm-hamburger span:nth-child(1) { top: 12px; }
.crm-hamburger span:nth-child(2) { top: 18px; }
.crm-hamburger span:nth-child(3) { top: 24px; }

.crm-hamburger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.crm-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.crm-hamburger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* Official Mobile Fullscreen Overlay */
.crm-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 290;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 247, 246, 0.98);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s cubic-bezier(.32, .72, 0, 1),
                visibility .35s ease;
}

.crm-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.crm-mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    width: 100%;
    max-width: 440px;
}

.crm-mobile-menu-content a {
    font-size: clamp(1.2rem, 5.5vw, 1.75rem);
    line-height: 1.2;
    font-weight: 750;
    color: var(--text-ink);
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s cubic-bezier(.32, .72, 0, 1),
                transform .35s cubic-bezier(.32, .72, 0, 1),
                color .2s ease;
}

.crm-mobile-menu-content a:hover,
.crm-mobile-menu-content a.active {
    color: var(--accent-emerald);
}

.crm-mobile-overlay.open a {
    opacity: 1;
    transform: translateY(0);
}

.crm-mobile-overlay.open a:nth-child(1) { transition-delay: 0.04s; }
.crm-mobile-overlay.open a:nth-child(2) { transition-delay: 0.08s; }
.crm-mobile-overlay.open a:nth-child(3) { transition-delay: 0.12s; }
.crm-mobile-overlay.open a:nth-child(4) { transition-delay: 0.16s; }
.crm-mobile-overlay.open a:nth-child(5) { transition-delay: 0.20s; }

/* Main content top offset for floating island header */
.main-offset {
    padding-top: 96px;
}

@media (max-width: 760px) {
    .crm-header {
        top: 8px;
        width: calc(100% - 16px);
    }
    .crm-header-inner {
        min-height: 52px;
        padding: 6px 8px 6px 14px;
    }
    .crm-logo {
        font-size: 0.94rem;
    }
    .main-offset {
        padding-top: 76px;
    }
}

/* ==========================================================================
   Buttons (Physical Tactile Precision)
   ========================================================================== */
.btn-mkt-primary {
    background: var(--accent-emerald);
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.52rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(15, 143, 114, 0.25);
    transition: var(--transition-snappy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.btn-mkt-primary:hover {
    background: var(--accent-emerald-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 143, 114, 0.32);
}

.btn-mkt-primary:active {
    transform: translateY(0);
}

.btn-mkt-dark {
    background: var(--brand-dark);
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.52rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(16, 25, 24, 0.2);
    transition: var(--transition-snappy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.btn-mkt-dark:hover {
    background: var(--brand-dark-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 25, 24, 0.3);
}

.btn-mkt-secondary {
    background: #ffffff;
    color: var(--text-ink) !important;
    font-size: 0.86rem;
    font-weight: 550;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-medium);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-snappy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.btn-mkt-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--line-strong);
    color: var(--text-ink) !important;
    transform: translateY(-1px);
}

.btn-mkt-secondary:active {
    transform: translateY(0);
}

/* ==========================================================================
   Hero Section: Editorial Asymmetrical Layout
   ========================================================================== */
.hero-editorial {
    padding: 3.5rem 0 3rem 0;
    position: relative;
    border-bottom: 1px solid var(--line-subtle);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-canvas) 100%);
}

.hero-editorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(16, 25, 24, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 25, 24, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent-emerald);
    background: #ffffff;
    border: 1px solid var(--accent-emerald-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.hero-dot-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(15, 143, 114, 0.2);
}

.hero-heading {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: var(--text-ink);
    margin-top: 0.85rem;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 1.8rem;
}

/* Command Search Bar in Hero */
.search-command-box {
    background: #ffffff;
    border: 1px solid var(--line-medium);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.45rem 0.35rem 1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-snappy);
    max-width: 560px;
}

.search-command-box:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 4px var(--accent-emerald-soft), var(--shadow-card);
}

.search-command-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-ink);
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
}

.search-command-input::placeholder {
    color: var(--text-dim);
}

.search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.42rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
}

/* Interactive Spotlight Feature Card in Hero */
.spotlight-card {
    background: #ffffff;
    border: 1px solid var(--line-medium);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition-snappy);
}

.spotlight-card:hover {
    border-color: var(--accent-emerald-border);
    box-shadow: var(--shadow-hover);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-mint));
}

.code-snippet-box {
    background: var(--brand-dark);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    color: #e5f3f0;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Metrics Telemetry Row
   ========================================================================== */
.metric-box-light {
    background: #ffffff;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: var(--transition-snappy);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.metric-box-light:hover {
    border-color: var(--line-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.metric-number-light {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-ink);
}

.metric-label-light {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ==========================================================================
   Module Cards (Rich, Crisp, Distinct)
   ========================================================================== */
.mkt-card {
    background: #ffffff;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-snappy);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.col-md-6 > .mkt-card,
.col-lg-4 > .mkt-card,
.col-sm-6 > .mkt-card,
.row.g-3 > div > .mkt-card {
    height: 100%;
}

.toolbar-panel {
    background: #ffffff;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

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

/* Category-Specific Visual Icons */
.icon-box-cat {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.icon-box-cat.cat-ecommerce {
    background: #e6f6f2;
    color: #0f8f72;
    border-color: #b5e8dc;
}

.icon-box-cat.cat-productivity {
    background: #fff7ed;
    color: #d97706;
    border-color: #fde68a;
}

.icon-box-cat.cat-migration {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.icon-box-cat.cat-calendar {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.icon-box-cat.cat-integration {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.icon-box-cat.cat-productivity {
    background: #fff7ed;
    color: #d97706;
    border-color: #fde68a;
}

.icon-box-cat.cat-diagram {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fbcfe8;
}

.icon-box-cat.cat-default {
    background: var(--bg-soft);
    color: var(--text-muted);
    border-color: var(--line-medium);
}

.mkt-card-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
}

.mkt-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-muted);
    border: 1px solid var(--line-subtle);
}

.mkt-category-chip.cat-migration {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.mkt-category-chip.cat-calendar {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.mkt-category-chip.cat-integration {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.mkt-category-chip.cat-productivity {
    background: #fff7ed;
    color: #b45309;
    border-color: #fde68a;
}

.mkt-category-chip.cat-diagram {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

/* CRM-Identical Category Filter Group from ui.css */
#moduleFilterBar {
    margin-bottom: 1rem;
}

#moduleCategoryFilters {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--line-medium);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

#moduleCategoryFilters .module-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-right: 1px solid var(--line-medium);
    border-radius: 0 !important;
    background: #ffffff !important;
    color: var(--text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    height: 34px;
    min-height: 34px;
    padding: 0 0.85rem;
    box-shadow: none;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

#moduleCategoryFilters .module-filter:first-child {
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
}

#moduleCategoryFilters .module-filter:last-child {
    border-right: 0;
    border-top-right-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
}

#moduleCategoryFilters .module-filter:hover:not(.active) {
    background: #f8fafc !important;
    color: var(--text-ink) !important;
}

#moduleCategoryFilters .module-filter.active {
    background: var(--accent-emerald) !important;
    background-color: var(--accent-emerald) !important;
    color: #ffffff !important;
}

#moduleCategoryFilters .module-filter:focus-visible {
    z-index: 1;
    box-shadow: inset 0 0 0 2px var(--accent-emerald);
}

.mkt-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-ink);
    margin-bottom: 0.35rem;
    line-height: 1.35;
    height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt-title a {
    color: inherit;
    text-decoration: none;
    transition: color 120ms ease;
}

.mkt-title a:hover {
    color: var(--accent-emerald);
}

.mkt-meta-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mkt-author {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.mkt-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    height: 3em;
    margin: 0.65rem 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line-subtle);
    font-size: 0.8rem;
    margin-top: auto;
}

/* ==========================================================================
   Badges & Micro-Pills
   ========================================================================== */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
}

.tag-version {
    background: var(--bg-soft);
    border: 1px solid var(--line-subtle);
    color: var(--text-ink-soft);
}

.tag-free {
    background: var(--status-success-bg);
    border: 1px solid var(--status-success-border);
    color: var(--status-success-text);
}

.tag-paid {
    background: var(--status-warning-bg);
    border: 1px solid var(--status-warning-border);
    color: var(--status-warning-text);
}

.tag-category {
    background: var(--bg-soft);
    border: 1px solid var(--line-subtle);
    color: var(--text-muted);
}

/* ==========================================================================
   Category Grid Tiles
   ========================================================================== */
.category-tile {
    background: #ffffff;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    height: 100%;
    display: block;
    text-decoration: none;
    transition: var(--transition-snappy);
    box-shadow: var(--shadow-sm);
}

.category-tile:hover {
    background: #ffffff;
    border-color: var(--accent-emerald-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-ink);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Publisher Callout Banner
   ========================================================================== */
.publisher-banner {
    background: linear-gradient(135deg, #101918 0%, #172926 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.publisher-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(15, 143, 114, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   Sidebar Filters
   ========================================================================== */
.filter-group {
    background: #ffffff;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.filter-heading {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: var(--transition-snappy);
}

.filter-item-link:hover {
    background: var(--bg-hover);
    color: var(--text-ink);
}

.filter-item-link.active {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
    font-weight: 650;
    border: 1px solid var(--accent-emerald-border);
}

/* ==========================================================================
   Tabs & Nav Pills
   ========================================================================== */
.nav-pills .nav-link-item {
    border: 1px solid transparent;
}

.nav-pills .nav-link-item.active {
    background: var(--accent-emerald-soft) !important;
    color: var(--accent-emerald) !important;
    border-color: var(--accent-emerald-border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-mkt {
    background: #ffffff;
    border-top: 1px solid var(--line-subtle);
    padding: 3rem 0;
    margin-top: 5rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 120ms ease;
}

.footer-link:hover {
    color: var(--accent-emerald);
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--accent-emerald);
}
.breadcrumb-item.active {
    color: var(--text-ink);
    font-weight: 600;
}
