/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[13].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"DM_Sans","arguments":[{"subsets":["latin"],"weight":["400","500","600","700"],"variable":"--font-dm-sans","display":"swap"}],"variableName":"dmSans"} ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__DM_Sans_0eeb07';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__DM_Sans_Fallback_0eeb07';src: local("Arial");ascent-override: 94.90%;descent-override: 29.66%;line-gap-override: 0.00%;size-adjust: 104.53%
}.__className_0eeb07 {font-family: '__DM_Sans_0eeb07', '__DM_Sans_Fallback_0eeb07';font-style: normal
}.__variable_0eeb07 {--font-dm-sans: '__DM_Sans_0eeb07', '__DM_Sans_Fallback_0eeb07'
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[13].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Instrument_Serif","arguments":[{"subsets":["latin"],"weight":["400"],"style":["normal","italic"],"variable":"--font-display","display":"swap"}],"variableName":"instrumentSerif"} ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: '__Instrument_Serif_1f5468';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/5ece437c7024c161-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Instrument_Serif_1f5468';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/9cc5b37ab1350db7-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__Instrument_Serif_1f5468';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/35f3de0ebb1cfc70-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Instrument_Serif_1f5468';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/e6099e249fd938cc-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Instrument_Serif_Fallback_1f5468';src: local("Times New Roman");ascent-override: 117.94%;descent-override: 36.93%;line-gap-override: 0.00%;size-adjust: 83.94%
}.__className_1f5468 {font-family: '__Instrument_Serif_1f5468', '__Instrument_Serif_Fallback_1f5468';font-weight: 400
}.__variable_1f5468 {--font-display: '__Instrument_Serif_1f5468', '__Instrument_Serif_Fallback_1f5468'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ═══════════════════════════════════════════════════════════════════════════
   TOOLI-job — globals.css
   Premium Purple Dashboard  |  RTL Hebrew  |  Day/Night Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Root Variables & Theme ──────────────────────────────────────────── */

:root {
  /* Primary Accent — Warm Rose Pink (Intelly-inspired) */
  --accent: #C8749A;
  --accent-hover: #B8648A;
  --accent-light: #D890AE;
  --accent-dim: rgba(200, 116, 154, 0.10);
  --accent-gradient: linear-gradient(135deg, #C8749A, #D890AE);
  --accent-gradient-text: linear-gradient(135deg, #C8749A, #D890AE);

  /* Semantic Colors — Warm & Muted */
  --green: #7CB87A;
  --orange: #E8A860;
  --yellow: #D4C05E;
  --red: #D46B6B;
  --teal: #6BB8A8;
  --pink: #D4809E;

  /* Pastel Card Colors */
  --card-yellow: #F2E8B0;
  --card-pink: #E8D0DE;
  --card-lavender: #DDD0EC;
  --card-green: #C8E0C4;
  --card-dark: #1E1D21;

  /* Surfaces — Day (Warm Cream) */
  --bg: #F5F0E5;
  --surface: #FFFFFF;
  --surface-raised: #FAF8F5;
  --border: #DDD8D0;
  --text: #1C1B1F;
  --text-secondary: #6B6670;
  --text-muted: #9E99A3;

  /* Shadows — Warm */
  --shadow-sm: 0 1px 4px rgba(40, 30, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(40, 30, 20, 0.08);
  --shadow-lg: 0 10px 32px rgba(40, 30, 20, 0.10);

  /* Layout */
  --sidenav-width: 240px;
  --sidenav-collapsed: 68px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Font — DM Sans (Intelly-inspired) */
  --font: var(--font-dm-sans), "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sidebar (dark by default in day mode — Intelly style) */
  --sidenav-bg: #1E1D21;
  --sidenav-text: #C8C4CC;
  --sidenav-text-active: #FFFFFF;
  --sidenav-border: #2A282E;
  --sidenav-hover: rgba(255, 255, 255, 0.06);
}

/* Night Theme */
[data-theme="night"] {
  --bg: #14131A;
  --surface: #1E1D25;
  --surface-raised: #26252E;
  --border: #35333D;
  --text: #E8E6EC;
  --text-secondary: #A09BA8;
  --text-muted: #6B6670;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.4);
  --accent-dim: rgba(255, 255, 255, 0.08);
  --card-yellow: #3D3820;
  --card-pink: #3D2838;
  --card-lavender: #2E2840;
  --card-green: #243028;
  --card-dark: #12111A;
  --sidenav-bg: #12111A;
  --sidenav-border: #26252E;
}

/* ── 2. Reset & Global Styles ───────────────────────────────────────────── */

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

html {
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Selection */
::selection {
  background: rgba(200, 116, 154, 0.25);
  color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ── Animations ─────────────────────────────────────────────────────────── */

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes ringProgress {
  from { stroke-dashoffset: 283; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── 3. App Shell + SideNav ─────────────────────────────────────────────── */

.app-shell {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
}

.app-main {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px;
  background: var(--bg);
  transition: padding 0.3s var(--ease);
}

/* ── SideNav ── */

.sidenav {
  width: var(--sidenav-width);
  min-width: var(--sidenav-width);
  height: 100vh;
  background: var(--sidenav-bg);
  border-left: 1px solid var(--sidenav-border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s var(--ease), min-width 0.3s var(--ease);
  box-shadow: none;
  z-index: 50;
  direction: ltr;
  overflow: hidden;
  color: var(--sidenav-text);
}

.sidenav.collapsed {
  width: var(--sidenav-collapsed);
  min-width: var(--sidenav-collapsed);
}

/* Header */
.sidenav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  gap: 8px;
}

.sidenav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidenav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C8749A;
  flex-shrink: 0;
}

.sidenav-logo-text {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--sidenav-text-active);
  white-space: nowrap;
  font-family: var(--font-display), 'Instrument Serif', Georgia, serif;
  font-style: italic;
}

.sidenav-collapse-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidenav-text);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.sidenav-collapse-btn:hover {
  background: var(--sidenav-hover);
  color: var(--sidenav-text-active);
}

/* Nav Links */
.sidenav-nav {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidenav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--sidenav-text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.sidenav-link:hover {
  background: var(--sidenav-hover);
  color: var(--sidenav-text-active);
}

.sidenav-link.active {
  background: #C8749A;
  color: #fff;
  box-shadow: none;
  border-radius: 8px;
}

.sidenav-link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidenav-link-label {
  white-space: nowrap;
  overflow: hidden;
}

/* Collapsed adjustments */
.sidenav.collapsed .sidenav-header {
  padding: 20px 12px 16px;
  justify-content: center;
}

.sidenav.collapsed .sidenav-logo {
  justify-content: center;
}

.sidenav.collapsed .sidenav-nav {
  padding: 8px 8px;
  align-items: center;
}

.sidenav.collapsed .sidenav-link {
  justify-content: center;
  padding: 10px;
  width: 44px;
  height: 44px;
}

.sidenav.collapsed .sidenav-footer {
  padding: 12px 8px;
  align-items: center;
}

.sidenav.collapsed .sidenav-footer-btn {
  justify-content: center;
  padding: 10px;
  width: 44px;
  height: 44px;
}

/* Footer */
.sidenav-footer {
  padding: 12px 12px 20px;
  border-top: 1px solid var(--sidenav-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidenav-footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidenav-text);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.sidenav-footer-btn:hover {
  background: var(--sidenav-hover);
  color: var(--sidenav-text-active);
}

/* ── 4. Home Page ───────────────────────────────────────────────────────── */

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.home-stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.home-stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.home-stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.home-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s var(--ease);
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.home-card-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}

.home-card-link:hover {
  color: var(--accent-hover);
}

.home-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── 5. Jobs Area ───────────────────────────────────────────────────────── */

.jobs-area {
  animation: fadeIn 0.3s var(--ease);
}

.jobs-area input,
.jobs-area select {
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.jobs-area input:focus,
.jobs-area select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.jobs-area input::placeholder {
  color: var(--text-muted);
}

.job-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
  cursor: pointer;
  position: relative;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.job-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  position: relative;
  flex-shrink: 0;
}

.job-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.job-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jobs-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--accent-gradient);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: scaleIn 0.2s var(--ease);
}

.jobs-btn-primary {
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(200, 116, 154, 0.25);
}

.jobs-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.jobs-btn-primary:active {
  transform: translateY(0);
}

.jobs-btn-secondary {
  padding: 10px 20px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.jobs-btn-secondary:hover {
  background: var(--accent-dim);
}

.jobs-btn-ghost {
  padding: 8px 14px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.jobs-btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.jobs-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
}

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

.jobs-action-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}

.jobs-action-card:hover {
  box-shadow: var(--shadow-md);
}

.jobs-detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.jobs-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.jobs-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.jobs-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.jobs-multi-filter {
  position: relative;
}

.jobs-multi-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  animation: fadeIn 0.15s var(--ease);
}

.jobs-multi-clear {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.jobs-multi-clear:hover {
  background: var(--accent-dim);
}

.jobs-multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.jobs-multi-option:hover {
  background: var(--accent-dim);
}

.jobs-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.jobs-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── 6. Mentor Area ─────────────────────────────────────────────────────── */

.mentor-area {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.3s var(--ease);
}

.mentor-greeting-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}

.mentor-layout {
  display: flex;
  gap: 24px;
}

.mentor-chat-container {
  flex: 1 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 500px;
  max-height: 70vh;
}

.mentor-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mentor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mentor-chat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.mentor-chat-status {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mentor-chat-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.mentor-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentor-message {
  display: flex;
  gap: 8px;
  max-width: 80%;
  animation: fadeIn 0.3s var(--ease);
}

.mentor-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.mentor-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}

.mentor-message:not(.user) .mentor-bubble {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom-right: 4px;
}

.mentor-message.user .mentor-bubble {
  background: var(--accent-gradient);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.mentor-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 20px 16px;
}

.mentor-quick-btn {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.mentor-quick-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 116, 154, 0.3);
}

.mentor-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.mentor-input {
  flex: 1 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mentor-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.mentor-input::placeholder {
  color: var(--text-muted);
}

.mentor-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200, 116, 154, 0.3);
}

.mentor-send-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.mentor-skip-btn {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mentor-skip-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.mentor-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: -moz-fit-content;
  width: fit-content;
}

.mentor-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dotPulse 1.4s infinite;
}

.mentor-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.mentor-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Mentor Glance / Side Panel */
.mentor-glance-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  max-width: 300px;
}

.mentor-glance-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.mentor-glance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.mentor-glance-score {
  font-size: 24px;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mentor-glance-stat {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Profile Ring */
.mentor-profile-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mentor-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.mentor-ring-progress {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: ringProgress 1s var(--ease) forwards;
}

.mentor-ring-text {
  position: absolute;
  font-size: 18px;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mentor-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── 7. Ofek Cat Character ──────────────────────────────────────────────── */

.ofek-cat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8749A, #D4C05E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
}

.ofek-thinking {
  animation: bounce 1s infinite;
}

.ofek-face {
  position: relative;
  width: 32px;
  height: 32px;
}

.ofek-antenna {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}

.ofek-antenna::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s infinite;
}

.ofek-ear {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 12px;
  background: #2D2B2E;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
          clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.ofek-ear:first-of-type {
  left: 2px;
}

.ofek-ear:last-of-type {
  right: 2px;
}

.ofek-eyes {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 10px;
}

.ofek-eyes span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.ofek-mouth {
  width: 8px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--yellow);
  margin: 4px auto 0;
}

/* Ofek Floating Button */
.ofek-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8749A, #D890AE);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200, 116, 154, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  z-index: 1000;
  border: none;
}

.ofek-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(200, 116, 154, 0.45);
}

.ofek-floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Ofek Panel */
.ofek-panel {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.25s var(--ease);
}

.ofek-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(200, 116, 154, 0.06), rgba(212, 192, 94, 0.06));
}

.ofek-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ofek-panel-close:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.ofek-mini-ring {
  width: 36px;
  height: 36px;
  position: relative;
}

.ofek-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.ofek-progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent-gradient);
  transition: width 0.5s var(--ease);
}

/* Ofek Messages */
.ofek-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ofek-welcome {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ofek-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: fadeIn 0.3s var(--ease);
}

.ofek-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ofek-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.ofek-msg:not(.user) .ofek-bubble {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}

.ofek-msg.user .ofek-bubble {
  background: var(--accent-gradient);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.ofek-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: -moz-fit-content;
  width: fit-content;
}

.ofek-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dotPulse 1.4s infinite;
}

.ofek-typing span:nth-child(2) { animation-delay: 0.2s; }
.ofek-typing span:nth-child(3) { animation-delay: 0.4s; }

.ofek-quick-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 14px;
}

.ofek-quick-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.ofek-quick-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Ofek Input */
.ofek-input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.ofek-input {
  flex: 1 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ofek-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.ofek-input::placeholder {
  color: var(--text-muted);
}

.ofek-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(200, 116, 154, 0.25);
}

.ofek-send:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.ofek-skip {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 99px;
}

.ofek-skip:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.ofek-complete {
  text-align: center;
  padding: 20px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* ── 8. Home Mentor Hero ────────────────────────────────────────────────── */

.home-mentor-hero {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(200, 116, 154, 0.25);
}

.home-mentor-cta {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.home-mentor-cta:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── 9. Daily Focus ─────────────────────────────────────────────────────── */

.daily-focus-section {
  margin-bottom: 24px;
}

.daily-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px;
}

.daily-focus-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}

.daily-focus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.daily-focus-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.daily-focus-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.daily-focus-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── 10. Apply Confirmation ─────────────────────────────────────────────── */

.apply-confirm-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(200, 116, 154, 0.12);
  margin-bottom: 16px;
  animation: scaleIn 0.25s var(--ease);
}

.apply-confirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.apply-confirm-text {
  flex: 1 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.apply-confirm-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.apply-confirm-yes {
  padding: 8px 20px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(200, 116, 154, 0.25);
}

.apply-confirm-yes:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.apply-confirm-no {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.apply-confirm-no:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── 11. Legacy Theme Toggle ────────────────────────────────────────────── */

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.theme-toggle-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── 12. Media Queries ──────────────────────────────────────────────────── */

@media (max-width: 1500px) {
  .home-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-grid-2col {
    grid-template-columns: 1fr;
  }

  .daily-focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mentor-layout {
    flex-direction: column;
  }

  .mentor-glance-stack {
    max-width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .mentor-glance-card {
    min-width: 220px;
  }

  .jobs-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .app-main {
    padding: 20px;
  }

  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(0);
    transition: transform 0.3s var(--ease), width 0.3s var(--ease);
  }

  .sidenav.collapsed {
    transform: translateX(-100%);
  }

  .home-mentor-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .apply-confirm-banner {
    flex-direction: column;
    text-align: center;
  }

  .apply-confirm-actions {
    width: 100%;
    justify-content: center;
  }

  .ofek-panel {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .jobs-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .home-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .daily-focus-grid {
    grid-template-columns: 1fr;
  }

  .jobs-filter-grid {
    grid-template-columns: 1fr;
  }

  .mentor-chat-container {
    min-height: 400px;
    max-height: 60vh;
  }

  .mentor-glance-stack {
    flex-direction: column;
  }

  .mentor-glance-card {
    min-width: unset;
  }

  .jobs-bulk-bar {
    flex-wrap: wrap;
    font-size: 13px;
  }

  .home-stat-card .stat-number {
    font-size: 22px;
  }

  .app-main {
    padding: 16px;
  }

  .ofek-floating-btn {
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .ofek-panel {
    bottom: 76px;
    max-height: 440px;
  }
}

/* ── 13. Mobile (≤768px, ≤480px, ≤360px) ───────────────────────────────── */

/* Hamburger — default hidden on desktop, shown via mobile breakpoint.
   Positioned on the LEFT in our RTL app because the drawer slides in from the RIGHT;
   placing the toggle on the left keeps it away from the drawer origin and away from
   the content titles which also naturally sit on the right in RTL. */
.mobile-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 201;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(40, 30, 20, 0.18);
  color: var(--text);
}

.mobile-hamburger svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidenav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  }

  .sidenav[data-mobile-open="true"] {
    transform: translateX(0);
  }

  /* On mobile, make sure collapsed state doesn't hide it off-screen (collapsed is desktop concept) */
  .sidenav.collapsed {
    width: var(--sidenav-width);
    min-width: var(--sidenav-width);
  }

  .app-main {
    padding: 12px;
    /* leave room for the fixed hamburger on the left edge */
    padding-top: 64px;
  }

  /* Fixed-width panels → full width on mobile */
  .ofek-panel,
  .tracker-detail-panel {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
  }

  /* Force inline-flex headers with space-between to stack on mobile (home greeting + clock etc.) */
  .app-main > div[style*="space-between"] > div[style*="space-between"],
  .app-main > div > div[style*="space-between"][style*="center"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  /* Oversized inline h1 fontSizes — cap for mobile legibility */
  h1[style*="fontSize: 34"],
  h1[style*="fontSize: 40"],
  h1[style*="fontSize: 48"],
  h1[style*="fontSize: 56"],
  h1[style*="fontSize: 64"],
  h1[style*="fontSize: 72"],
  h1[style*="fontSize: 80"],
  h1[style*="font-size: 34"],
  h1[style*="font-size: 40"],
  h1[style*="font-size: 48"],
  h1[style*="font-size: 56"],
  h1[style*="font-size: 64"],
  h1[style*="font-size: 72"],
  h1[style*="font-size: 80"] {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    line-height: 1.15 !important;
  }

  /* Prevent horizontal overflow — content must not bleed past viewport edges */
  html, body, .app-shell, .app-main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Collapse common inline grid layouts on mobile.
     React converts gridTemplateColumns to grid-template-columns in the DOM, so we target the kebab form. */
  /* 2-col main+sidebar (e.g. 1fr 300px / 300px 1fr) → single column */
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns: 300px 1fr"],
  [style*="grid-template-columns: 320px 1fr"],
  [style*="grid-template-columns: 400px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* auto + 1fr (number+text cards) → stacked */
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: start;
  }
  /* 3-col repeat → 2-col on tablet-phone */
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 4-col repeat → 2-col */
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Oversized inline display numbers (the 84px "15" metric) */
  [style*="font-size: 84"],
  [style*="font-size: 96"],
  [style*="font-size: 120"],
  [style*="fontSize: 84"],
  [style*="fontSize: 96"],
  [style*="fontSize: 120"] {
    font-size: clamp(36px, 9vw, 56px) !important;
  }

  /* Pages that set `height: 100vh` on their root container (e.g. referrals) lock the
     hero + a tiny scroll area. On mobile, release the height constraint so the whole
     page scrolls naturally and the hero stops eating half the viewport. */
  [style*="height: 100vh"] {
    height: auto !important;
    min-height: 100vh !important;
  }

  /* Referrals hero padding — tighter on mobile so stats don't wrap to 3+ lines */
  [style*="padding: \"20px 28px 18px\""],
  [style*="padding:\"20px 28px 18px\""] {
    padding: 12px 10px 10px !important;
  }

  /* Master-detail split pages (jobs, referrals) — on mobile we show the detail
     as a FULL-SCREEN OVERLAY that slides over the list. The list stays untouched
     in the background and reappears when the user taps "← חזרה לרשימה".
     NOTE: React renders inline styles WITHOUT spaces after `:` — match both forms. */
  .detail-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 300 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: var(--bg-base, #faf7f2) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 16px !important;
  }
  /* The sticky back button inside the overlay — ensure it floats above scrolling content */
  .detail-overlay .job-detail-back,
  .detail-overlay .ref-detail-back {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 4px !important;
    background: var(--accent, #d46ba8) !important;
    z-index: 310 !important;
  }
  [style*="display:flex"][style*="overflow:hidden"],
  [style*="display: flex"][style*="overflow: hidden"] {
    flex-direction: column !important;
  }
  /* Jobs: list uses `width: 360` inline when a job is selected */
  [style*="width:360"],
  [style*="width: 360"] {
    width: 100% !important;
    min-height: 0 !important;
  }
  /* Referrals: list uses `flex: 0 0 560px` inline when a referral is selected */
  [style*="flex:0 0 560px"],
  [style*="flex: 0 0 560px"],
  [style*="flex:0 0 540px"],
  [style*="flex: 0 0 540px"],
  [style*="flex:0 0 500px"],
  [style*="flex: 0 0 500px"],
  [style*="flex:0 0 460px"],
  [style*="flex: 0 0 460px"],
  [style*="flex:0 0 420px"],
  [style*="flex: 0 0 420px"],
  [style*="flex:0 0 400px"],
  [style*="flex: 0 0 400px"] {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mentor-chat-container {
    min-height: auto !important;
    max-height: calc(100vh - 120px) !important;
  }

  /* Hamburger visible on mobile */
  .mobile-hamburger {
    display: flex !important;
  }

  /* Grids collapse */
  .home-stats,
  .home-stats-grid,
  .jobs-filter-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .daily-focus-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .app-main {
    padding: 8px;
    padding-top: 64px;
  }

  html {
    font-size: 15px;
  }

  .home-stats,
  .home-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* On small phones: 3-col AND 4-col inline grids → single column */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: clamp(20px, 5vw, 26px);
  }

  h2 {
    font-size: clamp(17px, 4.2vw, 22px);
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .app-main {
    padding: 6px;
  }
}

