/* =========================================================
   ANNA Company Portal – Design System
   ========================================================= */

:root {
  /* Brand */
  --brand-red: #ff3131;
  --brand-red-dark: #e02020;
  --brand-red-soft: #ffe5e5;
  --brand-black: #0a0a0a;
  --brand-white: #ffffff;

  /* Neutrals */
  --gray-50:  #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Semantic */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger:  #dc2626;
  --info:    #2563eb;

  /* ===== LIGHT THEME (default) ===== */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f4f5;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-glass-strong: rgba(255, 255, 255, 0.92);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --card-bg: #ffffff;
  --hero-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #ffe5e5 100%);
  --hero-gradient-soft: linear-gradient(135deg, #ffffff 0%, #ffe5e5 100%);
  --shadow-color: 0, 0, 0;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg-primary: #0b0b10;
  --bg-secondary: #13131a;
  --bg-tertiary: #1c1c25;
  --bg-elevated: #1a1a22;
  --bg-glass: rgba(15, 15, 22, 0.72);
  --bg-glass-strong: rgba(15, 15, 22, 0.92);
  --text-primary: #f5f5f7;
  --text-secondary: #b5b5c0;
  --text-muted: #7a7a88;
  --text-inverse: #0b0b10;
  --border: #27272f;
  --border-strong: #3a3a45;
  --card-bg: #16161e;
  --brand-red-soft: rgba(255, 49, 49, 0.14);
  --hero-gradient: linear-gradient(135deg, #0b0b10 0%, #13131a 55%, rgba(255,49,49,0.18) 100%);
  --hero-gradient-soft: linear-gradient(135deg, #0b0b10 0%, rgba(255,49,49,0.18) 100%);
  --shadow-color: 0, 0, 0;
  color-scheme: dark;
}
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-xl { }

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Container */
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
main { flex: 1; }

/* Smooth theme transition */
html { transition: background-color var(--t-base); }
body, .navbar, .card, .footer, .stats, .company-card, .job-card, .testimonial,
.modal, .form-control, .admin-sidebar, .admin-main, .admin-table-wrap,
.filter-bar, .login-box, .btn, .footer-bottom, .admin-table th, .admin-table tr {
  transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-secondary); }
.lead { font-size: 1.125rem; color: var(--text-secondary); }
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: inline-block;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-alt { background: var(--bg-secondary); }

/* ===== Navbar (React) ===== */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
}
.nav-shell {
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.nav-root.scrolled .nav-shell {
  background: var(--bg-glass-strong);
  box-shadow: 0 6px 24px rgba(var(--shadow-color), 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 76px;
  gap: var(--space-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  position: relative;
}
.nav-brand-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--t-base);
}
.nav-brand-logo img { height: 40px; width: auto; display: block; }
[data-theme="dark"] .nav-brand-logo img { filter: brightness(0) invert(1); }
.nav-brand:hover .nav-brand-logo { opacity: 0.85; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nav-brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 700;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  z-index: 1;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  box-shadow: 0 4px 14px rgba(255, 49, 49, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.nav-theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.nav-theme-toggle:hover { border-color: var(--brand-red); }
.nav-theme-knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #e4e4e7 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform var(--t-base), background var(--t-base);
  color: #f59e0b;
}
[data-theme="dark"] .nav-theme-knob {
  transform: translateX(28px);
  background: linear-gradient(135deg, #1c1c25 0%, #0b0b10 100%);
  color: #fde68a;
}
.nav-theme-toggle svg { width: 14px; height: 14px; }

/* Apply CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(255, 49, 49, 0.35);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.nav-cta:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 49, 49, 0.45);
}
.nav-cta:hover { color: #fff; }

/* Mobile toggle button */
.nav-mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-mobile-toggle:hover { border-color: var(--brand-red); color: var(--brand-red); }
.nav-mobile-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 70;
}
.nav-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 80;
  transform: translateX(100%);
  transition: transform var(--t-base);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.nav-drawer-close {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-drawer-close:hover { color: var(--brand-red); border-color: var(--brand-red); }
.nav-drawer-links {
  list-style: none;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-drawer-link:hover { background: var(--bg-secondary); }
.nav-drawer-link.active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
}
.nav-drawer-link-icon {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 1rem;
}
.nav-drawer-link.active .nav-drawer-link-icon {
  background: rgba(255,255,255,0.2);
}
.nav-drawer-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 960px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t-base);
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,49,49,0.25);
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,49,49,0.35);
}
.btn-secondary {
  background: var(--brand-black);
  color: #fff;
}
.btn-secondary:hover { background: var(--gray-800); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-tertiary); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-tertiary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.85rem; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  background: var(--hero-gradient);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,49,49,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-bottom: var(--space-8); max-width: 560px; font-size: 1.2rem; }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--brand-black) 0%, var(--gray-800) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,49,49,0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,49,49,0.22) 0%, transparent 50%);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 65%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; max-height: 280px; }
  .hero { padding: var(--space-16) 0 var(--space-12); }
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  padding: var(--space-10);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }

/* ===== Section headers ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { font-size: 1.05rem; }

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}
.card:hover {
  border-color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  background: var(--brand-red-soft);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}
.card h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-cards-3, .grid-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-cards-3, .grid-cards-4 { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testimonial {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-red);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
}
.testimonial blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Forms ===== */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-base);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(255,49,49,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M5 7l5 6 5-6H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* ===== Filter bar (jobs) ===== */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-10);
}
@media (max-width: 780px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar > *:last-child { grid-column: 1/-1; } }
@media (max-width: 480px) { .filter-bar { grid-template-columns: 1fr; } }

/* ===== Job listing ===== */
.department-section { margin-bottom: var(--space-12); }
.department-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--brand-red);
}
.department-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-red-soft);
  border-radius: var(--radius-md);
}
.department-header h2 { margin-bottom: var(--space-1); }
.department-header p { font-size: 0.95rem; margin: 0; }
.department-count {
  margin-left: auto;
  background: var(--brand-black);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.job-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.job-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-red { background: var(--brand-red-soft); color: var(--brand-red-dark); }
.badge-black { background: var(--brand-black); color: #fff; }

.job-card-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
  animation: fadeIn 200ms ease;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 300ms ease;
}
.modal-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 1;
}
.modal-body { padding: var(--space-6) var(--space-8); }
.modal-footer {
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  background: var(--bg-secondary);
}
.modal-close {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* ===== Job detail in modal ===== */
.job-detail h2 { margin-bottom: var(--space-3); }
.job-detail .job-meta { margin-bottom: var(--space-5); }
.job-detail h4 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-red);
  font-weight: 700;
}
.job-detail ul { padding-left: 0; list-style: none; }
.job-detail li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}
.job-detail li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand-red);
  font-weight: 700;
}

/* ===== About page specific ===== */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.company-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: all var(--t-base);
}
.company-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.company-card:hover::before { transform: scaleX(1); }
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.company-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}
.company-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: var(--space-3);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--brand-red-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--brand-black);
  color: #d4d4d8;
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.footer-brand img { height: 42px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: #a1a1aa; font-size: 0.95rem; max-width: 360px; }
.footer h4 {
  color: #fff;
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-5);
}
.footer-links a {
  color: #a1a1aa;
  font-size: 0.9rem;
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links a:hover { color: var(--brand-red); }
.footer-links a::before {
  content: "›";
  color: var(--brand-red);
}
.footer-contact p {
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid #27272a;
  text-align: center;
  color: #71717a;
  font-size: 0.85rem;
}
.footer-bottom .heart { color: var(--brand-red); }
.footer-bottom a { color: #d4d4d8; }
.footer-bottom a:hover { color: var(--brand-red); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.hidden { display: none !important; }

/* ===== Alerts ===== */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
  border: 1px solid;
}
.alert-success { background: #dcfce7; color: #166534; border-color: #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* ===== Admin specific ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--brand-black);
  color: #d4d4d8;
  padding: var(--space-8) 0;
}
.admin-sidebar-heading {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #71717a;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-3);
}
.admin-nav {
  list-style: none;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: #d4d4d8;
  font-size: 0.95rem;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: #18181b; color: #fff; }
.admin-nav a.active {
  background: #18181b;
  color: var(--brand-red);
  border-left-color: var(--brand-red);
}

.admin-main { padding: var(--space-8); background: var(--bg-secondary); }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.admin-header h1 { font-size: 1.75rem; }

.admin-table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.admin-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.admin-table tbody tr { transition: background var(--t-fast); }
.admin-table tbody tr:hover { background: var(--bg-secondary); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: var(--space-2); }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: var(--space-2);
}
.status-active { background: var(--success); }
.status-inactive { background: var(--gray-400); }

/* ===== Login box ===== */
.login-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--bg-secondary);
}
.login-box {
  background: var(--bg-elevated);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.login-box h1 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  text-align: center;
}
.login-box p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}

/* ===== Spinner ===== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 48px; height: 48px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 40;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--brand-red-dark); transform: translateY(-2px); }
