:root {
    --pms-primary: #1a73e8;
    --pms-primary-dark: #0b5dc7;
    --pms-accent: #f59e0b;
    --pms-dark: #0a1f44;
    --pms-bg: #f4f7fb;
    --pms-sidebar: #0a1f44;
    --pms-sidebar-2: #112a5c;
    --pms-sidebar-fg: #c9d4eb;
    --pms-sidebar-hover: rgba(255,255,255,0.06);
    --pms-sidebar-active: linear-gradient(135deg, #1a73e8 0%, #4f46e5 100%);
    --pms-border: #e5e7eb;
    --pms-radius: 14px;
    --pms-radius-sm: 10px;
}

html, body { height: 100%; }
body.app-body {
    background: var(--pms-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1f2937;
    margin: 0;
}

/* ---------- Public Career Site ---------- */
.public-nav {
    background: #fff;
    border-bottom: 1px solid var(--pms-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.public-nav .nav-inner { display: flex; align-items: center; padding: 14px 0; }
.public-nav .nav-link { color: #1f2937; font-weight: 500; padding: 8px 14px; }
.public-nav .nav-link:hover { color: var(--pms-primary); }
.brand-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pms-dark); }
.brand-mark {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(26,115,232,0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .bt-name { font-weight: 800; font-size: 18px; }
.brand-text .bt-sub { font-size: 10px; color: var(--pms-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Hero ---------- */
.career-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(245,158,11,0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(79,70,229,0.18) 0%, transparent 35%),
        linear-gradient(135deg, #0a1f44 0%, #133672 50%, #1a73e8 100%);
    color: #fff;
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}
.career-hero::before, .career-hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.career-hero::before { width: 460px; height: 460px; top: -180px; right: -120px; }
.career-hero::after  { width: 320px; height: 320px; bottom: -120px; left: -80px; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.career-hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.career-hero h1 .accent { color: var(--pms-accent); }
.career-hero .lead { font-size: 19px; opacity: 0.92; max-width: 640px; margin: 0 auto; }

.hero-search {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(10,31,68,0.25);
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.hero-search .form-control, .hero-search .form-select {
    border: none;
    background: transparent;
    height: 48px;
    border-right: 1px solid var(--pms-border);
    border-radius: 0;
    padding-left: 18px;
}
.hero-search .form-control:focus, .hero-search .form-select:focus { box-shadow: none; }
.hero-search .search-field { display: flex; align-items: center; }
.hero-search .search-field i { color: var(--pms-primary); margin-right: -10px; padding-left: 14px; }
.hero-search button {
    height: 48px;
    padding: 0 28px;
    font-weight: 600;
    border-radius: 10px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: center;
    color: #fff;
}
.hero-stat .num { font-size: 36px; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {
    .career-hero { padding: 60px 0 80px; }
    .career-hero h1 { font-size: 36px; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow { color: var(--pms-primary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.section-head h2 { font-size: 38px; font-weight: 800; color: var(--pms-dark); margin-top: 8px; letter-spacing: -0.5px; }
.section-head p { color: #6b7280; font-size: 16px; max-width: 600px; margin: 14px auto 0; }

/* ---------- Category cards ---------- */
.cat-card {
    background: #fff;
    border: 1px solid var(--pms-border);
    border-radius: var(--pms-radius);
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: var(--pms-dark);
    transition: all 0.25s ease;
    display: block;
    height: 100%;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,31,68,0.12); border-color: var(--pms-primary); color: var(--pms-primary); }
.cat-card .cat-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(26,115,232,0.12), rgba(79,70,229,0.12));
    color: var(--pms-primary);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.cat-card h6 { font-weight: 700; margin-bottom: 4px; }
.cat-card small { color: #6b7280; }

/* ---------- Job cards (modern) ---------- */
.job-row {
    background: #fff;
    border: 1px solid var(--pms-border);
    border-radius: var(--pms-radius);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.job-row:hover { border-color: var(--pms-primary); box-shadow: 0 12px 28px rgba(10,31,68,0.08); transform: translateY(-2px); }
.job-logo {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
}
.job-row h5 { margin: 0; font-weight: 700; color: var(--pms-dark); }
.job-meta { color: #6b7280; font-size: 13px; margin-top: 4px; display: flex; gap: 18px; flex-wrap: wrap; }
.job-meta i { color: var(--pms-primary); margin-right: 4px; }
.job-row .badge-type {
    background: rgba(26,115,232,0.1);
    color: var(--pms-primary);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
}

@media (max-width: 600px) {
    .job-row { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- How it works ---------- */
.how-step {
    background: #fff;
    border-radius: var(--pms-radius);
    padding: 32px 26px;
    text-align: center;
    border: 1px solid var(--pms-border);
    height: 100%;
    position: relative;
}
.how-step .step-num {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: var(--pms-accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.how-step .step-icon {
    width: 76px; height: 76px;
    background: rgba(26,115,232,0.1);
    color: var(--pms-primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 8px auto 18px;
}
.how-step h5 { font-weight: 700; color: var(--pms-dark); }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #0a1f44 0%, #1a73e8 100%);
    color: #fff;
    border-radius: var(--pms-radius);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h3 { font-size: 32px; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a1f44;
    color: #c9d4eb;
    padding: 70px 0 0;
    margin-top: 80px;
}
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.site-footer a { color: #c9d4eb; text-decoration: none; }
.site-footer a:hover { color: var(--pms-accent); }
.site-footer .ft-list { list-style: none; padding: 0; }
.site-footer .ft-list li { margin-bottom: 9px; font-size: 14px; }
.site-footer .ft-contact i { color: var(--pms-accent); margin-right: 8px; width: 18px; }
.site-footer .ft-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-right: 8px;
    transition: all 0.2s;
}
.site-footer .ft-social a:hover { background: var(--pms-accent); color: #fff; }
.site-footer .ft-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
    margin-top: 50px;
    font-size: 13px;
}

/* ---------- Auth ---------- */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--pms-bg);
}
.auth-side {
    background:
        radial-gradient(circle at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 40%),
        linear-gradient(135deg, #0a1f44 0%, #133672 50%, #1a73e8 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.auth-side h1 { font-size: 40px; font-weight: 800; line-height: 1.1; position: relative; z-index: 1; }
.auth-side h1 .accent { color: var(--pms-accent); }
.auth-side p.lead { font-size: 17px; opacity: 0.92; position: relative; z-index: 1; }
.auth-features { position: relative; z-index: 1; }
.auth-feature { display: flex; gap: 14px; margin-bottom: 14px; }
.auth-feature i { font-size: 22px; color: var(--pms-accent); }
.auth-form { padding: 60px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-weight: 800; color: var(--pms-dark); }
@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}

/* ---------- App shell (admin) ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-sidebar {
    background: linear-gradient(180deg, var(--pms-sidebar) 0%, var(--pms-sidebar-2) 100%);
    color: var(--pms-sidebar-fg);
    padding: 18px 0;
    position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.04);
}
.sidebar-brand { padding: 6px 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; }
.brand-logo {
    width: 40px; height: 40px;
    background: var(--pms-sidebar-active);
    border-radius: 10px;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
}
.brand-title { color: #fff; font-weight: 700; font-size: 16px; line-height: 1; }
.brand-sub { color: #94a3b8; font-size: 11px; margin-top: 2px; letter-spacing: 1px; text-transform: uppercase; }
.sidebar-nav { padding: 0 12px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #64748b; padding: 16px 12px 6px; font-weight: 600; }
.sidebar-nav .nav-link {
    color: var(--pms-sidebar-fg);
    padding: 9px 12px; border-radius: 8px; margin-bottom: 2px;
    font-size: 13.5px;
    display: flex; align-items: center; gap: 12px;
    transition: all 0.15s ease;
}
.sidebar-nav .nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: 0.85; }
.sidebar-nav .nav-link:hover { background: var(--pms-sidebar-hover); color: #fff; }
.sidebar-nav .nav-link.active {
    background: var(--pms-sidebar-active);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26,115,232,0.35);
}

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
    background: #fff;
    border-bottom: 1px solid var(--pms-border);
    padding: 14px 28px;
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-weight: 700; font-size: 18px; color: var(--pms-dark); }
.avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--pms-sidebar-active);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}
.app-content { padding: 28px; flex: 1; }

/* ---------- Cards / tables ---------- */
.card { border: 1px solid var(--pms-border); border-radius: var(--pms-radius-sm); box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.card-header { background: #fff; border-bottom: 1px solid var(--pms-border); padding: 16px 20px; font-weight: 600; border-top-left-radius: var(--pms-radius-sm); border-top-right-radius: var(--pms-radius-sm); }
.card-body { padding: 20px; }
.stat-card { border-radius: var(--pms-radius-sm); border: 1px solid var(--pms-border); background: #fff; padding: 20px; transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.stat-label { color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--pms-dark); margin-top: 6px; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.bg-grad-1 { background: linear-gradient(135deg, #1a73e8, #4f46e5); }
.bg-grad-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.bg-grad-3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.bg-grad-4 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.bg-grad-5 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.btn-primary { background: var(--pms-primary); border-color: var(--pms-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--pms-primary-dark); border-color: var(--pms-primary-dark); }
.btn-accent { background: var(--pms-accent); border-color: var(--pms-accent); color: #fff; }
.btn-accent:hover { background: #d97706; border-color: #d97706; color: #fff; }
.btn-outline-primary { color: var(--pms-primary); border-color: var(--pms-primary); }
.btn-outline-primary:hover { background: var(--pms-primary); border-color: var(--pms-primary); color: #fff; }

.table { font-size: 13.5px; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; font-weight: 600; border-bottom: 1px solid var(--pms-border); background: #f8fafc; }
.table tbody tr:hover { background: #fafbff; }

.badge { font-weight: 600; padding: 0.4em 0.7em; border-radius: 6px; font-size: 11.5px; }
.badge-soft-primary { background: rgba(26,115,232,0.1); color: var(--pms-primary); }
.badge-soft-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-soft-warning { background: rgba(245,158,11,0.12); color: #b45309; }
.badge-soft-danger { background: rgba(239,68,68,0.1); color: #dc2626; }
.badge-soft-info { background: rgba(6,182,212,0.12); color: #0e7490; }
.badge-soft-secondary { background: rgba(100,116,139,0.12); color: #475569; }

.form-label { font-weight: 500; font-size: 13px; margin-bottom: 6px; color: #374151; }
.form-control, .form-select { border-radius: 8px; border-color: var(--pms-border); padding: 0.5rem 0.85rem; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--pms-primary); box-shadow: 0 0 0 0.2rem rgba(26,115,232,0.12); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--pms-border); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--pms-primary); border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--pms-primary);
}

@media (max-width: 768px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { position: fixed; left: -260px; top: 0; width: 260px; z-index: 1000; transition: left 0.2s; }
    body.sidebar-open .app-sidebar { left: 0; }
}
