/* ============================================================
   ARTIA ASIA - Official Enterprise Design System
   Brand Identity Guidelines 2026
   Primary Palette: Artia Royal Navy (#0A2E63) & Vibrant Red (#E51A24)
   Tagline: CONNECTING TALENT • BUILDING TOMORROW
   ============================================================ */

:root {
  /* Official ARTIA ASIA Brand Colors */
  --brand-navy: #0A2E63;         /* Artia Deep Royal Navy */
  --brand-navy-dark: #061D40;    /* Dark Navy Background */
  --brand-navy-light: #144284;   /* Navy Accent Light */
  --brand-red: #E51A24;          /* Artia Vibrant Energetic Red */
  --brand-red-dark: #C4121B;     /* Deep Crimson Red */
  --brand-red-light: #FFF1F2;    /* Soft Red Surface */
  --brand-red-glow: rgba(229, 26, 36, 0.25);
  --brand-ice-blue: #F0F6FF;     /* Ice Blue Accent */
  --brand-charcoal: #1E293B;     /* Charcoal Slate */
  --brand-cool-gray: #64748B;    /* Cool Gray */
  --brand-slate: #475569;
  --brand-surface-dark: #071933; /* Dark Navy Surface */

  /* Typography Hierarchy Standards */
  --font-title: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Theme Core Variables */
  --primary: #0A2E63;
  --primary-dark: #061D40;
  --primary-light: #144284;
  --accent-red: #E51A24;
  --accent-red-hover: #C4121B;
  --accent-blue: #2563EB;
  --accent-cyan: #06B6D4;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --emerald: #10B981;
  --emerald-dark: #059669;
  
  /* Neutral & Layout */
  --white: #ffffff;
  --bg: #F8FAFC;
  --surface: #ffffff;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: rgba(10, 46, 99, 0.12);
  --border-light: #E2E8F0;
  
  /* Glassmorphism */
  --glass: rgba(255, 255, 255, 0.92);
  --glass-dark: rgba(10, 46, 99, 0.94);
  --glass-border: rgba(229, 26, 36, 0.18);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 46, 99, 0.06);
  --shadow: 0 10px 30px rgba(10, 46, 99, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 46, 99, 0.14);
  --shadow-glow: 0 0 25px rgba(229, 26, 36, 0.22);
  
  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Roles */
  --role-worker: #0A2E63;
  --role-worker-bg: #EFF6FF;
  --role-agency: #E51A24;
  --role-agency-bg: #FFF1F2;
  --role-admin: #0F172A;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-brand-line,
.hero-title-main,
.hero-title-sub,
.section-title,
.portal-hero h2,
.nav-link,
.btn-nav-worker,
.btn-nav-agency,
.btn-hero-primary,
.btn-hero-secondary,
.stat-number,
.kpi-number,
.service-card h3,
.candidate-name,
.modal-header h3,
.footer-col h4,
.logo-brand {
  font-family: var(--font-title);
}

.hidden { display: none !important; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }

/* ============ GRADIENTS & TYPOGRAPHY ============ */
.gradient-text {
  background: linear-gradient(135deg, #0A2E63 0%, #2563EB 50%, #E51A24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-red {
  background: linear-gradient(135deg, #FF2E3B 0%, #E51A24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 46, 99, 0.1);
  box-shadow: 0 4px 20px rgba(10, 46, 99, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 46, 99, 0.12);
  border-bottom: 1px solid rgba(229, 26, 36, 0.2);
}

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
}

.nav-logo img.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.nav-logo:hover img.brand-logo-img {
  transform: scale(1.03);
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--brand-navy);
}

.logo-brand .brand-asia {
  color: var(--brand-red);
  margin-left: 3px;
}

.brand-tagline-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--brand-navy-light);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-navy);
  background: rgba(10, 46, 99, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Selector */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #1E293B;
  transition: var(--transition);
}

.lang-selector-btn:hover {
  background: #E2E8F0;
  border-color: var(--brand-navy);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  min-width: 170px;
  z-index: 1050;
  display: none;
  padding: 6px 0;
}

.lang-menu.open {
  display: block;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-menu-item:hover, .lang-menu-item.active {
  background: #EFF6FF;
  color: var(--brand-navy);
  font-weight: 700;
}

/* Action Buttons */
.btn-nav-worker {
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(10, 46, 99, 0.2);
}

.btn-nav-worker:hover {
  background: var(--brand-navy-light);
  transform: translateY(-1px);
}

.btn-nav-agency {
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(229, 26, 36, 0.25);
}

.btn-nav-agency:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}

.btn-nav-admin {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-nav-admin:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brand-navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: #ffffff;
  padding: 20px 24px;
  border-bottom: 2px solid var(--brand-navy);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 999;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #1E293B;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  padding: 130px 0 80px;
  background: radial-gradient(circle at 85% 20%, rgba(229, 26, 36, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 15% 40%, rgba(10, 46, 99, 0.06) 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 46, 99, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(10, 46, 99, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 46, 99, 0.06);
  border: 1px solid rgba(10, 46, 99, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-brand-line {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title-main {
  color: var(--brand-navy);
}

.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-btn-primary {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 46, 99, 0.25);
  transition: var(--transition);
}

.cta-btn-primary:hover {
  background: var(--brand-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 46, 99, 0.35);
}

.cta-btn-secondary {
  background: #ffffff;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.cta-btn-secondary:hover {
  background: var(--brand-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 26, 36, 0.25);
}

/* Source Countries Bar */
.hero-countries-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #E2E8F0;
}

.countries-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.global-hub-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 45px rgba(10, 46, 99, 0.1);
  position: relative;
  z-index: 2;
}

.hub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.hub-badge-live {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hub-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.demand-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 8px;
}

.demand-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 14px;
}

.demand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.tag-badge.blue { background: #EFF6FF; color: #1D4ED8; }
.tag-badge.green { background: #ECFDF5; color: #047857; }
.tag-badge.red { background: #FFF1F2; color: #BE123C; }
.tag-badge.gold { background: #FFFBEB; color: #B45309; }

.match-box-preview {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.match-score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), #2563EB);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.match-info-block .match-info-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.match-info-block .match-info-sub {
  font-size: 12px;
  color: #64748B;
}

/* Floating Badges */
.orbit-card {
  position: absolute;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.orbit-card.card-top {
  top: -15px;
  right: -15px;
}

.orbit-card.card-bottom {
  bottom: -20px;
  left: -20px;
}

/* ============================================================
   REAL METRICS STRIP (Số liệu thật)
   ============================================================ */
.trust-strip {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 34px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.trust-icon-box.red { background: rgba(229, 26, 36, 0.2); color: #FF4D58; border: 1px solid rgba(229, 26, 36, 0.4); }
.trust-icon-box.blue { background: rgba(37, 99, 235, 0.2); color: #60A5FA; border: 1px solid rgba(37, 99, 235, 0.4); }
.trust-icon-box.emerald { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.trust-icon-box.gold { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }

.trust-text-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.trust-text-sub {
  font-size: 12px;
  color: #CBD5E1;
}

/* ============================================================
   CƠ HỘI VIỆC LÀM (JOB OPPORTUNITIES - VIETNAM & EUROPE)
   ============================================================ */
.jobs-section {
  padding: 80px 0;
  background: #F8FAFC;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: #64748B;
  line-height: 1.6;
}

/* Market Tabs */
.market-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.market-tab-btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.market-tab-btn:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.market-tab-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 15px rgba(10, 46, 99, 0.2);
}

.market-tab-btn.active.eu-active {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

/* Job Filters Bar */
.job-filter-bar {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #1E293B;
  background: #F8FAFC;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--brand-navy);
  background: #ffffff;
}

.btn-filter-reset {
  padding: 10px 18px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.btn-filter-reset:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 24px;
}

.job-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 46, 99, 0.25);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.job-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-navy);
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 4px;
}

.job-destination-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-destination-badge.vn { background: #FEF3C7; color: #92400E; }
.job-destination-badge.eu { background: #DBEAFE; color: #1E40AF; }

.job-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.35;
}

.job-company-location {
  font-size: 13px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.job-salary-box {
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-salary-amount {
  font-size: 17px;
  font-weight: 800;
  color: #059669;
}

.job-quota {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.job-details-list {
  list-style: none;
  font-size: 13px;
  color: #334155;
  margin-bottom: 18px;
}

.job-details-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Transparent Fee Badge */
.fee-transparent-badge {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-card-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.btn-job-apply {
  flex: 1;
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-job-apply:hover {
  background: var(--brand-navy-light);
}

.btn-job-detail {
  padding: 10px 14px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-job-detail:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* ============================================================
   8-STEP PIPELINE SECTION
   ============================================================ */
.pipeline-home-section {
  padding: 85px 0;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
}

.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pipeline-step-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: var(--transition);
}

.pipeline-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-navy);
  box-shadow: var(--shadow);
}

.step-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-red);
  margin-bottom: 6px;
}

.step-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

/* ============================================================
   TWO USER GATEWAY CARDS (Thẻ Phân Luồng)
   ============================================================ */
.gateway-section {
  padding: 80px 0;
  background: #F1F5F9;
}

.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gateway-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gateway-card.worker {
  border-top: 6px solid var(--brand-navy);
}

.gateway-card.worker:hover {
  border-color: var(--brand-navy);
  transform: translateY(-4px);
}

.gateway-card.agency {
  border-top: 6px solid var(--brand-red);
}

.gateway-card.agency:hover {
  border-color: var(--brand-red);
  transform: translateY(-4px);
}

.gateway-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.gateway-card.worker .gateway-badge { color: var(--brand-navy); }
.gateway-card.agency .gateway-badge { color: var(--brand-red); }

.gateway-title {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
}

.gateway-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.gateway-feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.gateway-feature-list li {
  font-size: 14px;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   ANTI-SCAM & ETHICAL RECRUITMENT SECTION
   ============================================================ */
.ethical-section {
  padding: 70px 0;
  background: #ffffff;
}

.ethical-box {
  background: linear-gradient(135deg, #0A2E63 0%, #061D40 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ethical-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.ethical-desc {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 20px;
}

.scam-warning-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.scam-warning-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #F87171;
  margin-bottom: 12px;
}

.scam-warning-list {
  list-style: none;
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.6;
}

.scam-warning-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ============================================================
   PORTAL LAYOUT (SHARED BY WORKER, AGENCY, ADMIN)
   ============================================================ */
.portal-wrapper {
  padding-top: 74px;
  min-height: 100vh;
  background: #F1F5F9;
}

.portal-header-bar {
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
}

.portal-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.portal-avatar.agency-avatar {
  background: var(--brand-red);
}

.portal-company-name {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-sub-meta {
  font-size: 13px;
  color: #64748B;
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.portal-badge-tier {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.portal-badge-tier.gold { background: #FEF3C7; color: #92400E; }
.portal-badge-tier.blue { background: #DBEAFE; color: #1E40AF; }
.portal-badge-tier.green { background: #DCFCE7; color: #166534; }

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-portal-action {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-portal-blue {
  background: var(--brand-navy);
  color: #ffffff;
}
.btn-portal-blue:hover { background: var(--brand-navy-light); }

.btn-portal-red {
  background: var(--brand-red);
  color: #ffffff;
}
.btn-portal-red:hover { background: var(--brand-red-dark); }

.btn-portal-outline {
  background: #ffffff;
  border: 1px solid #CBD5E1;
  color: #334155;
}
.btn-portal-outline:hover { background: #F8FAFC; color: #0F172A; }

/* Portal Subnav Tabs */
.portal-subnav-bar {
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
}

.portal-tabs-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 4px;
}

.portal-tab-btn {
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.portal-tab-btn:hover {
  color: var(--brand-navy);
}

.portal-tab-btn.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
  font-weight: 700;
}

.portal-tab-btn.agency-tab.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.portal-tab-badge {
  background: #EFF6FF;
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.portal-tab-badge.red {
  background: #FFF1F2;
  color: var(--brand-red);
}

.portal-body {
  padding: 32px 0 60px;
}

/* KPI Cards Grid */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  color: #10B981;
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.kpi-icon-wrap.navy { background: #EFF6FF; color: var(--brand-navy); }
.kpi-icon-wrap.red { background: #FFF1F2; color: var(--brand-red); }
.kpi-icon-wrap.emerald { background: #ECFDF5; color: #10B981; }
.kpi-icon-wrap.gold { background: #FFFBEB; color: #F59E0B; }

/* Data Tables */
.data-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.data-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.custom-table th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.custom-table td {
  padding: 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: #F8FAFC;
}

.status-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}

.status-pill.active { background: #DCFCE7; color: #15803D; }
.status-pill.processing { background: #FEF3C7; color: #B45309; }
.status-pill.urgent { background: #FEE2E2; color: #B91C1C; }
.status-pill.neutral { background: #F1F5F9; color: #475569; }

/* ============================================================
   8-STEP KANBAN BOARD (Pipeline Management)
   ============================================================ */
.kanban-wrapper {
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-board-8cols {
  display: grid;
  grid-template-columns: repeat(8, 280px);
  gap: 14px;
  min-width: 2260px;
}

.kanban-column {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #CBD5E1;
}

.kanban-col-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.kanban-col-badge {
  background: #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.kanban-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.kanban-card-item {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.kanban-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-navy);
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 6px;
}

.kanban-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.warranty-countdown-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px dashed #F59E0B;
}

.btn-kanban-next {
  margin-top: 10px;
  width: 100%;
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-kanban-next:hover {
  background: var(--brand-navy-light);
}

/* ============================================================
   MODALS (5 POPUPS TƯƠNG TÁC)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 46, 99, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: modalIn 0.25s ease-out;
}

.modal-container.modal-lg {
  max-width: 860px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.modal-body {
  padding: 24px 26px;
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
  position: sticky;
  bottom: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #1E293B;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(10, 46, 99, 0.1);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* File Upload Drop Area */
.upload-drop-zone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: var(--transition);
}

.upload-drop-zone:hover {
  border-color: var(--brand-navy);
  background: #EFF6FF;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #061D40;
  color: #CBD5E1;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #CBD5E1;
}

.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gateway-grid { grid-template-columns: 1fr; }
  .pipeline-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .ethical-box { grid-template-columns: 1fr; }
  .kpi-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .job-filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .trust-grid { grid-template-columns: 1fr; }
  .pipeline-steps-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .kpi-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .job-filter-bar { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
