/* Absolute YouTube Studio Theme Alignment */
.studio-bg { background-color: #f9f9f9; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.studio-card { background: #ffffff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 24px; margin-bottom: 10px; }
.studio-title { font-size: 24px; font-weight: 700; color: #0d0d0d; letter-spacing: -0.2px; }

/* Interactive Pills */
.studio-pill { border: none; background: #f2f2f2; color: #0f0f0f; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: all 0.15s; margin-right: 6px; }
.studio-pill:hover { background: #e5e5e5; }
.studio-pill.active { background: #0f0f0f; color: #ffffff; }

/* Performance Multi-Tabs Layout */
.studio-tabs-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e3e3e3; border-radius: 8px; background: #ffffff; overflow: hidden; }
.studio-tab { border: none; background: transparent; padding: 16px; text-align: left; border-right: 1px solid #e3e3e3; border-bottom: 4px solid transparent; transition: all 0.2s; }
.studio-tab:last-child { border-right: none; }
.studio-tab:hover { background-color: #f6f6f6; }
.studio-tab.active { border-bottom-color: #47b2e4; background-color: #ffffff; }

.tab-label { font-size: 12px; color: #606060; font-weight: 500; margin-bottom: 4px; display: block; }
.tab-value { font-size: 22px; font-weight: 700; color: #0d0d0d; line-height: 1.2; }
.tab-subtext { font-size: 11px; color: #606060; margin-top: 2px; }

/* Custom Row Analytics Panel */
.bar-track { height: 8px; background-color: #eeeeee; border-radius: 4px; overflow: hidden; display: inline-block; width: 100px; }
.bar-fill { height: 100%; background-color: #47b2e4; border-radius: 4px; }

/* Stat Card Top Tile */
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
.stat-tile .stat-tile-value { font-size: 20px; font-weight: 700; color: #0d0d0d; line-height: 1.2; }
.stat-tile .stat-tile-label { font-size: 12px; color: #606060; font-weight: 500; }
.stat-tile .stat-tile-trend { font-size: 11px; font-weight: 600; }

/* Donut Chart SVG Centering */
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.donut-wrap.is-stack { flex-direction: column; gap: 8px; }
.donut-center-label { text-align: left; }
.donut-center-label .donut-h { font-size: 26px; font-weight: 700; color: #0d0d0d; line-height: 1; }
.donut-center-label .donut-s { font-size: 12px; color: #606060; margin-top: 4px; display: block; }

/* Legend dots */
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

/* Tiny pill filter row used inside each card */
.pill-row .studio-pill { margin-right: 6px; margin-bottom: 6px; padding: 5px 10px; font-size: 12px; }
.pill-row .studio-pill.active { background: #0f0f0f; color: #ffffff; }

/* Sticky trend filter card (slim: just tabs + date range) */
.trend-filter-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 14px 24px;
    background: #f9f9f9;
}
@media (max-width: 767.98px) {
    .trend-filter-sticky {
        top: 0;
    }
    #trendRangeDropdown {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
    }
    #trendRangeButton {
        width: 100%;
        justify-content: center;
    }
    #categoryButton {
        width: 100%;
        justify-content: center;
    }
    #categoryDropdown {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
    }
}

/* Anchor scroll offset for card headings so the sticky card
   doesn't hide them when navigated from the footer. */
[id^="heading"] { scroll-margin-top: 80px; }

/* Two-tone bar with secondary bar (used in combined metrics) */
.dual-bar-track { height: 6px; background-color: #eeeeee; border-radius: 4px; overflow: hidden; width: 120px; display: inline-block; }
.dual-bar-fill { display: flex; height: 100%; }

/* Subtle entity grouping card */
.card-rowitem { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.card-rowitem:last-child { border-bottom: none; }

/* 3-column Pay Bands table (Band | Percentage | Vacancies) */
.pay-band-table { border-top: 1px solid #f0f0f0; padding-top: 4px; }
.pay-band-table > .pay-band-header,
.pay-band-table > .pay-band-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    column-gap: 16px;
    align-items: center;
    padding: 10px 0;
}
.pay-band-table > .pay-band-header {
    font-size: 11px;
    color: #606060;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e3e3e3;
    padding: 6px 0 8px;
}
.pay-band-table > .pay-band-row {
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.pay-band-table > .pay-band-row:last-child { border-bottom: none; }
.pay-band-table .pay-band-cell-percent { text-align: end; color: #0d0d0d; font-weight: 600; }
.pay-band-table .pay-band-cell-vacancies { text-align: end; color: #0d0d0d; font-weight: 700; }

/* Empty state placeholder */
.empty-state {
    padding: 32px 12px;
    text-align: center;
    color: #909090;
    font-size: 13px;
    font-weight: 500;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color tokens */
.c-purple-deep { background-color: #4f2da7; }
.c-purple { background-color: #47b2e4; }

/* Date range dropdown (YouTube Studio style) */
.trend-range-btn {
    background: transparent;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #0f0f0f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.trend-range-btn:hover { background: #f7f7f7; }
.trend-range-btn:focus-visible {
    outline: 2px solid #47b2e4;
    outline-offset: 2px;
}
.trend-range-btn-chevron {
    font-size: 12px;
    color: #606060;
    transition: transform 0.15s ease;
}
.trend-range-btn[aria-expanded="true"] .trend-range-btn-chevron {
    transform: rotate(180deg);
}

/* Floating menu */
.trend-range-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 6px 0;
    z-index: 50;
    animation: trendRangeOpen 0.12s ease-out;
}
.trend-range-dropdown-up {
    top: auto;
    bottom: calc(100% + 6px);
    animation-name: trendRangeOpenUp;
}
@keyframes trendRangeOpenUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes trendRangeOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.trend-range-dropdown-header {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #606060;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Menu rows */
.trend-range-option {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    font-size: 14px;
    color: #0d0d0d;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.12s ease;
}
.trend-range-option:hover { background: #f6f6f6; }
.trend-range-option:focus-visible {
    background: #f0eaff;
    outline: none;
}
.trend-range-option-check {
    color: #0f0f0f;
    font-size: 16px;
    visibility: hidden;
    line-height: 1;
    width: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trend-range-option.active .trend-range-option-check {
    visibility: visible;
}
.trend-range-option > span { flex: 1; display: block; }
.c-purple-soft { background-color: #bfa6ff; }
.c-blue { background-color: #3a8dde; }
.c-teal { background-color: #2bb6a3; }
.c-orange { background-color: #f4801a; }
.c-pink { background-color: #d6536f; }
.c-green { background-color: #2ea043; }
.c-amber-light { background-color: #fbcd6c; }
.c-amber { background-color: #f5b800; }
.c-amber-deep { background-color: #e09511; }
.c-yellow { background-color: #ffd83d; }
.c-cyan { background-color: #00bcd4; }
.c-indigo { background-color: #5b6bcf; }
.c-violet { background-color: #a855f7; }
.c-red { background-color: #d24a4a; }
.c-coral { background-color: #ff8a65; }
.c-mint { background-color: #7ec7a8; }
.c-emerald { background-color: #0e8a5f; }
.c-gray { background-color: #9aa0a6; }

/* Location Modal */
.location-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.location-modal.active { display: flex; }
.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.location-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #0d0d0d;
}
.location-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #909090;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.12s;
}
.location-modal-close:hover { color: #0d0d0d; }
.location-modal-search {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.location-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.location-search-input:focus { border-color: #47b2e4; }
.location-modal-body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
    min-height: 0;
}
.location-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.1s;
}
.location-modal-item:hover { background: #f9f9f9; }
.location-modal-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: all 0.12s;
}
.location-modal-item input[type="checkbox"]:checked {
    background: #47b2e4;
    border-color: #47b2e4;
}
.location-modal-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.location-modal-lbl {
    font-size: 14px;
    color: #0d0d0d;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location-modal-cnt {
    font-size: 12px;
    color: #909090;
    flex-shrink: 0;
}
.location-modal-item.hide { display: none; }

/* Separate metric stat cards (replaces studio-tabs-grid) */
.metric-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    border-bottom: 4px solid #f0eaff;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.metric-card:hover {
    background: #fafafa;
    border-bottom-color: #c5b0eb;
}
.metric-card.active {
    border-bottom-color: #47b2e4;
    background: #ffffff;
}
.metric-card .tab-label { font-size: 12px; color: #606060; font-weight: 500; margin-bottom: 4px; display: block; }
.metric-card .tab-value { font-size: 22px; font-weight: 700; color: #0d0d0d; line-height: 1.2; }
.metric-card .tab-subtext { font-size: 11px; color: #606060; margin-top: 2px; }
.mini-chart-wrap { margin-top: 12px; height: 60px; }

/* Metric carousel arrows + dots (mobile only) */
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e3e3e3;
    background: #ffffff; color: #606060; display: flex; align-items: center;
    justify-content: center; cursor: pointer; transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.carousel-arrow:hover { background: #f6f6f6; color: #0d0d0d; }
.carousel-arrow-prev { left: 4px; }
.carousel-arrow-next { right: 4px; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 0 16px; }
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0;
    transition: all 0.25s ease; cursor: pointer;
}
.carousel-dot.active { background: #47b2e4; width: 24px; border-radius: 4px; }

/* Mobile carousel: horizontal snap-scroll for metric cards */
@media (max-width: 767.98px) {
    .metric-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        margin: 0 !important;
        scrollbar-width: none;
    }
    .metric-carousel::-webkit-scrollbar { display: none; }
    .metric-carousel > .metric-carousel-cell {
        flex: 0 0 85vw !important;
        scroll-snap-align: start !important;
        padding: 0 !important;
        max-width: none !important;
    }
    .metric-carousel .metric-card {
        height: 100%;
    }
    .metric-carousel .mini-chart-wrap {
        margin-top: 8px;
        height: 50px;
    }
}

/* Mobile Quick-Jump Nav */
#mobileBarNav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.mobile-nav-cell {
    flex: 0 0 33.333%;
    min-width: 0;
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #606060;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.mobile-nav-btn i {
    font-size: 18px;
    line-height: 1;
    display: block;
}
.mobile-nav-btn:hover,
.mobile-nav-btn:focus-visible {
    color: #0d0d0d;
    background: #f6f6f6;
    outline: none;
}
.mobile-nav-btn:active {
    transform: scale(0.94);
}
.mobile-nav-btn.active {
    color: #4f2da7;
    background: #f0eaff;
}

/* Full-width date chip */
.mobile-date-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 12px;
    background: #f6f6f6;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    color: #0d0d0d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-date-chip:hover {
    background: #ededed;
    border-color: #d0d0d0;
}
.mobile-date-chip:focus-visible {
    outline: 2px solid #47b2e4;
    outline-offset: 2px;
}
.mobile-date-chip .chip-arrow {
    margin-left: auto;
    color: #606060;
    font-size: 12px;
}
.mobile-date-chip i.bi-calendar3 {
    color: #4f2da7;
    font-size: 16px;
}

/* Trend-panel swipe-forward chevron */
.trend-panel-next-arrow {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #ffffff;
    color: #606060;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    z-index: 2;
}
.trend-panel-next-arrow:hover {
    background: #f6f6f6;
    color: #0d0d0d;
    border-color: #d0d0d0;
}
.trend-panel-next-arrow:focus-visible {
    outline: 2px solid #47b2e4;
    outline-offset: 2px;
}

/* Mobile bottom bar */
@media (max-width: 767.98px) {
    body { padding-bottom: 110px; }

    .trend-range-dropdown-up {
        position: fixed !important;
        bottom: 175px !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        transform: none !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.1) !important;
        border-radius: 14px !important;
        padding: 6px 0 10px !important;
        z-index: 1060 !important;
        border: none !important;
        animation: sheetUp 0.25s ease-out !important;
    }
    .trend-range-dropdown-up .sheet-handle {
        display: block;
        width: 32px;
        height: 4px;
        background: #d0d0d0;
        border-radius: 2px;
        margin: 0 auto 6px;
    }
    @keyframes sheetUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
    .trend-range-dropdown-up .trend-range-dropdown-header {
        padding: 10px 16px 6px 20px;
        font-size: 12px;
    }
    .trend-range-dropdown-up .trend-range-option {
        padding: 14px 20px;
        font-size: 16px;
    }
    .trend-range-dropdown-up .close-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 22px;
        color: #606060;
        background: none;
        border: none;
        cursor: pointer;
        margin: -6px -4px;
    }
    .trend-range-dropdown-up .close-btn:hover {
        background: #f6f6f6;
    }
}
#mobileResultBar {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px));
}

/* Ensure sticky works inside the grid container */
.content-area {
    align-self: start;
    overflow: visible;
}

/* Mobile metric filter pills in bottom bar */
.mobile-filter-pill {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #f2f2f2;
    color: #0f0f0f;
    transition: all 0.15s;
    white-space: nowrap;
}
.mobile-filter-pill:hover { background: #e5e5e5; }
.mobile-filter-pill.active { background: #0f0f0f; color: #ffffff; }
.mobile-up-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    color: #606060;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.mobile-up-arrow:hover {
    background: #f6f6f6;
    color: #0d0d0d;
    border-color: #d0d0d0;
}

/* Desktop Sidebar Filter Panel (Naukri-style) */
.filter-sidebar {
    min-width: 0;
}
.filter-sidebar .filter-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
}
.filter-sidebar .filter-all-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0d0d0d;
    padding: 14px 16px;
    border-bottom: 1px solid #e3e3e3;
}
.filter-sidebar .filter-group {
    border-bottom: 1px solid #f0f0f0;
}
.filter-sidebar .filter-group:last-child {
    border-bottom: none;
}
.filter-sidebar .filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #0d0d0d;
    transition: background 0.12s ease;
}
.filter-sidebar .filter-group-header:hover {
    background: #fafafa;
}
.filter-sidebar .filter-group-header .arrow {
    font-size: 10px;
    color: #909090;
    transition: transform 0.2s ease;
}
.filter-sidebar .filter-group-header .arrow.open {
    transform: rotate(180deg);
}
.filter-sidebar .filter-group-body {
    padding: 4px 16px 12px;
}
.filter-sidebar .filter-group-body.closed {
    display: none;
}
.filter-sidebar .filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
}
.filter-sidebar .filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.12s ease;
    margin: 0;
}
.filter-sidebar .filter-option input[type="checkbox"]:checked {
    background: #47b2e4;
    border-color: #47b2e4;
}
.filter-sidebar .filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter-sidebar .filter-option .filter-lbl {
    font-size: 13px;
    color: #0d0d0d;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.filter-sidebar .filter-option .filter-lbl .filter-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-sidebar .filter-option .filter-lbl .filter-cnt {
    font-size: 11px;
    color: #909090;
    flex-shrink: 0;
}
.filter-sidebar .filter-view-more {
    display: block;
    font-size: 12px;
    color: #47b2e4;
    font-weight: 600;
    padding: 6px 0 2px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
}
.filter-sidebar .filter-view-more:hover {
    text-decoration: underline;
}

/* Experience Slider */
.filter-sidebar .exp-wrap {
    padding: 8px 0;
}
.filter-sidebar .exp-wrap .exp-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e3e3e3;
    border-radius: 2px;
    outline: none;
}
.filter-sidebar .exp-wrap .exp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #47b2e4;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.filter-sidebar .exp-wrap .exp-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #47b2e4;
    cursor: pointer;
}
.filter-sidebar .exp-wrap .exp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #909090;
    margin-top: 6px;
}
.filter-sidebar .exp-wrap .exp-value {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #0d0d0d;
    margin-bottom: 6px;
}

/* Freshness select */
.filter-sidebar .freshness-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 13px;
    color: #0d0d0d;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909090' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* Content area wrapper for grid layout */
.content-area {
    min-width: 0;
}

/* Grid layout: sidebar + content on lg+ */
@media (min-width: 992px) {
    .container.filter-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
        align-items: start;
        overflow: visible;
    }
    .container.filter-layout > .filter-sidebar {
        position: sticky;
        top: 80px;
    }
}

/* Mobile Filter Panel — Naukri-style slide-up */
@media (max-width: 767.98px) {
    #mobileFilterOverlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        transition: opacity 0.2s ease;
    }
    #mobileFilterOverlay.d-none { display: none !important; }

    #mobileFilterPanel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        background: #ffffff;
        border-radius: 16px 16px 0 0;
        z-index: 1050;
        display: flex !important;
        flex-direction: column;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
        animation: mfpSlideUp 0.25s ease-out;
        overflow: hidden;
    }
    #mobileFilterPanel.d-none { display: none !important; }
    @keyframes mfpSlideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .mfp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 12px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    .mfp-header-title {
        font-size: 18px;
        font-weight: 700;
        color: #0d0d0d;
    }
    .mfp-clear-all {
        background: none;
        border: none;
        font-size: 14px;
        font-weight: 600;
        color: #47b2e4;
        cursor: pointer;
        padding: 4px 8px;
    }
    .mfp-clear-all:active { opacity: 0.7; }

    .mfp-body {
        display: flex;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    .mfp-categories {
        width: 120px;
        flex-shrink: 0;
        overflow-y: auto;
        background: #f9f9f9;
        padding: 8px 0;
        -webkit-overflow-scrolling: touch;
    }
    .mfp-cat {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 500;
        color: #606060;
        background: none;
        border: none;
        cursor: pointer;
        transition: all 0.12s;
        position: relative;
    }
    .mfp-cat.active {
        background: #ffffff;
        color: #0d0d0d;
        font-weight: 600;
    }
    .mfp-cat.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 4px;
        bottom: 4px;
        width: 3px;
        background: #47b2e4;
        border-radius: 0 2px 2px 0;
    }
    .mfp-cat:active { opacity: 0.7; }

    .mfp-options {
        flex: 1;
        overflow-y: auto;
        padding: 12px 0;
        -webkit-overflow-scrolling: touch;
    }
    .mfp-opt-group.d-none { display: none !important; }
    .mfp-opt {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 20px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mfp-opt:active { background: #f6f6f6; }
    .mfp-opt input[type="checkbox"] {
        display: none;
    }
    .mfp-opt-check {
        width: 20px;
        height: 20px;
        border: 2px solid #d0d0d0;
        border-radius: 4px;
        flex-shrink: 0;
        position: relative;
        transition: all 0.12s;
    }
    .mfp-opt input:checked + .mfp-opt-check {
        background: #47b2e4;
        border-color: #47b2e4;
    }
    .mfp-opt input:checked + .mfp-opt-check::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 6px;
        height: 10px;
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    .mfp-opt-label {
        font-size: 14px;
        color: #0d0d0d;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mfp-opt-count {
        font-size: 12px;
        color: #909090;
        flex-shrink: 0;
    }
    .mfp-empty {
        padding: 24px 20px;
        text-align: center;
        color: #909090;
        font-size: 13px;
    }

    .mfp-footer {
        display: flex;
        gap: 12px;
        padding: 12px 20px 16px;
        border-top: 1px solid #f0f0f0;
        flex-shrink: 0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .mfp-cancel {
        flex: 1;
        padding: 12px;
        border: 2px solid #e3e3e3;
        border-radius: 8px;
        background: #ffffff;
        font-size: 14px;
        font-weight: 600;
        color: #0d0d0d;
        cursor: pointer;
    }
    .mfp-apply {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        background: #47b2e4;
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        cursor: pointer;
    }
.mfp-cancel:active { background: #f6f6f6; }
.mfp-apply:active { opacity: 0.85; }
}

/* Inline style extractions — empty states */
.empty-pad { padding: 8px 0; }
.filter-option.extra { display: none; }

/* Sticky toolbar overrides */
#stickyToolbar { position: sticky; top: 0; z-index: 1020; background: #f9f9f9; padding: 12px 0; }

/* Search form */
.search-form-min { min-width: 0; }
.search-input-wrap { display: flex; align-items: center; position: relative; }
.search-input {
    border: 2px solid #e3e3e3; border-radius: 10px; font-size: 15px;
    padding: 10px 80px 10px 16px; background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.search-clear-btn {
    position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; background: transparent;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; color: #909090; padding: 0; border-radius: 50%;
    transition: background 0.15s;
}
.search-clear-btn:hover { background: #f0f0f0; }
.search-submit-btn {
    position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
    border: none; border-radius: 0 10px 10px 0; background: #47b2e4;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #ffffff; font-size: 16px; padding: 0;
}

/* Dropdown wrappers */
.dropdown-wrap { flex: 1 1 auto; min-width: 0; }

/* Filter dropdown buttons (trendRange, category, sort) */
.filter-dropdown-btn {
    border: 2px solid #e3e3e3; border-radius: 10px; font-size: 13px;
    padding: 8px 12px; background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; color: #0f0f0f; font-weight: 500;
    white-space: nowrap; width: 100%; overflow: hidden;
}
.filter-btn-label {
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; display: block;
}
.filter-chevron { font-size: 11px; color: #606060; }

/* Mobile filter trigger */
.mobile-filter-btn {
    width: 32px; height: 28px; border-radius: 20px;
    border: 1px solid #e3e3e3; background: #ffffff;
}
.mobile-chips-scroll {
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 4px;
}
.mobile-chip-btn {
    border-radius: 20px; border: 1px solid #e3e3e3;
    background: #ffffff; font-size: 12px;
    font-weight: 500; color: #0f0f0f;
}

/* Load More button */
.load-more-btn {
    border: 2px solid #47b2e4; color: #47b2e4; background: transparent;
    border-radius: 8px; font-size: 14px; cursor: pointer;
    transition: all 0.2s ease;
}
.load-more-btn:hover { background: #f0eaff; }

/* Job card action buttons */
.btn-accent,
.btn-outline-accent {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    transition: 0.2s;
    border: 1.5px solid #47b2e4;
    text-decoration: none;
    cursor: pointer;
}
.btn-accent {
    color: #fff;
    background: #47b2e4;
}
.btn-accent:hover {
    background: #3a9ed1;
    border-color: #3a9ed1;
}
.btn-outline-accent {
    color: #47b2e4;
    background: transparent;
}
.btn-outline-accent:hover {
    background: #f0f8fe;
}

/* No results category cards */
.category-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    height: 100%;
    padding: 20px 16px;
    text-align: center;
    transition: 0.2s;
}
.category-card:hover {
    border-color: #47b2e4;
    box-shadow: 0 4px 16px rgba(71, 178, 228, 0.1);
}
.category-card .category-label {
    font-size: 14px;
    font-weight: 600;
    color: #0d0d0d;
    margin-bottom: 8px;
}
.category-card .category-count {
    font-size: 28px;
    font-weight: 700;
    color: #47b2e4;
    line-height: 1.1;
}
.category-card .category-sub {
    font-size: 12px;
    color: #909090;
    margin-bottom: 12px;
}
.category-card .btn-accent::after,
.category-card .btn-outline-accent::after {
    content: ' \2192';
    display: inline;
}

/* Radio check inside mfp */
.mfp-opt-check-radio { border-radius: 50% !important; }

/* Job Alert Banner Card */
.job-alert-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.job-alert-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71,178,228,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.job-alert-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,45,167,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.job-alert-headline {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.job-alert-sub {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.job-alert-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.job-alert-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #334155;
    border-radius: 8px;
    font-size: 14px;
    background: #1e293b;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}
.job-alert-input::placeholder {
    color: #64748b;
}
.job-alert-input:focus {
    border-color: #47b2e4;
}
.job-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #47b2e4;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex: 1 0 100%;
    transition: background 0.2s ease;
}
.job-alert-btn:hover {
    background: #3a9ed1;
}
.job-alert-btn:active {
    background: #2e8ab8;
}
.job-alert-select {
    flex: 0 0 auto;
    max-width: 170px;
    cursor: pointer;
    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 16 16'%3E%3Cpath fill='%2394a3b8' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.job-alert-category {
    flex: 1 0 100%;
    max-width: none;
}
.job-alert-select option {
    background: #1e293b;
    color: #ffffff;
}
@media (max-width: 575.98px) {
    .job-alert-banner {
        padding: 24px 20px;
    }
    .job-alert-headline {
        font-size: 18px;
    }
    .job-alert-sub {
        font-size: 13px;
    }
    .job-alert-form {
        flex-direction: column;
    }
    .job-alert-select {
        max-width: none;
    }
    .job-alert-btn {
        width: 100%;
        text-align: center;
    }
}
