/* --- GLOBAL --- */
:root {
  --primary: #ff6b00;
  --primary-dark: #e65100;
  --dark-bg: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-white: #ffffff;
  --text-grey: #94a3b8;
  --text-dark: #0f172a;
  --font-main: "Plus Jakarta Sans", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- BACKGROUND PARTICLES --- */
.particles span {
  position: fixed;
  bottom: -50px;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
  animation: rise 15s infinite linear;
  z-index: 0;
}
.particles span:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-duration: 10s; background: rgba(255, 107, 0, 0.1); }
.particles span:nth-child(2) { left: 30%; width: 20px; height: 20px; animation-duration: 12s; background: rgba(255, 255, 255, 0.05); }
.particles span:nth-child(3) { left: 70%; width: 60px; height: 60px; animation-duration: 18s; background: rgba(255, 107, 0, 0.08); }
.particles span:nth-child(4) { left: 90%; width: 30px; height: 30px; animation-duration: 9s; background: rgba(255, 255, 255, 0.05); }

@keyframes rise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  position: absolute;
  width: 100%;
  z-index: 100;
}
.logo {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  font-size: 24px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 8%;
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 60%);
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  z-index: 10;
}

.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}
h1 { font-size: 64px; line-height: 1.1; font-weight: 800; margin-bottom: 20px; }
.text-gradient {
  background: linear-gradient(to right, #ff6b00, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
p { font-size: 18px; color: var(--text-grey); margin-bottom: 30px; line-height: 1.6; max-width: 500px; }

/* Hero Cards */
.hero-cards-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.glass-card {
  width: 240px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  text-align: center;
  cursor: pointer;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: 0.4s;
}
.glass-card:hover .card-glow { opacity: 1; }

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}
.icon-signup { background: #3b82f6; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.glass-card h2 { font-size: 18px; margin-bottom: 6px; color: white; }
.glass-card p { font-size: 12px; color: var(--text-grey); margin-bottom: 20px; }

.arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: 0.3s;
}
.glass-card:hover .arrow-circle { background: white; color: var(--primary); }
.glass-card:nth-child(1):hover .arrow-circle { color: #3b82f6; }

.scroll-mouse {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}
.wheel {
  width: 4px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(15px); }
}

/* Animations */
.fade-in-left { animation: fadeInLeft 1s ease forwards; opacity: 0; }
.fade-in-right { animation: fadeInRight 1s ease forwards; opacity: 0; }
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; animation-delay: 1s; }
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- FEATURES SECTION --- */
.features { padding: 100px 8%; background: #ffffff; color: var(--text-dark); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; color: #0f172a; margin-bottom: 15px; }
.section-header .highlight { color: var(--primary); }
.section-header p { color: #64748b; font-size: 18px; margin: 0 auto; max-width: 600px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-item {
  padding: 40px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}
.feature-item:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}
.f-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
}
.color-1 { background: #fff7ed; color: #ff6b00; }
.color-2 { background: #ecfdf5; color: #22c55e; }
.color-3 { background: #eff6ff; color: #3b82f6; }
.feature-item h3 { color: #0f172a; margin-bottom: 10px; font-size: 20px; }
.feature-item p { color: #64748b; font-size: 15px; }

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- MODAL (SIGN IN / SIGN UP) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  border-top: 6px solid var(--primary);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: 0.3s;
}
.modal-close:hover { background: #e2e8f0; color: #0f172a; }

.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { color: #0f172a; font-size: 28px; margin-bottom: 8px; font-weight: 800; }
.modal-header p { color: #64748b; font-size: 14px; margin: 0; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; color: #475569; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.input-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  transition: 0.3s;
  background: #f8fafc;
  font-family: var(--font-main);
  box-sizing: border-box;
}
.input-group input:focus {
  border-color: var(--primary);
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.btn-full {
  width: 100%;
  background: var(--primary);
  color: white;
  display: block;
  padding: 15px;
  border: none;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}
.btn-full:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
}

.modal-footer { text-align: center; margin-top: 20px; font-size: 14px; color: #64748b; }
.modal-footer a { color: var(--primary); font-weight: 700; text-decoration: none; cursor: pointer; }
.modal-footer a:hover { text-decoration: underline; }

/* --- HIRING DASHBOARD FORM LAYOUT --- */
#hiringDashboard { display: none; padding: 100px 8% 50px; position: relative; z-index: 10; }

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.dashboard-header h2 { font-size: 32px; font-weight: 800; color: #0f172a; margin: 0; }
.btn-outline {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-outline:hover { border-color: #ef4444; color: #ef4444; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; width: 100%; }
.full-width-grid { grid-column: span 2; }
.full-width-container { width: 100%; display: block; box-sizing: border-box; }

.upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 30px;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  background: #f8fafc;
  margin-bottom: 20px;
}
.upload-area:hover,
.upload-area.dragover { border-color: var(--primary); background: #fff7ed; }
.upload-icon-container { font-size: 40px; color: var(--primary); }
.upload-text-container p { color: #64748b; font-size: 16px; margin: 0; line-height: 1.4; }
.upload-text-container .subtext { font-size: 13px; margin-top: 4px; }
.upload-text-container strong { color: var(--primary); }
#resumeInput { display: none; }

/* --- PROCESSING ANIMATION --- */
.process-status-view {
  display: none;
  text-align: center;
  padding: 60px 20px;
  animation: fadeInUp 0.5s ease forwards;
}
.process-status-view h3 { font-size: 28px; color: #0f172a; margin-bottom: 15px; font-weight: 800; }
.process-status-view p { font-size: 16px; color: #64748b; line-height: 1.6; margin: 0 auto 30px; max-width: 500px; }

.pl { display: block; width: 9.375em; height: 9.375em; }

.pl__arrows,
.pl__ring-rotate,
.pl__ring-stroke,
.pl__tick {
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pl__arrows { animation-name: arrows42; transform: rotate(45deg); transform-origin: 16px 52px; }
.pl__ring-rotate, .pl__ring-stroke { transform-origin: 80px 80px; }
.pl__ring-rotate { animation-name: ringRotate42; }
.pl__ring-stroke { animation-name: ringStroke42; transform: rotate(-45deg); }
.pl__tick { animation-name: tick42; }
.pl__tick:nth-child(2) { animation-delay: -1.75s; }
.pl__tick:nth-child(3) { animation-delay: -1.5s; }
.pl__tick:nth-child(4) { animation-delay: -1.25s; }
.pl__tick:nth-child(5) { animation-delay: -1s; }
.pl__tick:nth-child(6) { animation-delay: -0.75s; }
.pl__tick:nth-child(7) { animation-delay: -0.5s; }
.pl__tick:nth-child(8) { animation-delay: -0.25s; }

@keyframes arrows42 {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes ringRotate42 {
  from { transform: rotate(0); }
  to { transform: rotate(720deg); }
}
@keyframes ringStroke42 {
  from, to { stroke-dashoffset: 452; transform: rotate(-45deg); }
  50% { stroke-dashoffset: 169.5; transform: rotate(-180deg); }
}
@keyframes tick42 {
  from, 3%, 47%, to { stroke-dashoffset: -12; }
  14%, 36% { stroke-dashoffset: 0; }
}

.success-icon { font-size: 60px; color: #22c55e; margin-bottom: 20px; animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.interview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.interview-card .i-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  font-size: 15px;
}
.interview-card .i-row:last-of-type { border-bottom: none; margin-bottom: 20px; }
.interview-card .i-row span { color: #64748b; }
.interview-card .i-row strong { color: #0f172a; font-weight: 700; text-align: right; }
.join-btn { display: block; text-align: center; width: 100%; margin-top: 10px; box-sizing: border-box; }

/* HR Simulator Panel */
.hr-simulator-panel {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  z-index: 9999;
  border: 2px solid var(--primary);
  color: #0f172a;
  animation: fadeInUp 0.5s ease;
}
.btn-hr-approve {
  background: #22c55e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  width: 100%;
  transition: 0.3s;
}
.btn-hr-approve:hover { background: #16a34a; transform: translateY(-2px); }

/* --- STAFF NAVBAR BUTTON --- */
.staff-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.staff-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* --- ROLE SELECTION CARDS --- */
.text-center { text-align: center; }

.role-cards-container { display: flex; gap: 15px; margin-top: 20px; }

.role-card {
  flex: 1;
  padding: 25px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #f8fafc;
  text-align: center;
}
.role-card:hover {
  border-color: var(--primary);
  background: #fff7ed;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.1);
}
.role-card:nth-child(2):hover {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.1);
}
.role-icon-box {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.sa-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.role-card h3 { color: #0f172a; font-size: 18px; margin-bottom: 5px; }
.role-card p { font-size: 12px; color: #64748b; margin: 0; }


/* ============================================================
   RESPONSIVE BREAKPOINTS — FULLY ENHANCED MOBILE
   ============================================================ */
/* --- MOBILE (max 768px) — FIXED --- */
@media (max-width: 768px) {

  /* Navbar - more compact */
  .navbar {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 10px;
  }
  .logo {
    font-size: 18px;
    padding: 6px 10px;
    flex-shrink: 0;
  }
  .btn-primary {
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .staff-btn {
    padding: 9px 14px;
    font-size: 13px;
    border-width: 1px;
    border-style: solid;
  }

  /* Hero — tighter spacing */
  .hero {
    padding: 0 20px;
    min-height: auto;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding-top: 10px;
    padding-bottom: 20px;
  }
  h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  p {
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 100%;
    line-height: 1.55;
  }
  .badge-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  /* Hero Cards — side-by-side compact instead of stacked */
  .hero-cards-wrapper {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .glass-card {
    width: 50%;
    max-width: none;
    padding: 20px 12px;
    -webkit-tap-highlight-color: rgba(255, 107, 0, 0.1);
  }
  .glass-card:active {
    transform: scale(0.97);
    border-color: rgba(255, 107, 0, 0.5);
  }
  .icon-box {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }
  .glass-card h2 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .glass-card p {
    font-size: 11px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .arrow-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* Hide scroll mouse */
  .scroll-mouse { display: none; }

  /* Features */
  .features { padding: 50px 20px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 14px; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-item {
    padding: 24px 22px;
    border-radius: 18px;
  }
  .feature-item:hover { transform: none; }
  .feature-item:active { transform: scale(0.99); }
  .f-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 16px; }
  .feature-item h3 { font-size: 17px; }
  .feature-item p { font-size: 14px; }

  /* MODAL — proper bottom sheet behavior */
 /* --- MOBILE (max 768px) — MODAL CENTERED --- */
@media (max-width: 768px) {

  /* MODAL — Centered on screen */
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-content {
    border-radius: 20px;
    padding: 32px 24px 28px;
    max-width: 100%;
    width: 100%;
    border-top: 5px solid var(--primary);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
  }
  
  /* Remove the drag handle (was for bottom sheet) */
  .modal-content::before {
    display: none;
  }
  
  .modal-header {
    margin-bottom: 20px;
    padding-top: 0;
  }
  .modal-header h2 { font-size: 22px; margin-bottom: 6px; }
  .modal-header p { font-size: 13px; }
  
  .modal-close {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .input-group { margin-bottom: 16px; }
  .input-group input {
    padding: 13px 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }
  .btn-full {
    padding: 15px;
    font-size: 15px;
    border-radius: 12px;
  }
  .modal-footer { margin-top: 14px; font-size: 13px; }

  /* Role Cards inside modal */
  .role-cards-container {
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }
  .role-card {
    padding: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
  }
  .role-card:hover { transform: none; }
  .role-card:active { transform: scale(0.98); }
  .role-icon-box {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 18px;
    margin: 0;
  }
  .role-card h3 { font-size: 15px; margin-bottom: 2px; }
  .role-card p { font-size: 12px; line-height: 1.3; }
}

/* --- SMALL MOBILE (max 400px) --- */
@media (max-width: 400px) {
  .modal-overlay { padding: 16px; }
  .modal-content { padding: 28px 20px 24px; }
  .modal-header h2 { font-size: 20px; }
}

  /* Role Cards — horizontal compact rows */
  .role-cards-container {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .role-card {
    padding: 14px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
  }
  .role-card:hover { transform: none; }
  .role-card:active { transform: scale(0.98); }
  .role-icon-box {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 18px;
    margin: 0;
  }
  .role-card h3 { font-size: 15px; margin-bottom: 2px; }
  .role-card p { font-size: 12px; line-height: 1.3; }

  /* Dashboard */
  #hiringDashboard { padding: 80px 16px 40px; }
  .dashboard-container {
    padding: 22px 18px 28px;
    border-radius: 18px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }
  .dashboard-header h2 { font-size: 22px; }
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 11px;
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .full-width-grid { grid-column: span 1; }

  .dashboard-container .input-group input {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 10px;
  }
  .dashboard-container .input-group label { font-size: 13px; }

  .upload-area {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 22px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .upload-icon-container { font-size: 32px; }
  .upload-text-container p { font-size: 14px; }
  .upload-text-container .subtext { font-size: 12px; }

  /* Process View */
  .process-status-view { padding: 40px 10px; }
  .process-status-view h3 { font-size: 22px; }
  .process-status-view p { font-size: 14px; }
  .pl { width: 7em; height: 7em; }
  .success-icon { font-size: 48px; }

  /* Interview Card */
  .interview-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .interview-card .i-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
    font-size: 14px;
  }
  .interview-card .i-row strong { text-align: left; }
  .join-btn { padding: 14px; font-size: 15px; }

  /* HR Simulator Panel */
  .hr-simulator-panel {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 18px 18px 0 0;
    border: none;
    border-top: 3px solid var(--primary);
    padding: 18px 22px 26px;
  }
  .btn-hr-approve {
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
  }
}

/* --- SMALL MOBILE (max 400px) --- */
@media (max-width: 400px) {
  .navbar { padding: 12px 14px; }
  .logo { font-size: 16px; padding: 5px 9px; }
  .staff-btn, .btn-primary { padding: 8px 12px; font-size: 12px; }
  
  .hero { padding: 0 16px; padding-top: 72px; }
  h1 { font-size: 28px; }
  p { font-size: 13px; }
  
  .glass-card { padding: 16px 10px; }
  .icon-box { width: 42px; height: 42px; font-size: 18px; margin-bottom: 10px; }
  .glass-card h2 { font-size: 13px; }
  .glass-card p { font-size: 10px; margin-bottom: 10px; }
  .arrow-circle { width: 28px; height: 28px; }
  
  .modal-content { padding: 14px 18px 24px; }
  .modal-header h2 { font-size: 20px; }
  
  .dashboard-container { padding: 18px 14px 24px; }
  .dashboard-header h2 { font-size: 20px; }
  
  .section-header h2 { font-size: 22px; }
  .feature-item { padding: 20px 16px; }
  .interview-card { padding: 18px 14px; }
  .btn-full, .join-btn { font-size: 14px; padding: 13px; }
  
  .role-card { padding: 12px; }
  .role-icon-box { width: 38px; height: 38px; font-size: 16px; }
  .role-card h3 { font-size: 14px; }
  .role-card p { font-size: 11px; }
}

/* --- LANDSCAPE MOBILE --- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 30px;
    min-height: auto;
  }
  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 24px;
    padding-top: 10px;
  }
  h1 { font-size: 26px; }
  p { font-size: 13px; margin-bottom: 16px; }
  .badge-pill { margin-bottom: 10px; }
  
  .hero-cards-wrapper { flex-direction: row; gap: 10px; }
  .glass-card { padding: 14px 10px; }
  .icon-box { width: 38px; height: 38px; font-size: 16px; margin-bottom: 8px; }
  .glass-card h2 { font-size: 13px; }
  .glass-card p { font-size: 10px; margin-bottom: 8px; }
  .arrow-circle { width: 26px; height: 26px; }
  
  .modal-overlay { align-items: center; padding: 16px; }
  .modal-content {
    border-radius: 18px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    max-width: 460px;
  }
  .modal-content::before { display: none; }
}