/* ============================================================
   OPPORTUNITY DASHBOARD — HI Intelligence Platform
   Full dashboard layout with sidebar, stats, search, job cards
   ============================================================ */

/* === CSS VARIABLES — DARK SIDEBAR + LIGHT MAIN === */
:root {
    --opp-sidebar-w: 240px;
    --opp-sidebar-bg: #0D1B2A;
    --opp-sidebar-border: rgba(255, 255, 255, 0.08);
    --opp-sidebar-text: rgba(255, 255, 255, 0.55);
    --opp-sidebar-text-active: #ffffff;
    --opp-sidebar-accent: #2563EB;
    --opp-main-bg: #F8FAFC;
    --opp-card-bg: #ffffff;
    --opp-card-border: #E2E8F0;
    --opp-card-hover: #fafbfc;
    --opp-text-primary: #0f172a;
    --opp-text-secondary: #475569;
    --opp-text-muted: #64748b;
    --opp-accent: #0070f3;
    --opp-accent-glow: rgba(0,112,243,.15);
    --opp-green: #16A34A;
    --opp-orange: #D97706;
    --opp-red: #dc2626;
    --opp-cyan: #0891b2;
    --opp-pink: #db2777;
    --opp-gold: #B48600;
    --opp-input-bg: #f8fafc;
    --opp-input-border: #E2E8F0;
    --opp-radius: 14px;
    --opp-radius-sm: 10px;
    --opp-radius-lg: 16px;
    --opp-transition: .18s ease;
    --opp-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.04);
    --opp-shadow-card-hover: 0 4px 16px rgba(15, 23, 42, 0.1);
}

/* === APP-SHELL LAYOUT (Gmail/Slack style) ===
   The Opportunity archive uses a locked-viewport app shell: the document body
   itself does not scroll. The global site header sits at the top, the flex
   dashboard fills the remaining viewport, and the sidebar + main are each
   independent overflow-y scroll containers.

   Result:
     · The sidebar is truly stationary — it never moves when you scroll.
     · Only the center column (`.hi-opp-main`) scrolls its own content.
     · --gcc-chrome-top (set by opportunity-chrome.js) is the header height;
       we fall back to 76px if the JS never runs. */
/* Lock page scroll on the Opportunity archive so only .hi-opp-main scrolls.
   html is the outer scroll container; body is its child (WP adds margin-top
   for the admin bar, handled by WP core — we don't need to offset here since
   we're clipping with overflow:hidden). */
html:has(body.post-type-archive-opportunity),
body.post-type-archive-opportunity {
    overflow: hidden;
    height: 100vh;
}

.hi-opp-dashboard {
    display: flex;
    position: sticky;
    top: var(--gcc-chrome-top, 0px);
    height: calc(100vh - var(--gcc-chrome-top, 0px));
    overflow: hidden;       /* no page-level scroll — children scroll instead */
    background: var(--opp-main-bg);
    color: var(--opp-text-primary);
    font-family: var(--font-body, 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
}

/* Override page shell padding when dashboard is present */
.hi-page-shell.hi-page-opportunity-directory { padding: 0; }

/* Hide site chrome (nav, footer, scroll progress, ribbon) for immersive dashboard */
body.post-type-archive-opportunity .hi-home-nav,
body.post-type-archive-opportunity .gcc-scroll-progress,
body.post-type-archive-opportunity .hi-offer-ribbon,
body:has(.hi-opp-dashboard) .hi-home-nav,
body:has(.hi-opp-dashboard) .gcc-scroll-progress,
body:has(.hi-opp-dashboard) .hi-offer-ribbon { display: none !important; }

body.post-type-archive-opportunity footer,
body.post-type-archive-opportunity .gcc-footer,
body:has(.hi-opp-dashboard) .gcc-footer,
body:has(.hi-opp-dashboard) footer { display: none !important; }

/* === SIDEBAR (Dark Navy — matches HIRA Intelligence) ===
   Fixed dark sidebar with nav links and filters. */
.hi-opp-sidebar {
    position: relative;
    width: var(--opp-sidebar-w);
    height: 100%;
    background: var(--opp-sidebar-bg);
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    flex-shrink: 0;
    transition: transform var(--opp-transition);
    color: #fff;
}

.hi-opp-sidebar::-webkit-scrollbar { width: 4px; }
.hi-opp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Sidebar Brand */
.hi-opp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 22px;
    border-bottom: 1px solid var(--opp-sidebar-border);
    flex-shrink: 0;
}

.hi-opp-brand-icon {
    width: 42px;
    height: 30px;
    border-radius: 4px;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.hi-opp-brand-text h2 {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}

.hi-opp-brand-text p {
    font-family: var(--font-mono, 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin: 3px 0 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Sidebar Navigation */
.hi-opp-sidebar-nav {
    padding: 18px 12px 10px;
    border-bottom: 1px solid var(--opp-sidebar-border);
    flex-shrink: 0;
}

.hi-opp-nav-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
    padding: 14px 12px 8px;
    margin-top: 0;
}

.hi-opp-nav-label:first-child { padding-top: 0; }

.hi-opp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--opp-sidebar-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    position: relative;
    margin-bottom: 2px;
}

.hi-opp-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.hi-opp-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
}

.hi-opp-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--opp-sidebar-accent);
}

.hi-opp-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .7;
}

.hi-opp-nav-item.active .hi-opp-nav-icon,
.hi-opp-nav-item:hover .hi-opp-nav-icon { opacity: 1; }

.hi-opp-nav-badge {
    margin-left: auto;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.hi-opp-nav-badge.new {
    background: var(--opp-green);
}

.hi-opp-nav-badge--top {
    background: rgba(180, 134, 0, 0.85);
}

.hi-opp-nav-badge--remote {
    background: rgba(8, 145, 178, 0.85);
}

/* Sidebar Filters */
.hi-opp-sidebar-filters {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.hi-opp-filter-group {
    margin-bottom: 4px;
}

.hi-opp-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--opp-transition);
    user-select: none;
}

.hi-opp-filter-header:hover { background: rgba(255,255,255,0.04); }

.hi-opp-filter-header h4 {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}

.hi-opp-filter-chevron {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.4);
    transition: transform var(--opp-transition);
}

.hi-opp-filter-group.open .hi-opp-filter-chevron {
    transform: rotate(180deg);
    color: rgba(255,255,255,0.7);
}

.hi-opp-filter-body {
    display: none;
    padding: 4px 8px 12px;
}

.hi-opp-filter-group.open .hi-opp-filter-body {
    display: block;
    animation: oppSlideDown .2s ease-out;
}

@keyframes oppSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hi-opp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hi-opp-filter-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all var(--opp-transition);
    white-space: nowrap;
}

.hi-opp-filter-pill:hover {
    border-color: rgba(37,99,235,0.7);
    color: #fff;
    background: rgba(37,99,235,0.15);
}

.hi-opp-filter-pill.active {
    background: rgba(37,99,235,0.2);
    border-color: rgba(37,99,235,0.6);
    color: #fff;
    font-weight: 600;
}

.hi-opp-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    cursor: pointer;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    transition: color var(--opp-transition);
    border-radius: 4px;
}

.hi-opp-filter-check:hover { color: #fff; }

.hi-opp-filter-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    accent-color: var(--opp-sidebar-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.hi-opp-filter-check .count {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

/* Sidebar User */
.hi-opp-sidebar-user {
    padding: 16px 14px;
    border-top: 1px solid var(--opp-sidebar-border);
    flex-shrink: 0;
}

.hi-opp-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--opp-transition);
    text-decoration: none;
    color: inherit;
}

.hi-opp-user-card:hover { background: rgba(255,255,255,0.04); }

.hi-opp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--opp-sidebar-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.hi-opp-user-info { min-width: 0; }

.hi-opp-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-opp-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* Back to HI link */
.hi-opp-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
}
.hi-opp-back-link:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}

/* === MAIN CONTENT ===
   The sole scroll container inside the app shell. Sidebar stays perfectly
   stationary; only this column responds to mousewheel / trackpad scrolling. */
.hi-opp-main {
    flex: 1;
    min-width: 0;            /* allow flex child to shrink below content width */
    height: 100%;            /* = dashboard height */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 40px 48px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Mobile sidebar toggle — sticks at top on small screens. */
.hi-opp-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.hi-opp-menu-btn {
    background: none;
    border: none;
    color: var(--opp-text-primary);
    cursor: pointer;
    padding: 4px;
}

.hi-opp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 80; /* Below sidebar (85), mobile-header (90), and main header (100) */
}

/* === STATS ROW (HIRA-style) === */
.hi-opp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.hi-opp-stat-card {
    background: var(--opp-card-bg);
    border: 1px solid var(--opp-card-border);
    border-radius: var(--opp-radius);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--opp-transition), transform var(--opp-transition), box-shadow var(--opp-transition);
    box-shadow: var(--opp-shadow-card);
    font-family: var(--font-body, 'Poppins', sans-serif);
}

.hi-opp-stat-card:hover {
    border-color: rgba(0, 112, 243, 0.18);
    transform: translateY(-1px);
    box-shadow: var(--opp-shadow-card-hover);
}

.hi-opp-stat-card::after { display: none; }

.hi-opp-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.hi-opp-stat-card--live .hi-opp-stat-icon { background: #eff6ff; color: var(--opp-accent); }
.hi-opp-stat-card--new .hi-opp-stat-icon { background: #dcfce7; color: var(--opp-green); }
.hi-opp-stat-card--remote .hi-opp-stat-icon { background: #cffafe; color: var(--opp-cyan); }
.hi-opp-stat-card--top .hi-opp-stat-icon { background: #fef3c7; color: #d97706; }

.hi-opp-stat-value {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
    color: var(--opp-text-primary);
}

.hi-opp-stat-card--live .hi-opp-stat-value { color: var(--opp-accent); }
.hi-opp-stat-card--new .hi-opp-stat-value { color: var(--opp-green); }
.hi-opp-stat-card--remote .hi-opp-stat-value { color: var(--opp-cyan); }
.hi-opp-stat-card--top .hi-opp-stat-value { color: #d97706; }

.hi-opp-stat-label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--opp-text-primary);
    margin-bottom: 3px;
}

.hi-opp-stat-meta {
    font-size: 11.5px;
    color: var(--opp-text-muted);
    line-height: 1.4;
}

/* === TOOLBAR (Search + Controls) === */
.hi-opp-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hi-opp-search-wrap {
    flex: 1;
    position: relative;
}

.hi-opp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--opp-text-muted);
    pointer-events: none;
}

.hi-opp-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--opp-main-bg);
    border: 1px solid var(--opp-card-border);
    border-radius: 999px;
    color: var(--opp-text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: all var(--opp-transition);
}

.hi-opp-search-input::placeholder { color: var(--opp-text-muted); }

.hi-opp-search-input:focus {
    outline: none;
    border-color: var(--opp-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--opp-accent-glow);
}

.hi-opp-search-kbd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--opp-text-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    pointer-events: none;
}

.hi-opp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hi-opp-view-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--opp-radius-sm);
    border: 1.5px solid var(--opp-card-border);
    background: var(--opp-card-bg);
    color: var(--opp-text-muted);
    cursor: pointer;
    transition: all var(--opp-transition);
}

.hi-opp-view-btn:hover { border-color: var(--opp-accent); color: var(--opp-accent); }
.hi-opp-view-btn.active { background: #eff6ff; border-color: var(--opp-accent); color: var(--opp-accent); }

.hi-opp-sort-select {
    height: 42px;
    padding: 0 32px 0 14px;
    background: var(--opp-card-bg);
    border: 1.5px solid var(--opp-card-border);
    border-radius: var(--opp-radius-sm);
    color: var(--opp-text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all var(--opp-transition);
}

.hi-opp-sort-select:focus { outline: none; border-color: var(--opp-accent); }

/* === ACTIVE FILTERS STRIP === */
.hi-opp-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    min-height: 0;
    transition: min-height var(--opp-transition);
}

.hi-opp-active-filters:empty { display: none; }

.hi-opp-active-filters:not(:empty)::before {
    content: 'Active:';
    font-size: 12px;
    font-weight: 600;
    color: var(--opp-text-muted);
    margin-right: 4px;
}

.hi-opp-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--opp-accent);
    animation: oppFadeIn .2s ease-out;
}

@keyframes oppFadeIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

.hi-opp-active-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    opacity: .7;
    transition: opacity var(--opp-transition);
}

.hi-opp-active-tag button:hover { opacity: 1; }

.hi-opp-clear-filters {
    font-size: 12px;
    font-weight: 500;
    color: var(--opp-red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--opp-transition);
}

.hi-opp-clear-filters:hover { background: rgba(239,68,68,.08); }

/* === RESULTS INFO === */
.hi-opp-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 2px;
}

.hi-opp-results-count {
    font-size: 13px;
    color: var(--opp-text-muted);
}

.hi-opp-results-count strong {
    color: var(--opp-text-primary);
    font-weight: 700;
}

/* === JOB CARDS — LIST VIEW === */
.hi-opp-grid { transition: opacity .2s ease; }

.hi-opp-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hi-opp-grid.view-list .hi-opp-list-header {
    display: grid;
    grid-template-columns: 90px 1fr 160px 140px 130px 90px;
    gap: 12px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--opp-text-muted);
    border-bottom: 1px solid var(--opp-card-border);
    margin-bottom: 4px;
}

.hi-opp-card-list {
    display: grid;
    grid-template-columns: 90px 1fr 150px 120px 90px 44px;
    gap: 12px;
    align-items: center;
    padding: 10px 18px;
    background: var(--opp-card-bg);
    border: 1px solid var(--opp-card-border);
    border-radius: var(--opp-radius);
    transition: background var(--opp-transition), border-color var(--opp-transition), transform var(--opp-transition), box-shadow var(--opp-transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-height: 52px;
}

.hi-opp-card-list:hover {
    background: var(--opp-card-hover);
    border-color: rgba(37,99,235,.22);
    transform: translateX(3px);
    box-shadow: var(--opp-shadow-card-hover);
}

.hi-opp-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.hi-opp-card-status.status-new {
    background: rgba(16,185,129,.12);
    color: var(--opp-green);
}

.hi-opp-card-status.status-live {
    background: rgba(102,126,234,.12);
    color: var(--opp-accent);
}

.hi-opp-card-status.status-ats-open {
    background: rgba(6,182,212,.12);
    color: var(--opp-cyan);
}

.hi-opp-card-status.status-closed {
    background: rgba(239,68,68,.1);
    color: var(--opp-red);
}

.hi-opp-card-status.status-draft {
    background: rgba(148,163,184,.1);
    color: var(--opp-text-muted);
}

.hi-opp-card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.hi-opp-card-job { min-width: 0; }

.hi-opp-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.hi-opp-card-company {
    font-size: 12.5px;
    color: var(--opp-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-opp-card-location {
    font-size: 13px;
    color: var(--opp-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-opp-card-location svg { flex-shrink: 0; opacity: .6; }

.hi-opp-card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--opp-text-secondary);
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    white-space: nowrap;
}

.hi-opp-card-posted {
    font-size: 12px;
    color: var(--opp-text-muted);
    white-space: nowrap;
}

.hi-opp-card-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.hi-opp-card-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: var(--opp-text-muted);
    cursor: pointer;
    transition: all var(--opp-transition);
}

.hi-opp-card-action:hover {
    background: #eff6ff;
    color: var(--opp-accent);
}

.hi-opp-card-action.bookmarked { color: var(--opp-orange); background: rgba(245,158,11,.12); }

/* === JOB CARDS — GRID VIEW === */
.hi-opp-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.hi-opp-grid.view-grid .hi-opp-list-header { display: none; }

/* ── View-hide: show only the correct card type ── */
.hi-opp-grid.view-list .hi-opp-card-grid { display: none !important; }
.hi-opp-grid.view-grid .hi-opp-card-list { display: none !important; }

.hi-opp-card-grid {
    background: var(--opp-card-bg);
    border: 1px solid var(--opp-card-border);
    border-radius: 12px;
    padding: 16px;
    transition: border-color var(--opp-transition), transform var(--opp-transition), box-shadow var(--opp-transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.hi-opp-card-grid:hover {
    border-color: rgba(37,99,235,.28);
    transform: translateY(-2px);
    box-shadow: var(--opp-shadow-card-hover);
}

/* ── New compact grid card inner elements (.hi-gc-*) ── */
.hi-gc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hi-gc-coname {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--opp-text-secondary);
    min-width: 0;
}
.hi-gc-coname svg { flex-shrink: 0; opacity: .55; }
.hi-gc-coname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hi-gc-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--opp-text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── List-card inline pills (Top Co / Remote) ── */
.hi-opp-lc-pill {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}
.hi-opp-lc-pill--top {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.hi-opp-lc-pill--rem {
    color: var(--opp-cyan);
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.18);
}

.hi-gc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hi-gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 5px;
}
.hi-gc-badge--top {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.hi-gc-badge--remote {
    color: var(--opp-cyan);
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.18);
}

.hi-gc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -2px;
}

.hi-gc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 5px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hi-gc-chip svg { flex-shrink: 0; opacity: .55; }

.hi-gc-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hi-gc-skill {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--opp-accent);
    padding: 2px 7px;
    background: #eff6ff;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

.hi-gc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--opp-card-border);
    margin-top: auto;
}

.hi-gc-date {
    font-size: 11.5px;
    color: var(--opp-text-muted);
}

.hi-gc-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    background: var(--opp-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--opp-transition), transform var(--opp-transition), box-shadow var(--opp-transition);
    text-decoration: none;
    white-space: nowrap;
}

.hi-gc-cta:hover {
    background: #5a4fcf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--opp-accent-glow);
}

/* Legacy grid-card header kept for any server-rendered fallback */
.hi-opp-card-grid-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.hi-opp-card-grid-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--opp-text-primary);
    line-height: 1.35;
    margin-bottom: 3px;
}
.hi-opp-card-grid-company {
    font-size: 12px;
    color: var(--opp-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hi-opp-card-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hi-opp-card-grid-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--opp-text-secondary);
    border: 1px solid #e2e8f0;
}

.hi-opp-card-grid-chip svg { opacity: .6; flex-shrink: 0; }

.hi-opp-card-grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hi-opp-card-grid-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: var(--opp-accent);
    border: 1px solid #dbeafe;
}

.hi-opp-card-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--opp-card-border);
    margin-top: auto;
}
.hi-opp-card-grid-date { font-size: 12px; color: var(--opp-text-muted); }
.hi-opp-card-grid-cta {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
    border-radius: 7px; font-size: 12px; font-weight: 600;
    background: var(--opp-accent); color: #fff; border: none;
    cursor: pointer; transition: background var(--opp-transition), transform var(--opp-transition); text-decoration: none;
}
.hi-opp-card-grid-cta:hover { background: #5a4fcf; transform: translateY(-1px); }

/* === EMPTY STATE === */
.hi-opp-empty {
    text-align: center;
    padding: 80px 32px;
    grid-column: 1 / -1;
}

.hi-opp-empty svg { color: var(--opp-text-muted); margin-bottom: 20px; opacity: .4; }
.hi-opp-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--opp-text-primary); }
.hi-opp-empty p { font-size: 14px; color: var(--opp-text-muted); max-width: 360px; margin: 0 auto; }

/* === PAGINATION === */
.hi-opp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--opp-card-border);
}

.hi-opp-pagination a,
.hi-opp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--opp-radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--opp-card-border);
    background: var(--opp-card-bg);
    color: var(--opp-text-secondary);
    transition: all var(--opp-transition);
    text-decoration: none;
}

.hi-opp-pagination a:hover {
    border-color: var(--opp-accent);
    color: var(--opp-accent);
}

.hi-opp-pagination .current {
    background: var(--opp-accent);
    border-color: var(--opp-accent);
    color: #fff;
    font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .hi-opp-stats-row { grid-template-columns: repeat(2, 1fr) !important; }
    .hi-opp-grid.view-list .hi-opp-list-header { grid-template-columns: 80px 1fr 130px 100px; }
    .hi-opp-card-list { grid-template-columns: 80px 1fr 130px 100px; }
    .hi-opp-card-posted,
    .hi-opp-card-actions,
    .hi-opp-grid.view-list .hi-opp-list-header > :nth-child(5),
    .hi-opp-grid.view-list .hi-opp-list-header > :nth-child(6) { display: none; }
}

@media (max-width: 968px) {
    /* On mobile, keep the app-shell scroll lock but let the sidebar become a
       slide-in drawer: position:fixed so it can overlay the main column. */
    .hi-opp-sidebar {
        position: fixed;
        top: var(--gcc-chrome-top, 0px);
        left: 0;
        bottom: 0;
        height: auto;
        z-index: 95;
        transform: translateX(-100%);
    }

    .hi-opp-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.16);
    }

    .hi-opp-sidebar-overlay.open {
        display: block;
    }

    .hi-opp-mobile-header { display: flex; flex-shrink: 0; }
    .hi-opp-main { padding: 16px 16px 32px; }

    /* On mobile, stack mobile-header + main vertically inside the shell. */
    .hi-opp-dashboard { flex-direction: column; }

    .hi-opp-toolbar { flex-direction: column; align-items: stretch; }
    .hi-opp-controls { width: 100%; justify-content: flex-end; }
}

@media (max-width: 640px) {
    .hi-opp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hi-opp-stat-card { padding: 14px 16px; }
    .hi-opp-stat-value { font-size: 22px; }

    .hi-opp-grid.view-list .hi-opp-list-header { display: none; }
    .hi-opp-card-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }
    .hi-opp-card-list .hi-opp-card-status { justify-self: start; }

    .hi-opp-grid.view-grid { grid-template-columns: 1fr; }
}

/* === LOADING SKELETON === */
.hi-opp-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: oppShimmer 1.5s infinite;
    border-radius: var(--opp-radius-sm);
}

@keyframes oppShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === SCROLLBAR FOR MAIN === */
.hi-opp-main::-webkit-scrollbar { width: 6px; }
.hi-opp-main::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

/* --gcc-chrome-top is set by opportunity-chrome.js (header height + admin bar).
   Nothing static needed here — JS keeps it exact across resizes & admin-bar states. */

/* === TOP COMPANIES === */

/* Star badge on cards */
.hi-opp-card-badge-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 13px;
    color: #f59e0b;
    background: rgba(245,158,11,.12);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* "Top Company" inline label next to company name */
.hi-opp-top-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #f59e0b;
    background: rgba(245,158,11,.1);
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Grid card top-company banner — collapsed in favour of .hi-gc-badge--top */
.hi-opp-card-grid-top-banner {
    display: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #f59e0b;
    background: linear-gradient(90deg, rgba(245,158,11,.1), rgba(245,158,11,.04));
    padding: 4px 12px;
    border-radius: var(--opp-radius-sm);
    margin: -4px 0 8px;
}

/* Nav badge variant for Top Companies (dark sidebar) */
.hi-opp-nav-badge--top {
    background: rgba(180, 134, 0, 0.85);
    color: #fff;
}

.hi-opp-nav-badge--remote {
    background: rgba(8, 145, 178, 0.85);
    color: #fff;
}

/* Top Companies nav item active state (dark sidebar) */
.hi-opp-nav-item[data-filter-top-companies].active {
    background: rgba(245,158,11,.12);
    color: #fbbf24;
}
.hi-opp-nav-item[data-filter-top-companies].active .hi-opp-nav-icon {
    color: #fbbf24;
}
.hi-opp-nav-item[data-filter-top-companies].active::before {
    background: #f59e0b;
}

.hi-opp-nav-item[data-filter-remote-jobs].active {
    background: rgba(6,182,212,.12);
    color: #22d3ee;
}
.hi-opp-nav-item[data-filter-remote-jobs].active .hi-opp-nav-icon {
    color: #22d3ee;
}
.hi-opp-nav-item[data-filter-remote-jobs].active::before {
    background: #06b6d4;
}

/* === JOB SOURCE FILTER PILLS (dark sidebar) === */
.hi-opp-filter-pill[data-filter="source"][data-value="system"].active {
    background: rgba(245,158,11,.2);
    color: #fbbf24;
    border-color: rgba(245,158,11,.5);
}
.hi-opp-filter-pill[data-filter="source"][data-value="recruiter"].active {
    background: rgba(102,126,234,.2);
    color: #93c5fd;
    border-color: rgba(102,126,234,.5);
}

/* Source badge on list-view cards */
.hi-opp-card-source-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.hi-opp-card-source-badge--system {
    color: #f59e0b;
    background: rgba(245,158,11,.1);
}
.hi-opp-card-source-badge--recruiter {
    color: #667eea;
    background: rgba(102,126,234,.08);
}
.hi-opp-card-source-badge--top {
    color: #f59e0b;
    background: rgba(245,158,11,.12);
}
.hi-opp-card-source-badge--remote {
    color: #06b6d4;
    background: rgba(6,182,212,.12);
}

/* ═══════════════════════════════════════════════════════════
   TOP COMPANIES SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.hi-top-showcase {
    padding: 0;
}

.hi-remote-showcase {
    padding: 0;
}

.hi-top-showcase.is-active,
.hi-remote-showcase.is-active {
    animation: hiShowcaseFade .28s ease;
}

@keyframes hiShowcaseFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Intro header ── */
.hi-top-showcase-intro {
    margin-bottom: 26px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(125deg, #f8fafc, #ffffff);
    box-shadow: var(--opp-shadow-card);
}

.hi-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}
.hi-top-showcase-intro h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--opp-text-primary);
}
.hi-top-showcase-intro p {
    color: var(--opp-text-secondary);
    margin: 0;
    font-size: 14px;
}

.hi-showcase-back {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--opp-text-secondary);
    border-radius: 999px;
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .22s ease;
}

.hi-showcase-back:hover {
    color: var(--opp-text-primary);
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.hi-showcase-empty {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 26px 22px;
    margin-bottom: 22px;
}

.hi-showcase-empty h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--opp-text-primary);
}

.hi-showcase-empty p {
    margin: 0;
    color: var(--opp-text-secondary);
    font-size: 13px;
}

/* ── Company block ── */
.hi-top-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--opp-shadow-card);
    transition: border-color .26s ease, transform .26s ease, box-shadow .26s ease;
}
.hi-top-block:hover {
    border-color: rgba(217,119,6,.3);
    transform: translateY(-2px);
    box-shadow: var(--opp-shadow-card-hover);
}

.hi-remote-block:hover {
    border-color: rgba(6,182,212,.22);
}

.hi-remote-block-count {
    color: #06b6d4;
    background: rgba(6,182,212,.1);
}

/* ── Block header ── */
.hi-top-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.hi-top-block-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hi-top-block-info svg {
    color: #f59e0b;
    flex-shrink: 0;
}
.hi-top-block-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--opp-text-primary);
}
.hi-top-block-count {
    font-size: 12px;
    color: #f59e0b;
    background: rgba(245,158,11,.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Block actions ── */
.hi-top-block-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hi-top-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: var(--opp-text-secondary);
    transition: all .2s;
    display: flex;
    align-items: center;
    line-height: 1;
}
.hi-top-nav-btn:hover {
    background: #f1f5f9;
    color: var(--opp-text-primary);
    border-color: #cbd5e1;
}

.hi-top-nav-btn.is-disabled,
.hi-top-nav-btn:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.hi-top-viewall {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.hi-top-viewall:hover {
    opacity: .88;
}

.hi-remote-viewall {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}

.hi-remote-viewall:hover {
    opacity: .9;
}

/* ── Carousel ── */
.hi-top-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.hi-top-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    justify-content: flex-start !important;
}
.hi-top-track::-webkit-scrollbar {
    display: none;
}

/* ── Job card ── */
.hi-top-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .25s, box-shadow .25s;
    box-sizing: border-box !important;
    box-shadow: var(--opp-shadow-card);
}
.hi-top-card:hover {
    border-color: rgba(217,119,6,.35);
    box-shadow: 0 8px 20px rgba(217,119,6,.1);
}

.hi-remote-card:hover {
    border-color: rgba(8,145,178,.3);
    box-shadow: 0 8px 20px rgba(8,145,178,.1);
}
.hi-top-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hi-top-new-badge {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34,197,94,.1);
    padding: 2px 8px;
    border-radius: 6px;
}
a.hi-top-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opp-text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
a.hi-top-card-title:hover {
    color: #f59e0b;
}
.hi-top-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hi-top-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--opp-text-secondary);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hi-top-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.hi-top-card-skill {
    font-size: 10px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}
.hi-top-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}
.hi-top-card-date {
    font-size: 11px;
    color: var(--opp-text-muted);
}
a.hi-top-card-cta {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
a.hi-top-card-cta:hover {
    text-decoration: underline;
}

a.hi-remote-card-cta {
    color: #06b6d4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hi-top-card { flex: 0 0 260px; }
    .hi-top-block-header { flex-direction: column; align-items: flex-start; }
    .hi-showcase-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .hi-top-card { flex: 0 0 240px; }
    .hi-top-block { padding: 16px; }
    .hi-top-showcase-intro h2 { font-size: 20px; }
    .hi-top-showcase-intro { padding: 16px; }
    .hi-showcase-back { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   SKELETON LOADER
   ════════════════════════════════════════════════════════════ */
@keyframes hi-sk-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.hi-opp-skeleton-row {
    display: grid;
    grid-template-columns: 90px 1fr 140px 110px 80px 48px;
    align-items: center;
    gap: 0 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.hi-opp-sk {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f0f3f6 50%, #e8ecf0 75%);
    background-size: 600px 100%;
    animation: hi-sk-shimmer 1.4s infinite linear;
}

.hi-opp-sk--status { height: 22px; width: 80px; }
.hi-opp-sk--job    { display: flex; flex-direction: column; gap: 6px; }
.hi-opp-sk--title  { height: 14px; width: 65%; border-radius: 4px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f0f3f6 50%, #e8ecf0 75%);
    background-size: 600px 100%; animation: hi-sk-shimmer 1.4s infinite linear; }
.hi-opp-sk--co     { height: 11px; width: 45%; border-radius: 4px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f0f3f6 50%, #e8ecf0 75%);
    background-size: 600px 100%; animation: hi-sk-shimmer 1.4s 0.1s infinite linear; }
.hi-opp-sk--loc    { height: 13px; width: 90%; }
.hi-opp-sk--type   { height: 22px; width: 80px; border-radius: 20px; }
.hi-opp-sk--date   { height: 13px; width: 60px; }
.hi-opp-sk--action { height: 28px; width: 28px; border-radius: 50%; }

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.hi-opp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px 8px;
    flex-wrap: wrap;
}

.hi-opp-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.hi-opp-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: var(--opp-accent);
}
.hi-opp-page-btn.active {
    background: var(--opp-accent);
    color: #fff;
    border-color: var(--opp-accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.hi-opp-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.hi-opp-page-prev,
.hi-opp-page-next {
    padding: 8px 16px;
}
.hi-opp-page-ellipsis {
    padding: 6px 4px;
    color: var(--opp-text-muted);
    font-size: 14px;
    user-select: none;
}

/* ════════════════════════════════════════════════════════════
   SHOWCASE LOADING STATE
   ════════════════════════════════════════════════════════════ */
.hi-showcase-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--opp-text-muted);
    font-size: 14px;
}
.hi-showcase-empty-alt {
    padding: 40px 20px;
    text-align: center;
}
.hi-showcase-empty-alt h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--opp-text-primary);
}
.hi-showcase-empty-alt p {
    margin: 0;
    color: var(--opp-text-muted);
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
   ════════════════════════════════════════════════════════════ */
@keyframes hi-stt-in {
    from { opacity: 0; transform: translateY(12px) scale(.85); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.hi-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--opp-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
    transition: background var(--opp-transition), transform var(--opp-transition), box-shadow var(--opp-transition), opacity var(--opp-transition);
    opacity: 0;
    pointer-events: none;
}
.hi-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: hi-stt-in .25s cubic-bezier(.4,0,.2,1) both;
}
.hi-scroll-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.hi-scroll-top:active { transform: translateY(0); }
.hi-scroll-top svg { pointer-events: none; }

/* Sidebar subtle shadow (none needed on dark sidebar) */

/* Status badges — semantic colors */
.hi-opp-card-status.status-new {
    background: #dcfce7;
    color: #15803d;
}
.hi-opp-card-status.status-live {
    background: #dbeafe;
    color: #1d4ed8;
}
.hi-opp-card-status.status-ats-open {
    background: #cffafe;
    color: #0e7490;
}
.hi-opp-card-status.status-closed {
    background: #fee2e2;
    color: #b91c1c;
}
.hi-opp-card-status.status-draft {
    background: #f1f5f9;
    color: #64748b;
}

/* Stat cards — shadow already in main declaration */

/* Grid/List cards — add shadow */
.hi-opp-card-list,
.hi-opp-card-grid {
    box-shadow: var(--opp-shadow-card);
}

/* ============================================================
   ANONYMOUS COMPANY LAYER (ACL) — Styles
   ============================================================ */

/* Company name with tooltip indicator */
.hi-hero-company {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Anonymous company icon/hint */
.hi-company-anonymous-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--opp-accent-glow);
    color: var(--opp-accent);
    font-size: 10px;
    cursor: help;
    transition: var(--opp-transition);
}

.hi-company-anonymous-icon:hover {
    background: var(--opp-accent);
    color: #fff;
}

/* Anonymous company hint text */
.hi-company-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--opp-text-muted);
    font-style: italic;
    padding: 8px 12px;
    background: var(--opp-input-bg);
    border-radius: var(--opp-radius-sm);
    border-left: 3px solid var(--opp-accent);
}

/* Tooltip for anonymous company */
.hi-acl-tooltip {
    position: relative;
    cursor: help;
}

.hi-acl-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--opp-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hi-acl-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Company name in opportunity cards - masked state */
.hi-opp-card-company.hi-acl-masked {
    color: var(--opp-accent);
    font-weight: 600;
}

.hi-opp-card-company.hi-acl-masked::before {
    content: '🔒 ';
    font-size: 10px;
    margin-right: 2px;
}

/* Admin view - actual company badge */
.hi-acl-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: var(--opp-radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hi-acl-admin-badge::before {
    content: '👁';
    font-size: 10px;
}
