:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --accent: #00b14f;
    --accent-dark: #009443;
    --dark: #1a2332;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background: #f5f6fa;
}

/* =====================================================
   Global form input system
   ===================================================== */

/* --- Labels --- */
.form-label {
    font-size: .88rem;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: .35rem;
    display: block;
}

/* --- Text / number / date / email / password inputs --- */
.form-control {
    border: 1.5px solid #d0d5dd;
    border-radius: 7px;
    padding: .5rem .85rem;
    font-size: .93rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .18s, box-shadow .18s, background .18s;
    line-height: 1.55;
}
.form-control::placeholder {
    color: #aab0ba;
    font-weight: 400;
}
.form-control:hover:not(:focus):not(:disabled) {
    border-color: #b0b8c4;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .15);
    background: #fff;
    outline: none;
}
.form-control:disabled,
.form-control[readonly] {
    background: #f5f6fa;
    border-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

/* lg / sm variants */
.form-control-lg {
    padding: .65rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}
.form-control-sm {
    padding: .3rem .65rem;
    font-size: .83rem;
    border-radius: 6px;
}

/* textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* --- Select --- */
.form-select {
    border: 1.5px solid #d0d5dd;
    border-radius: 7px;
    padding: .5rem 2.25rem .5rem .85rem;
    font-size: .93rem;
    color: #1a1a1a;
    background-color: #fff;
    transition: border-color .18s, box-shadow .18s;
    cursor: pointer;
}
.form-select:hover:not(:focus):not(:disabled) {
    border-color: #b0b8c4;
}
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .15);
    outline: none;
}
.form-select-sm {
    padding: .3rem 2rem .3rem .65rem;
    font-size: .83rem;
    border-radius: 6px;
}
.form-select-lg {
    padding: .65rem 2.4rem .65rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* --- Input group --- */
.input-group .form-control,
.input-group .form-select {
    border-radius: 0;
}
.input-group > :first-child,
.input-group > .form-control:first-child,
.input-group > .form-select:first-child,
.input-group > .btn:first-child {
    border-radius: 7px 0 0 7px;
}
.input-group > :last-child,
.input-group > .form-control:last-child,
.input-group > .form-select:last-child,
.input-group > .btn:last-child {
    border-radius: 0 7px 7px 0;
}
.input-group-text {
    background: #f5f6fa;
    border: 1.5px solid #d0d5dd;
    color: #555;
    font-size: .88rem;
    padding: .5rem .85rem;
    transition: border-color .18s;
}
.input-group:focus-within .input-group-text {
    border-color: var(--accent);
}
.input-group-sm .form-control,
.input-group-sm .form-select,
.input-group-sm .input-group-text {
    padding: .3rem .65rem;
    font-size: .83rem;
}
.input-group-sm > :first-child { border-radius: 6px 0 0 6px; }
.input-group-sm > :last-child  { border-radius: 0 6px 6px 0; }
.input-group-lg .form-control,
.input-group-lg .form-select,
.input-group-lg .input-group-text {
    padding: .65rem 1rem;
    font-size: 1rem;
}
.input-group-lg > :first-child { border-radius: 8px 0 0 8px; }
.input-group-lg > :last-child  { border-radius: 0 8px 8px 0; }

/* --- Checkboxes & radios --- */
.form-check-input {
    width: 1.05em;
    height: 1.05em;
    border: 1.5px solid #c0c8d2;
    background-color: #fff;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
    cursor: pointer;
    flex-shrink: 0;
}
.form-check-input:hover {
    border-color: var(--accent);
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .18);
    outline: none;
}
.form-check-input[type="radio"] {
    border-radius: 50%;
}
.form-check-label {
    font-size: .9rem;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

/* --- Validation states --- */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .15);
}
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--accent);
    box-shadow: none;
}
.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .15);
}
.invalid-feedback {
    font-size: .82rem;
    margin-top: .3rem;
}
.form-text,
small.text-muted {
    font-size: .8rem;
    color: #8a92a0 !important;
    margin-top: .28rem;
    display: block;
}

/* --- Auth card form --- */
.auth-card {
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    padding: 2.5rem 2.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.09);
    max-width: 480px;
    margin: 2.5rem auto;
    border: 1px solid rgba(0,0,0,.04);
}
.auth-card h3 {
    font-size: 1.4rem;
    letter-spacing: -.01em;
    color: #111;
}
.auth-card .form-control,
.auth-card .form-select {
    padding: .58rem .95rem;
    font-size: .95rem;
}
.auth-card .btn-accent.w-100 {
    padding: .65rem 1rem;
    font-size: .97rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: .01em;
}
.auth-card hr {
    border-color: var(--gray-200);
    margin: 1.5rem 0;
}
.auth-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,177,79,.15) 0%, rgba(0,177,79,.07) 100%);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.auth-role-tabs {
    display: flex;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.auth-role-tab {
    flex: 1;
    text-align: center;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    background: #fafafa;
    transition: background .15s, color .15s;
    border-right: 1.5px solid var(--gray-200);
}
.auth-role-tab:last-child {
    border-right: none;
}
.auth-role-tab:hover {
    background: #f0faf5;
    color: var(--accent-dark);
}
.auth-role-tab.active {
    background: var(--accent);
    color: #fff;
}

/* --- Dashboard card forms --- */
.dashboard-card .form-label {
    font-size: .86rem;
}
.dashboard-card .form-control,
.dashboard-card .form-select {
    font-size: .92rem;
}

/* 404 Page */
.error-page {
    padding: 4rem 0 5rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.error-page-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-page-code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.error-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.error-page-desc {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.site-header .brand-accent {
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
}

.nav-link:hover,
.main-nav .nav-link.active {
    color: var(--accent) !important;
}
.main-nav .nav-link.active {
    font-weight: 600;
}

/* Header dropdown (TopCV-style hover) */
.main-nav .nav-dropdown {
    position: static;
}
@media (min-width: 992px) {
    .main-nav .nav-dropdown {
        position: relative;
    }
}
.main-nav .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: .5rem 1rem !important;
}
.main-nav .nav-chevron {
    font-size: .65rem;
    transition: transform .2s;
    opacity: .6;
}
.main-nav .nav-dropdown:hover .nav-chevron,
.main-nav .nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}
.main-nav .nav-dropdown-menu {
    display: none;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    border-top: 3px solid var(--accent);
    padding: 1.25rem;
}
.main-nav .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
@media (min-width: 992px) {
    .main-nav .nav-dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 260px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .2s, transform .2s, visibility .2s;
        z-index: 1050;
    }
    .main-nav .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .main-nav .nav-mega {
        left: 0;
        min-width: 680px;
        max-width: 820px;
        padding: 1.5rem;
    }
    .main-nav .nav-mega-sm {
        min-width: 520px;
        max-width: 600px;
    }
}
.main-nav .nav-mega-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
.main-nav .nav-mega-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
    letter-spacing: .03em;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--gray-200);
}
.main-nav .nav-mega-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .5rem;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.main-nav .nav-mega-link:hover {
    background: rgba(0, 177, 79, .08);
    color: var(--accent) !important;
}
.main-nav .nav-mega-link-highlight {
    font-weight: 600;
    color: var(--accent);
}
.main-nav .nav-mega-grid {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.main-nav .nav-mega-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    color: #444;
    text-decoration: none;
    font-size: .85rem;
    border-radius: 6px;
    transition: background .15s;
}
.main-nav .nav-mega-chip:hover {
    background: rgba(0, 177, 79, .08);
    color: var(--accent);
}
.main-nav .nav-mega-chip i {
    color: var(--accent);
    width: 18px;
    text-align: center;
}
/* Mobile: tap to expand submenu */
@media (max-width: 991.98px) {
    .main-nav .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--accent);
        margin: 0 0 .5rem 1rem;
        padding: .75rem 1rem;
        background: var(--gray-100);
        border-radius: 0 8px 8px 0;
    }
    .main-nav .nav-mega-inner {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.search-box .form-control,
.search-box .form-select {
    border: none;
    padding: .7rem 1rem;
    font-size: .95rem;
    border-radius: 0;
}
.search-box .form-control:focus,
.search-box .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-box .btn-search {
    padding: 12px 32px;
    border-radius: 6px;
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Company Avatar */
.company-avatar {
    width: var(--avatar-size, 64px);
    height: var(--avatar-size, 64px);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fff;
}

.company-avatar span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: calc(var(--avatar-size, 64px) * 0.38);
    color: #fff;
    background: var(--avatar-color, var(--primary));
}

.job-card-avatar-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}

.job-card-avatar-link:hover {
    transform: scale(1.05);
}

/* Job Card */
.job-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: inherit;
}

.job-card-list {
    position: relative;
    min-height: 96px;
}

.job-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-height: 68px;
}

.job-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-card-info {
    flex: 1;
    min-width: 0;
}

.job-card-side {
    flex-shrink: 0;
    text-align: right;
    min-width: 88px;
}

.job-card:hover {
    border-color: #c8e6c9;
    box-shadow: 0 2px 8px rgba(0, 177, 79, 0.1);
}

.job-card-list:hover .job-title {
    color: var(--accent);
}

.job-card-grid-wrap {
    position: relative;
    height: 100%;
}

.job-like-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    top: auto;
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: #fff;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s, transform .12s;
}

.job-card-list .job-like-btn {
    bottom: 12px;
    right: 12px;
}

.job-like-btn:hover {
    color: #e74c3c;
    border-color: #f5b7b1;
    background: #fff5f5;
}

.job-like-btn.is-liked,
.job-like-btn.is-liked:hover {
    color: #e74c3c;
    border-color: #f5b7b1;
    background: #fff5f5;
}

.job-like-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.job-like-btn-block {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 6px;
    padding: .5rem .75rem;
}

.job-card-grid {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 108px;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.job-card-grid-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    width: 100%;
}

.job-card-grid-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.job-card-grid-tags {
    min-height: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.job-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 2.8em;
    max-height: 2.8em;
}

.job-card-grid .job-title {
    font-size: 0.88rem;
    display: block;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    min-height: 0;
    max-height: none;
    max-width: 100%;
    word-break: normal;
}

.job-card-grid:hover .job-title,
.job-card-list:hover .job-title {
    color: var(--accent);
}

.job-card .company-name,
.job-card-grid .company-name {
    font-size: 0.8rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 1.3em;
}

.job-card-grid-meta {
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    padding-top: 2px;
    padding-right: 36px;
}

.job-card-grid-meta .job-salary {
    font-size: 0.8rem;
}

.job-card-grid-meta .job-location {
    color: var(--gray-600);
}

.meta-dot {
    color: #ccc;
    margin: 0 4px;
}

.job-salary {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1.3;
}

.job-date {
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 24px;
}

.job-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    line-height: 1.5;
}

.job-tag.featured {
    background: #fff8e1;
    color: #e65100;
}

/* Job labels (TopCV-style) */
.job-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.job-label-lg {
    font-size: .75rem;
    padding: 4px 10px;
}
.job-label-option {
    display: block;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    height: 100%;
}
.job-label-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.job-label-option.selected,
.job-label-option:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 177, 79, .12);
}
.job-label-price {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-top: .5rem;
}
.job-label-desc {
    display: block;
    color: var(--gray-600);
    margin-top: .35rem;
    line-height: 1.3;
}
.job-label-locked {
    max-width: 480px;
}

.job-list-title {
    max-width: 320px;
    min-width: 0;
}

.job-list-title a,
.job-list-title-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.job-list-title a:hover {
    color: var(--accent);
}
.payment-demo-box {
    background: rgba(0, 177, 79, .04);
    border-color: rgba(0, 177, 79, .2) !important;
}
.payment-qr-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
}
.payment-qr-wrap {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed var(--gray-200);
}
.payment-qr-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.order-bank-transfer-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.order-transfer-note {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 600;
}
.order-transfer-note-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.admin-order-job-title {
    max-width: 220px;
}
.admin-order-job-title a:hover {
    color: var(--accent);
    text-decoration: underline !important;
}
.text-accent {
    color: var(--accent) !important;
}

/* Category Card */
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: var(--accent);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Jobs browse page (TopCV-style) */
.job-browse-heading {
    font-size: 1.1rem;
    font-weight: 700;
}
.job-browse-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    height: 100%;
    padding: .85rem .95rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: #222;
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-browse-cat-tile:hover {
    border-color: rgba(0, 177, 79, .4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
    color: var(--accent);
}
.job-browse-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(0, 177, 79, .1);
    color: var(--accent);
    font-size: 1.1rem;
}
.job-browse-cat-name {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
}
.job-browse-cat-count {
    font-size: .75rem;
    color: var(--gray-600);
}
.job-browse-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.1rem .35rem;
    box-shadow: var(--shadow);
}
.job-browse-more-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.job-browse-more-link:hover {
    text-decoration: underline;
}

/* Jobs page hero + search (TopCV-style) */
.jobs-hero {
    background: linear-gradient(180deg, #0f5132 0%, #157347 55%, #198754 100%);
    color: #fff;
    padding: 2.25rem 0 2rem;
}
.jobs-hero:has(.jobs-browse-top) {
    padding-bottom: 2.5rem;
}
.jobs-hero-text {
    max-width: 920px;
    margin: 0 auto 1.5rem;
}
.jobs-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .65rem;
}
.jobs-hero-subtitle {
    font-size: .95rem;
    opacity: .92;
    margin-bottom: 0;
    line-height: 1.5;
}
.jobs-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
}
.jobs-search-segment {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border-right: 1px solid var(--gray-200);
}
.jobs-search-category {
    flex: 0 0 190px;
    padding: 0 .35rem 0 .85rem;
}
.jobs-search-keyword {
    flex: 1 1 auto;
    padding: 0 .5rem;
}
.jobs-search-location {
    flex: 0 0 180px;
    padding: 0 .35rem 0 .65rem;
}
.jobs-search-icon {
    color: var(--gray-600);
    font-size: 1rem;
    flex-shrink: 0;
}
.jobs-search-chevron {
    position: absolute;
    right: .55rem;
    color: var(--gray-600);
    font-size: .75rem;
    pointer-events: none;
}
.jobs-search-select,
.jobs-search-input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: .95rem .5rem;
    font-size: .92rem;
    color: #222;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.jobs-search-category .jobs-search-select,
.jobs-search-location .jobs-search-select {
    padding-right: 1.35rem;
}
.jobs-search-input::placeholder {
    color: #9aa0a6;
}
.jobs-search-clear {
    border: 0;
    background: transparent;
    color: var(--gray-600);
    padding: .25rem .4rem;
    line-height: 1;
}
.jobs-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 0 1.35rem;
    white-space: nowrap;
}
.jobs-search-btn:hover {
    filter: brightness(1.05);
    color: #fff;
}
.jobs-browse-top {
    --jobs-category-row-h: 44px;
    margin-top: 1.35rem;
    position: relative;
    z-index: 2;
}
.jobs-category-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.jobs-category-list {
    flex: 0 0 auto;
    height: calc(var(--jobs-category-row-h) * 6);
    overflow: hidden;
}
.jobs-category-row {
    height: var(--jobs-category-row-h);
}
.jobs-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    height: 100%;
    padding: 0 1rem;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    font-size: .9rem;
    transition: background .12s, color .12s;
}
.jobs-category-item:hover {
    background: rgba(0, 177, 79, .06);
    color: var(--accent);
}
.jobs-category-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.jobs-category-item .bi-chevron-right {
    flex-shrink: 0;
    color: var(--gray-400);
    font-size: .8rem;
}
.jobs-category-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .85rem;
    border-top: 1px solid var(--gray-200);
    background: #fafafa;
}
.jobs-category-pager-info {
    font-size: .85rem;
    color: var(--gray-600);
    font-weight: 600;
}
.jobs-category-pager-btns {
    display: flex;
    gap: .35rem;
}
.jobs-category-pager-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: #fff;
    color: #333;
    cursor: pointer;
}
.jobs-category-pager-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}
.jobs-category-pager-btn:disabled {
    opacity: .4;
    cursor: default;
}
.jobs-browse-top .jobs-banner-carousel {
    min-height: calc(var(--jobs-category-row-h) * 6 + 46px);
}
.jobs-banner-carousel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
}
.jobs-browse-top .jobs-banner-carousel .carousel,
.jobs-browse-top .jobs-banner-carousel .carousel-inner,
.jobs-browse-top .jobs-banner-carousel .carousel-item,
.jobs-browse-top .jobs-banner-slide {
    height: 100%;
    min-height: calc(var(--jobs-category-row-h) * 6 + 46px);
}
.jobs-banner-slide-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.jobs-banner-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}
.jobs-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jobs-banner-caption {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.75rem;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 100%);
    width: 100%;
}
.jobs-banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}
.jobs-banner-subtitle {
    font-size: .92rem;
    opacity: .92;
    margin-top: .35rem;
}
.jobs-banner-indicators {
    margin-bottom: .5rem;
    z-index: 4;
}
.jobs-banner-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    border: 0;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.jobs-banner-indicators .active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.jobs-banner-carousel .carousel-control-prev,
.jobs-banner-carousel .carousel-control-next {
    z-index: 4;
    width: auto;
    padding: 0 .75rem;
    opacity: 1;
}
.jobs-banner-nav-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    pointer-events: none;
}
.jobs-banner-control:hover .jobs-banner-nav-icon {
    background: #fff;
    color: var(--accent);
}
@media (max-width: 991px) {
    .jobs-search-bar {
        flex-wrap: wrap;
        border-radius: var(--radius);
    }
    .jobs-search-segment {
        border-right: 0;
        border-bottom: 1px solid var(--gray-200);
        flex: 1 1 100%;
    }
    .jobs-search-category,
    .jobs-search-location {
        flex: 1 1 100%;
    }
    .jobs-search-btn {
        width: 100%;
        justify-content: center;
        padding: .85rem 1rem;
        border-radius: 0;
    }
    .jobs-browse-top {
        --jobs-category-row-h: 42px;
        margin-top: 1rem;
    }
}

/* Category hierarchy (TopCV-style) */
.category-group-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 0.85rem;
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s;
}
.category-group-card:hover {
    border-color: rgba(0, 177, 79, .35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.category-group-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--gray-200);
}
.category-group-head i {
    font-size: 1.35rem;
    color: var(--accent);
}
.category-group-head:hover {
    color: var(--accent);
}
.category-group-children li a {
    display: block;
    padding: .35rem 0 .35rem .5rem;
    color: #555;
    text-decoration: none;
    font-size: .88rem;
    border-left: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.category-group-children li a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.category-subtree-heading {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem .9rem;
    margin-top: 0;
    font-size: .86rem;
    font-weight: 700;
    color: #1a1a2e;
    background: rgba(0,177,79,.04);
    border-top: 1px solid rgba(0,177,79,.12);
    border-bottom: 1px solid rgba(0,177,79,.12);
}
.category-subtree-heading .bi {
    color: var(--accent);
}
.category-subtree-filter .category-tree-all {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

/* Breadcrumb cấp 1 khi đang xem cấp 2 */
.category-tree-parent-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    font-size: .83rem;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    background: rgba(0,177,79,.03);
    border-bottom: 1px solid rgba(0,177,79,.08);
    transition: background .15s, color .15s;
}
.category-tree-parent-link:hover {
    background: rgba(0, 177, 79, .08);
    color: var(--accent);
}
.category-tree-parent-link .bi {
    font-size: .9rem;
    color: var(--accent);
    opacity: .75;
}

.category-tree-filter {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}
.category-tree-all {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    font-size: .84rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.category-tree-all.active,
.category-tree-all:hover {
    color: var(--accent);
    background: rgba(0, 177, 79, .07);
}
.category-tree-parent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    cursor: pointer;
}
.category-tree-parent:hover {
    background: rgba(0, 177, 79, .05);
    color: var(--accent);
}
.category-tree-parent .category-tree-chevron {
    margin-left: auto;
    font-size: .7rem;
    transition: transform .25s ease;
}
.category-tree-group.open .category-tree-chevron {
    transform: rotate(180deg);
}
.category-tree-children {
    max-height: 0;
    overflow: hidden;
    background: #f8fffe;
    padding: 0;
    transition: max-height .28s ease, padding .18s ease;
}
.category-tree-group.open .category-tree-children {
    max-height: 600px;
    padding: .25rem 0;
}
.category-tree-child {
    display: block;
    padding: .38rem .9rem .38rem 1.75rem;
    font-size: .82rem;
    color: #555;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.category-tree-child:hover,
.category-tree-child.active {
    color: var(--accent);
    background: rgba(0, 177, 79, .08);
}
.category-tree-child.active {
    border-left: 3px solid var(--accent);
    padding-left: calc(1.75rem - 3px);
}
.category-tree-subgroup {
    border-top: 1px solid rgba(0,0,0,.05);
}
.category-tree-subparent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .9rem .45rem 1.25rem;
    border: none;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    color: #3a3a4a;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.category-tree-subparent:hover {
    background: rgba(0, 177, 79, .05);
    color: var(--accent);
}
.category-tree-subparent .category-tree-chevron {
    margin-left: auto;
    font-size: .65rem;
    transition: transform .25s ease;
    opacity: .55;
}
.category-tree-subgroup.open .category-tree-subparent .category-tree-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.category-tree-subgroup.open .category-tree-subparent {
    color: var(--accent);
}
.category-tree-subchildren {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}
.category-tree-subgroup.open .category-tree-subchildren {
    max-height: 800px;
}
.category-tree-child-root {
    font-weight: 700;
    padding-left: .9rem;
    font-size: .84rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.category-tree-child-root.active {
    border-left: 3px solid var(--accent);
    padding-left: calc(.9rem - 3px);
}
.category-tree-child-sub {
    padding-left: 2rem !important;
    font-weight: 600;
    font-size: .81rem;
}
.category-tree-child-sub.active {
    border-left: 3px solid var(--accent);
    padding-left: calc(2rem - 3px) !important;
}
.category-tree-child-leaf {
    padding-left: 2.6rem !important;
    font-size: .79rem;
}
.category-tree-child-leaf.active {
    border-left: 3px solid var(--accent);
    padding-left: calc(2.6rem - 3px) !important;
}

.category-admin-tree .category-admin-parent {
    margin-bottom: .5rem;
}
.category-admin-children {
    border-left: 2px solid var(--gray-200);
    margin-left: 1rem;
}

.main-nav .nav-mega-jobs {
    min-width: 880px;
    max-width: 1020px;
    padding: 1.5rem 1.75rem;
}
.main-nav .nav-mega-jobs-inner {
    grid-template-columns: minmax(160px, 1fr) minmax(360px, 2.2fr) minmax(160px, 1fr);
    gap: 1.5rem;
}
.main-nav .nav-mega-col-categories {
    min-width: 0;
}
.main-nav .nav-mega-category-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .5rem;
    margin-bottom: .35rem;
}
.main-nav .nav-mega-category-col {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.main-nav .nav-mega-all-categories {
    margin-top: .35rem;
}
.main-nav .nav-mega-link-sub {
    padding: .35rem .5rem;
    font-size: .85rem;
}
@media (max-width: 1199.98px) {
    .main-nav .nav-mega-jobs {
        min-width: 0;
        max-width: none;
    }
    .main-nav .nav-mega-jobs-inner {
        grid-template-columns: 1fr;
    }
    .main-nav .nav-mega-category-columns {
        grid-template-columns: 1fr;
    }
}

/* Company Card */
.company-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s;
}

.company-card:hover {
    transform: translateY(-2px);
}

.company-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Sidebar Filter */
/* ===== Sticky Sidebar Wrapper ===== */
/*
 * KHÔNG đặt overflow trên phần tử sticky — overflow tạo scroll-context mới
 * và phá vỡ position:sticky. Cột col-lg-3 giữ chiều cao stretch (bằng col-lg-9)
 * để sticky có đủ không gian. Scroll nội bộ chỉ đặt trên .category-tree-scroll.
 */
.filter-sidebar-sticky {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

/* Vùng scroll nội bộ dành riêng cho cây danh mục */
.category-tree-scroll {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 177, 79, .22) transparent;
}
.category-tree-scroll::-webkit-scrollbar {
    width: 4px;
}
.category-tree-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.category-tree-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 177, 79, .28);
    border-radius: 4px;
}
.category-tree-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 177, 79, .5);
}

/* ===== Filter Sidebar Card ===== */
.filter-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    transition: box-shadow .2s;
}
.filter-sidebar:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1rem;
    font-weight: 700;
    font-size: .88rem;
    color: #1a1a2e;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf6 100%);
    border-bottom: 2px solid var(--accent);
    letter-spacing: .01em;
}
.filter-sidebar-header .bi {
    color: var(--accent);
    font-size: 1rem;
}

.filter-sidebar-body {
    padding: 1rem;
}

.filter-sidebar-category .filter-sidebar-header {
    margin-bottom: 0;
}

/* ===== Job Listing Breadcrumb ===== */
.job-breadcrumb {
    margin-bottom: .75rem;
}
.job-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .8rem;
}
.job-breadcrumb-item {
    display: flex;
    align-items: center;
    color: #888;
}
.job-breadcrumb-item + .job-breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 1.5px solid #bbb;
    border-right: 1.5px solid #bbb;
    transform: rotate(45deg);
    margin: 0 .45rem;
    flex-shrink: 0;
}
.job-breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color .15s;
}
.job-breadcrumb-item a:hover {
    color: var(--accent);
}
.job-breadcrumb-item.active span {
    color: var(--accent);
    font-weight: 600;
}
.job-breadcrumb-item .bi-house {
    font-size: .85rem;
    color: #999;
}
.job-breadcrumb-item a:hover .bi-house {
    color: var(--accent);
}

/* ===== Job Result Header ===== */
.job-result-header {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.job-result-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}
.job-result-count {
    font-size: .82rem;
    color: #888;
    white-space: nowrap;
}
.job-result-count::before {
    content: '— ';
    color: #ccc;
}

/* Job Detail */
.job-detail-header {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.job-detail-body {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.job-detail-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.section-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.job-detail-related + .job-detail-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.job-detail-related .section-title {
    margin-bottom: 0;
}

/* Dashboard */
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.dashboard-sidebar .nav-link {
    color: #444;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.dashboard-sidebar .nav-link.active,
.dashboard-sidebar .nav-link:hover {
    background: #e8f5e9;
    color: var(--accent) !important;
}

.dashboard-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Footer */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #152238 0%, #111a28 100%);
    color: rgba(255, 255, 255, .72);
    margin-top: 3.5rem;
    padding: 0 0 1.5rem;
    overflow: hidden;
}

.site-footer-top-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, #2dd4bf 50%, var(--primary) 100%);
}

.site-footer::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 177, 79, .12) 0%, transparent 70%);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 2.75rem 0 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .15rem .35rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .85rem;
}

.footer-logo-accent {
    color: var(--accent);
}

.footer-logo small {
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .02em;
}

.footer-desc {
    font-size: .92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .62);
    max-width: 420px;
    margin-bottom: 1.15rem;
}

.footer-heading {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links li + li {
    margin-top: .55rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: .92rem;
    transition: color .15s, transform .15s;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .15s;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-contact li + li {
    margin-top: .65rem;
}

.footer-contact a,
.footer-contact-static {
    display: inline-flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.45;
    transition: color .15s;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: var(--accent);
    font-size: .95rem;
}

.footer-social {
    display: flex;
    gap: .55rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s, color .15s, transform .15s;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.15rem;
    text-align: center;
}

.footer-bottom p {
    font-size: .84rem;
    color: rgba(255, 255, 255, .45);
}

@media (max-width: 767px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-desc {
        max-width: none;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* Tắt sticky sidebar + scroll nội bộ trên mobile */
@media (max-width: 991px) {
    .filter-sidebar-sticky {
        position: static;
    }
    .category-tree-scroll {
        max-height: none;
        overflow: visible;
    }
}

/* Auth — styles defined in Global form input system section */

/* Status badges (see below) */
/* .auth-card defined in Global form input system section above */
.badge-pending { background: #fff3cd; color: #856404; }
.badge-reviewed { background: #cfe2ff; color: #084298; }
.badge-accepted { background: #d1e7dd; color: #0f5132; }
.badge-rejected { background: #f8d7da; color: #842029; }

/* CV Online */
.text-accent { color: var(--accent); }

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cv-preview-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.cv-online {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;
}

.cv-online-header {
    border-bottom: 3px solid var(--accent);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.cv-online-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.cv-online-title {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin: 4px 0 10px;
}

.cv-online-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.cv-online-contact span i {
    color: var(--accent);
    margin-right: 4px;
}

.cv-online-section {
    margin-bottom: 20px;
}

.cv-online-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.cv-online-item {
    margin-bottom: 14px;
}

.cv-online-item-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.cv-online-date {
    font-size: 0.82rem;
    color: #888;
}

.cv-online-sub {
    color: #666;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.cv-online-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-skill-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
}

@media print {
    .site-header, .site-footer, .dashboard-sidebar, .btn { display: none !important; }
    .cv-preview-wrap { box-shadow: none !important; border: none !important; }
}

/* Admin Panel */
.admin-body { background: #f0f2f5; margin: 0; }

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1a2332;
    color: #ccc;
    padding: 20px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 16px 0 8px 12px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #aaa;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(0, 177, 79, 0.15);
    color: #fff;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 24px;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.admin-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-stat-label {
    font-size: 0.82rem;
    color: #888;
}

@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
}

/* Posts / Cẩm nang */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.post-card-link { color: inherit; display: block; height: 100%; }
.post-card-thumb {
    position: relative;
    height: 160px;
    background: var(--gray-100);
    overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-600);
    opacity: .4;
}
.post-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.post-card-body { padding: 1rem; }
.post-card-cat {
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}
.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: .4rem 0;
    line-height: 1.4;
    color: var(--dark);
}
.post-card-excerpt {
    font-size: .85rem;
    color: var(--gray-600);
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    font-size: .78rem;
    color: var(--gray-600);
    display: flex;
    gap: 1rem;
}
.post-sidebar { position: sticky; top: 80px; }
.post-cat-list li a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
}
.post-cat-list li a:hover,
.post-cat-list li a.active {
    background: rgba(0, 177, 79, .1);
    color: var(--accent);
    font-weight: 600;
}
.post-detail-title { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.post-detail-cat {
    display: inline-block;
    background: rgba(0, 177, 79, .12);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: .75rem;
}
.post-detail-thumb { width: 100%; max-height: 400px; object-fit: cover; }
.post-detail-content { line-height: 1.8; font-size: 1rem; }
.post-related-item:hover .fw-semibold { color: var(--accent); }
.page-hero .breadcrumb { font-size: .85rem; }

/* Pagination */
.site-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.site-pagination-info {
    margin: 0;
    font-size: .9rem;
    color: var(--gray-600);
}
.site-pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
a.site-pagination-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 177, 79, .06);
}
.site-pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 177, 79, .25);
}
.site-pagination-btn.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.site-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: var(--gray-600);
    font-weight: 600;
}
@media (max-width: 576px) {
    .site-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .site-pagination-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .site-pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: .85rem;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.6rem; }
    .hero-section { padding: 40px 0 60px; }
}

/* Notifications */
.notification-bell {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
}
.notification-bell-inline {
    color: #333;
    border: none;
    background: transparent;
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.notification-menu {
    width: 340px;
    max-width: 92vw;
    padding: 0;
    border: 1px solid var(--gray-200);
}
.notification-menu-header,
.notification-menu-footer {
    padding: .75rem 1rem;
    background: var(--gray-100);
}
.notification-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-200);
}
.notification-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #888;
    font-size: .9rem;
}
.notification-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-200);
    transition: background .15s;
}
.notification-item-body {
    flex: 1;
    min-width: 0;
}
.notification-item:hover {
    background: rgba(0, 177, 79, .05);
    color: inherit;
}
.notification-item.unread {
    background: rgba(13, 110, 253, .04);
}
.notification-item.active {
    background: rgba(0, 177, 79, .1);
    border-left: 3px solid var(--accent);
}
.notification-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notification-item-title {
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .15rem;
    word-break: break-word;
}
.notification-item-message {
    font-size: .82rem;
    color: #666;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}
.notification-item-list .notification-item-message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-item-compact .notification-item-message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: .35rem;
}
.notification-list .notification-item:last-child {
    border-bottom: none;
}
.notification-page-layout {
    min-height: 420px;
}
.notification-detail-wrap,
.notification-list {
    min-height: 420px;
}
.notification-detail-panel {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
.notification-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}
.notification-detail-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.notification-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.notification-detail-body {
    flex: 1;
    padding: 1.5rem;
    font-size: .95rem;
    line-height: 1.7;
    color: #444;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.notification-detail-actions {
    padding: 0 1.5rem 1.5rem;
}
.admin-topbar .notification-dropdown-inline {
    position: relative;
}
@media (max-width: 991px) {
    .notification-page-layout {
        min-height: auto;
    }
    .notification-detail-wrap,
    .notification-list,
    .notification-detail-panel {
        min-height: auto;
    }
    .notification-detail-panel {
        min-height: 280px;
    }
}

/* =====================================================
   Salary / Tax / Insurance Tool — shared styles
   ===================================================== */

/* --- Hero banner --- */
.salary-tool-hero {
    background: linear-gradient(135deg, #064d2e 0%, var(--accent) 52%, #00d45a 100%);
    color: #fff;
    padding: 3rem 0 2.75rem;
    position: relative;
    overflow: hidden;
}
.salary-tool-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.salary-tool-hero .container {
    position: relative;
}
.salary-tool-title {
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 700;
    margin-bottom: .6rem;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.salary-tool-subtitle {
    opacity: .9;
    max-width: 680px;
    font-size: 1.02rem;
    line-height: 1.55;
}

/* --- Regime selector strip --- */
.salary-tool-regime {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.salary-tool-label {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-600);
    margin-bottom: .75rem;
}
.salary-tool-regime-btns {
    flex-wrap: wrap;
    gap: .4rem;
}
.salary-tool-regime-btns .btn {
    white-space: normal;
    text-align: left;
    font-size: .88rem;
    padding: .45rem .9rem;
    line-height: 1.4;
    border-radius: 6px;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.salary-tool-regime-btns .btn-check:checked + .btn-outline-accent {
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .18);
}
.salary-tool-notes {
    font-size: .83rem;
    line-height: 1.65;
}
.salary-tool-notes li {
    padding: .15rem 0;
}
.salary-tool-notes li::before {
    content: '·';
    margin-right: .4rem;
    color: var(--accent);
    font-weight: 700;
}

/* --- Main card --- */
.salary-tool-card {
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,.04);
}
.salary-tool-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: .85rem;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 1.25rem !important;
}

/* --- Form fields --- */
.salary-tool-input {
    font-weight: 600;
    letter-spacing: .02em;
    font-size: 1.1rem;
}
.salary-tool-card .input-group-text {
    min-width: 2.6rem;
    justify-content: center;
}

/* --- Zone radio buttons --- */
.salary-tool-region {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.salary-tool-region .btn-outline-secondary {
    font-size: .82rem;
    padding: .3rem .75rem;
    border-radius: 6px;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.salary-tool-region .btn-check:checked + .btn-outline-secondary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 177, 79, .3);
}

/* --- Gross-Net result boxes --- */
.salary-result-box {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.salary-result-box.salary-result-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 177, 79, .12), 0 4px 16px rgba(0, 177, 79, .08);
    background: rgba(0, 177, 79, .04);
}
.salary-result-label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: .4rem;
}
.salary-result-value {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #111;
    word-break: break-word;
    transition: color .2s;
}

/* --- Breakdown table --- */
.salary-breakdown {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.salary-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .7rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: .88rem;
    transition: background .15s;
}
.salary-breakdown-row:last-child {
    border-bottom: 0;
}
.salary-breakdown-row span {
    color: #555;
}
.salary-breakdown-row strong {
    color: #222;
    white-space: nowrap;
    font-tabular-nums: tabular-nums;
    font-variant-numeric: tabular-nums;
}
.salary-breakdown-subtotal {
    background: #f7f8f9;
    font-weight: 600;
}
.salary-breakdown-subtotal span,
.salary-breakdown-subtotal strong {
    color: #333;
}
.salary-breakdown-total {
    background: linear-gradient(90deg, rgba(0,177,79,.07) 0%, rgba(0,177,79,.04) 100%);
    font-weight: 700;
    border-top: 1.5px solid rgba(0,177,79,.25);
}
.salary-breakdown-total span,
.salary-breakdown-total strong {
    color: #0d4a25;
}

/* --- Reference grid --- */
.salary-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--gray-200);
    font-size: .85rem;
}
.salary-ref-grid > div {
    background: var(--gray-100);
    border-radius: 6px;
    padding: .5rem .75rem;
}
.salary-ref-grid .text-muted {
    font-size: .78rem;
    display: block;
    margin-bottom: .1rem;
}
.salary-ref-grid .fw-semibold {
    color: #222;
    font-size: .9rem;
}

/* --- FAQ accordion --- */
.salary-tool-faq .accordion-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius) !important;
    margin-bottom: .5rem;
    overflow: hidden;
}
.salary-tool-faq .accordion-button {
    font-weight: 600;
    font-size: .92rem;
    color: #222;
    background: #fafafa;
    padding: 1rem 1.2rem;
}
.salary-tool-faq .accordion-button:not(.collapsed) {
    background: rgba(0,177,79,.05);
    color: var(--accent-dark);
    box-shadow: none;
    border-bottom: 1px solid rgba(0,177,79,.15);
}
.salary-tool-faq .accordion-button::after {
    filter: none;
}
.salary-tool-faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(36%) sepia(88%) saturate(599%) hue-rotate(105deg) brightness(92%) contrast(92%);
}
.salary-tool-faq .accordion-body {
    font-size: .9rem;
    line-height: 1.65;
    color: #444;
    padding: 1rem 1.2rem;
}

/* --- CTA section --- */
.salary-tool-cta {
    background: linear-gradient(135deg, #f0faf4 0%, #e8f5ef 100%);
    border: 1.5px solid rgba(0,177,79,.2);
    border-radius: calc(var(--radius) + 4px);
    padding: 2rem 1.5rem;
}
.salary-tool-cta .btn {
    min-width: 11rem;
}

/* --- PIT / BHTN result boxes --- */
.pit-result-box {
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.1rem 1rem;
    background: linear-gradient(135deg, rgba(0,177,79,.07) 0%, rgba(0,177,79,.03) 100%);
    text-align: center;
    transition: box-shadow .2s, border-color .2s;
}
.pit-result-box:hover {
    box-shadow: 0 4px 16px rgba(0,177,79,.18);
}
.pit-result-box--muted {
    border-color: var(--gray-200);
    background: #fafafa;
}
.pit-result-box--muted:hover {
    border-color: #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.pit-result-label {
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: .45rem;
}
.pit-result-value {
    font-size: clamp(1rem, 2vw, 1.35rem);
    word-break: break-word;
    transition: color .2s;
}
.bhtn-result-value {
    font-size: clamp(1rem, 2vw, 1.35rem);
    word-break: break-word;
    transition: color .2s;
}

/* --- PIT tax bracket tables --- */
.pit-brackets-title {
    font-size: .88rem;
    color: #444;
    font-weight: 600;
}
.pit-bracket-table {
    font-size: .85rem;
    margin-bottom: 0;
}
.pit-bracket-table thead th {
    background: #f0faf4;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #0d4a25;
    border-bottom-width: 2px;
    border-color: rgba(0,177,79,.25);
}
.pit-bracket-table tbody tr:last-child {
    font-weight: 700;
    background: rgba(0,177,79,.04);
}
.pit-bracket-ref-table {
    font-size: .86rem;
}
.pit-bracket-ref-table th {
    font-weight: 700;
    background: #f7f8f9;
    font-size: .8rem;
}
.pit-bracket-ref-table .table-danger td {
    background: #fff5f5;
    color: #842029;
}

/* --- BHTN condition cards --- */
.bhtn-condition-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.bhtn-condition-card:hover {
    border-color: rgba(0,177,79,.4);
    box-shadow: 0 4px 16px rgba(0,177,79,.08);
    transform: translateY(-1px);
}
.bhtn-condition-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,177,79,.15) 0%, rgba(0,177,79,.07) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Section headings inside tool page --- */
.bhtn-tool h2.h5,
.pit-tool h2.h5 {
    font-size: 1.05rem;
    font-weight: 700;
    padding-bottom: .7rem;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 1.1rem !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .salary-tool-card {
        padding: 1.25rem;
    }
    .salary-tool-regime {
        padding: 1rem 1.1rem;
    }
    .salary-tool-cta {
        padding: 1.5rem 1rem;
    }
    .salary-tool-cta .btn {
        width: 100%;
        min-width: unset;
    }
}
@media (max-width: 575px) {
    .salary-tool-hero {
        padding: 2rem 0;
    }
    .salary-ref-grid {
        grid-template-columns: 1fr;
    }
    .salary-tool-regime-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .salary-tool-regime-btns .btn {
        width: 100%;
    }
    .pit-result-box {
        padding: .85rem .75rem;
    }
    .salary-breakdown-row {
        padding: .6rem .85rem;
        flex-direction: column;
        gap: .15rem;
    }
    .salary-breakdown-row strong {
        text-align: right;
        align-self: flex-end;
    }
}
