/* ==========================================================================
   VACANCY GLOBAL - LUXURY SYSTEM STYLES (v3.0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========== 1. CSS VARIABLES — AUTOMATIC SYSTEM THEME ========== */
:root {
  /* Dark Theme (Default Draft) */
  --bg-main: #030303;
  --bg-card: linear-gradient(to bottom right, #010101, #0d0d0d, #010101);
  --bg-surface: #0d0d0d;
  --bg-input: rgba(1, 1, 1, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: #B0BFCF;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-inverse: #030303;

  --tab-bg: #0d0d0d;
  --tab-border: rgba(255, 255, 255, 0.1);
  --tab-active-bg: #FFFFFF;
  --tab-active-text: #030303;
  --tab-active-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);

  --tag-bg: #0d0d0d;
  --tag-border: rgba(255, 255, 255, 0.15);

  --shimmer-color: rgba(255, 255, 255, 0.05);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.8);
  --shadow-card-hover: 0 25px 50px rgba(255, 255, 255, 0.03);
  --shadow-search: 0 20px 40px rgba(0, 0, 0, 0.9);

  --menu-bg: linear-gradient(to bottom right, #111111, #050505);
  --menu-card-bg: rgba(255, 255, 255, 0.05);
  --menu-card-hover: rgba(255, 255, 255, 0.15);
  --menu-grid-glow: linear-gradient(270deg, #333333, #111111, #444444);

  --ping-color: rgba(255, 255, 255, 0.8);
  --header-border: rgba(255, 255, 255, 0.08);

  --img-border: rgba(255, 255, 255, 0.15);
  --footer-border: rgba(255, 255, 255, 0.08);

  --accent-gold: #F59E0B;
  --whatsapp-green: #25D366;
}

/* Light Theme Override (Applied automatically if preference detected) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-main: #F2F2F7;
    --bg-card: linear-gradient(to bottom right, #FFFFFF, #F8F8FA, #FFFFFF);
    --bg-surface: #FFFFFF;
    --bg-input: rgba(255, 255, 255, 0.9);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --border-active: rgba(0, 0, 0, 0.25);

    --text-primary: #1A1A2E;
    --text-secondary: #555B6E;
    --text-muted: rgba(0, 0, 0, 0.45);
    --text-inverse: #FFFFFF;

    --tab-bg: #FFFFFF;
    --tab-border: rgba(0, 0, 0, 0.1);
    --tab-active-bg: #1A1A2E;
    --tab-active-text: #FFFFFF;
    --tab-active-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

    --tag-bg: #F0F0F5;
    --tag-border: rgba(0, 0, 0, 0.1);

    --shimmer-color: rgba(0, 0, 0, 0.03);
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-search: 0 15px 35px rgba(0, 0, 0, 0.12);

    --menu-bg: linear-gradient(to bottom right, #FFFFFF, #F5F5FA);
    --menu-card-bg: rgba(0, 0, 0, 0.04);
    --menu-card-hover: rgba(0, 0, 0, 0.1);
    --menu-grid-glow: linear-gradient(270deg, #E0E0E0, #F5F5F5, #D0D0D0);

    --ping-color: rgba(0, 0, 0, 0.5);
    --header-border: rgba(0, 0, 0, 0.06);

    --img-border: rgba(0, 0, 0, 0.1);
    --footer-border: rgba(0, 0, 0, 0.06);
  }
}

/* ========== 2. GLOBAL RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 120px 16px;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

.app-container {
  width: 100%;
  max-width: 440px;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* ========== 3. HEADER ========== */
.vacancy-header {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 24px;
  position: relative;
  z-index: 110;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 40px;
  object-fit: contain;
}

@media (prefers-color-scheme: light) {
  .brand-logo {
    filter: invert(1);
  }
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.menu-pulse-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: var(--ping-color);
  border-radius: 50%;
  animation: pingGlow 1.5s infinite;
}

@keyframes pingGlow {
  0%   { transform: scale(0.8); opacity: 0.8; }
  50%  { transform: scale(2); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

/* ========== 4. SLIDE DRAWER MENU (VERTICAL LIST) ========== */
.menu-dropdown-drawer {
  display: none;
  position: absolute;
  top: 75px;
  right: 0;
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 10px;
  z-index: 120;
  box-shadow: var(--shadow-card);
  flex-direction: column;
  transform-origin: top right;
  animation: slideDownMenu 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@keyframes slideDownMenu {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.menu-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.menu-drawer-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-drawer-item:hover {
  background: var(--menu-card-hover, rgba(255,255,255,0.08));
  color: var(--text-primary);
}

.menu-drawer-item:hover svg {
  stroke: var(--text-primary);
}

/* Divider line inside menu */
.menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 10px;
}

/* Theme toggle row in menu */
.menu-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.menu-theme-toggle:hover {
  background: var(--menu-card-hover, rgba(255,255,255,0.08));
  color: var(--text-primary);
}

/* ========== 5. COUNTRY FILTER TABS ========== */
.vacancy-country-filter-section {
  margin-bottom: 24px;
  position: relative;
}

.vacancy-country-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
  position: relative;
}

.vacancy-country-filter::-webkit-scrollbar { display: none; }

.vacancy-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: var(--tab-bg);
  border: 1px solid var(--tab-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  /* Only animate cheap properties to keep mobile scroll smooth */
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

@media (hover: hover) {
  .vacancy-filter-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
  }
}

.vacancy-filter-tab--active {
  background-color: var(--tab-active-bg);
  border-color: var(--tab-active-bg);
  color: var(--tab-active-text);
  font-weight: 700;
  box-shadow: var(--tab-active-shadow);
}

/* Keep the active flag icon visible on its dark/light pill background */
.vacancy-filter-tab--active .country-flag-icon {
  color: var(--tab-active-text);
}

/* ========== 6. JOB LIST & CARDS ========== */
.vacancy-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vacancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  /* Animate only transform + shadow so scrolling stays smooth */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

/* Shimmer Sweep Animation */
.vacancy-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--shimmer-color), transparent);
  transform: skewX(-12deg) translateX(100%);
  transition: transform 1s ease-in-out;
  pointer-events: none;
}

.vacancy-card:hover::after {
  transform: skewX(-12deg) translateX(-200%);
}

@media (hover: hover) {
  .vacancy-card:hover {
    transform: scale(1.02) rotate(-0.3deg);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
  }
}

.vacancy-card-body-row {
  display: flex;
  gap: 20px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.vacancy-card-image {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--img-border);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.vacancy-card:hover .vacancy-card-image {
  transform: scale(1.05);
}

.vacancy-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.vacancy-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.vacancy-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.country-flag-icon {
  font-size: 14px;
}

.vacancy-card-salary {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

.vacancy-card-urgent-badge {
  background: linear-gradient(135deg, #FF512F, #DD2476);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(221, 36, 118, 0.4);
}

.no-vacancies-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== 7. FIXED BOTTOM SEARCH BAR ========== */
.search-bar-floating-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 408px;
  z-index: 200;
}

.search-bar-input-container {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 8px 16px 8px 20px;
  box-shadow: var(--shadow-search);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar-input-container:focus-within {
  border-color: var(--border-active);
}

.search-input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  height: 36px;
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.search-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ========== 8. JOB DETAILS VIEW ========== */
.detail-view-container {
  width: 100%;
}

.detail-back-button-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.detail-back-button-bar:hover {
  color: var(--text-primary);
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.detail-card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.detail-job-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.detail-job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta-badge {
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-meta-badge.badge-success {
  background-color: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.25);
  color: #25D366;
}

.detail-meta-badge.badge-danger {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.badge-icon-svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.detail-meta-badge.badge-success .badge-icon-svg {
  stroke: #25D366;
}
.detail-meta-badge.badge-danger .badge-icon-svg {
  stroke: #EF4444;
}

.detail-description-section {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-additional-details {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.detail-salary-highlight {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-luxury {
  width: 100%;
  background-color: var(--text-primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.btn-whatsapp-luxury {
  width: 100%;
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
}

.btn-whatsapp-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-secondary-luxury {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-secondary-luxury:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

/* ========== 9. APPLY / REDIRECTING PAGE ========== */
.apply-view-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.redirect-progress-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--border-subtle);
  border-top-color: var(--whatsapp-green);
  animation: rotateLoader 1.2s linear infinite;
  margin-bottom: 24px;
}

@keyframes rotateLoader {
  to { transform: rotate(360deg); }
}

.apply-job-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  margin-bottom: 24px;
}

/* ========== 10. ADMIN LOGIN & SECURITY SCANNER ========== */
.admin-login-wrapper {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.admin-header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.admin-logo-icon {
  width: 50px;
  height: 50px;
  stroke: var(--text-primary);
  fill: none;
  margin-bottom: 12px;
}

.admin-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.form-group-luxury {
  margin-bottom: 24px;
  position: relative;
}

.form-input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-field-luxury {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
}

.form-input-field-luxury:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Security Animation Overlay (Admin password brute force check) */
.security-scanner-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-main);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scanner-lock-icon {
  width: 64px;
  height: 64px;
  stroke: var(--accent-gold);
  fill: none;
  margin-bottom: 24px;
  animation: pulseLock 1s ease-in-out infinite alternate;
}

@keyframes pulseLock {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px var(--accent-gold)); }
}

.scanner-progress-bar-container {
  width: 80%;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.scanner-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #FF512F);
  animation: fillProgress 2.5s cubic-bezier(0.1, 0.85, 0.25, 1) forwards;
}

@keyframes fillProgress {
  to { width: 100%; }
}

.scanner-status-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== 11. ADMIN DASHBOARD LAYOUT ========== */
.admin-dashboard-container {
  width: 100%;
  padding-top: 10px;
}

.admin-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.admin-nav-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-logout-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-logout-btn:hover {
  border-color: #FF512F;
  color: #FF512F;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Form inputs for Admin CRUD */
.admin-card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin-panel-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-row-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-input-select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  appearance: none;
}

.form-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  min-height: 100px;
  resize: vertical;
}

.form-checkbox-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.checkbox-label-luxury {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label-luxury input {
  width: 18px;
  height: 18px;
  accent-color: var(--text-primary);
}

.ai-optimize-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 8px;
}

.btn-ai-rewrite {
  background: linear-gradient(135deg, #7F00FF, #E100FF);
  color: white;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(225, 0, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-ai-rewrite:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(225, 0, 255, 0.4);
}

/* Country Drag List */
.country-drag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: grab;
  user-select: none;
}

.country-drag-item:active {
  cursor: grabbing;
}

.country-drag-handle {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Job list inside admin */
.admin-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-job-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-job-row-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-job-row-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn-small {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-action-btn-small:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.admin-action-btn-small--delete {
  color: #FF512F;
}

.admin-action-btn-small--delete:hover {
  border-color: #FF512F;
  background-color: rgba(255, 81, 47, 0.05);
}

/* Trend Optimizer status card */
.trend-optimizer-card {
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.1), rgba(225, 0, 255, 0.1));
  border: 1px solid rgba(225, 0, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.trend-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #E100FF;
  margin-bottom: 8px;
}

.btn-trigger-trend {
  width: 100%;
  background: linear-gradient(135deg, #7F00FF, #E100FF);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 12px;
}

.btn-trigger-trend:hover {
  box-shadow: 0 6px 18px rgba(225, 0, 255, 0.3);
}

.trend-results-list {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== FORCE THEME CLASSES (JS Toggle) ========== */
html.force-light {
  --bg-main: #F2F2F7;
  --bg-card: linear-gradient(to bottom right, #FFFFFF, #F8F8FA, #FFFFFF);
  --bg-surface: #FFFFFF;
  --bg-input: rgba(255, 255, 255, 0.9);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-active: rgba(0, 0, 0, 0.25);

  --text-primary: #1A1A2E;
  --text-secondary: #555B6E;
  --text-muted: rgba(0, 0, 0, 0.45);
  --text-inverse: #FFFFFF;

  --tab-bg: #FFFFFF;
  --tab-border: rgba(0, 0, 0, 0.1);
  --tab-active-bg: #1A1A2E;
  --tab-active-text: #FFFFFF;
  --tab-active-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

  --tag-bg: #F0F0F5;
  --tag-border: rgba(0, 0, 0, 0.1);

  --shimmer-color: rgba(0, 0, 0, 0.03);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-search: 0 15px 35px rgba(0, 0, 0, 0.12);

  --menu-bg: linear-gradient(to bottom right, #FFFFFF, #F5F5FA);
  --menu-card-bg: rgba(0, 0, 0, 0.04);
  --menu-card-hover: rgba(0, 0, 0, 0.1);
  --menu-grid-glow: linear-gradient(270deg, #E0E0E0, #F5F5F5, #D0D0D0);

  --ping-color: rgba(0, 0, 0, 0.5);
  --header-border: rgba(0, 0, 0, 0.06);

  --img-border: rgba(0, 0, 0, 0.1);
  --footer-border: rgba(0, 0, 0, 0.06);
}

html.force-dark {
  --bg-main: #030303;
  --bg-card: linear-gradient(to bottom right, #010101, #0d0d0d, #010101);
  --bg-surface: #0d0d0d;
  --bg-input: rgba(1, 1, 1, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: #B0BFCF;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-inverse: #030303;

  --tab-bg: #0d0d0d;
  --tab-border: rgba(255, 255, 255, 0.1);
  --tab-active-bg: #FFFFFF;
  --tab-active-text: #030303;
  --tab-active-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);

  --tag-bg: #0d0d0d;
  --tag-border: rgba(255, 255, 255, 0.15);

  --shimmer-color: rgba(255, 255, 255, 0.05);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.8);
  --shadow-card-hover: 0 25px 50px rgba(255, 255, 255, 0.03);
  --shadow-search: 0 20px 40px rgba(0, 0, 0, 0.9);

  --menu-bg: linear-gradient(to bottom right, #111111, #050505);
  --menu-card-bg: rgba(255, 255, 255, 0.05);
  --menu-card-hover: rgba(255, 255, 255, 0.15);
  --menu-grid-glow: linear-gradient(270deg, #333333, #111111, #444444);

  --ping-color: rgba(255, 255, 255, 0.8);
  --header-border: rgba(255, 255, 255, 0.08);

  --img-border: rgba(255, 255, 255, 0.15);
  --footer-border: rgba(255, 255, 255, 0.08);
}

/* Invert logo in light mode so white outline becomes dark */
html.force-light .brand-logo {
  filter: invert(1);
}

html.force-dark .brand-logo {
  filter: none;
}

/* ========== MOBILE PERFORMANCE OPTIMIZATIONS ========== */
/* Heavy backdrop blurs + shimmer sweeps are the main cause of janky
   scrolling on phones. On touch / small screens we drop them and use
   solid surfaces, while keeping the desktop visuals intact. */
@media (max-width: 768px) {
  .vacancy-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* GPU promotion hint for smoother scrolling */
    transform: translateZ(0);
  }

  /* Disable the shimmer sweep overlay on mobile (repaints every frame) */
  .vacancy-card::after {
    display: none;
  }

  /* Snap the filter tabs for a smoother, less "laggy" feel */
  .vacancy-country-filter {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .vacancy-filter-tab {
    scroll-snap-align: center;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vacancy-card,
  .vacancy-card-image,
  .vacancy-filter-tab {
    transition: none !important;
  }
  .vacancy-card::after {
    display: none;
  }
}

/* ==========================================================================
   CUSTOM CHECKBOX & NOTIFICATION OVERRIDES
   ========================================================================== */

/* Force checkboxes to render clearly and beautifully in both themes */
input[type="checkbox"] {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--accent-gold) !important;
  cursor: pointer !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background-color: var(--bg-input) !important;
  vertical-align: middle !important;
  position: relative !important;
}

.checkbox-label-luxury {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  user-select: none !important;
}

