/* ============================================================
   TreasureHire — Modern Theme (Outlier.ai Inspired Light Style)
   v2 — Navbar merged into hero, transparent-to-solid scroll effect
   Clean white · Bold typography · Orange CTA accents
   Bento-style large-radius cards · Minimal & premium
   ============================================================ */

:root {
    /* === Background === */
    --th-bg-base:        #ffffff;
    --th-bg-surface:     #f7f8fc;
    --th-bg-elevated:    #ffffff;
    --th-bg-input:       #f0f2f8;

    /* === Text === */
    --th-text-primary:   #0d0d12;
    --th-text-body:      #374151;
    --th-text-secondary: #6b7280;
    --th-text-muted:     #9ca3af;
    --th-text-on-accent: #ffffff;

    /* === Brand / CTA Accent — Orange (Outlier) === */
    --th-orange-400:     #fb923c;
    --th-orange-500:     #f97316;
    --th-orange-600:     #ea6c0a;
    --th-orange-glow:    rgba(249, 115, 22, 0.18);

    /* === Secondary Accent — Indigo (links, active) === */
    --th-indigo-400:     #818cf8;
    --th-indigo-500:     #6366f1;
    --th-indigo-600:     #4f46e5;
    --th-indigo-subtle:  rgba(99, 102, 241, 0.08);

    /* === Semantic === */
    --th-success:        #10b981;
    --th-danger:         #ef4444;
    --th-warning:        #f59e0b;
    --th-info:           #0ea5e9;

    /* === Gradients === */
    --th-gradient-orange:  linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --th-gradient-brand:   linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    /* Soft ambient blobs (top-left warm, top-right sky, bottom-right mint) */
    --th-bg-blobs:
        radial-gradient(ellipse 70% 60% at 0%   0%,   rgba(253,186,116,0.35) 0px, transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 0%,   rgba(186,230,253,0.35) 0px, transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(167,243,208,0.20) 0px, transparent 60%),
        radial-gradient(ellipse 65% 55% at 0%   100%, rgba(253,186,116,0.20) 0px, transparent 60%);

    /* === Borders === */
    --th-border-light:   rgba(0, 0, 0, 0.07);
    --th-border-medium:  rgba(0, 0, 0, 0.11);
    --th-border-strong:  rgba(0, 0, 0, 0.18);

    /* === Typography === */
    --th-font-body:    'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;
    --th-font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

    /* === Spacing & Radius === */
    --th-radius-sm:   8px;
    --th-radius-md:   14px;
    --th-radius-lg:   22px;
    --th-radius-xl:   30px;
    --th-radius-pill: 100px;

    /* Nav height — used by hero offset */
    --th-nav-height:  72px;

    /* === Shadows === */
    --th-shadow-xs:     0 1px 4px rgba(0,0,0,0.05);
    --th-shadow-sm:     0 2px 10px rgba(0,0,0,0.07);
    --th-shadow-md:     0 6px 24px rgba(0,0,0,0.08);
    --th-shadow-lg:     0 16px 48px rgba(0,0,0,0.10);
    --th-shadow-card:   0 2px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.05);
    --th-shadow-orange: 0 6px 24px rgba(249,115,22,0.30);
    --th-shadow-indigo: 0 6px 24px rgba(99,102,241,0.25);

    /* === Form Variables === */
    --form-element-font-size: 0.95rem;
    --form-label-font-size:   0.875rem;
    --form-control-padding-y: 0.65rem;
    --form-control-padding-x: 1rem;
    --form-grid-gap:    1.25rem;
    --form-mb-3-margin: 1.25rem;

    /* === Legacy aliases === */
    --gemini-accent-blue:        var(--th-indigo-500);
    --gemini-accent-purple:      #8b5cf6;
    --gemini-gradient-primary:   var(--th-gradient-brand);
    --gemini-text-primary:       var(--th-text-primary);
    --gemini-text-secondary:     var(--th-text-secondary);
    --gemini-bg-medium:          rgba(255,255,255,0.80);
    --gemini-border-radius-lg:   var(--th-radius-lg);
    --gemini-border-radius:      var(--th-radius-md);
    --gemini-border-radius-pill: var(--th-radius-pill);
    --gemini-box-shadow:         var(--th-shadow-md);
    --gemini-box-shadow-hover:   var(--th-shadow-lg);
    --glass-backdrop:            blur(14px);
    --glass-border:              1px solid var(--th-border-light);
    --gemini-danger-color:       var(--th-danger);
    --gemini-success-color:      var(--th-success);
    --gemini-font-heading:       var(--th-font-heading);
    --gemini-font-family:        var(--th-font-body);
    --gemini-bg-dark:            var(--th-bg-surface);
    --gemini-bg-light:           var(--th-bg-surface);
    --gemini-text-on-accent:     #ffffff;
}

/* ============================================================
   BASE RESET & BODY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--th-font-body);
    background-color: var(--th-bg-base);
    background-image: var(--th-bg-blobs);
    background-attachment: fixed;
    color: var(--th-text-body);
    line-height: 1.65;
    /* NO padding-top — hero pages absorb nav height themselves */
    padding-top: 0;
    font-size: 0.95rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* body.no-hero and body.has-hero classes are kept for future use but
   no longer need padding-top since navbar is non-fixed */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--th-font-heading);
    font-weight: 700;
    color: var(--th-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--th-indigo-500);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--th-orange-500); }

/* Bootstrap utility overrides — ensure theme tokens win */
.text-muted     { color: var(--th-text-secondary) !important; }
.text-primary   { color: var(--th-orange-500) !important; }
.text-secondary { color: var(--th-text-secondary) !important; }
.lead           { font-size: 1.1rem; line-height: 1.7; }
.bg-primary.bg-opacity-10 { background-color: var(--th-orange-glow) !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gradient {
    background: var(--th-gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--th-indigo-500);
    display: inline-block;
}

.text-gradient-orange {
    background: var(--th-gradient-orange);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--th-orange-500);
    margin-bottom: 0.75rem;
    display: block;
}

.stat-number {
    font-family: var(--th-font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--th-text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--th-text-secondary);
    margin-top: 0.3rem;
}

/* ============================================================
   NAVBAR — Static, solid white, scrolls with page
   ============================================================ */
.navbar {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0 1.5rem;
    height: var(--th-nav-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.navbar-brand {
    font-family: var(--th-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--th-text-primary) !important;
    letter-spacing: -0.03em;
}

.navbar-brand .material-icons-sharp {
    font-size: 1.7rem;
    margin-right: 0.4rem;
    background: var(--th-gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    font-family: var(--th-font-body);
    color: var(--th-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem !important;
    border-radius: var(--th-radius-pill);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--th-text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler {
    border: 1px solid var(--th-border-medium) !important;
    padding: 0.4rem;
    border-radius: var(--th-radius-sm);
}

/* Dropdown */
.dropdown-menu {
    background: #fff;
    border: 1px solid var(--th-border-medium);
    box-shadow: var(--th-shadow-lg);
    border-radius: var(--th-radius-md);
    padding: 0.5rem;
    margin-top: 8px;
}

.dropdown-item {
    border-radius: var(--th-radius-sm);
    padding: 0.55rem 0.9rem;
    color: var(--th-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--th-bg-surface);
    color: var(--th-text-primary);
}

.dropdown-divider {
    border-color: var(--th-border-light);
    margin: 0.35rem 0.5rem;
}

/* ============================================================
   PAGE HERO BANNERS
   ============================================================ */

/* Home page hero */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* Inner-page hero banner — subtle gradient tint */
.page-hero-banner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg,
        rgba(253,186,116,0.18) 0%,
        rgba(255,255,255,0) 40%,
        rgba(186,230,253,0.15) 100%);
    border-bottom: 1px solid var(--th-border-light);
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    top: -30%; left: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-banner::after {
    content: '';
    position: absolute;
    top: -20%; right: -5%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186,230,253,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-banner .container { position: relative; z-index: 1; }

/* Eyebrow pill inside banners */
.page-hero-eyebrow {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: var(--th-radius-pill);
    background: rgba(249,115,22,0.10);
    border: 1px solid rgba(249,115,22,0.20);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--th-orange-500);
    margin-bottom: 1.25rem;
}

/* List/board page hero (job board, blog list) */
.list-page-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--th-border-light);
    background: linear-gradient(160deg,
        rgba(253,186,116,0.12) 0%,
        rgba(255,255,255,0)   50%,
        rgba(186,230,253,0.12) 100%);
}

/* ============================================================
   CARDS — Bento-style
   ============================================================ */
.glass-card,
.card,
.resume-card,
.glass-panel {
    background: var(--th-bg-elevated);
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-lg);
    box-shadow: var(--th-shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--th-shadow-lg);
    border-color: var(--th-border-medium);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--th-radius-pill);
    transition: all 0.22s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }

/* Primary — Orange CTA (Outlier) */
.btn-gemini-primary,
.btn-primary,
.btn-cta {
    background: var(--th-gradient-orange);
    color: #fff !important;
    box-shadow: var(--th-shadow-orange);
    border: none;
}
.btn-gemini-primary:hover,
.btn-primary:hover,
.btn-cta:hover {
    box-shadow: 0 10px 32px rgba(249,115,22,0.40);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Brand indigo */
.btn-brand {
    background: var(--th-gradient-brand);
    color: #fff !important;
    box-shadow: var(--th-shadow-indigo);
    border: none;
}
.btn-brand:hover {
    box-shadow: 0 10px 32px rgba(99,102,241,0.38);
    color: #fff !important;
}

/* Secondary — ghost */
.btn-gemini-secondary,
.btn-secondary {
    background: #fff;
    color: var(--th-text-body);
    border: 1.5px solid var(--th-border-medium);
    box-shadow: var(--th-shadow-xs);
}
.btn-gemini-secondary:hover,
.btn-secondary:hover {
    background: var(--th-bg-surface);
    color: var(--th-text-primary);
    border-color: var(--th-border-strong);
}

.btn-outline-primary {
    color: var(--th-indigo-500);
    border: 1.5px solid var(--th-indigo-500);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--th-indigo-subtle);
    color: var(--th-indigo-600);
}

.btn-gemini-save, .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 16px rgba(16,185,129,0.28);
}
.btn-success:hover { color: #fff !important; box-shadow: 0 8px 24px rgba(16,185,129,0.40); }

.btn-gemini-remove, .btn-danger, .btn-outline-danger {
    color: var(--th-danger);
    background: rgba(239,68,68,0.08);
    border: 1.5px solid rgba(239,68,68,0.20);
}
.btn-gemini-remove:hover, .btn-danger:hover, .btn-outline-danger:hover {
    background: var(--th-danger);
    color: #fff !important;
    border-color: var(--th-danger);
}

/* Nav auth — orange pill */
.btn-nav-auth {
    background: var(--th-gradient-orange);
    color: #fff !important;
    padding: 0.45rem 1.4rem;
    font-size: 0.875rem;
    box-shadow: var(--th-shadow-orange);
    border: none;
    font-weight: 700;
}
.btn-nav-auth:hover { box-shadow: 0 8px 24px rgba(249,115,22,0.45); color: #fff !important; }

.btn-nav-logout {
    background: rgba(239,68,68,0.07) !important;
    color: var(--th-danger) !important;
    border: 1.5px solid rgba(239,68,68,0.20) !important;
}
.btn-nav-logout:hover { background: var(--th-danger) !important; color: #fff !important; }

/* ============================================================
   CONTAINERS
   ============================================================ */
.container-form,
.container-main,
.resume-container {
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}
.container-main { width: 95%; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.form-select,
.form-control-search {
    background-color: var(--th-bg-input);
    border: 1.5px solid var(--th-border-light);
    border-radius: var(--th-radius-md);
    color: var(--th-text-primary);
    padding: var(--form-control-padding-y) var(--form-control-padding-x);
    font-size: var(--form-element-font-size);
    transition: all 0.2s ease;
    font-family: var(--th-font-body);
}
.form-control::placeholder, .form-select::placeholder { color: var(--th-text-muted); }
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--th-orange-500);
    box-shadow: 0 0 0 3px var(--th-orange-glow);
    outline: none;
    color: var(--th-text-primary);
}
.form-select option { background-color: #fff; color: var(--th-text-primary); }
.form-label {
    font-weight: 600;
    color: var(--th-text-body);
    margin-bottom: 0.45rem;
    font-size: var(--form-label-font-size);
}
.glass-panel {
    background: var(--th-bg-input);
    border: 1.5px solid var(--th-border-light);
    border-radius: var(--th-radius-md);
    color: var(--th-text-primary);
    padding: var(--form-control-padding-y) var(--form-control-padding-x);
    font-size: var(--form-element-font-size);
}

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs {
    border-bottom: 1px solid var(--th-border-light);
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--th-text-muted);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.nav-tabs .nav-link:hover {
    color: var(--th-text-primary);
    background: rgba(0,0,0,0.03);
}
.nav-tabs .nav-link.active {
    color: var(--th-orange-500);
    border-bottom: 2px solid var(--th-orange-500);
    font-weight: 700;
}
.tab-content > .tab-pane {
    background: transparent;
    border: none;
    padding: 1rem 0;
    box-shadow: none;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    padding: 0.35em 0.75em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.badge.bg-light { background: var(--th-bg-surface) !important; color: var(--th-text-secondary) !important; border: 1px solid var(--th-border-light); }
.badge.bg-primary, .badge.text-primary {
    background: var(--th-indigo-subtle) !important;
    color: var(--th-indigo-500) !important;
    border: 1px solid rgba(99,102,241,0.20);
}

/* ============================================================
   RESUME CARDS
   ============================================================ */
.resume-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-lg);
    box-shadow: var(--th-shadow-card);
    transition: all 0.25s ease;
}
.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--th-shadow-lg);
    border-color: var(--th-border-medium);
}
.profile-pic-list {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--th-border-light);
    box-shadow: var(--th-shadow-xs);
}
.resume-card-info .resume-name-list {
    font-family: var(--th-font-heading);
    font-size: 1.05rem;
    color: var(--th-text-primary);
    font-weight: 700;
}

/* ============================================================
   VIEW RESUME
   ============================================================ */
.resume-view-container {
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--th-shadow-md);
    max-width: 1000px;
    margin: 0 auto;
}
.resume-top-bar {
    background: var(--th-bg-surface);
    border-bottom: 1px solid var(--th-border-light);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--th-radius-xl) var(--th-radius-xl) 0 0;
}
.resume-header {
    border-bottom: 1px solid var(--th-border-light);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.resume-name {
    font-family: var(--th-font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    background: var(--th-gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}
.resume-section-title {
    font-family: var(--th-font-heading);
    font-weight: 700;
    color: var(--th-text-primary);
    border-bottom: 1px solid var(--th-border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.resume-section-title .material-icons-sharp,
.resume-section-title i { color: var(--th-orange-500); }

/* ============================================================
   CARD HEADER
   ============================================================ */
.card-header {
    background: var(--th-bg-surface);
    border-bottom: 1px solid var(--th-border-light);
    font-weight: 700;
    font-family: var(--th-font-heading);
    color: var(--th-text-primary);
    border-radius: var(--th-radius-lg) var(--th-radius-lg) 0 0 !important;
    padding: 1rem 1.5rem;
}
.card-body { color: var(--th-text-body); }

/* ============================================================
   PAGINATION
   ============================================================ */
.page-link {
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--th-border-light);
    background: #fff;
    color: var(--th-text-secondary);
    margin: 0 3px;
    transition: all 0.2s;
}
.page-item.active .page-link {
    background: var(--th-gradient-orange);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--th-shadow-orange);
}
.page-link:hover {
    background: var(--th-bg-surface);
    color: var(--th-text-primary);
    border-color: var(--th-border-medium);
}

/* ============================================================
   LOGIN / REGISTER
   ============================================================ */
.login-card, .register-card {
    max-width: 460px;
    margin: 3rem auto;
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-xl);
    box-shadow: var(--th-shadow-lg);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: var(--th-radius-md); border: 1px solid transparent; font-size: 0.9rem; font-weight: 500; }
.alert-success  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.25);  color: #065f46; }
.alert-danger   { background: rgba(239,68,68,0.07);   border-color: rgba(239,68,68,0.20);   color: #991b1b; }
.alert-info     { background: rgba(14,165,233,0.08);  border-color: rgba(14,165,233,0.20);  color: #0c4a6e; }
.alert-warning  { background: rgba(245,158,11,0.10);  border-color: rgba(245,158,11,0.25);  color: #78350f; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: transparent;
    border-top: 1px solid var(--th-border-light);
    padding: 2.5rem 0;
    margin-top: auto;
    color: var(--th-text-secondary);
}
footer a { color: var(--th-text-secondary); }
footer a:hover { color: var(--th-orange-500); }

/* ============================================================
   JOB BOARD
   ============================================================ */
.job-card {
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-lg);
    padding: 1.5rem;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--th-shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Top orange accent bar */
.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--th-gradient-orange);
    opacity: 0;
    transition: opacity 0.25s;
}
.job-card:hover { transform: translateY(-6px); box-shadow: var(--th-shadow-lg); border-color: var(--th-border-medium); }
.job-card:hover::before { opacity: 1; }

.job-title-list { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--th-text-primary); line-height: 1.3; letter-spacing: -0.01em; }
.job-role-list  { font-size: 0.88rem; color: var(--th-text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
.location-list  { font-size: 0.85rem; color: var(--th-text-muted); display: flex; align-items: center; gap: 0.25rem; }

.job-meta-section { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--th-border-light); }
.job-meta-item {
    font-size: 0.82rem; color: var(--th-text-secondary);
    display: flex; align-items: center; gap: 0.3rem;
    background: var(--th-bg-surface); border: 1px solid var(--th-border-light);
    padding: 0.25rem 0.7rem; border-radius: 6px;
}
.job-meta-item i { font-size: 0.95rem; color: var(--th-orange-500); }

.job-description-snippet {
    font-size: 0.875rem; color: var(--th-text-secondary);
    margin: 0.8rem 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; line-height: 1.6;
}
.job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; padding-top: 0.8rem; }
.job-type-badge { background: rgba(16,185,129,0.09); color: #065f46; border: 1px solid rgba(16,185,129,0.20); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.timestamp { font-size: 0.78rem; color: var(--th-text-muted); }

/* Job detail */
.job-detail-header {
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-xl);
    box-shadow: var(--th-shadow-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.job-detail-header::after {
    content: ''; position: absolute; top: -80px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
}
.job-title-main { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--th-text-primary); position: relative; z-index: 1; letter-spacing: -0.03em; line-height: 1.1; }
.job-role-main  { font-size: 1.15rem; font-weight: 500; color: var(--th-text-secondary); position: relative; z-index: 1; }
.job-meta-main  { position: relative; z-index: 1; }
.job-meta-main .job-meta-item { background: var(--th-bg-surface); border: 1px solid var(--th-border-medium); box-shadow: var(--th-shadow-xs); padding: 0.5rem 1rem; border-radius: 50px; font-weight: 500; color: var(--th-text-body); }

.section-title-like { font-size: 1.15rem; font-weight: 700; color: var(--th-text-primary); border-bottom: 1px solid var(--th-border-light); padding-bottom: 0.85rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.01em; }
.job-description-full { font-size: 0.95rem; color: var(--th-text-body); line-height: 1.85; }
.apply-section-card { background: #fff; border: 1px solid var(--th-border-medium); border-radius: var(--th-radius-xl); box-shadow: var(--th-shadow-lg); z-index: 100; }

/* Dashboard Header */
.dashboard-header {
    background: #fff;
    border: 1px solid var(--th-border-light);
    border-radius: var(--th-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--th-shadow-card);
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 1rem;
}
.page-title { margin: 0; font-size: 1.65rem; font-weight: 800; color: var(--th-text-primary); letter-spacing: -0.03em; }

/* ============================================================
   TABLES
   ============================================================ */
.table { color: var(--th-text-body); border-color: var(--th-border-light); }
.table th { color: var(--th-text-secondary); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; border-bottom-color: var(--th-border-medium); padding: 0.75rem 1rem; background: var(--th-bg-surface); }
.table td { border-color: var(--th-border-light); padding: 0.75rem 1rem; vertical-align: middle; }
.table-hover tbody tr:hover > td { background: rgba(249,115,22,0.04); }
.table-striped tbody tr:nth-of-type(odd) > td { background: var(--th-bg-surface); }

/* ============================================================
   SELECT2 OVERRIDES
   ============================================================ */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: var(--th-bg-input) !important;
    border: 1.5px solid var(--th-border-light) !important;
    border-radius: var(--th-radius-md) !important;
    color: var(--th-text-primary) !important;
    min-height: 42px; display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--th-text-primary) !important; padding-left: 0.75rem; line-height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { background-color: #fff !important; border: 1px solid var(--th-border-medium) !important; border-radius: var(--th-radius-md) !important; box-shadow: var(--th-shadow-lg) !important; }
.select2-search__field { background: var(--th-bg-surface) !important; color: var(--th-text-primary) !important; border: 1px solid var(--th-border-light) !important; border-radius: var(--th-radius-sm) !important; }
.select2-results__option { color: var(--th-text-secondary) !important; padding: 0.5rem 0.9rem !important; border-radius: var(--th-radius-sm) !important; }
.select2-results__option--highlighted { background-color: var(--th-bg-surface) !important; color: var(--th-text-primary) !important; }
.select2-results__option--selected { background-color: var(--th-orange-glow) !important; color: var(--th-orange-600) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--th-orange-glow) !important; border: 1px solid rgba(249,115,22,0.3) !important; color: var(--th-orange-600) !important; border-radius: 6px !important; padding: 2px 8px !important; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content { background: #fff; border: 1px solid var(--th-border-medium); border-radius: var(--th-radius-xl); box-shadow: var(--th-shadow-lg); color: var(--th-text-body); }
.modal-header { border-bottom: 1px solid var(--th-border-light); padding: 1.25rem 1.5rem; background: var(--th-bg-surface); border-radius: var(--th-radius-xl) var(--th-radius-xl) 0 0; }
.modal-footer { border-top: 1px solid var(--th-border-light); background: var(--th-bg-surface); border-radius: 0 0 var(--th-radius-xl) var(--th-radius-xl); }
.modal-title { color: var(--th-text-primary); font-family: var(--th-font-heading); font-weight: 700; }

/* ============================================================
   MISC
   ============================================================ */
hr { border-color: var(--th-border-light); opacity: 1; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--th-bg-surface); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.40); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .container-list-view .dashboard-header { flex-direction: column; align-items: flex-start; }
    .container-list-view .dashboard-header form { width: 100%; margin-bottom: 1rem; }
    .apply-section-card { margin-top: 2rem; position: static !important; }

    .navbar-collapse {
        background: rgba(255,255,255,0.97);
        border: 1px solid var(--th-border-light);
        border-radius: var(--th-radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--th-shadow-lg);
    }
}

@media (max-width: 767.98px) {
    .job-title-main { font-size: 1.75rem; }
    .resume-top-bar { margin: -1.5rem -1.5rem 1.5rem -1.5rem; padding: 1rem 1.5rem; }
    .resume-view-container { padding: 1.5rem; }
    .page-title { font-size: 1.35rem; }
    .hero-section { padding-top: 3rem; padding-bottom: 2.5rem; }
}

@media (max-width: 575.98px) {
    .navbar { padding: 0 1rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body { background: #fff !important; background-image: none !important; padding-top: 0 !important; }
    .navbar, footer, .btn, .apply-section-card { display: none !important; }
    .glass-card, .card, .job-card, .resume-card { background: transparent !important; box-shadow: none !important; border: 1px solid #ddd !important; }
}