/* ═══════════════════════════════════════════════════════════════
   بنك الوظائف المصري — Main Stylesheet
   RTL Arabic | Navy & Gold | Professional Job Board
═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --navy:       #1a2e4a;
  --navy-dark:  #0f1e30;
  --navy-mid:   #243b59;
  --gold:       #c9a227;
  --gold-light: #e8c547;
  --gold-pale:  #fdf6e3;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #6b7280;
  --gray-800:   #1f2937;
  --success:    #10b981;
  --error:      #ef4444;
  --warning:    #f59e0b;
  --info:       #3b82f6;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --font:       'Tajawal', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); direction: rtl; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font); }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Ads ──────────────────────────────────────────────────────── */
.ad-top-banner { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 8px 0; text-align: center; min-height: 0px; }
.ad-footer-banner { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 12px 0; text-align: center; }
.ad-infeed { padding: 20px 0; }
.ad-in-list { padding: 12px 0; }
.ad-sidebar { position: sticky; top: 100px; }

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.site-header { background: var(--navy); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
body:not(.admin-body) { padding-top: 70px; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }

.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; line-height: 1.2; }
.logo-sub { font-size: .65rem; color: var(--gold-light); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link { color: rgba(255,255,255,.8); padding: 8px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.12); }
.nav-link.active { color: var(--gold-light); }

.header-auth { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem; font-weight: 600; transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gold-pale); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-apply { background: var(--navy); color: var(--white); border-color: var(--navy); font-size: .85rem; padding: 8px 18px; }
.btn-apply:hover { background: var(--navy-dark); }
.btn-apply-sm { background: var(--gold); color: var(--navy-dark); padding: 8px 16px; font-size: .82rem; font-weight: 700; border-radius: var(--radius-sm); white-space: nowrap; }
.btn-apply-sm:hover { background: var(--gold-light); }
.btn-fast { background: linear-gradient(135deg, #f59e0b, #d97706); color: var(--white); font-size: .85rem; padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.btn-fast:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.4); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

/* User menu */
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: .9rem; padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition); font-family: var(--font); font-weight: 500; }
.user-menu-btn:hover { background: rgba(255,255,255,.12); }
.user-avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.user-avatar-placeholder { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.user-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 100; }
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: block; padding: 10px 20px; font-size: .9rem; color: var(--gray-800); transition: var(--transition); }
.user-dropdown a:hover { background: var(--gray-50); color: var(--navy); }
.user-dropdown hr { margin: 6px 0; border: none; border-top: 1px solid var(--gray-200); }
.logout-link { color: var(--error) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-right: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.mobile-nav { display: none; background: var(--navy-dark); padding: 16px 20px; }
.mobile-nav a { display: block; padding: 12px 0; color: rgba(255,255,255,.85); font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav hr { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 8px 0; }

/* ══════════════════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════════════════ */
.flash { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: .95rem; font-weight: 500; position: relative; transition: opacity .4s; z-index: 999; }
.flash-success { background: #d1fae5; color: #065f46; border-bottom: 3px solid #10b981; }
.flash-error { background: #fee2e2; color: #991b1b; border-bottom: 3px solid #ef4444; }
.flash button { margin-right: auto; font-size: 1.2rem; line-height: 1; color: inherit; opacity: .6; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a5f 100%); position: relative; overflow: hidden; padding: 80px 0 0; }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: .07; }
.shape-1 { width: 600px; height: 600px; background: var(--gold); top: -200px; left: -200px; }
.shape-2 { width: 400px; height: 400px; background: var(--white); top: 50px; right: -100px; display: flex; align-items: center; justify-content: center; }
.shape-3 { width: 200px; height: 200px; background: var(--gold-light); bottom: 50px; left: 40%; }
.shape-logo { width: 65%; height: 65%; object-fit: contain; opacity: 0.5; border-radius: 50%; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}
.hero-logo-wrap {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 0;
}
.hero-logo {
  width: clamp(160px, 32vw, 240px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.4));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(201,162,39,.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.hero-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; color: var(--white); line-height: 1.25; margin-bottom: 16px; }
.hero-highlight { color: var(--gold-light); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 36px; }

/* Search Box */
.hero-search { max-width: 800px; margin: 0 auto; }
.search-box { display: flex; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); gap: 0; }
.search-field { display: flex; align-items: center; flex: 1; padding: 0 16px; border-left: 1px solid var(--gray-200); position: relative; }
.search-field:first-child { border-left: none; }
.search-city { flex: 0 0 180px; }
.search-icon { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; margin-left: 10px; }
.search-input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 1rem; color: var(--gray-800); padding: 18px 8px; background: transparent; }
.search-input::placeholder { color: var(--gray-400); }
.search-select { flex: 1; border: none; outline: none; font-family: var(--font); font-size: .92rem; color: var(--gray-700); background: transparent; padding: 18px 8px; appearance: none; cursor: pointer; }
.search-btn { background: var(--gold); color: var(--navy-dark); border: none; padding: 0 32px; font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); white-space: nowrap; }
.search-btn:hover { background: var(--gold-light); }

.search-quick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; color: rgba(255,255,255,.6); font-size: .85rem; }
.search-quick a { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); padding: 5px 14px; border-radius: 50px; font-size: .82rem; transition: var(--transition); border: 1px solid rgba(255,255,255,.15); }
.search-quick a:hover { background: var(--gold); color: var(--navy-dark); }

/* Autocomplete */
.search-autocomplete { position: absolute; top: 100%; right: 0; left: 0; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); z-index: 100; overflow: hidden; display: none; }
.search-autocomplete.show { display: block; }
.autocomplete-item { padding: 12px 16px; cursor: pointer; font-size: .9rem; border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
.autocomplete-item:hover { background: var(--gray-50); }

/* Stats Bar */
.stats-bar { background: var(--navy-dark); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); }
.stats-grid { display: flex; align-items: center; justify-content: center; padding: 20px 0; gap: 0; }
.stat-item { text-align: center; padding: 0 40px; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--gold-light); line-height: 1; }
.stat-item span { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }
.stats-bar--embedded { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   URGENT TICKER
══════════════════════════════════════════════════════════════ */
.urgent-jobs { background: #fff7ed; border-top: 3px solid var(--warning); border-bottom: 1px solid #fed7aa; padding: 12px 0; overflow: hidden; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.urgent-badge { background: var(--error); color: var(--white); padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.6} }

.urgent-ticker { overflow: hidden; }
.ticker-track { display: flex; gap: 0; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 24px; border-left: 1px solid #fed7aa; font-size: .88rem; }
.ticker-company { font-weight: 700; color: var(--navy); }
.ticker-title { color: var(--gray-800); }
.ticker-city { color: var(--gray-600); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════ */
.categories-section, .jobs-section, .why-us, .cta-section { padding: 64px 0; }
.bg-light { background: var(--gray-50); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.section-subtitle { color: var(--gray-600); margin-top: 8px; font-size: .95rem; }
.see-all { color: var(--gold); font-weight: 600; font-size: .9rem; transition: var(--transition); }
.see-all:hover { color: var(--navy); }

/* ── Categories Grid ──────────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 12px; text-align: center; transition: var(--transition); cursor: pointer; }
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-icon { font-size: 2rem; line-height: 1; }
.cat-name { font-size: .85rem; font-weight: 700; color: var(--navy); }
.cat-count { font-size: .75rem; color: var(--gray-500); background: var(--gray-100); padding: 2px 8px; border-radius: 50px; }

/* ── Job Card ─────────────────────────────────────────────────── */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.featured-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.job-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; transition: var(--transition); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.job-card:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-ribbon { position: absolute; top: 0; left: 0; background: var(--gold); color: var(--navy-dark); font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 0 0 var(--radius-sm) 0; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-logo img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: contain; border: 1px solid var(--gray-200); padding: 4px; background: var(--white); }
.logo-placeholder-lg { width: 56px; height: 56px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: var(--white); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; }
.logo-placeholder { width: 48px; height: 48px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: var(--white); display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.save-btn { padding: 6px; border-radius: 50%; transition: var(--transition); color: var(--gray-400); }
.save-btn:hover, .save-btn.saved { color: var(--gold); }
.card-title a { font-size: 1rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.card-title a:hover { color: var(--gold); }
.card-company { font-size: .88rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
.verified-badge { color: var(--info); font-size: .85rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.tag-type { background: #eff6ff; color: #1d4ed8; }
.tag-location { background: var(--gray-100); color: var(--gray-700); }
.tag-remote { background: #f0fdf4; color: #166534; }
.type-remote { background: #f0fdf4; color: #166534; }
.type-part_time { background: #fdf4ff; color: #86198f; }
.type-hybrid { background: #fff7ed; color: #9a3412; }
.type-internship { background: #fefce8; color: #713f12; }
.card-salary { font-size: .88rem; color: var(--success); font-weight: 700; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.card-date { font-size: .8rem; color: var(--gray-400); }
.card-actions { display: flex; gap: 8px; }

/* ── Job List Item ────────────────────────────────────────────── */
.jobs-list { display: flex; flex-direction: column; gap: 0; }
.job-list-item { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--gray-200); border-bottom: none; transition: var(--transition); }
.job-list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.job-list-item:last-child { border-bottom: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); }
.job-list-item:hover { background: var(--gray-50); border-color: var(--navy); z-index: 1; position: relative; }
.job-item-logo img, .job-item-logo .logo-placeholder { width: 52px; height: 52px; flex-shrink: 0; }
.job-item-content { flex: 1; min-width: 0; }
.job-item-title { font-size: .98rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.job-item-title a { color: var(--navy); }
.job-item-title a:hover { color: var(--gold); }
.job-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .83rem; color: var(--gray-600); }
.meta-company { font-weight: 600; color: var(--navy); }
.meta-location::before { }
.meta-type { font-weight: 600; color: var(--info); }
.meta-salary { color: var(--success); font-weight: 600; }
.job-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.job-date { font-size: .78rem; color: var(--gray-400); }

.badge { font-size: .72rem; padding: 2px 8px; border-radius: 50px; font-weight: 700; }
.badge-urgent { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.badge-featured { background: #fffbeb; color: var(--gold); border: 1px solid #fde68a; }

.section-cta { text-align: center; margin-top: 36px; }

/* ── Why Us ───────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.why-card { text-align: center; padding: 32px 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); transition: var(--transition); }
.why-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section { padding: 0 0 64px; }
.cta-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); border-radius: var(--radius-lg); padding: 60px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; position: relative; }
.cta-box::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: var(--gold); border-radius: 50%; opacity: .06; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 1.8rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-illustration { font-size: 5rem; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   JOBS PAGE
══════════════════════════════════════════════════════════════ */
.page-layout { display: flex; gap: 28px; align-items: flex-start; padding: 36px 0 64px; }
.filters-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 86px; }
.jobs-main { flex: 1; min-width: 0; }
.filters-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label { font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; display: block; }
.filter-select, .filter-input { width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--font); font-size: .9rem; color: var(--gray-800); background: var(--white); transition: var(--transition); }
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,46,74,.1); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 6px 14px; border: 1.5px solid var(--gray-200); border-radius: 50px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--gray-700); }
.filter-chip:hover, .filter-chip.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.filter-btn { width: 100%; margin-top: 16px; }

.jobs-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.jobs-count { font-size: .9rem; color: var(--gray-600); }
.jobs-count strong { color: var(--navy); }
.sort-select { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 8px 14px; font-family: var(--font); font-size: .88rem; }

/* ══════════════════════════════════════════════════════════════
   JOB DETAIL PAGE
══════════════════════════════════════════════════════════════ */
.job-detail-layout { display: flex; gap: 28px; align-items: flex-start; padding: 36px 0 64px; }
.job-detail-main { flex: 1; min-width: 0; }
.job-detail-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

.job-detail-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; }
.job-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.job-header-logo img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: contain; border: 1px solid var(--gray-200); padding: 8px; }
.job-header-info { flex: 1; }
.job-detail-title { font-size: 1.5rem; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.job-detail-company { font-size: 1rem; color: var(--gray-600); margin-bottom: 12px; }
.job-detail-company a { color: var(--navy); font-weight: 700; }
.job-meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--gray-100); border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--gray-700); }

.job-actions-row { display: flex; gap: 12px; align-items: center; padding: 20px; background: var(--gold-pale); border-radius: var(--radius); border: 1px solid #f0e0a0; margin-bottom: 28px; }
.job-actions-row .btn-primary { flex: 1; justify-content: center; }

.job-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-100); }
.job-section:last-child { border-bottom: none; }
.job-section h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.job-section p, .job-section li { font-size: .95rem; line-height: 1.9; color: var(--gray-700); }
.job-section ul { padding-right: 20px; list-style: disc; }
.job-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 6px 14px; background: #eff6ff; color: #1d4ed8; border-radius: 50px; font-size: .8rem; font-weight: 600; }

.apply-sidebar-card { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.apply-sidebar-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.apply-sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; font-size: 1rem; }
.company-sidebar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.company-sidebar-card img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: contain; border: 1px solid var(--gray-200); padding: 6px; margin-bottom: 12px; }
.company-sidebar-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.company-sidebar-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }
.company-sidebar-info { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.company-sidebar-info span { font-size: .83rem; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }

.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: .01em; }
.form-label span { color: var(--error); }

/* ── Unified input/select/textarea styles ── */
.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:hover,
.form-input:hover,
.form-select:hover { border-color: var(--gray-400); }

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fafcff;
  box-shadow: 0 0 0 4px rgba(26,46,74,.08);
}
.form-control::placeholder,
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-400); font-size: .9rem; }

/* Select arrow */
.form-select,
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 40px;
  cursor: pointer;
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input,
.input-icon-wrap .form-control { padding-right: 44px; }
.input-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1.1rem; pointer-events: none; }

/* Validation states */
.form-control.is-invalid,
.form-input.is-invalid { border-color: var(--error); background: #fff8f8; }
.form-control.is-valid,
.form-input.is-valid { border-color: #16a34a; background: #f0fdf4; }
.form-error { font-size: .8rem; color: var(--error); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.auth-submit { width: 100%; padding: 15px; font-size: 1rem; font-weight: 700; border-radius: 10px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--gray-600); }
.auth-footer a { color: var(--navy); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-400); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ══════════════════════════════════════════════════════════════
   PROFILE
══════════════════════════════════════════════════════════════ */
.profile-layout { display: flex; gap: 28px; align-items: flex-start; padding: 36px 0 64px; }
.profile-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 86px; }
.profile-main { flex: 1; min-width: 0; }
.profile-nav { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.profile-nav-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: .9rem; font-weight: 600; color: var(--gray-700); transition: var(--transition); border-bottom: 1px solid var(--gray-100); }
.profile-nav-item:last-child { border-bottom: none; }
.profile-nav-item:hover, .profile-nav-item.active { background: var(--navy); color: var(--white); }
.profile-nav-item .nav-icon { font-size: 1.1rem; }

.profile-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.profile-card h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }

.profile-completion { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius); padding: 24px; color: var(--white); margin-bottom: 16px; }
.completion-bar { background: rgba(255,255,255,.2); border-radius: 50px; height: 8px; margin: 12px 0; overflow: hidden; }
.completion-fill { height: 100%; background: var(--gold); border-radius: 50px; transition: width 1s ease; }

.app-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.app-item:last-child { border-bottom: none; }
.app-status { padding: 4px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-reviewing { background: #dbeafe; color: #1e40af; }
.status-shortlisted { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-accepted { background: #d1fae5; color: #065f46; font-weight: 800; }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 24px; }
.stat-card-num { font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat-card-label { font-size: .85rem; color: var(--gray-600); margin-top: 4px; }
.stat-card-icon { font-size: 2rem; float: left; opacity: .3; }

.data-table { width: 100%; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: var(--gray-50); padding: 14px 16px; text-align: right; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

.admin-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; }
.admin-form h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.form-textarea { width: 100%; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 13px 16px; font-family: var(--font); font-size: .92rem; resize: vertical; min-height: 130px; transition: border-color .2s, box-shadow .2s; line-height: 1.7; }
.form-textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(26,46,74,.08); background: #fafcff; }
.form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-100); }
.form-section h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-start; padding-top: 20px; border-top: 1px solid var(--gray-200); }

/* Toggles */
.toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--gray-300); border-radius: 50px; position: relative; transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: var(--white); border-radius: 50%; top: 3px; right: 3px; transition: var(--transition); }
.toggle-input:checked + .toggle-slider { background: var(--success); }
.toggle-input:checked + .toggle-slider::before { transform: translateX(-20px); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 32px 0 0; }
.page-btn { padding: 8px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; color: var(--gray-700); transition: var(--transition); font-family: var(--font); }
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state p { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 64px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--white); }
.footer-logo img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-logo strong { font-size: .95rem; font-weight: 800; display: block; }
.footer-logo small { font-size: .7rem; color: var(--gold-light); }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
.footer-bottom p { display: flex; gap: 12px; align-items: center; }
.footer-bottom a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .job-detail-layout { flex-direction: column; }
  .job-detail-sidebar { width: 100%; position: static; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-auth { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: block; }
  .hero { padding: 48px 0 0; }
  .search-box { flex-direction: column; border-radius: var(--radius-sm); }
  .search-field { border-left: none; border-bottom: 1px solid var(--gray-200); }
  .search-city { flex: unset; width: 100%; }
  .search-btn { padding: 16px; justify-content: center; }
  .stats-grid { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 20px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
  .page-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; position: static; }
  .profile-layout { flex-direction: column; }
  .profile-sidebar { width: 100%; position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-box { flex-direction: column; padding: 40px 24px; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .job-detail-sidebar { grid-template-columns: 1fr; }
  .job-list-item { flex-wrap: wrap; }
  .job-item-actions { width: 100%; flex-direction: row; justify-content: space-between; border-top: 1px solid var(--gray-100); padding-top: 12px; margin-top: 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta-actions { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray-600); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.page-header-section { background: var(--navy); color: var(--white); padding: 40px 0; margin-bottom: 0; }
.page-header-section h1 { font-size: 1.8rem; font-weight: 900; }
.page-header-section p { color: rgba(255,255,255,.7); margin-top: 8px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ══════════════════════════════════════════════════════════════
   JOB DETAIL PAGE
══════════════════════════════════════════════════════════════ */
.job-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.job-detail-main { }
.job-detail-sidebar { position: sticky; top: 86px; }
.job-detail-header { padding: 1.5rem; }
.job-detail-header-top { display: flex; gap: 1rem; align-items: flex-start; }
.job-company-logo-wrap { flex-shrink: 0; }
.job-company-logo-lg { width: 80px; height: 80px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; }
.job-company-logo-placeholder-lg { width: 80px; height: 80px; background: var(--navy); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.job-detail-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.job-company-name-link a { color: var(--gold); font-weight: 600; font-size: 1rem; text-decoration: none; }
.job-meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.meta-item { font-size: 0.875rem; color: #555; background: #f5f5f5; padding: 0.25rem 0.75rem; border-radius: 20px; }
.job-quick-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.quick-stat { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: #555; }
.job-description-content { line-height: 1.8; color: #333; }
.section-title-sm { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
/* Apply Card */
.apply-card { padding: 1.25rem; }
.apply-closed { text-align: center; padding: 1rem; background: #fef2f2; border-radius: 8px; color: #dc2626; font-weight: 600; }
.apply-success-msg { text-align: center; padding: 1rem; background: #f0fdf4; border-radius: 8px; color: #16a34a; font-weight: 600; }
.apply-deadline { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: #ef4444; }
.save-job-btn.saved { border-color: var(--gold); color: var(--gold); }
/* Sidebar cards */
.sidebar-card-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.job-details-list { list-style: none; padding: 0; margin: 0; }
.job-details-list li { padding: 0.4rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.875rem; display: flex; gap: 0.5rem; }
.detail-label { color: #888; min-width: 80px; }
.sidebar-company { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-company-logo { width: 50px; height: 50px; object-fit: contain; border: 1px solid #eee; border-radius: 6px; }
.sidebar-company-name a { font-weight: 700; color: var(--navy); text-decoration: none; }
.sidebar-company-industry { font-size: 0.8rem; color: #888; }
/* Share buttons */
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.share-fb { background: #1877f2; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-li { background: #0a66c2; color: #fff; }
/* Related jobs */
.jobs-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════════ */
body.auth-body {
  padding-top: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a5f 100%);
}
body.auth-body .auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a5f 100%);
}
body.auth-body .auth-brand { text-align: center; margin-bottom: 1.75rem; }
body.auth-body .auth-logo {
  height: 100px;
  width: 100px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--gold);
  mix-blend-mode: lighten;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.3));
}
body.auth-body .auth-brand-name { color: var(--white); font-size: 1.5rem; font-weight: 800; margin-top: 0.75rem; }
body.auth-body .auth-brand-tagline { color: rgba(255,255,255,.85); font-size: 0.9rem; margin-top: 0.35rem; }
body.auth-body .auth-card { background: #fff; border-radius: 16px; padding: 2.25rem; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
body.auth-body .auth-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
body.auth-body .auth-subtitle { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }
body.auth-body .auth-form { margin-top: 1.25rem; }
body.auth-body .auth-divider { text-align: center; margin: 1.25rem 0; position: relative; color: #aaa; font-size: 0.85rem; }
body.auth-body .auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #eee; }
body.auth-body .auth-divider span { background: #fff; padding: 0 0.75rem; position: relative; }
body.auth-body .auth-footer { text-align: center; font-size: 0.9rem; color: #666; }
body.auth-body .auth-footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
body.auth-body .auth-back { margin-top: 1rem; }
body.auth-body .auth-back a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 0.9rem; }
body.auth-body .auth-back a:hover { color: var(--gold-light); }
.password-wrap { position: relative; }
.password-toggle { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; }
.form-label-link { float: left; font-weight: normal; font-size: 0.85rem; color: var(--gold); text-decoration: none; }
/* Account type tabs */
.account-type-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.tab-btn { flex: 1; padding: 0.75rem; background: #f5f5f5; border: 2px solid transparent; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 0.9rem; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-icon { font-size: 1.25rem; }

/* ══════════════════════════════════════════════════════════════
   PROFILE PAGES
══════════════════════════════════════════════════════════════ */
.profile-layout { display: flex; gap: 1.5rem; padding: 2rem 1rem; align-items: flex-start; }
.profile-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 86px; }
.profile-sidebar-user { background: var(--navy); color: #fff; padding: 1.5rem; border-radius: 12px 12px 0 0; text-align: center; }
.profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; }
.profile-avatar-placeholder-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; margin: 0 auto; }
.profile-sidebar-name { font-weight: 700; margin-top: 0.75rem; }
.profile-sidebar-email { font-size: 0.8rem; opacity: 0.7; margin-top: 0.25rem; }
.profile-completion { padding: 0.75rem 1rem; background: #f8f9fa; }
.completion-label { font-size: 0.85rem; color: #555; margin-bottom: 0.4rem; }
.completion-bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.completion-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.5s; }
.profile-nav { background: #fff; border-radius: 0 0 12px 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.profile-nav-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem; color: #444; text-decoration: none; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; transition: all 0.2s; }
.profile-nav-item:hover { background: #f8f9fa; color: var(--navy); }
.profile-nav-item.active { background: #f0f4ff; color: var(--navy); font-weight: 600; border-right: 3px solid var(--navy); }
.profile-nav-logout { color: #ef4444 !important; }
.profile-main { flex: 1; }
.page-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; }
/* Dashboard stats */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat-card { background: #fff; border-radius: 12px; padding: 1.25rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dash-stat-icon { font-size: 1.75rem; }
.dash-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-top: 0.25rem; }
.dash-stat-label { font-size: 0.8rem; color: #888; margin-top: 0.25rem; }
/* Applications list */
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-header-row h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.link-sm { font-size: 0.85rem; color: var(--navy); text-decoration: none; }
.applications-list { display: flex; flex-direction: column; gap: 0.75rem; }
.application-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #f5f5f5; }
.app-job-info { flex: 1; }
.app-job-title a { font-weight: 600; color: var(--navy); text-decoration: none; font-size: 0.9rem; }
.app-company { font-size: 0.8rem; color: #888; }
.app-date { font-size: 0.8rem; color: #aaa; }
.app-status { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 20px; white-space: nowrap; }
.app-status.status-pending { background: #fff3cd; color: #856404; }
.app-status.status-reviewed { background: #d1ecf1; color: #0c5460; }
.app-status.status-interview { background: #d6d8fb; color: #2d2fb1; }
.app-status.status-accepted { background: #d4edda; color: #155724; }
.app-status.status-rejected { background: #f8d7da; color: #721c24; }
/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--navy); margin-bottom: 0.5rem; }
.empty-state p { color: #888; margin-bottom: 1.5rem; }
/* CV upload */
.cv-upload-area { border: 2px dashed #ddd; border-radius: 12px; padding: 2.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.cv-upload-area:hover { border-color: var(--navy); }
.cv-upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.cv-upload-text { font-size: 1rem; color: #555; }
.cv-upload-or { color: #aaa; margin: 0.5rem 0; }
.cv-upload-hint { font-size: 0.8rem; color: #aaa; margin-top: 0.75rem; }
.cv-selected-file { margin-top: 0.75rem; color: #22c55e; font-weight: 600; }
.cv-existing { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cv-file-info { display: flex; align-items: center; gap: 1rem; }
.cv-file-icon { font-size: 2rem; }
.cv-file-name { font-weight: 600; color: var(--navy); }
.cv-file-date { font-size: 0.8rem; color: #888; }
.cv-file-actions { display: flex; gap: 0.5rem; }
/* Applications table */
.applications-table-wrap { overflow-x: auto; }
.applications-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.applications-table th { background: #f8f9fa; padding: 0.75rem 1rem; text-align: right; font-weight: 600; color: #555; border-bottom: 2px solid #e9ecef; }
.applications-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f0f2f5; }
.app-job-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.status-badge { padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-badge.status-pending { background: #fff3cd; color: #856404; }
.status-badge.status-reviewed { background: #d1ecf1; color: #0c5460; }
.status-badge.status-interview { background: #d6d8fb; color: #2d2fb1; }
.status-badge.status-accepted { background: #d4edda; color: #155724; }
.status-badge.status-rejected { background: #f8d7da; color: #721c24; }
/* Completion tips */
.completion-tips h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
.tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.tips-list li { font-size: 0.875rem; color: #555; }
.tips-list li::before { content: '→ '; color: var(--gold); font-weight: 700; }
.tips-list li a { color: var(--navy); font-weight: 600; text-decoration: none; }
/* Tag input */
.tags-input-wrap { }
.tags-container { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.tag { background: #e8f0fe; color: var(--navy); padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.8rem; display: flex; align-items: center; gap: 0.3rem; }
.tag button { background: none; border: none; cursor: pointer; color: var(--navy); font-size: 0.9rem; line-height: 1; padding: 0; }
/* Profile form */
.avatar-upload-wrap { display: flex; align-items: center; gap: 1.5rem; }

/* ══════════════════════════════════════════════════════════════
   APPLY PAGE
══════════════════════════════════════════════════════════════ */
.apply-job-summary { padding: 1.25rem; }
.apply-company-info { display: flex; align-items: center; gap: 1rem; }
.apply-company-logo { width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; }
.apply-job-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.apply-company-name { color: #666; }
.apply-job-meta { display: flex; gap: 0.75rem; font-size: 0.875rem; color: #888; margin-top: 0.25rem; }
.apply-form .form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.form-input-file { padding: 0.6rem; border: 1px dashed #ddd; border-radius: 8px; width: 100%; }
.existing-cv { padding: 0.75rem; background: #f0fdf4; border-radius: 8px; margin-bottom: 0.75rem; }
.cv-choice { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.875rem; }
.form-hint { font-size: 0.8rem; color: #aaa; margin-top: 0.3rem; }
.required { color: #ef4444; }

/* ══════════════════════════════════════════════════════════════
   COMPANIES
══════════════════════════════════════════════════════════════ */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.company-card { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.company-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.company-card-logo { width: 80px; height: 80px; margin-bottom: 1rem; }
.company-card-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; border: 1px solid #eee; }
.company-logo-placeholder { width: 80px; height: 80px; background: var(--navy); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.company-card-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.company-card-industry { font-size: 0.8rem; color: #888; margin-top: 0.25rem; }
.company-card-city { font-size: 0.8rem; color: #aaa; }
.company-card-jobs { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-top: 0.5rem; }
.verified-badge { position: absolute; top: 0.75rem; left: 0.75rem; font-size: 1rem; }
/* Company detail */
.company-cover { height: 250px; background: var(--navy); background-size: cover; background-position: center; }
.company-cover-overlay { background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); height: 100%; display: flex; align-items: flex-end; }
.company-cover-content { display: flex; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.5rem; }
.company-profile-logo { width: 100px; height: 100px; border: 3px solid #fff; border-radius: 12px; background: #fff; overflow: hidden; flex-shrink: 0; }
.company-profile-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-logo-placeholder-lg { width: 100%; height: 100%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; }
.company-profile-name { color: #fff; font-size: 1.5rem; font-weight: 800; }
.company-profile-industry { color: rgba(255,255,255,0.8); margin-top: 0.25rem; }
.company-profile-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.company-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
.company-detail-sidebar { position: sticky; top: 86px; }
.company-about-text { line-height: 1.8; color: #333; }
.company-info-list { list-style: none; padding: 0; margin: 0; }
.company-info-list li { padding: 0.4rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.875rem; display: flex; gap: 0.5rem; }
.company-info-list li span { color: #888; min-width: 70px; }

/* ══════════════════════════════════════════════════════════════
   STATIC PAGES (About, Contact, Privacy, Terms)
══════════════════════════════════════════════════════════════ */
.static-hero { background: linear-gradient(135deg, var(--navy), #2c4a6e); color: #fff; padding: 3rem 0; text-align: center; }
.static-hero h1 { font-size: 2rem; font-weight: 800; }
.static-hero p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.static-content { padding: 3rem 1rem; max-width: 900px; margin: 0 auto; }
.static-body { line-height: 1.9; }
.static-body h2 { color: var(--navy); font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.static-body p, .static-body ul { color: #444; }
.legal-text .last-updated { font-size: 0.85rem; color: #aaa; margin-bottom: 1.5rem; }
/* Contact */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { padding: 0.5rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; }
.social-link-btn { padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.social-link-btn.fb { background: #1877f2; color: #fff; }
.social-link-btn.tw { background: #1da1f2; color: #fff; }
.social-link-btn.li { background: #0a66c2; color: #fff; }
.social-link-btn.wa { background: #25d366; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════════════════════════════ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 2rem; }
.error-content { text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--navy); line-height: 1; }
.error-title { font-size: 1.5rem; font-weight: 700; color: #333; margin-top: 1rem; }
.error-msg { color: #888; margin: 0.75rem 0 1.5rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB (non-hero pages)
══════════════════════════════════════════════════════════════ */
nav.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: #888; margin-bottom: 1.25rem; }
nav.breadcrumb a { color: var(--navy); text-decoration: none; }
nav.breadcrumb a:hover { color: var(--gold); }
nav.breadcrumb span { color: #ccc; }

/* ══════════════════════════════════════════════════════════════
   MISC COMPONENTS
══════════════════════════════════════════════════════════════ */
.page-main-title { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.page-main-subtitle { color: #888; margin-top: 0.3rem; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.mt-sm { margin-top: 0.5rem; }
.auth-form .form-check { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 1.25rem; font-size: 0.9rem; color: var(--gray-700); }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.section-heading { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.ad-banner-top { padding: 0.5rem 0; text-align: center; background: #f9f9f9; border-bottom: 1px solid #eee; }
.ad-in-content { text-align: center; padding: 0.5rem 0; }
.badge-type { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-full_time { background: #d4edda; color: #155724; }
.badge-part_time { background: #fff3cd; color: #856404; }
.badge-remote { background: #d1ecf1; color: #0c5460; }
.badge-hybrid { background: #d6d8fb; color: #2d2fb1; }
.badge-freelance { background: #fce4ec; color: #880e4f; }
/* Tips card */
.tips-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-detail-sidebar { position: static; order: -1; }
  .company-detail-layout { grid-template-columns: 1fr; }
  .profile-layout { flex-direction: column; }
  .profile-sidebar { width: 100%; position: static; }
  .form-row { grid-template-columns: 1fr; }
  .apply-form .form-actions { flex-direction: column; }
  .companies-search { flex-direction: column; }
  .company-cover { height: 180px; }
  .company-cover-content { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .company-profile-logo { width: 70px; height: 70px; }
}
