/* Tuyển Dụng Manager - Frontend CSS */

/* Global SVG reset — override Flatsome's svg { margin-right:10px; max-width:50px } */
.td-jl-hero svg,
.td-jl-layout svg,
.td-jl-sb svg,
.td-jl-card svg,
.td-jl-results-bar svg,
.td-jl-pagination svg,
.td-el-wrap svg,
.td-el-sf-dropdown svg,
.td-share-btn svg {
    margin-right: 0 !important;
    max-width: none !important;
}

:root {
    --td-primary: #f07327;
    --td-primary-dark: #d4621a;
    --td-secondary: #1e3a6e;
    --td-accent: #1a9b4e;
    --td-border: #e8ecef;
    --td-bg: #f8f9fa;
    --td-success: #1a9b4e;
    --td-warning: #f5a91e;
    --td-danger: #e84027;
    --td-radius: 8px;
    --td-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Base */
.td-box {
    background: #fff;
    border-radius: var(--td-radius);
    padding: 28px;
    box-shadow: var(--td-shadow);
    margin-bottom: 24px;
}

/* Alerts */
.td-alert {
    padding: 12px 16px;
    border-radius: var(--td-radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.td-alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.td-alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.td-alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* Forms */
.td-form .td-form-group { margin-bottom: 18px; }
.td-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--td-secondary); font-size: 14px; }
.td-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--td-border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.td-input:focus { outline: none; border-color: var(--td-accent); box-shadow: 0 0 0 3px rgba(52,152,219,.15); }
select.td-input { padding-top: 8px; padding-bottom: 8px; height: auto; line-height: 1.4; }
.td-textarea { min-height: 100px; resize: vertical; }
.td-hint { font-size: 12px; color: #888; margin-top: 4px; }
.td-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--td-danger); }

/* Buttons */
.td-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    /* Override Flatsome's .button/button global rule */
    line-height: 1;
    min-height: 0;
    text-transform: none;
    margin: 0;
    letter-spacing: 0;
}
.td-btn-primary { background: var(--td-primary); color: #fff; border-color: var(--td-primary); }
.td-btn-primary:hover { background: var(--td-primary-dark); border-color: var(--td-primary-dark); color: #fff; }
.td-btn-outline { background: transparent; color: var(--td-primary); border-color: var(--td-primary); }
.td-btn-outline:hover { background: var(--td-primary); color: #fff; }
.td-btn-danger { background: transparent; color: #c0392b; border-color: #c0392b; }
.td-btn-danger:hover { background: #c0392b; color: #fff; }
.td-btn-block { width: 100%; justify-content: center; }
.td-btn-sm { padding: 5px 12px; font-size: 12px; }

/* Badges */
.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0e0e0;
    color: #555;
}
.td-badge-active  { background: #d4edda; color: #155724; }
.td-badge-pending { background: #fff3cd; color: #856404; }
.td-badge-new     { background: #cce5ff; color: #004085; }
.td-badge-expired, .td-badge-rejected, .td-badge-inactive { background: #f8d7da; color: #721c24; }
.td-badge-paused  { background: #e2d9f3; color: #6f42c1; }
.td-badge-scraped { background: #e2f0d9; color: #375623; font-size: 10px; }

/* Dashboard */
.td-dashboard { }

/* Hero header */
.td-employer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a2236 0%, #2c3e50 60%, #34495e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.td-employer-header::after {
    content: '';
    position: absolute;
    top: -50px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.td-employer-info { display: flex; align-items: center; gap: 16px; }
.td-employer-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(231,76,60,.4);
}
.td-employer-details h2 { margin: 0 0 4px; color: #fff; font-size: 20px; line-height: 1.2; }
.td-employer-details p  { margin: 0 0 6px; color: rgba(255,255,255,.65); font-size: 13px; }
.td-balance-box { text-align: right; flex-shrink: 0; }
.td-balance-amount { font-size: 30px; font-weight: 800; color: #f7c948; line-height: 1; }
.td-balance-label  { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 10px; margin-top: 2px; }
.td-balance-box .td-btn-sm {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.3);
    font-size: 12px;
}
.td-balance-box .td-btn-sm:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

/* Low balance warning */
.td-low-balance-alert {
    background: linear-gradient(90deg, #fff8e1, #fffde7);
    border: 1px solid #ffe082;
    border-left: 4px solid var(--td-warning);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7d5a00;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.td-low-balance-alert a { color: var(--td-warning); font-weight: 600; }

.td-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.td-stat-box {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    transition: box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.td-stat-box:hover { box-shadow: var(--td-shadow); }
.td-stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
}
.td-stat-box:nth-child(1)::before { background: var(--td-success); }
.td-stat-box:nth-child(2)::before { background: var(--td-accent); }
.td-stat-box:nth-child(3)::before { background: var(--td-warning); }
.td-stat-box:nth-child(4)::before { background: var(--td-primary); }
.td-stat-icon {
    display: block;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 10px;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.td-stat-icon--green  { background: #f0fdf4; }
.td-stat-icon--blue   { background: #eff6ff; }
.td-stat-icon--orange { background: #fff7ed; }
.td-stat-icon--red    { background: #fef2f2; }
.td-stat-num   { display: block; font-size: 26px; font-weight: 800; color: var(--td-secondary); }
.td-stat-num--money { font-size: 16px; }
.td-stat-label { display: block; font-size: 12px; color: #888; margin-top: 4px; }
.td-stat-badge { margin-top: 6px; }

/* Quick action cards */
.td-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.td-qaction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid var(--td-border);
    text-decoration: none;
    color: var(--td-secondary);
    transition: border-color .18s, box-shadow .18s, transform .18s;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-height: 96px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.td-qaction:hover {
    border-color: var(--td-primary);
    box-shadow: 0 6px 20px rgba(231,76,60,.12);
    transform: translateY(-2px);
    color: var(--td-primary);
    text-decoration: none;
}
.td-qaction--primary {
    background: linear-gradient(135deg, var(--td-primary) 0%, var(--td-primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(231,76,60,.3);
}
.td-qaction--primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(231,76,60,.4);
}
.td-qaction--primary .td-qaction__icon { color: rgba(255,255,255,.95); font-size: 32px; }
.td-qaction--primary .td-qaction__label { color: #fff; }
.td-qaction--logout {
    border-style: dashed;
    opacity: .65;
}
.td-qaction--logout:hover {
    border-color: var(--td-danger);
    border-style: solid;
    color: var(--td-danger);
    opacity: 1;
    box-shadow: none;
}
.td-qaction__icon {
    font-size: 28px;
    line-height: 1;
    display: block;
}
.td-qaction__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}
.td-qaction__meta {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
    margin-top: 1px;
}
.td-qaction--primary .td-qaction__meta { color: rgba(255,255,255,.7); }
.td-qaction__badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--td-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* Applicant avatar circle */
.td-app-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* Application cards list (applications.php) */
.td-app-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.td-app-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--td-border);
    background: #fff;
    transition: box-shadow .15s, border-color .15s;
}
.td-app-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    border-color: #c8d4e4;
}
.td-app-card--new {
    border-left: 4px solid var(--td-accent);
    background: #fffef5;
}
.td-app-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.td-app-card__info {
    flex: 1;
    min-width: 0;
}
.td-app-card__name {
    font-size: 14px; font-weight: 700;
    color: var(--td-secondary);
    margin: 0 0 2px;
}
.td-app-card__phone {
    font-size: 12.5px; color: #888;
    text-decoration: none;
    display: block;
}
.td-app-card__phone:hover { color: var(--td-accent); }
.td-app-card__note {
    font-size: 12px; color: #999;
    margin: 4px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 300px;
}
.td-app-card__job {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.td-app-card__job-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: .05em; }
.td-app-card__job-title { font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-app-card__time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    flex-shrink: 0;
}
.td-app-card__time-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: .05em; }
.td-app-card__time span:nth-child(2) { font-size: 12px; color: #666; font-weight: 600; }
.td-app-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    align-items: flex-end;
}
.td-app-card__no-cv {
    font-size: 11px; color: #ccc;
}
.td-apps-total-badge {
    background: #f4f6f8;
    border: 1px solid var(--td-border);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 13px;
    color: #666;
}

/* Status select in app cards */
.td-status-sel {
    padding: 5px 8px;
    font-size: 12px;
    border: 1.5px solid var(--td-border);
    border-radius: 6px;
    background: #fff;
    color: var(--td-secondary);
    cursor: pointer;
    min-width: 120px;
}
.td-status-sel:focus { outline: none; border-color: var(--td-accent); }

/* Tables */
.td-table-wrap { overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.td-table th { background: var(--td-bg); padding: 10px 12px; text-align: left; font-weight: 600; color: var(--td-secondary); border-bottom: 2px solid var(--td-border); }
.td-table td { padding: 10px 12px; border-bottom: 1px solid var(--td-border); vertical-align: middle; }
.td-table tr:hover td { background: #fafbfc; }
.td-row-new td { font-weight: 600; }
.td-row-new { background: #fffef0 !important; }

/* Job Cards */
.td-job-cards { display: flex; flex-direction: column; gap: 12px; }
.td-job-card {
    border: 1px solid var(--td-border);
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
    border-left: 4px solid var(--td-border);
}
.td-job-card:hover { box-shadow: var(--td-shadow); border-left-color: var(--td-accent); }
.td-job-card[data-status="active"]  { border-left-color: var(--td-success); }
.td-job-card[data-status="pending"] { border-left-color: var(--td-warning); }
.td-job-card[data-status="paused"]  { border-left-color: #9b59b6; }
.td-job-card[data-status="expired"], .td-job-card[data-status="rejected"] { border-left-color: var(--td-danger); }
.td-job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.td-job-card-header h3 { margin: 0; font-size: 15px; color: var(--td-secondary); flex: 1; min-width: 0; }
.td-job-card-meta { display: flex; gap: 12px; font-size: 12px; color: #888; margin-bottom: 12px; flex-wrap: wrap; }
.td-job-card-meta span { display: flex; align-items: center; gap: 3px; }
.td-job-card-stats {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: var(--td-bg);
    border-radius: 8px;
    overflow: hidden;
}
.td-stat-mini {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-right: 1px solid var(--td-border);
}
.td-stat-mini:last-child { border-right: none; }
.td-stat-mini strong { display: block; font-size: 17px; color: var(--td-secondary); font-weight: 700; }
.td-stat-mini span   { font-size: 11px; color: #999; }
.td-job-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   Job List — Redesigned (td-jl-*)
   ============================================================ */

/* Accessibility: screen-reader only */
.td-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Hero --- */
.td-jl-hero {
    background: linear-gradient(135deg, #1a2236 0%, #2c3e50 55%, #1f4e79 100%);
    border-radius: 16px; padding: 44px 32px; margin-bottom: 24px;
    text-align: center; position: relative; overflow: hidden;
}
.td-jl-hero::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}
.td-jl-hero__inner { position: relative; z-index: 1; }
.td-jl-hero__title { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.td-jl-hero__sub   { color: rgba(255,255,255,.65); font-size: 14px; margin: 0 0 26px; }

/* Hero decorative layers */
.td-jl-hero__pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.td-jl-hero__glow {
    position: absolute; border-radius: 50%;
    filter: blur(70px); pointer-events: none;
}
.td-jl-hero__glow--1 { width: 320px; height: 320px; background: rgba(52,152,219,.18); top: -100px; right: -60px; }
.td-jl-hero__glow--2 { width: 220px; height: 220px; background: rgba(231,76,60,.14); bottom: -70px; left: -50px; }

/* Hero text */
.td-jl-hero__text { margin-bottom: 22px; }
.td-jl-hero__title-accent {
    background: linear-gradient(90deg, #f7c948 0%, #f39c12 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Stats strip */
.td-jl-hero__stats {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    margin-top: 16px; color: rgba(255,255,255,.65); font-size: 13px; flex-wrap: wrap;
}
.td-jl-hero__stat strong { color: #fff; font-weight: 700; }
.td-jl-hero__stat-sep { color: rgba(255,255,255,.3); }

/* Quick category chips */
.td-jl-hero__cats {
    display: flex; align-items: center; gap: 6px; justify-content: center;
    flex-wrap: wrap; margin-top: 14px;
}
.td-jl-hero__cats-label { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; flex-shrink: 0; }
.td-jl-hero__cat {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; font-weight: 500;
    text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.td-jl-hero__cat:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }
.td-jl-hero__cat.active { background: var(--td-primary); border-color: var(--td-primary); color: #fff; }
.td-jl-hero__cat-count {
    background: rgba(255,255,255,.15); border-radius: 10px;
    padding: 0 6px; font-size: 10px; font-weight: 700;
}

/* ---- Search form wrapper ---- */
.td-jl-search-form { width: 100%; }

/* ---- Search bar (VietnamWorks-style single row) ---- */

/*
 * Alignment strategy:
 * – Container: align-items:stretch so all columns fill the same height
 * – Height defined by min-height on .td-jl-sb__kw (NOT a fixed height on the bar)
 * – Each column: display:flex + align-items:center → content auto-centers vertically
 * – Input/select: no height:100%, no padding hack — just width:100% + border/outline reset
 */

.td-jl-sb {
    display: flex;
    align-items: stretch;
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 48px rgba(0,0,0,.28);
    overflow: hidden;
}

/* Icon shared */
.td-jl-sb__icon {
    display: flex; align-items: center; flex-shrink: 0;
    color: #c0c9d4;
}
.td-jl-sb__icon svg { width: 18px !important; height: 18px !important; margin: 0 !important; flex-shrink: 0; }
.td-jl-sb__arrow svg { width: 12px !important; height: 12px !important; margin: 0 !important; }

/* Keyword column */
.td-jl-sb__kw {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 0 20px;
    min-height: 62px;                    /* defines the bar height */
    border-right: 1px solid #e4e8ed;
}
.td-jl-sb__input {
    flex: 1; min-width: 0; width: 100%;
    border: none !important; outline: none !important; box-shadow: none !important;
    background: transparent; color: var(--td-secondary);
    font-size: 15px; line-height: 1.4;
    padding: 0; margin: 0;
    -webkit-appearance: none; appearance: none;
    font-family: inherit;
}
.td-jl-sb__input::placeholder { color: #b8c2cc; }

/* Location column — custom dropdown */
.td-jl-sb__loc {
    display: flex; align-items: center; gap: 10px;
    padding: 0 38px 0 18px;
    width: 220px; flex-shrink: 0;
    border-right: 1px solid #e4e8ed;
    position: relative;
    background: #f7f9ff;
    transition: background .15s;
    cursor: pointer;
}
.td-jl-loc-field.open { background: #eef3ff; }
.td-jl-sb__icon--loc { color: #3b82f6; flex-shrink: 0; }

/* Trigger button */
.td-jl-loc-trigger {
    flex: 1; min-width: 0;
    display: block; width: 100%;
    background: transparent;
    border: none !important; outline: none !important; box-shadow: none !important;
    padding: 0; margin: 0 !important;
    cursor: pointer; text-align: left;
    min-height: 0 !important; line-height: 1.4 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    font-family: inherit; font-size: 13.5px; font-weight: 500;
    color: #888;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.td-jl-loc-field--active .td-jl-loc-trigger { color: var(--td-secondary); font-weight: 700; }

/* Chevron arrow */
.td-jl-sb__arrow {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
    color: #3b82f6; pointer-events: none;
    transition: transform .2s;
}
.td-jl-loc-field.open .td-jl-sb__arrow { transform: translateY(-50%) rotate(180deg); }

/* Dropdown panel — position:fixed so it escapes overflow:hidden on .td-jl-sb */
.td-jl-loc-dropdown {
    position: fixed;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e4e8ed;
}
.td-jl-loc-dropdown[hidden] { display: none; }

/* Search */
.td-jl-loc-search-wrap { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; }
.td-jl-loc-search-input {
    width: 100%; box-sizing: border-box;
    border: 1px solid #e4e8ed !important;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px; font-family: inherit;
    outline: none; box-shadow: none !important;
    background: #f8f9fa; color: var(--td-secondary);
    height: auto !important; line-height: 1.4;
    -webkit-appearance: none; appearance: none;
}
.td-jl-loc-search-input:focus { border-color: #3b82f6 !important; background: #fff; }

/* Province list */
.td-jl-loc-list {
    list-style: none; margin: 0; padding: 6px 0;
    max-height: 280px; overflow-y: auto;
}
.td-jl-loc-item {
    padding: 9px 16px;
    font-size: 13.5px; cursor: pointer;
    color: var(--td-secondary);
    transition: background .12s;
    display: flex; align-items: center;
}
.td-jl-loc-item:hover { background: #f0f4ff; color: #3b82f6; }
.td-jl-loc-item.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.td-jl-loc-item.active::before { content: '✓'; font-size: 11px; color: #3b82f6; margin-right: 8px; flex-shrink: 0; }
.td-jl-loc-item[hidden] { display: none; }

/* ---- Keyword suggestion dropdown ---- */
.td-jl-suggest {
    position: fixed;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 9998;
    border: 1px solid #e4e8ed;
    overflow: hidden;
    min-width: 320px;
}
.td-jl-suggest[hidden] { display: none; }
.td-jl-suggest__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px 5px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #9aa5b4;
}
.td-jl-suggest__clear-all {
    background: none; border: none !important; padding: 2px 6px; margin: 0 !important;
    font-size: 11.5px; color: #9aa5b4; cursor: pointer;
    min-height: 0 !important; text-transform: none !important;
    letter-spacing: 0 !important; line-height: 1 !important; border-radius: 4px;
}
.td-jl-suggest__clear-all:hover { color: var(--td-danger); background: #fff0f0; }
.td-jl-suggest__list { list-style: none; margin: 0; padding: 0 0 8px; }
.td-jl-suggest__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; font-size: 13.5px; cursor: pointer;
    color: var(--td-secondary); transition: background .1s;
}
.td-jl-suggest__item:hover { background: #f5f7ff; }
.td-jl-suggest__icon { flex-shrink: 0; color: #c0c9d4; display: flex; align-items: center; }
.td-jl-suggest__icon svg { margin: 0 !important; }
.td-jl-suggest__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-jl-suggest__text em { font-style: normal; color: var(--td-primary); font-weight: 600; }
.td-jl-suggest__rm {
    flex-shrink: 0; background: none; border: none !important;
    padding: 2px 5px; margin: 0 !important;
    font-size: 12px; color: #c0c9d4; cursor: pointer; border-radius: 4px;
    min-height: 0 !important; text-transform: none !important;
    line-height: 1 !important; letter-spacing: 0 !important;
    opacity: 0; transition: opacity .15s;
}
.td-jl-suggest__item:hover .td-jl-suggest__rm { opacity: 1; }
.td-jl-suggest__rm:hover { color: var(--td-danger); background: #fff0f0; }
.td-jl-suggest__divider { border: none; border-top: 1px solid #f0f2f5; margin: 4px 0; }

/* Submit button — full !important to override Flatsome's global button rule */
.td-jl-sb__btn {
    flex-shrink: 0 !important;
    align-self: stretch !important;
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
    padding: 0 28px !important;
    background: var(--td-primary) !important; color: #fff !important;
    border: 0 !important; margin: 0 !important;
    min-height: 0 !important;
    font-size: 15px !important; font-weight: 700 !important; font-family: inherit !important;
    cursor: pointer !important; white-space: nowrap !important;
    transition: background .18s; letter-spacing: 0 !important;
    line-height: 1 !important; text-transform: none !important;
    border-radius: 0 !important;
}
.td-jl-sb__btn:hover { background: var(--td-primary-dark) !important; }
.td-jl-sb__btn:focus { outline: none; background: var(--td-primary-dark) !important; }
.td-jl-sb__btn:focus-visible { outline: 3px solid rgba(255,255,255,.7) !important; outline-offset: -4px; }
.td-jl-sb__btn svg { width: 16px !important; height: 16px !important; margin: 0 !important; flex-shrink: 0; }
.td-jl-sb__btn svg path { fill: none !important; stroke: currentColor !important; }

/* --- 2-column layout --- */
.td-jl-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 22px;
    align-items: start;
    min-width: 0;
}
.td-jl-main { min-width: 0; }

/* --- SIDEBAR --- */
.td-jl-sidebar {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 12px;
    position: sticky; top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
.td-jl-sidebar__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--td-border);
    position: sticky; top: 0; background: #fff; z-index: 1;
    border-radius: 12px 12px 0 0;
}
.td-jl-sidebar__title { font-size: 13px; font-weight: 700; color: var(--td-secondary); text-transform: uppercase; letter-spacing: .5px; }
.td-jl-clear-all { font-size: 12px; color: var(--td-danger); text-decoration: none; font-weight: 600; }
.td-jl-clear-all:hover { text-decoration: underline; }

/* Active chips */
.td-jl-active-chips {
    display: flex; flex-wrap: wrap; gap: 5px;
    padding: 10px 14px; border-bottom: 1px solid var(--td-border); background: #fafbfc;
}
.td-jl-chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: #e8f4fd; color: #1a5276;
    border: 1px solid #bee3f8; border-radius: 20px;
    padding: 3px 6px 3px 10px; font-size: 11px; font-weight: 500;
    max-width: 100%;
}
.td-jl-chip__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.td-jl-chip__rm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: rgba(26,82,118,.15); color: #1a5276;
    text-decoration: none; font-size: 9px; font-weight: 700;
    flex-shrink: 0; transition: background .15s;
}
.td-jl-chip__rm:hover { background: #1a5276; color: #fff; }

/* Filter groups */
.td-jl-filter-group { border-bottom: 1px solid var(--td-border); }
.td-jl-filter-group--last { border-bottom: none; }
.td-jl-filter-title {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    width: 100% !important; padding: 12px 16px !important; background: none !important; border: none !important;
    cursor: pointer !important; font-size: 12.5px !important; font-weight: 700 !important;
    color: var(--td-secondary) !important; text-align: left !important; transition: background .12s;
    margin: 0 !important; min-height: 0 !important; line-height: 1.4 !important;
    text-transform: none !important; letter-spacing: 0 !important; border-radius: 0 !important;
}
.td-jl-filter-title:hover { background: #f7f9fb !important; }
.td-jl-filter-title:focus-visible { outline: 2px solid var(--td-accent); outline-offset: -2px; }
.td-jl-filter-arrow { font-size: 10px; transition: transform .2s; color: #bbb; }
.td-jl-filter-title[aria-expanded="false"] .td-jl-filter-arrow { transform: rotate(-90deg); }

.td-jl-filter-opts { padding: 0 0 6px; }
.td-jl-filter-opts[hidden] { display: none; }

.td-jl-filter-opt {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 14px 7px 20px;
    font-size: 13px; color: #555; text-decoration: none;
    transition: background .12s, color .12s;
    border-left: 2px solid transparent;
    gap: 8px;
}
.td-jl-filter-opt:hover { background: #f0f7ff; color: var(--td-accent); border-left-color: var(--td-accent); }
.td-jl-filter-opt.active { color: var(--td-primary); font-weight: 700; background: #eaf4fd; border-left-color: var(--td-primary); }
.td-jl-opt-label { flex: 1; line-height: 1.4; }
.td-jl-opt-count {
    font-size: 11px; font-weight: 600;
    background: #f0f0f0; color: #888;
    padding: 1px 7px; border-radius: 10px; flex-shrink: 0;
}
.td-jl-filter-opt.active .td-jl-opt-count { background: rgba(52,152,219,.15); color: var(--td-primary); }

/* --- MAIN / Results bar --- */
.td-jl-results-bar {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    gap: 10px; padding: 0 0 12px;
    border-bottom: 1px solid var(--td-border); margin-bottom: 16px; flex-wrap: wrap;
}
.td-jl-results-bar__left { display: flex !important; align-items: center !important; gap: 8px; }
.td-jl-count { font-size: 14px; color: #666; }
.td-jl-count strong { font-size: 17px; color: var(--td-secondary); }
.td-jl-results-bar__right { display: flex !important; align-items: center !important; gap: 10px; flex-wrap: nowrap; }
#td-sort-form { display: flex !important; align-items: center !important; margin: 0; padding: 0; }

/* Mobile filter toggle — hidden on desktop */
.td-jl-filter-toggle {
    display: none !important; align-items: center; gap: 6px;
    height: 32px !important; padding: 0 14px !important; border-radius: 8px !important;
    border: 1.5px solid var(--td-border) !important; background: #fff !important;
    font-size: 13px !important; font-weight: 600 !important; color: var(--td-secondary) !important;
    cursor: pointer; transition: border-color .15s; position: relative;
    margin: 0 !important; min-height: 0 !important; line-height: 1 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    box-sizing: border-box !important; vertical-align: middle !important;
}
.td-jl-filter-toggle:hover { border-color: var(--td-accent) !important; color: var(--td-accent) !important; }
.td-jl-filter-toggle.active { background: var(--td-primary) !important; color: #fff !important; border-color: var(--td-primary) !important; }
.td-jl-filter-toggle svg { width: 14px !important; height: 14px !important; margin: 0 !important; flex-shrink: 0; }
.td-jl-filter-dot {
    position: absolute; top: 4px; right: 4px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--td-danger); border: 1.5px solid #fff;
}

/* Saved jobs button */
.td-jl-saved-btn {
    display: inline-flex !important; align-items: center !important; gap: 5px !important;
    height: 32px !important; padding: 0 12px !important; border-radius: 8px !important;
    border: 1.5px solid var(--td-border) !important; background: #fff !important;
    font-size: 13px !important; font-weight: 600 !important; color: var(--td-secondary) !important;
    cursor: pointer; transition: all .15s;
    margin: 0 !important; min-height: 0 !important; line-height: 1 !important;
    text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap !important;
    box-sizing: border-box !important; vertical-align: middle !important;
}
.td-jl-saved-btn:hover { border-color: var(--td-primary) !important; color: var(--td-primary) !important; }
.td-jl-saved-btn.has-saved { border-color: var(--td-primary) !important; color: var(--td-primary) !important; background: #fff5f5 !important; }
.td-jl-saved-btn svg { width: 14px !important; height: 14px !important; margin: 0 !important; flex-shrink: 0; }
.td-jl-saved-count {
    background: var(--td-primary); color: #fff;
    border-radius: 10px; padding: 0 6px;
    font-size: 11px; font-weight: 700;
    min-width: 18px; text-align: center; line-height: 18px;
    display: inline-block;
}

/* Sort */
.td-jl-sort-sel {
    height: 32px !important; padding: 0 8px 0 10px !important; border-radius: 8px !important;
    border: 1.5px solid var(--td-border) !important;
    font-size: 13px !important; color: var(--td-secondary) !important;
    background: #fff !important; cursor: pointer;
    box-sizing: border-box !important; line-height: 1 !important;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231e3a6e'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    padding-right: 26px !important;
    vertical-align: middle !important;
    margin: 0 !important; min-height: 0 !important;
}
.td-jl-sort-sel:focus { outline: none; border-color: var(--td-accent) !important; }

/* --- JOB CARDS --- */
.td-jl-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; min-width: 0; }

.td-jl-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--td-border);
    border-radius: 12px; padding: 18px 18px;
    transition: box-shadow .2s, border-color .18s, transform .15s;
    position: relative;
    min-width: 0; overflow: hidden;
}
.td-jl-card:hover { box-shadow: 0 4px 22px rgba(0,0,0,.08); border-color: var(--td-accent); transform: translateY(-2px); }
.td-jl-card--new { border-left: 3px solid var(--td-success); }
.td-jl-card--hot { border-left: 3px solid var(--td-warning); }

/* Bookmark button — lives inside aside, below apply button */
.td-jl-card__bookmark {
    /* Shape — all !important to beat Flatsome theme overrides */
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    line-height: 32px !important;
    /* Visual */
    border: 1.5px solid var(--td-border);
    background: #fff;
    color: #ccc;
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.td-jl-card__bookmark svg {
    display: block; width: 14px !important; height: 14px !important; margin: 0 !important;
    flex-shrink: 0; pointer-events: none;
}
.td-jl-card__bookmark:hover { border-color: var(--td-primary); color: var(--td-primary); transform: scale(1.12); }
.td-jl-card__bookmark.active { background: var(--td-primary); border-color: var(--td-primary); color: #fff; }

/* Company avatar */
.td-jl-card__avatar {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    flex-shrink: 0; text-decoration: none; overflow: hidden;
    transition: transform .15s, box-shadow .15s; user-select: none;
    border: 1px solid rgba(0,0,0,.06);
}
.td-jl-card__avatar--img { background: #f4f6f8 !important; }
.td-jl-card__avatar img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.td-jl-card:hover .td-jl-card__avatar { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,.12); }

/* Card body */
.td-jl-card__body  { flex: 1; min-width: 0; }
.td-jl-card__title-row {
    display: flex; align-items: flex-start;
    gap: 8px; margin-bottom: 3px; flex-wrap: wrap;
}
.td-jl-card__title {
    margin: 0; font-size: 16px; font-weight: 700;
    flex: 1; min-width: 0; line-height: 1.3;
}
.td-jl-card__title a { color: var(--td-secondary); text-decoration: none; }
.td-jl-card__title a:hover { color: var(--td-primary); }
.td-jl-card__badges { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; padding-top: 2px; }
.td-jl-badge {
    font-size: 10.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.td-jl-badge--hot     { background: linear-gradient(90deg, #ff6b2b, #e74c3c); color: #fff; }
.td-jl-badge--new     { background: #d4edda; color: #155724; }
.td-jl-badge--urgent  { background: #fff3cd; color: #856404; }
.td-jl-badge--scraped { background: #e2f0d9; color: #375623; font-size: 10px; }

.td-jl-card__company { margin: 0 0 5px; font-size: 13px; font-weight: 600; color: #666; }

/* Short excerpt — 2 lines max */
.td-jl-card__excerpt {
    margin: 0 0 7px;
    font-size: 12.5px;
    color: #888;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-jl-card__meta {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; font-size: 13px; color: #777; margin-bottom: 8px;
}
.td-jl-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.td-jl-meta-item svg { width: 12px !important; height: 12px !important; margin: 0 !important; flex-shrink: 0; }
.td-jl-meta-salary { color: #27ae60; font-weight: 700; font-size: 13.5px; }
.td-jl-meta-salary svg { width: 12px !important; height: 12px !important; margin: 0 !important; flex-shrink: 0; }

/* Requirements row — experience, language, nationality */
.td-jl-card__req {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; margin-bottom: 7px;
}
.td-jl-req-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 500;
    padding: 3px 9px; border-radius: 20px;
    white-space: nowrap; border: 1px solid transparent;
}
.td-jl-req-exp  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.td-jl-req-lang { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.td-jl-req-nat  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.td-jl-req-item svg { flex-shrink: 0; width: 11px !important; height: 11px !important; margin: 0 !important; }
.td-jl-card__company svg { width: 12px !important; height: 12px !important; margin: 0 !important; flex-shrink: 0; }

.td-jl-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* Preserve td-tag for compatibility */
.td-tag {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; white-space: nowrap;
    max-width: 220px; overflow: hidden; text-overflow: ellipsis;
    vertical-align: middle;
}
.td-tag--cat   { background: #eef2ff; color: #3730a3; }
.td-tag--work  { background: #f0fdf4; color: #166534; }
.td-tag--level { background: #fef9c3; color: #854d0e; }
.td-tag--skill { background: #f0f4ff; color: #1d4ed8; border: 1px solid #c7d7fe; }

/* Apply button */
.td-jl-card__apply {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 14px; border-radius: 7px;
    background: var(--td-primary); color: #fff;
    font-size: 12px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: background .18s, transform .15s;
}
.td-jl-card__apply:hover { background: var(--td-primary-dark); color: #fff; transform: scale(1.04); }

/* Card footer (apply + dates) */
.td-jl-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.td-jl-card__apply {
    flex-shrink: 0;
    padding: 9px 20px !important;
    font-size: 13px !important;
}
.td-jl-card__dates { text-align: left; }
.td-jl-card__deadline       { display: block; font-size: 12px; color: #888; }
.td-jl-card__deadline.urgent { color: var(--td-danger); font-weight: 600; }
.td-jl-card__posted          { display: block; font-size: 12px; color: #bbb; margin-top: 2px; }

/* Aside — hidden (restructured into footer) */
.td-jl-card__aside { display: none; }

/* Empty */
.td-jl-empty {
    text-align: center; padding: 60px 24px;
    background: #fff; border: 1px dashed var(--td-border); border-radius: 12px;
}
.td-jl-empty__icon { font-size: 48px; margin-bottom: 12px; }
.td-jl-empty h3 { margin: 0 0 8px; color: var(--td-secondary); }
.td-jl-empty p  { color: #aaa; font-size: 14px; margin-bottom: 20px; }

/* Pagination */
.td-jl-pagination {
    display: flex; gap: 4px; justify-content: center;
    flex-wrap: wrap; align-items: center; padding-top: 8px;
}
.td-jl-page-btn {
    padding: 8px 14px; border: 1px solid var(--td-border);
    border-radius: 8px; text-decoration: none;
    font-size: 13px; color: var(--td-secondary);
    transition: all .15s; background: #fff;
}
.td-jl-page-btn:hover  { background: var(--td-bg); border-color: var(--td-accent); color: var(--td-accent); }
.td-jl-page-btn.current { background: var(--td-primary); color: #fff; border-color: var(--td-primary); font-weight: 600; }
.td-jl-page-dots { padding: 8px 5px; font-size: 13px; color: #bbb; }

/* Mobile backdrop */
.td-jl-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 1099;
    backdrop-filter: blur(2px);
}
.td-jl-backdrop.active { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .td-jl-layout { grid-template-columns: 1fr; }
    .td-jl-sidebar {
        position: fixed; top: 0; left: -310px; width: 290px;
        height: 100vh; max-height: 100vh; border-radius: 0 16px 16px 0;
        z-index: 1100; transition: left .28s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
    }
    .td-jl-sidebar.open { left: 0; box-shadow: 4px 0 32px rgba(0,0,0,.18); }
    .td-jl-filter-toggle { display: flex !important; }
}
@media (max-width: 600px) {
    .td-jl-hero { padding: 28px 16px; border-radius: 12px; }
    .td-jl-hero__title { font-size: 20px; }
    /* Search bar: stack vertically on small screens */
    .td-jl-sb { flex-direction: column; border-radius: 12px; }
    .td-jl-sb__kw  { min-height: 52px; border-right: none; border-bottom: 1px solid #e4e8ed; padding: 0 16px; }
    .td-jl-sb__loc { min-height: 52px; width: 100%; border-right: none; border-bottom: 1px solid #e4e8ed; padding: 0 38px 0 16px; background: #f7f9ff; }
    .td-jl-sb__btn { width: 100% !important; min-height: 54px !important; padding: 0 24px !important; font-size: 15px !important; font-weight: 700 !important; border-radius: 0 0 12px 12px !important; }
    /* Job cards */
    .td-jl-card { padding: 14px 12px; gap: 10px; }
    .td-jl-card__avatar { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
    .td-jl-card__title { font-size: 14px; }
    .td-jl-card__bookmark { width: 28px !important; height: 28px !important; min-width: 28px !important; max-width: 28px !important; min-height: 28px !important; max-height: 28px !important; line-height: 28px !important; }
    .td-jl-card__footer { flex-direction: column; align-items: stretch; gap: 8px; }
    .td-jl-card__footer > div { justify-content: flex-end; }
    .td-jl-card__footer .td-jl-card__apply { width: 100% !important; justify-content: center !important; padding: 11px 0 !important; font-size: 14px !important; border-radius: 8px !important; }
    .td-jl-hero__cats { display: none; }
    .td-jl-hero__stats { font-size: 12px; }
}

/* Legacy — giữ lại để không break nơi khác */
.td-search-bar { margin-bottom: 20px; }
.td-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.td-search-input-old { flex: 1; min-width: 200px; }
.td-result-count { color: #666; font-size: 14px; margin-bottom: 12px; }
.td-job-item { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--td-border); border-radius: 8px; padding: 18px 20px; }
.td-job-item-main { flex: 1; }
.td-job-title { margin: 0 0 8px; font-size: 16px; }
.td-job-title a { color: var(--td-secondary); text-decoration: none; }
.td-job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #666; margin-bottom: 8px; }
.td-job-salary { color: var(--td-success); font-weight: 600; }
.td-job-address { color: #555; font-style: italic; }
.td-job-company { font-weight: 600; color: var(--td-secondary); }
.td-job-excerpt { font-size: 13px; color: #777; margin: 0; line-height: 1.5; }
.td-job-item-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 140px; }
.td-job-posted { font-size: 12px; color: #aaa; }

/* Filter tabs */
.td-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.td-tab { padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: 13px; color: #555; background: var(--td-bg); border: 1px solid var(--td-border); }
.td-tab.active, .td-tab:hover { background: var(--td-primary); color: #fff; border-color: var(--td-primary); }

/* Wallet */
.td-wallet-balance { text-align: center; padding: 28px; background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; border-radius: 10px; margin-bottom: 20px; }
.td-topup-section { margin-bottom: 24px; }
.td-topup-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* Amount colors */
.td-amount-pos { color: var(--td-success); font-weight: 600; }
.td-amount-neg { color: var(--td-danger); font-weight: 600; }

/* Pagination */
.td-pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.td-pagination a {
    padding: 6px 12px;
    border: 1px solid var(--td-border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: var(--td-secondary);
}
.td-pagination a.current { background: var(--td-primary); color: #fff; border-color: var(--td-primary); }

/* Register/Login box */
.td-register-box, .td-login-box { max-width: 500px; margin: 0 auto; }
.td-center { text-align: center; }
.td-form-section {
    border-top: 1px solid var(--td-border);
    padding-top: 18px;
    margin-top: 18px;
}
.td-form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
    margin-bottom: 14px;
}
.td-form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Apply page layout ─────────────────────────────────────────── */
.td-apply-page {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-areas:
        "main    sidebar"
        "related sidebar";
    gap: 24px;
    align-items: start;
}
.td-apply-page__main    { grid-area: main;    min-width: 0; overflow: hidden; position: relative; z-index: 1; }
.td-apply-page__sidebar { grid-area: sidebar; position: sticky; top: 100px; z-index: 0; }
.td-apply-page__related { grid-area: related; min-width: 0; overflow: hidden; }

/* Job title on apply page */
.td-apply-job-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--td-secondary);
    margin: 0 0 16px;
    line-height: 1.35;
}

/* Meta pill badges on apply page */
.td-apply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.td-apply-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    background: #f4f6f8;
    border: 1px solid var(--td-border);
    color: var(--td-secondary);
    white-space: nowrap;
}
.td-apply-meta__item--salary {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--td-success);
    font-weight: 600;
}
.td-apply-meta__item--company {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    font-weight: 600;
}
.td-apply-meta__item--deadline {
    background: #fff8f0;
    border-color: #fde68a;
    color: #92400e;
}

/* Section headings in td-box on apply page */
.td-section-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--td-secondary);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--td-border);
}

/* Apply form box */
.td-apply-box { max-width: none; }

.td-apply-box__header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--td-border);
    margin-bottom: 12px;
}
.td-apply-box__header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--td-secondary);
    margin: 0 0 5px;
}
.td-apply-box__company {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.td-apply-box__position {
    background: #f0f4ff;
    border: 1px solid #c7d7fe;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--td-primary);
    margin-bottom: 18px;
    line-height: 1.4;
}

/* File upload drop zone */
.td-file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 2px dashed var(--td-border);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: #fafbfc;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
.td-file-upload-area:hover {
    border-color: var(--td-accent);
    background: #f0f7ff;
}
.td-file-upload-area input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.td-file-upload-icon { font-size: 26px; line-height: 1; }
.td-file-upload-text { font-size: 13px; color: #555; }
.td-file-upload-text u { color: var(--td-accent); text-decoration-color: var(--td-accent); }
.td-file-upload-name { font-size: 12px; color: #aaa; }
.td-file-upload-name--selected { color: var(--td-success); font-weight: 600; }

.td-hint-inline { font-size: 12px; color: #aaa; font-weight: 400; }

@media (max-width: 900px) {
    .td-apply-page {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "related";
    }
    .td-apply-page__sidebar { position: static; }
    .td-apply-job-title { font-size: 18px; }
}

.td-empty {
    padding: 40px 24px;
    text-align: center;
    color: #aaa;
    background: var(--td-bg);
    border-radius: 10px;
    border: 2px dashed var(--td-border);
}
.td-empty a { color: var(--td-primary); font-weight: 600; }

.td-select-sm {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid var(--td-border);
    border-radius: 6px;
    background: #fff;
    color: var(--td-secondary);
    cursor: pointer;
}
.td-select-sm:focus { outline: none; border-color: var(--td-accent); }

/* Applications table improvements */
.td-app-row:hover { background: #fafbfc; }
.td-app-row.td-row-new td { background: #fffbf0; }
.td-app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.td-pill-new      { background: #e3f0ff; color: #1a5cb8; }
.td-pill-viewed   { background: #e8f4e8; color: #2d7a2d; }
.td-pill-accepted { background: #d4edda; color: #155724; }
.td-pill-rejected { background: #f8d7da; color: #721c24; }

/* Section heading row */
.td-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.td-section-head h2, .td-section-head h3 { margin: 0; }

/* Pricing info panel */
.td-pricing-info {
    background: linear-gradient(90deg, #e8f4fd, #f0f8ff);
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1a5276;
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.td-pricing-info strong { color: var(--td-primary); }

/* ============================================================
   TinyMCE editor wrapper
   ============================================================ */
.td-editor-wrap .wp-editor-container {
    border: 1px solid var(--td-border);
    border-radius: 6px;
    overflow: hidden;
}
.td-editor-wrap .wp-editor-tabs {
    background: var(--td-bg);
    border-bottom: 1px solid var(--td-border);
    padding: 4px 8px 0;
}
.td-editor-wrap .wp-switch-editor {
    border: 1px solid var(--td-border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #fff;
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.td-editor-wrap .html-active .switch-html,
.td-editor-wrap .tmce-active .switch-tmce {
    background: #fff;
    color: var(--td-secondary);
    font-weight: 600;
}
.td-editor-wrap .mce-container { border: none !important; }
.td-editor-wrap .quicktags-toolbar {
    background: var(--td-bg);
    border-bottom: 1px solid var(--td-border);
    padding: 4px 8px;
}
.td-editor-wrap .wp-editor-area {
    width: 100% !important;
    border: none !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

/* Rich content display (apply-form, job-detail) */
.td-rich-content { line-height: 1.7; font-size: 14px; color: #444; }
.td-rich-content h2, .td-rich-content h3 { color: var(--td-secondary); margin: 14px 0 6px; }
.td-rich-content ul, .td-rich-content ol { padding-left: 20px; margin: 8px 0; }
.td-rich-content li { margin-bottom: 4px; }
.td-rich-content a { color: var(--td-accent); }
.td-rich-content p { margin: 6px 0; }
.td-job-body h4 { margin: 0 0 8px; color: var(--td-secondary); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   Job Attachments
   ============================================================ */

/* Existing attachments list (in post-job form) */
.td-att-existing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.td-att-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--td-bg);
    border: 1px solid var(--td-border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}
.td-att-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.td-att-doc-icon { font-size: 22px; flex-shrink: 0; }
.td-att-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--td-secondary); }
.td-att-remove { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--td-danger); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.td-att-remove input { margin: 0; }

/* Display attachments on apply-form page */
.td-job-attachments h4 { color: var(--td-secondary); }

.td-att-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.td-att-img-link img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--td-border);
    display: block;
    transition: opacity .15s;
}
.td-att-img-link:hover img { opacity: .85; }

.td-att-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.td-att-file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--td-border);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--td-secondary);
    background: var(--td-bg);
    transition: all .15s;
}
.td-att-file-item:hover { background: var(--td-accent); color: #fff; border-color: var(--td-accent); }
.td-att-file-item--link:hover { background: var(--td-success); border-color: var(--td-success); }
.td-att-file-icon { font-size: 15px; }

/* ---- Skill tag input ---- */
.td-skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--td-border);
    border-radius: 6px;
    background: #fff;
    min-height: 44px;
    cursor: text;
    transition: border-color .2s, box-shadow .2s;
}
.td-skills-wrap:focus-within {
    border-color: var(--td-accent);
    box-shadow: 0 0 0 3px rgba(52,152,219,.15);
}
.td-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #c3d8fb;
    border-radius: 20px;
    padding: 3px 6px 3px 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 200px;
}
.td-skill-tag span { overflow: hidden; text-overflow: ellipsis; }
.td-skill-rm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: rgba(26,86,219,.15);
    color: #1a56db;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s, color .15s;
    min-height: 0;
    text-transform: none;
    margin: 0;
}
.td-skill-rm:hover { background: #1a56db; color: #fff; }
.td-skill-input {
    flex: 1;
    min-width: 180px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 13px;
    padding: 2px 4px;
    color: var(--td-secondary);
}
.td-skill-input::placeholder { color: #bcc5ce; }

/* Post job page sticky bar */
.td-form-actions-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 16px 0 4px;
    border-top: 1px solid var(--td-border);
    margin-top: 4px;
}

/* ============================================================
   NTD Bar — Thanh nhà tuyển dụng (redesign)
   ============================================================ */
.td-ntd-bar {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Decorative light sweep */
.td-ntd-bar::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 300px;
    height: 200%;
    background: rgba(255,255,255,.05);
    transform: skewX(-18deg);
    pointer-events: none;
}

.td-ntd-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 32px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ---- Guest — chưa đăng nhập ---- */
.td-ntd-bar--guest {
    background: linear-gradient(100deg, #1a1f2e 0%, #2c3e50 60%, #34495e 100%);
    border-bottom: 3px solid var(--td-primary);
}
.td-ntd-bar--guest .td-ntd-bar__text {
    font-size: 14px;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
}
.td-ntd-bar--guest .td-ntd-bar__text strong { color: #fff; font-size: 15px; }

/* ---- Employer — đã đăng nhập là NTD ---- */
.td-ntd-bar--employer {
    background: linear-gradient(100deg, #0d2137 0%, #1a3a5c 60%, #1f4e79 100%);
    border-bottom: 3px solid #3498db;
}
.td-ntd-bar--employer .td-ntd-bar__info strong {
    color: #fff;
    font-size: 15px;
    letter-spacing: .01em;
}

/* ---- WP User — đăng nhập nhưng chưa là NTD ---- */
.td-ntd-bar--wp-user {
    background: linear-gradient(100deg, #0e3320 0%, #1a5c35 60%, #27ae60 100%);
    border-bottom: 3px solid #2ecc71;
}
.td-ntd-bar--wp-user .td-ntd-bar__text { color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.55; }
.td-ntd-bar--wp-user .td-ntd-bar__text strong { color: #fff; }

/* ---- Left section ---- */
.td-ntd-bar__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.td-ntd-bar__icon {
    font-size: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
}
.td-ntd-bar__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.td-ntd-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.td-ntd-balance strong {
    font-size: 16px;
    font-weight: 700;
    color: #f7c948;
    letter-spacing: .02em;
}
.td-ntd-status-pending {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #f9e79f;
    background: rgba(249,231,159,.1);
    border: 1px solid rgba(249,231,159,.25);
    border-radius: 4px;
    padding: 2px 8px;
}
.td-ntd-status-locked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #fadbd8;
    background: rgba(250,219,216,.1);
    border: 1px solid rgba(250,219,216,.2);
    border-radius: 4px;
    padding: 2px 8px;
}

/* ---- Action buttons inside bar ---- */
.td-ntd-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.td-ntd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
    border: 1.5px solid transparent;
    line-height: 1;
}

/* Primary: đỏ nổi bật */
.td-ntd-btn--primary {
    background: var(--td-primary);
    color: #fff;
    border-color: var(--td-primary);
    box-shadow: 0 2px 10px rgba(231,76,60,.35);
}
.td-ntd-btn--primary:hover {
    background: var(--td-primary-dark);
    border-color: var(--td-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(231,76,60,.45);
}

/* Outline: viền trắng trong suốt */
.td-ntd-btn--outline {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
}
.td-ntd-btn--outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.8);
    color: #fff;
}

/* Ghost: mờ, dùng cho các nút phụ */
.td-ntd-btn--ghost {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.88);
    border-color: rgba(255,255,255,.08);
}
.td-ntd-btn--ghost:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-color: rgba(255,255,255,.2);
}

/* Logout: nhỏ hơn, ít nổi */
.td-ntd-btn--logout {
    background: transparent;
    color: rgba(255,255,255,.5);
    border-color: rgba(255,255,255,.15);
    font-weight: 400;
    padding: 7px 12px;
    font-size: 12px;
}
.td-ntd-btn--logout:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.3);
}

/* Divider giữa các nhóm nút */
.td-ntd-bar__actions .td-ntd-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.18);
    margin: 0 2px;
}

/* ============================================================
   FAB — Nút nổi "Đăng tin"
   ============================================================ */
.td-fab {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--td-primary);
    color: #fff;
    border-radius: 50px;
    padding: 13px 22px 13px 18px;
    box-shadow: 0 4px 24px rgba(231,76,60,.45), 0 1px 4px rgba(0,0,0,.15);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background .18s;
    border: none;
    outline: none;
}
.td-fab:hover {
    background: var(--td-primary-dark);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(231,76,60,.5), 0 2px 8px rgba(0,0,0,.18);
}
.td-fab:active {
    transform: translateY(-1px) scale(.98);
    box-shadow: 0 4px 16px rgba(231,76,60,.4);
}
.td-fab__icon {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
}
.td-fab__text { font-size: 13px; font-weight: 700; }

/* ============================================================
   Wallet — Trang ví
   ============================================================ */
.td-wallet-wrap { max-width: 760px; }

/* ── Hero balance card ─────────────────────────────────────── */
.td-wallet-hero {
    background: linear-gradient(135deg, #0f1f35 0%, #1a2e4a 50%, #1e3a5f 100%);
    border-radius: 18px;
    padding: 28px 28px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.td-wallet-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -50px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.td-wallet-hero::after {
    content: '';
    position: absolute;
    bottom: 40px; left: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(231,76,60,.06);
    pointer-events: none;
}
.td-wallet-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 28px;
}
.td-wallet-hero__main { flex: 1; }
.td-wallet-hero__label {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}
.td-wallet-hero__amount {
    font-size: 40px;
    font-weight: 800;
    color: #f7c948;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 10px;
}
.td-wallet-hero__company {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    margin-bottom: 20px;
}
.td-wallet-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--td-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
    box-shadow: 0 4px 14px rgba(231,76,60,.4);
}
.td-wallet-hero__cta:hover {
    background: var(--td-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Right: stats panel */
.td-wallet-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 6px 20px;
    min-width: 200px;
    flex-shrink: 0;
    justify-content: center;
}
.td-wh-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}
.td-wh-sep {
    height: 1px;
    background: rgba(255,255,255,.08);
}
.td-wh-stat__icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}
.td-wh-stat__icon--up   { background: rgba(46,204,113,.18); color: #2ecc71; }
.td-wh-stat__icon--down { background: rgba(231,76,60,.18);  color: #e74c3c; }
.td-wh-stat__icon--txn  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.td-wh-stat__icon--time { background: rgba(247,201,72,.15); color: #f7c948; }
.td-wh-stat__val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.td-wh-stat__label {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

/* ── Methods container ─────────────────────────────────────── */
.td-wallet-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* ── Each method card ──────────────────────────────────────── */
.td-wallet-method {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    padding: 22px;
    transition: box-shadow .2s;
}
.td-wallet-method:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.td-wallet-method__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.td-wm-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.td-wm-icon--bank  { background: #eff6ff; }
.td-wm-icon--payos { background: #fff2f2; }
.td-wm-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-wm-info strong { font-size: 15px; color: var(--td-secondary); }
.td-wm-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.td-wm-badge--manual { background: #eff6ff; color: #1d4ed8; }
.td-wm-badge--auto   { background: #fef2f2; color: var(--td-primary); }
.td-wm-desc {
    font-size: 12.5px;
    color: #888;
    margin: 0 0 16px;
}

/* Bank info */
.td-bank-info {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--td-border);
}
.td-bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f3;
}
.td-bank-row:last-child { border-bottom: none; }
.td-bank-row--highlight { background: #fffbf0; }
.td-bank-label {
    font-size: 11.5px;
    color: #999;
    min-width: 110px;
    flex-shrink: 0;
}
.td-bank-val {
    font-size: 14px;
    color: var(--td-secondary);
    font-weight: 600;
}
.td-bank-copy-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.td-bank-copy-wrap strong { flex: 1; }

/* Copy button */
.td-copy-btn {
    background: none;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 3px 8px;
    line-height: 1.4;
    transition: all .15s;
    flex-shrink: 0;
    min-height: 0;
    margin: 0;
    text-transform: none;
}
.td-copy-btn:hover { background: #eef2f7; color: var(--td-accent); border-color: var(--td-accent); }
.td-copy-btn--ok   { background: #d4edda !important; color: #27ae60 !important; border-color: #27ae60 !important; }

.td-bank-contact {
    font-size: 13px;
    color: #7a5c00;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin: 0;
}

/* PayOS amount grid */
.td-topup-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.td-topup-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.td-topup-chip {
    padding: 12px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--td-border);
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 700;
    color: var(--td-secondary);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    line-height: 1;
    min-height: 0;
    text-transform: none;
    margin: 0;
}
.td-topup-chip:hover {
    border-color: var(--td-primary);
    color: var(--td-primary);
    background: #fff5f5;
}
.td-topup-chip.active {
    background: var(--td-primary);
    border-color: var(--td-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231,76,60,.25);
}

/* Custom amount input */
.td-topup-custom {
    display: flex;
    gap: 10px;
    align-items: center;
}
.td-topup-custom__input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--td-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.td-topup-custom__input-wrap:focus-within { border-color: var(--td-accent); }
.td-topup-custom__prefix {
    padding: 0 10px;
    color: #aaa;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    border-right: 1px solid var(--td-border);
}
.td-topup-custom__input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    padding: 10px 12px !important;
}
.td-topup-custom__input:focus { outline: none; box-shadow: none !important; }

/* ── Wallet section title ───────────────────────────────────── */
.td-wallet-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--td-secondary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--td-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Top-up history list ────────────────────────────────────── */
.td-topup-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.td-topup-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f2f5;
}
.td-topup-row:last-child { border-bottom: none; }
.td-topup-row__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.td-topup-row__icon--payos { background: #fef2f2; }
.td-topup-row__icon--admin { background: #eff6ff; }
.td-topup-row__icon--other { background: #f4f6f8; }
.td-topup-row__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.td-topup-row__method { font-size: 13px; font-weight: 600; color: var(--td-secondary); }
.td-topup-row__date   { font-size: 11.5px; color: #aaa; }
.td-topup-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.td-topup-row__amount { font-size: 15px; font-weight: 700; color: var(--td-success); }

/* ── Transaction log list ───────────────────────────────────── */
.td-txn-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.td-txn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 4px;
    border-bottom: 1px solid #f0f2f5;
}
.td-txn-row:last-child { border-bottom: none; }
.td-txn-row__dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}
.td-txn-row__dot--pos { background: #f0fdf4; color: #16a34a; }
.td-txn-row__dot--neg { background: #fef2f2; color: #dc2626; }
.td-txn-row__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.td-txn-row__type { font-size: 13px; font-weight: 600; color: var(--td-secondary); }
.td-txn-row__desc { font-size: 11.5px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-txn-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.td-txn-row__amount { font-size: 14px; font-weight: 700; }
.td-txn-row__balance { font-size: 11.5px; color: #999; }
.td-txn-row__date    { font-size: 11px; color: #bbb; }

/* Responsive */
@media (max-width: 900px) {
    .td-ntd-bar__inner { padding: 12px 20px; }
    .td-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .td-employer-header { padding: 22px 20px; }
    .td-search-hero { padding: 32px 20px; }
    .td-search-hero__title { font-size: 22px; }
    .td-search-field--location { display: none; }
    .td-search-sep { display: none; }
    .td-search-bar-main { border-radius: 12px; }
    .td-search-btn { border-radius: 0 12px 12px 0; padding: 14px 20px; }
}
@media (max-width: 640px) {
    .td-ntd-bar::after { display: none; }
    .td-ntd-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }
    .td-ntd-bar__left { width: 100%; }
    .td-ntd-bar__actions { width: 100%; gap: 6px; }
    .td-ntd-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
    .td-ntd-btn--logout { flex: 0 0 auto; }
    .td-ntd-bar__actions .td-ntd-divider { display: none; }

    .td-fab { padding: 14px; border-radius: 50%; box-shadow: 0 4px 20px rgba(231,76,60,.45); }
    .td-fab__text { display: none; }
    .td-fab__icon { width: auto; height: auto; background: none; font-size: 22px; }

    .td-wallet-hero__amount { font-size: 28px; }
    .td-wallet-hero__top { flex-direction: column; gap: 16px; }
    .td-wallet-hero__aside { min-width: 0; flex-direction: row; flex-wrap: wrap; padding: 0 16px; gap: 0; justify-content: space-between; }
    .td-wh-stat { flex: 1; min-width: 120px; padding: 12px 4px; }
    .td-wh-sep { display: none; }
    .td-wallet-methods { grid-template-columns: 1fr; }
    .td-bank-label { min-width: 100px; }
    .td-topup-amounts { grid-template-columns: repeat(3, 1fr); }
    .td-topup-custom { flex-direction: column; align-items: stretch; }
    .td-form-row { grid-template-columns: 1fr; }
    .td-form-inline { grid-template-columns: 1fr; }
    .td-job-item { flex-direction: column; }
    .td-job-item-aside { align-items: flex-start; }
    .td-search-row { flex-direction: column; }
    .td-employer-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .td-employer-info { flex-direction: row; }
    .td-balance-box { text-align: left; width: 100%; }
    .td-balance-amount { font-size: 24px; }
    .td-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .td-quick-actions { grid-template-columns: repeat(3, 1fr); }
    .td-box { padding: 16px; }
    .td-app-card { flex-wrap: wrap; gap: 10px; }
    .td-app-card__job { min-width: calc(50% - 28px); }
    .td-app-card__time { text-align: left; }
    .td-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .td-job-card-stats { overflow-x: auto; }
    .td-form-actions-bar { flex-direction: column; }
    .td-form-actions-bar .td-btn { width: 100%; justify-content: center; }
    .td-search-hero { padding: 24px 14px; border-radius: 10px; }
    .td-search-hero__title { font-size: 18px; }
    .td-search-bar-main { flex-direction: column; border-radius: 12px; overflow: visible; gap: 8px; background: transparent; box-shadow: none; }
    .td-search-field { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
    .td-search-field--location { border-left: none; display: flex; }
    .td-search-sep { display: none; }
    .td-search-btn { border-radius: 10px; width: 100%; padding: 14px; justify-content: center; }
    .td-results-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .td-job-card-pub { flex-direction: column; gap: 14px; }
    .td-job-card-pub__aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .td-job-card-pub__meta { gap: 8px; }
    .td-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .td-app-card { flex-direction: column; align-items: flex-start; }
    .td-app-card__avatar { width: 40px; height: 40px; font-size: 16px; }
    .td-app-card__actions { flex-direction: row; align-items: center; width: 100%; }
    .td-status-sel { flex: 1; }
}

/* ── Employer profile ───────────────────────────────────────────── */
.td-profile-logo-wrap {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 24px; padding: 16px 20px;
    background: #f8f9fa; border: 1px solid var(--td-border);
    border-radius: 12px;
}
.td-profile-logo-preview {
    width: 52px; height: 52px; border-radius: 8px;
    object-fit: contain; border: 1px solid var(--td-border);
    background: #fff; display: block;
}
.td-profile-logo-placeholder {
    width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
    background: var(--td-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
}

/* ── Related jobs ───────────────────────────────────────────────── */
.td-related-jobs { margin-top: 8px; }
.td-related-jobs__title {
    font-size: 16px; font-weight: 700; color: var(--td-secondary);
    margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--td-border);
    display: flex; align-items: center; gap: 8px;
}
.td-rel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}
.td-rel-card {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fafbfc; border: 1px solid var(--td-border);
    border-radius: 10px; padding: 14px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s;
    min-width: 0; overflow: hidden;
}
.td-rel-card:hover {
    border-color: var(--td-primary);
    box-shadow: 0 4px 16px rgba(231,76,60,.10);
    background: #fff;
    text-decoration: none; color: inherit;
}
.td-rel-avatar {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.td-rel-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.td-rel-avatar--img { background: #f4f6f8 !important; }
.td-rel-body { flex: 1; min-width: 0; }
.td-rel-title {
    font-size: 13.5px; font-weight: 600; color: var(--td-secondary);
    line-height: 1.4; margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.td-rel-company { font-size: 12px; color: #888; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-rel-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.td-rel-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
    background: #f0f4ff; color: #1d4ed8; border: 1px solid #c7d7fe;
    white-space: nowrap;
}
.td-rel-tag--loc { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.td-rel-tag--sal { background: #fef9ec; color: #92400e; border-color: #fde68a; }
.td-rel-skill-match {
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
    background: #fef3c7; color: #78350f; border: 1px solid #fde68a;
    display: flex; align-items: center; gap: 3px;
}
@media (max-width: 600px) {
    .td-rel-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE  [td_home]
══════════════════════════════════════════════════════════════ */

/* ── Outer wrap ── */
.td-home { font-family: inherit; }

/* ── Hero ── */
.td-home-hero {
    background: linear-gradient(135deg, #1e3a6e 0%, #f07327 68%, #e84027 100%);
    padding: 68px 32px 76px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 0;
}
.td-home-hero::before,
.td-home-hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.07); pointer-events: none;
}
.td-home-hero::before { width: 400px; height: 400px; top: -100px; left: -80px; }
.td-home-hero::after  { width: 280px; height: 280px; bottom: -100px; right: -50px; }

.td-home-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    color: #fde68a; font-size: 12px; font-weight: 600; letter-spacing: .5px;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
    text-transform: uppercase;
}
.td-home-hero__title {
    font-size: 38px; font-weight: 800; color: #fff;
    margin: 0 0 12px; line-height: 1.2;
}
.td-home-hero__title em { color: #fde68a; font-style: normal; }
.td-home-hero__sub {
    font-size: 16px; color: rgba(255,255,255,.82);
    margin: 0 0 36px; max-width: 520px; margin-left: auto; margin-right: auto;
}

/* Hero search bar */
.td-home-search { max-width: 820px; margin: 0 auto 24px; position: relative; z-index: 2; }
.td-home-search__wrap {
    display: flex; align-items: stretch;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    overflow: hidden; min-height: 64px;
}
.td-home-search__kw {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
    padding: 0 22px; border-right: 1px solid #e4e8ed;
}
.td-home-search__kw input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-size: 15px; color: #1e3a6e; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.td-home-search__kw input::placeholder { color: #b8c2cc; }
.td-home-search__loc {
    display: flex; align-items: center; gap: 8px;
    padding: 0 40px 0 18px; width: 200px; flex-shrink: 0;
    border-right: 1px solid #e4e8ed; position: relative;
}
.td-home-search__loc select {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-size: 14px; color: #555; font-family: inherit;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}
.td-home-search__loc-arrow {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: #c0c9d4; pointer-events: none; display: flex; align-items: center;
}
.td-home-search__btn {
    flex-shrink: 0; align-self: stretch;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 34px; border: 0; margin: 0;
    background: var(--td-primary); color: #fff;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; white-space: nowrap; letter-spacing: .02em;
    transition: background .18s;
}
.td-home-search__btn:hover { background: var(--td-primary-dark); color: #fff; }

/* Hero quick tags */
.td-home-hero__tags {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.75);
    position: relative; z-index: 2;
}
.td-home-hero__tags a {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
    color: #fff; padding: 4px 13px; border-radius: 20px;
    text-decoration: none; transition: background .15s;
    font-size: 12.5px;
}
.td-home-hero__tags a:hover { background: rgba(255,255,255,.26); text-decoration: none; color: #fff; }

/* ── Stats strip ── */
.td-home-stats {
    background: var(--td-secondary);
    border-radius: 0 0 16px 16px;
    margin-bottom: 48px;
}
.td-home-stats__grid {
    display: flex; justify-content: center; flex-wrap: wrap;
}
.td-home-stat {
    flex: 1; min-width: 150px; max-width: 220px;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 20px; gap: 3px;
    border-right: 1px solid rgba(255,255,255,.1);
}
.td-home-stat:last-child { border-right: none; }
.td-home-stat strong {
    font-size: 26px; font-weight: 800; color: #fde68a; line-height: 1;
}
.td-home-stat span { font-size: 12.5px; color: rgba(255,255,255,.7); font-weight: 500; }

/* ── Generic section ── */
.td-home-section { margin-bottom: 48px; }
.td-home-section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 20px;
}
.td-home-section__head h2 {
    font-size: 22px; font-weight: 800; color: var(--td-secondary);
    margin: 0; padding-left: 14px; position: relative;
}
.td-home-section__head h2::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 4px; border-radius: 2px; background: var(--td-primary);
}
.td-home-section__more {
    font-size: 13.5px; color: var(--td-primary); font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.td-home-section__more:hover { text-decoration: underline; color: var(--td-primary-dark); }

/* ── Category grid ── */
.td-home-cats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.td-home-cat-card {
    display: flex; align-items: center; gap: 13px;
    background: #fff; border: 1px solid var(--td-border);
    border-radius: 12px; padding: 15px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    overflow: hidden;
}
.td-home-cat-card:hover {
    border-color: var(--td-primary);
    box-shadow: 0 6px 22px rgba(240,115,39,.13);
    transform: translateY(-2px);
    text-decoration: none; color: inherit;
}
.td-home-cat-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 20px; flex-shrink: 0;
}
.td-home-cat-body { flex: 1; min-width: 0; }
.td-home-cat-name {
    font-size: 13px; font-weight: 700; color: var(--td-secondary);
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.td-home-cat-count { font-size: 11.5px; color: #888; }

/* ── Recent jobs grid ── */
.td-home-jobs {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.td-home-job-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--td-border);
    border-radius: 12px; padding: 15px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
}
.td-home-job-card:hover {
    border-color: var(--td-primary);
    box-shadow: 0 6px 22px rgba(240,115,39,.13);
    transform: translateY(-2px);
    text-decoration: none; color: inherit;
}
.td-home-job-avatar {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.td-home-job-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.td-home-job-avatar--img { background: #f4f6f8 !important; }
.td-home-job-body { flex: 1; min-width: 0; }
.td-home-job-title {
    font-size: 13.5px; font-weight: 700; color: var(--td-secondary);
    margin: 0 0 3px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.td-home-job-company {
    font-size: 12px; color: #777; margin: 0 0 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.td-home-job-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.td-home-job-tag {
    font-size: 11.5px; padding: 2px 9px; border-radius: 20px; white-space: nowrap;
}
.td-home-job-tag--loc { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.td-home-job-tag--sal { background: #fef9ec; color: #92400e; border: 1px solid #fde68a; }
.td-home-job-tag--cat { background: #f0f4ff; color: #1d4ed8; border: 1px solid #c7d7fe; }
.td-home-job-badge-new {
    position: absolute; top: 12px; right: 12px;
    font-size: 10px; font-weight: 700;
    background: #fee2e2; color: #991b1b; border-radius: 4px; padding: 2px 6px;
}

/* ── Employer CTA ── */
.td-home-cta {
    background: linear-gradient(135deg, #1e3a6e 0%, #1a5fa8 100%);
    border-radius: 20px; overflow: hidden;
    padding: 52px 40px; text-align: center;
    position: relative; margin-bottom: 48px;
}
.td-home-cta::before {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.06);
    width: 320px; height: 320px; top: -80px; right: -60px;
    pointer-events: none;
}
.td-home-cta::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.05);
    width: 200px; height: 200px; bottom: -60px; left: -40px;
    pointer-events: none;
}
.td-home-cta__inner { position: relative; z-index: 1; }
.td-home-cta__icon { font-size: 40px; margin-bottom: 14px; display: block; }
.td-home-cta h2 {
    font-size: 28px; font-weight: 800; color: #fff;
    margin: 0 0 10px; line-height: 1.25;
}
.td-home-cta p {
    font-size: 15px; color: rgba(255,255,255,.78);
    margin: 0 0 28px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.td-home-cta__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.td-btn-white {
    background: #fff !important; color: var(--td-primary) !important;
    border-color: #fff !important; font-weight: 700;
}
.td-btn-white:hover { background: #fef3c7 !important; border-color: #fef3c7 !important; }
.td-btn-ghost-white {
    background: transparent !important; color: #fff !important;
    border: 2px solid rgba(255,255,255,.45) !important; font-weight: 600;
}
.td-btn-ghost-white:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.8) !important;
}

/* ── Divider ── */
.td-home-divider {
    border: none; border-top: 1px solid var(--td-border);
    margin: 48px 0 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .td-home-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .td-home-hero { padding: 44px 20px 52px; border-radius: 12px; }
    .td-home-hero__title { font-size: 26px; }
    .td-home-search__wrap { flex-direction: column; border-radius: 12px; overflow: visible; gap: 8px; background: transparent; box-shadow: none; }
    .td-home-search__kw, .td-home-search__loc {
        background: #fff; border-radius: 10px !important; border-right: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.12); min-height: 52px; width: 100% !important; padding: 0 18px;
    }
    .td-home-search__btn { border-radius: 10px !important; width: 100%; padding: 14px; justify-content: center; min-height: 52px; }
    .td-home-jobs { grid-template-columns: 1fr; }
    .td-home-cats { grid-template-columns: 1fr 1fr; }
    .td-home-cta { padding: 36px 20px; border-radius: 14px; }
    .td-home-cta h2 { font-size: 22px; }
    .td-home-stat { min-width: 120px; }
    .td-home-stat strong { font-size: 22px; }
}

/* ── Login box ──────────────────────────────────────────────────── */
.td-login-box { max-width: 440px; margin: 0 auto; }
.td-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.td-notice-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.td-notice-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.td-center { text-align: center; }

/* ── Saved jobs ─────────────────────────────────────────────────── */
.td-saved-jobs-list { display: flex; flex-direction: column; gap: 14px; }
.td-saved-job-card {
    display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--td-border); border-radius: var(--td-radius);
    padding: 16px; background: #fff;
    transition: box-shadow .15s;
}
.td-saved-job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.td-saved-job-logo {
    width: 52px; height: 52px; object-fit: contain; border-radius: 6px;
    border: 1px solid var(--td-border); flex-shrink: 0;
}
.td-saved-job-logo--placeholder {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--td-secondary); color: #fff; font-weight: 700; font-size: 22px;
    border-radius: 6px; flex-shrink: 0;
}
.td-saved-job-card__body { flex: 1; min-width: 0; }
.td-saved-job-title { font-weight: 600; color: var(--td-secondary); text-decoration: none; font-size: 15px; display: block; margin-bottom: 6px; }
.td-saved-job-title:hover { color: var(--td-primary); }
.td-saved-job-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: #666; }
.td-saved-job-card__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Save job button (on job cards) ────────────────────────────── */
.td-save-btn {
    background: none; border: 1px solid var(--td-border);
    border-radius: 6px; cursor: pointer; padding: 6px 10px;
    color: #aaa; font-size: 16px; line-height: 1;
    transition: color .15s, border-color .15s;
}
.td-save-btn:hover, .td-save-btn.saved { color: #e84027; border-color: #e84027; }
.td-save-btn.saved { background: #fff5f5; }

/* ─────────────────────────────────────────────────────────────
   EMPLOYER LIST  [td_employer_list]
───────────────────────────────────────────────────────────── */
.td-el-wrap { max-width: 1100px; margin: 0 auto; }

/* ── Employer List hero ── */
.td-el-hero {
    background: linear-gradient(135deg, #1a2236 0%, #2c3e50 55%, #1f4e79 100%);
    border-radius: 16px; padding: 44px 32px; margin-bottom: 24px;
    text-align: center; position: relative; overflow: hidden;
}
.td-el-hero__pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.td-el-hero__glow {
    position: absolute; border-radius: 50%;
    filter: blur(70px); pointer-events: none;
}
.td-el-hero__glow--1 { width: 320px; height: 320px; background: rgba(52,152,219,.18); top: -100px; right: -60px; }
.td-el-hero__glow--2 { width: 220px; height: 220px; background: rgba(16,185,129,.14); bottom: -70px; left: -50px; }
.td-el-hero__inner { position: relative; z-index: 1; }
.td-el-hero__text { margin-bottom: 22px; }
.td-el-hero__title { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.td-el-hero__title-accent {
    background: linear-gradient(90deg, #f7c948 0%, #f39c12 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; display: inline-block;
}
.td-el-hero__sub { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }
.td-el-hero__sub strong { color: #fff; font-weight: 700; }

/* ── Employer list search bar — pill style (matches homepage) ── */
.td-el-sf-form { width: 100%; }

.td-el-sf-bar {
    display: flex !important; flex-wrap: nowrap !important;
    align-items: center !important;
    background: #fff !important; border-radius: 9999px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.15) !important;
    padding: 6px 6px 6px 16px !important;
    gap: 0 !important; height: 56px !important;
    max-width: 860px; margin: 0 auto;
}

.td-el-sf-field {
    position: relative; flex: 1;
    display: flex !important; align-items: center !important;
    height: 100% !important; min-width: 0;
    padding: 0 !important; margin: 0 !important;
    border: none !important; background: transparent !important;
}
.td-el-sf-field + .td-el-sf-field {
    border-left: 1px solid #E7E7E8 !important;
    margin-left: 4px !important; padding-left: 4px !important;
}

.td-el-sf-icon {
    color: #939295; flex-shrink: 0;
    display: block !important; margin: 0 !important; padding: 0 !important;
}
.td-el-sf-icon, .td-el-sf-icon svg { width: 16px !important; height: 16px !important; margin: 0 !important; }

.td-el-sf-input {
    flex: 1 !important; width: 100% !important; height: 100% !important;
    border: none !important; border-radius: 0 !important;
    outline: none !important; box-shadow: none !important;
    background: transparent !important; color: #414045 !important;
    font-size: 15px !important; font-weight: 400 !important;
    padding: 0 8px !important; margin: 0 !important;
    -webkit-appearance: none !important; appearance: none !important;
}
.td-el-sf-input::placeholder { color: #939295 !important; }

/* Trigger button (location / category) */
.td-el-sf-trigger {
    width: 100% !important; height: 100% !important;
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    border: none !important; outline: none !important; box-shadow: none !important;
    background: transparent !important; cursor: pointer !important;
    padding: 0 8px !important; margin: 0 !important;
    font-size: 15px !important; color: #414045 !important;
    user-select: none; white-space: nowrap; overflow: hidden;
    min-height: 0 !important; text-transform: none !important;
    letter-spacing: 0 !important; border-radius: 0 !important;
    font-family: inherit !important;
}
.td-el-sf-label  { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.td-el-ph        { color: #939295 !important; }
.td-el-sf-arrow  { color: #939295; transition: transform .2s; flex-shrink: 0; margin-left: 6px; }
.td-el-sf-arrow, .td-el-sf-arrow svg { width: 12px !important; height: 12px !important; margin: 0 !important; }
.td-el-sf-field.open .td-el-sf-arrow { transform: rotate(180deg); }

/* Submit button */
.td-el-sf-btn {
    flex-shrink: 0 !important; display: inline-flex !important;
    align-items: center !important; align-self: center !important;
    justify-content: center !important; gap: 6px !important;
    background: #F97316 !important; color: #fff !important;
    border: none !important; border-radius: 9999px !important;
    padding: 0 24px !important; height: 44px !important;
    width: auto !important; min-height: 0 !important; max-width: none !important;
    font-size: 16px !important; font-weight: 600 !important; line-height: 1 !important;
    cursor: pointer !important; white-space: nowrap !important;
    margin: 0 0 0 8px !important;
    text-transform: none !important; letter-spacing: 0 !important;
    font-family: inherit !important;
}
.td-el-sf-btn:hover { background: #EA580C !important; }
.td-el-sf-btn svg { flex-shrink: 0 !important; width: 15px !important; height: 15px !important; margin: 0 !important; }

/* Dropdown panel */
.td-el-sf-dropdown {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    overflow: hidden;
}
.td-el-sf-dropdown[hidden] { display: none; }
.td-el-sf-dd-search {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
}
.td-el-sf-dd-search input {
    width: 100%; box-sizing: border-box;
    border: 1px solid #e4e8ed !important;
    border-radius: 8px; padding: 7px 12px;
    font-size: 13px; font-family: inherit;
    outline: none; box-shadow: none !important;
    background: #f8f9fa; color: #374151;
    height: auto !important; line-height: 1.4;
    -webkit-appearance: none; appearance: none;
}
.td-el-sf-dd-search input:focus { border-color: #F97316 !important; background: #fff; }
.td-el-sf-dd-list {
    list-style: none; margin: 0; padding: 6px 0;
    max-height: 280px; overflow-y: auto;
}
.td-el-sf-dd-item {
    padding: 9px 16px;
    font-size: 13.5px; cursor: pointer;
    color: #374151; transition: background .12s;
}
.td-el-sf-dd-item:hover  { background: #fff7ed; color: #F97316; }
.td-el-sf-dd-item.active { background: #fff7ed; color: #EA580C; font-weight: 600; }
.td-el-sf-dd-item[hidden] { display: none; }

/* Results bar */
.td-el-results-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 14px; color: #6b7280; margin-bottom: 16px;
}
.td-el-results-bar strong { color: #1f2937; }
.td-el-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.td-el-filter-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
    border-radius: 20px; padding: 3px 10px; font-size: 12.5px; font-weight: 500;
    text-decoration: none; transition: background .15s;
}
.td-el-filter-tag svg { margin: 0 !important; }
.td-el-filter-tag:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.td-el-filter-clear {
    font-size: 12.5px; color: #9ca3af; text-decoration: none;
    padding: 3px 8px; border-radius: 20px;
    transition: color .15s, background .15s;
}
.td-el-filter-clear:hover { color: #ef4444; background: #fff0f0; }

/* Grid */
.td-el-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* Card */
.td-el-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--td-border);
    border-radius: 10px; text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    overflow: hidden;
}
.td-el-card:hover {
    border-color: var(--td-primary);
    box-shadow: 0 4px 18px rgba(240,115,39,.13);
    transform: translateY(-2px);
    text-decoration: none; color: inherit;
}

.td-el-card-logo {
    height: 110px; display: flex; align-items: center; justify-content: center;
    background: #fafafa; border-bottom: 1px solid var(--td-border);
    padding: 14px;
}
.td-el-card-logo img {
    max-width: 100%; max-height: 80px;
    object-fit: contain;
}
.td-el-initial {
    width: 64px; height: 64px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: #fff;
}

.td-el-card-body {
    display: flex; flex-direction: column;
    padding: 14px 16px; gap: 6px; flex: 1;
}
.td-el-card-name {
    font-size: 15px; font-weight: 600; color: #1f2937;
    margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.td-el-card:hover .td-el-card-name { color: var(--td-primary); }

.td-el-card-addr {
    display: flex; align-items: flex-start; gap: 5px;
    font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5;
}
.td-el-card-addr svg { flex-shrink: 0; margin-top: 2px; }

.td-el-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.td-el-job-count {
    font-size: 12px; font-weight: 600;
    background: #f3f4f6; color: #6b7280;
    padding: 3px 10px; border-radius: 99px;
}
.td-el-job-count--active {
    background: #fff7ed; color: var(--td-primary);
}

/* ── Social Share Box ─────────────────────────────────── */
.td-share-box {
    padding: 16px 20px 18px;
    margin-bottom: 16px;
}
.td-share-box__label {
    font-size: 13px; font-weight: 600; color: #374151;
    margin: 0 0 12px; letter-spacing: .01em;
}
.td-share-btns {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.td-share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: none; cursor: pointer; transition: opacity .18s, transform .12s;
    line-height: 1; white-space: nowrap;
}
.td-share-btn svg {
    width: 17px; height: 17px; flex-shrink: 0;
    margin: 0 !important; max-width: none !important;
}
.td-share-btn:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.td-share-btn:active { transform: translateY(0); }

.td-share-btn--fb  { background: #1877f2; color: #fff; }
.td-share-btn--zalo { background: #0068ff; color: #fff; }
.td-share-btn--tw  { background: #000; color: #fff; }
.td-share-btn--li  { background: #0a66c2; color: #fff; }
.td-share-btn--copy { background: #f3f4f6; color: #374151; }
.td-share-btn--copy.copied { background: #d1fae5; color: #065f46; }

@media (max-width: 640px) {
    .td-share-btns { gap: 8px; }
    .td-share-btn { padding: 8px 12px; font-size: 12px; }
    .td-share-btn svg { width: 15px; height: 15px; }
}
.td-el-view-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--td-primary);
    opacity: 0; transition: opacity .2s;
}
.td-el-card:hover .td-el-view-link { opacity: 1; }

/* Pagination */
.td-el-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
}
.td-el-page-btn,
.td-el-page-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 6px;
    border-radius: 8px; border: 1px solid var(--td-border);
    background: #fff; color: #374151;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.td-el-page-btn:hover,
.td-el-page-num:hover { border-color: var(--td-primary); color: var(--td-primary); }
.td-el-page-num.active {
    background: var(--td-primary); border-color: var(--td-primary);
    color: #fff; pointer-events: none;
}
.td-el-page-dots { font-size: 14px; color: #9ca3af; padding: 0 4px; }

/* Responsive */
@media (max-width: 900px) {
    .td-el-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .td-el-grid { grid-template-columns: 1fr; gap: 12px; }
    .td-el-hero { padding: 28px 18px 24px; border-radius: 12px; }
    .td-el-hero__title { font-size: 1.3rem; }
    .td-el-sf-bar { flex-wrap: wrap !important; height: auto !important; border-radius: 16px !important; padding: 10px !important; gap: 6px !important; }
    .td-el-sf-field { height: 44px !important; border-left: none !important; margin-left: 0 !important; padding-left: 8px !important; background: #f9fafb !important; border-radius: 10px !important; }
    .td-el-sf-field + .td-el-sf-field { border-left: none !important; }
    .td-el-sf-btn { width: 100% !important; margin: 4px 0 0 !important; border-radius: 10px !important; justify-content: center !important; }
}

/* ══════════════════════════════════════════════════════════════
   JOB SEEKER FAB + MODAL
══════════════════════════════════════════════════════════════ */
.td-js-fab {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #2C95FF;
    color: #fff;
    border-radius: 50px;
    padding: 13px 22px 13px 18px;
    box-shadow: 0 4px 24px rgba(44,149,255,.45), 0 1px 4px rgba(0,0,0,.15);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background .18s;
    font-family: inherit;
}
.td-js-fab:hover {
    background: #1a7fd4;
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(44,149,255,.5), 0 2px 8px rgba(0,0,0,.18);
}
.td-js-fab:active {
    transform: translateY(-1px) scale(.98);
}
.td-js-fab__icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    flex-shrink: 0;
}
.td-js-fab__text { font-size: 13px; font-weight: 700; }

/* Modal overlay */
.td-js-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.td-js-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.td-js-modal {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(24px) scale(.97);
    transition: transform .28s cubic-bezier(.34,1.26,.64,1);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.td-js-overlay.is-open .td-js-modal {
    transform: translateY(0) scale(1);
}
.td-js-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background .15s;
    font-family: inherit;
}
.td-js-modal__close:hover { background: #ffe4e4; color: #e74c3c; }
.td-js-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c2e;
    margin: 0 0 4px;
}
.td-js-modal__sub {
    font-size: 14px;
    color: #777;
    margin: 0 0 20px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .td-js-fab { padding: 12px 18px 12px 14px; border-radius: 50px; }
    .td-js-modal { padding: 24px 18px 20px; border-radius: 14px; }
}
