/* ============================================================
   WorkHere.cy - Custom Styles
   Clean, professional design inspired by Glassdoor/Indeed
   ============================================================ */

/* ---- Root Variables ---- */
:root {
    --wh-primary: #0d6efd;
    --wh-success: #198754;
    --wh-dark: #1a1a2e;
    --wh-gray-50: #f8f9fa;
    --wh-gray-100: #f0f2f5;
    --wh-gray-200: #e2e5e9;
    --wh-gray-500: #6c757d;
    --wh-gray-700: #404040;
    --wh-star: #f4b400;
    --wh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --wh-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --wh-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --wh-radius: 8px;
    --wh-radius-lg: 12px;
    --wh-transition: 0.2s ease;
}

/* ---- Base ---- */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wh-gray-700);
    background-color: var(--wh-gray-50);
    font-size: 0.95rem;
    line-height: 1.6;
}

a {
    color: var(--wh-primary);
    text-decoration: none;
    transition: color var(--wh-transition);
}

a:hover {
    color: #0a58ca;
}

/* ---- Navbar ---- */
.navbar {
    padding: 0.6rem 0;
    box-shadow: var(--wh-shadow-sm);
    z-index: 1030;
}
.navbar .navbar-collapse { flex-wrap: nowrap; }
.navbar .navbar-nav { flex-wrap: nowrap; }

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    color: var(--wh-gray-700);
    border-radius: 6px;
    transition: all var(--wh-transition);
    white-space: nowrap;
}

.navbar .nav-link:hover {
    color: var(--wh-primary);
    background-color: var(--wh-gray-100);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--wh-shadow-lg);
    border-radius: var(--wh-radius);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--wh-gray-100);
}

.search-trigger {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--wh-gray-300);
    border-radius: 8px;
    background: var(--wh-gray-100);
    transition: all 0.2s;
}
.search-trigger:hover {
    border-color: var(--wh-primary);
    background: #fff;
}

/* Tighten nav on medium-large screens to prevent wrapping */
@media (min-width: 992px) and (max-width: 1399px) {
    .navbar .nav-link { font-size: 0.8rem; padding: 0.4rem 0.4rem; }
    .navbar-brand { font-size: 1.15rem; }
    .navbar .input-group { min-width: 120px !important; }
    .navbar .input-group .form-control { min-width: 100px !important; font-size: 0.78rem; }
    .navbar .btn-sm { font-size: 0.76rem; padding: 0.25rem 0.5rem; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .nav-link { font-size: 0.78rem; padding: 0.35rem 0.3rem; }
    .navbar .nav-link .me-1 { margin-right: 0.15rem !important; }
    .navbar-brand { font-size: 1.1rem; }
    .navbar .input-group .form-control { min-width: 80px !important; }
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a365d 50%, #0d6efd 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-section * {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search .form-control {
    border: none;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--wh-radius) 0 0 var(--wh-radius);
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .btn {
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 0 var(--wh-radius) var(--wh-radius) 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .hero-search .form-control,
    .hero-search .btn {
        padding: 0.7rem 1rem;
    }
}

/* ---- Cards ---- */
.card {
    border: none;
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow-sm);
    transition: all var(--wh-transition);
    background: #fff;
}

.card:hover {
    box-shadow: var(--wh-shadow);
    transform: translateY(-2px);
}

.card-company {
    padding: 1.25rem;
    overflow: hidden;
}

.card-company .company-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--wh-gray-100);
    padding: 6px;
}

.card-company .company-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--wh-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wh-gray-500);
    font-size: 1.3rem;
    font-weight: 700;
}

.card-company .company-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--wh-gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.card-company .company-name:hover {
    color: var(--wh-primary);
}

/* ---- Job Cards ---- */
.card-job {
    padding: 1.25rem;
    border-left: 3px solid transparent;
}

.card-job:hover {
    border-left-color: var(--wh-primary);
}

.card-job.featured {
    border-left-color: var(--wh-star);
    background: #fffdf5;
}

.card-job .job-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--wh-primary);
}

.card-job .job-company {
    font-weight: 500;
    color: var(--wh-gray-700);
}

.card-job .job-meta {
    font-size: 0.85rem;
    color: var(--wh-gray-500);
}

.card-job .job-salary {
    font-weight: 600;
    color: var(--wh-success);
}

/* ---- Review Cards ---- */
.card-review {
    padding: 1.5rem;
}

.card-review .review-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--wh-gray-700);
}

.card-review .review-meta {
    font-size: 0.85rem;
    color: var(--wh-gray-500);
}

.card-review .review-text {
    font-size: 0.93rem;
    color: var(--wh-gray-700);
    line-height: 1.65;
}

.card-review .review-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-label.pros {
    color: var(--wh-success);
}

.review-label.cons {
    color: #dc3545;
}

/* ---- Star Ratings ---- */
.stars-display {
    display: inline-flex;
    gap: 1px;
}

.stars-display i {
    font-size: 0.95rem;
}

.text-warning {
    color: var(--wh-star) !important;
}

.rating-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wh-gray-700);
    line-height: 1;
}

.rating-bar {
    height: 8px;
    background: var(--wh-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--wh-star);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ---- Star Rating Input (for forms) ---- */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.5rem;
    color: var(--wh-gray-200);
    cursor: pointer;
    transition: color var(--wh-transition);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--wh-star);
}

/* ---- Badges & Tags ---- */
.badge-job-type {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
}

.badge-featured {
    background: #fff3cd;
    color: #856404;
}

.badge-remote {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-verified {
    background: #d4edda;
    color: #155724;
}

.badge-claimed {
    background: #cce5ff;
    color: #004085;
}

.badge-unclaimed {
    background: var(--wh-gray-200);
    color: var(--wh-gray-500);
}

/* ---- Stat Counters ---- */
.stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
}

.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wh-primary);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--wh-gray-500);
    margin-top: 0.4rem;
}

/* ---- Section Headers ---- */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wh-dark);
    margin-bottom: 0.25rem;
}

.section-header p {
    color: var(--wh-gray-500);
    margin-bottom: 0;
}

/* ---- Category Grid ---- */
.category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--wh-radius);
    box-shadow: var(--wh-shadow-sm);
    transition: all var(--wh-transition);
    text-decoration: none;
    color: var(--wh-gray-700);
}

.category-card:hover {
    box-shadow: var(--wh-shadow);
    color: var(--wh-primary);
    transform: translateY(-2px);
}

.category-card .category-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--wh-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--wh-primary);
    flex-shrink: 0;
}

.category-card .category-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.category-card .category-count {
    font-size: 0.8rem;
    color: var(--wh-gray-500);
}

/* ---- Company Profile ---- */
#company-tabs::-webkit-scrollbar { display: none; }

.company-header {
    background: #fff;
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow-sm);
    overflow: hidden;
}

.company-cover {
    height: 200px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a365d 100%);
    position: relative;
}

.company-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
}

.company-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-profile-info {
    padding: 0 2rem 1.5rem;
    margin-top: -40px;
    position: relative;
}

.company-profile-logo {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: var(--wh-shadow-sm);
    object-fit: contain;
    padding: 4px;
}

/* ---- Filter Sidebar ---- */
.filter-section {
    background: #fff;
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.filter-section h6 {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wh-gray-700);
    margin-bottom: 0.75rem;
}

.filter-section .form-check {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.filter-section .form-check-label {
    font-size: 0.88rem;
    color: var(--wh-gray-700);
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border: 1px solid var(--wh-gray-200);
    border-radius: var(--wh-radius);
    padding: 0.6rem 0.9rem;
    font-size: 0.93rem;
    transition: border-color var(--wh-transition), box-shadow var(--wh-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--wh-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* ---- Buttons ---- */
.btn {
    font-weight: 500;
    border-radius: var(--wh-radius);
    font-size: 0.93rem;
    transition: all var(--wh-transition);
}

.btn-primary {
    background: var(--wh-primary);
    border-color: var(--wh-primary);
}

.btn-primary:hover {
    background: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-success {
    background: var(--wh-success);
}

/* ---- Auth Cards (Login/Register) ---- */
.auth-card {
    max-width: 460px;
    margin: 2rem auto;
    background: #fff;
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow);
    padding: 2.5rem;
}

.auth-card h2 {
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--wh-gray-500);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wh-gray-200);
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid var(--wh-gray-200);
    border-radius: var(--wh-radius);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--wh-gray-700);
    transition: all var(--wh-transition);
}

.btn-oauth:hover {
    background: var(--wh-gray-100);
    border-color: var(--wh-gray-500);
}

.btn-oauth img {
    width: 20px;
    height: 20px;
}

/* ---- Pagination ---- */
.pagination .page-link {
    border: none;
    color: var(--wh-gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.45rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background: var(--wh-primary);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--wh-gray-100);
    color: var(--wh-primary);
}

/* ---- Empty States ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--wh-gray-200);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--wh-gray-500);
    font-weight: 600;
}

.empty-state p {
    color: var(--wh-gray-500);
    font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
    background: var(--wh-dark) !important;
}

footer a:hover {
    color: #fff !important;
}

/* ---- Utility ---- */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.06);
}

.border-left-primary {
    border-left: 3px solid var(--wh-primary);
}

/* ---- Loading Spinner ---- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- Salary Checker ---- */
.salary-hero {
    background: linear-gradient(135deg, #0d6e3d 0%, #198754 50%, #28a745 100%);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.salary-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.salary-hero * { position: relative; z-index: 1; }

.salary-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.salary-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Tag Badges */
.salary-tags-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--wh-gray-200);
    border-radius: var(--wh-radius);
    padding: 0.75rem;
}

.salary-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    margin: 2px;
    border: 1px solid var(--wh-gray-200);
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.salary-tag-badge input { display: none; }

.salary-tag-badge:hover {
    border-color: var(--wh-primary);
    background: rgba(13, 110, 253, 0.04);
}

.salary-tag-badge.selected {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--wh-primary);
    color: var(--wh-primary);
    font-weight: 500;
}

.salary-tag-badge.tag-hidden { display: none; }

/* Selected tags list above search */
.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.selected-tags-list:empty { display: none; }

.selected-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.6rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--wh-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--wh-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.selected-tag-pill:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.selected-tag-pill .remove-tag {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* Benefit Cards */
.benefit-check-card {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--wh-gray-200);
    border-radius: var(--wh-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    user-select: none;
}

.benefit-check-card input { display: none; }

.benefit-check-card:hover {
    border-color: var(--wh-success);
    background: rgba(25, 135, 84, 0.03);
}

.benefit-check-card.selected {
    border-color: var(--wh-success);
    background: rgba(25, 135, 84, 0.08);
    color: var(--wh-success);
    font-weight: 500;
}

/* Salary Gauge */
.salary-gauge-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.salary-gauge-label {
    display: block;
    margin-top: 4px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wh-gray-700);
    transition: color .3s;
}
.salary-gauge-label.verdict-above { color: #198754; }
.salary-gauge-label.verdict-below { color: #dc3545; }
.salary-gauge-label.verdict-market { color: #ffc107; }

/* Match Cards */
.match-card {
    background: #fff;
    border-radius: var(--wh-radius-lg);
    box-shadow: var(--wh-shadow-sm);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid transparent;
    transition: all var(--wh-transition);
}

.match-card:hover {
    box-shadow: var(--wh-shadow);
}

.match-card.strong { border-left-color: var(--wh-success); }
.match-card.good { border-left-color: var(--wh-primary); }
.match-card.partial { border-left-color: #ffc107; }
.match-card.weak { border-left-color: var(--wh-gray-200); }

.match-card .match-salary {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wh-success);
}

.match-card .match-strength {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-strength.strong { color: var(--wh-success); }
.match-strength.good { color: var(--wh-primary); }
.match-strength.partial { color: #ffc107; }
.match-strength.weak { color: var(--wh-gray-500); }
.match-strength.similar { color: #6f42c1; }
.match-card.similar { border-left-color: #6f42c1; }

.benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.15rem 0.5rem;
    background: var(--wh-gray-100);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--wh-gray-700);
    margin: 1px;
}

/* Verdict colors */
.verdict-above { color: var(--wh-success); }
.verdict-market { color: var(--wh-primary); }
.verdict-below { color: #dc3545; }

/* Salary CTA Banner (homepage) */
.salary-cta-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #f0faf1 100%);
    border: 2px solid rgba(25, 135, 84, 0.15);
    border-radius: var(--wh-radius-lg);
    padding: 2rem;
    text-align: center;
}

.salary-cta-banner h3 {
    font-weight: 700;
    color: var(--wh-dark);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 0.85rem 1.25rem;
    border-radius: var(--wh-radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--wh-shadow-lg);
    display: flex;
    align-items: center;
    max-width: 400px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-left: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-notification .toast-close:hover {
    color: #fff;
}

/* ---- Entry Type Options ---- */
.entry-type-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s;
    user-select: none;
}
.entry-type-option:hover {
    border-color: var(--wh-primary);
    background: #f0f4ff;
}
.entry-type-option.selected {
    border-color: var(--wh-primary);
    background: var(--wh-primary);
    color: #fff;
}

/* ---- Entry Pills Bar ---- */
.entry-pills-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
}
.entry-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background: #fff;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.entry-pill:hover {
    border-color: var(--wh-primary);
    background: #f0f4ff;
}
.entry-pill.active {
    border-color: var(--wh-primary);
    background: var(--wh-primary);
    color: #fff;
}
.entry-pill .entry-pill-type {
    font-weight: 600;
    margin-right: 4px;
}
.entry-pill .entry-pill-city {
    opacity: .7;
}
.entry-pill-new {
    border-style: dashed;
    color: var(--wh-success);
    border-color: var(--wh-success);
}
.entry-pill-new:hover {
    background: #e8f5e9;
    border-color: var(--wh-success);
}
.entry-pill-new.active {
    background: var(--wh-success);
    color: #fff;
    border-color: var(--wh-success);
}

/* ---- My Entry Summary Card ---- */
#myEntrySummary .card-body {
    font-size: .9rem;
}
#myEntrySummary .badge {
    font-size: .75rem;
}

.fw-600 { font-weight: 600; }

/* ---- Company Search Dropdown ---- */
.company-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.company-search-results .company-result-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: .9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.company-search-results .company-result-item:hover {
    background: #f0f4ff;
}
.company-search-results .company-result-item:last-child {
    border-bottom: none;
}
.company-search-results .company-result-item .industry-badge {
    font-size: .7rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    margin-left: 6px;
}
.company-search-results .company-result-item.no-results {
    color: #999;
    cursor: default;
    text-align: center;
    font-style: italic;
}
.company-search-results .company-result-item.no-results:hover {
    background: #fff;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .card-company,
    .card-job,
    .card-review {
        padding: 1rem;
    }

    .company-profile-info {
        padding: 0 1rem 1rem;
    }

    .salary-hero h1 { font-size: 1.5rem; }
    .salary-hero { padding: 2rem 0 1.5rem; }
    .salary-hero p { font-size: 0.9rem; }

    /* Form card — less padding on mobile */
    #salaryFormCard { padding: 1.25rem !important; }

    /* Entry pills — horizontal scroll on mobile */
    .entry-pills-bar { padding: 0.5rem; }
    .entry-pills-bar > .d-flex {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .entry-pills-bar > .d-flex::-webkit-scrollbar { display: none; }
    .entry-pill { font-size: 0.75rem; padding: 4px 10px; }

    /* Entry type options — full width on mobile */
    .entry-type-option {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Verdict card — tighter on mobile */
    #verdictCard { padding: 1.25rem !important; }
    .salary-gauge-container canvas { width: 180px; height: 105px; }
    .stat-box { padding: 0.6rem !important; }
    .stat-box .stat-number { font-size: 1.1rem; }
    .stat-box .stat-label { font-size: 0.7rem; }

    /* Filter/sort bar — stack on mobile */
    #resultsSection > .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch !important;
    }
    #resultsSection > .d-flex.flex-wrap .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    #filterCity, #filterExp, #sortBy {
        width: 100% !important;
        font-size: 0.8rem;
    }

    /* Match cards — tighter padding */
    .match-card { padding: 0.75rem 0.75rem 0.75rem 0.9rem; }
    .match-card .match-salary { font-size: 1.1rem; }

    /* Benefits cards */
    .benefit-check-card { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

    /* Login prompt buttons — stack on mobile */
    #loginPrompt .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    #loginPrompt .btn-lg { font-size: 0.95rem; padding: 0.6rem; }

    /* Tags container — shorter on mobile */
    .salary-tags-container { max-height: 200px; }
    .salary-tag-badge { font-size: 0.78rem; padding: 4px 10px; }

    /* Selected tags */
    .selected-tags-list .badge { font-size: 0.7rem; }

    /* My Entry summary in results */
    #myEntrySummary .card-body { padding: 0.75rem; }

    /* Account salary page cards */
    .account-salary-card .card-body { padding: 1rem; }

    /* Salary landing page mobile */
    .salary-landing-hero { padding: 2rem 0 1.5rem; }
    .salary-landing-hero h1 { font-size: 1.5rem; }
    .salary-landing-hero .lead { font-size: 0.9rem; }
    .salary-hero-cta { font-size: 1.1rem; padding: 0.85rem 2rem; width: 100%; text-align: center; }
    .salary-landing-badge { font-size: 0.75rem; padding: 5px 10px; }
    .salary-rank-badge { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ---- Salary Landing Page ---- */
.salary-landing-hero {
    background: linear-gradient(135deg, #0d6e3d 0%, #198754 50%, #28a745 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.salary-landing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.salary-landing-hero * { position: relative; z-index: 1; }

.salary-hero-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--wh-radius-lg);
    padding: 2rem;
    color: #fff;
}

.salary-hero-stat-card .text-muted { color: rgba(255,255,255,0.6) !important; }
.salary-hero-stat-card hr { border-color: rgba(255,255,255,0.2); }

.salary-rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wh-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.salary-hero-cta {
    display: inline-block;
    background: #fff;
    color: #198754;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    letter-spacing: 0.02em;
    animation: salaryPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.salary-hero-cta:hover {
    transform: scale(1.06);
    color: #146c43;
    box-shadow: 0 10px 40px rgba(255,255,255,0.35) !important;
}

@keyframes salaryPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 8px 35px rgba(255,255,255,0.45); }
}

.salary-landing-badge {
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

/* ---- Legal Pages ---- */
.legal-content h5 { margin-top: 1.8rem; margin-bottom: 0.8rem; color: var(--wh-gray-700); }
.legal-content h5:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.92rem; line-height: 1.7; color: var(--wh-gray-500); }
.legal-content table { font-size: 0.88rem; }

.salary-landing-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
