/* =============================================
   Jobby.co.il - Main Stylesheet
   RTL Hebrew Job Board
   ============================================= */

/* ---- Variables ---- */
:root {
  --brand:        #1a56db;
  --brand-dark:   #1240a8;
  --brand-light:  #e8f0fd;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --success:      #10b981;
  --danger:       #ef4444;
  --warning:      #f59e0b;

  --bg:           #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --border:       #e2e8f0;
  --border-focus: #1a56db;

  --text-1:       #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);

  --font-main:    'Heebo', 'Assistant', sans-serif;
  --font-body:    'Assistant', 'Heebo', sans-serif;

  --container:    1200px;
  --header-h:     68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; top: -999px; right: 8px; z-index: 9999;
  background: var(--brand); color: #fff; padding: 8px 16px;
  border-radius: var(--radius); font-size: 14px;
}
.skip-link:focus { top: 8px; }
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 26px; }
.logo-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 22px;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--text-2); }
.main-nav {
  display: flex; align-items: center; gap: 4px;
  margin-right: auto;
}
.main-nav a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .18s;
  text-decoration: none;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand); }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.nav-premium { background: #fffbeb !important; color: var(--accent-dark) !important; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: block; padding: 10px 16px;
  font-size: 14px; color: var(--text-1);
  text-decoration: none;
  transition: background .15s;
}
.user-dropdown a:hover { background: var(--surface-2); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; padding: 0;
}
.mobile-menu-toggle span {
  display: block; height: 2px; background: var(--text-2);
  border-radius: 2px; transition: .2s;
}
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--surface); z-index: 400;
  padding: 24px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0;
  font-size: 18px; font-weight: 600;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: var(--brand); border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 14px;
  font-family: var(--font-body); font-size: 15px;
  background: var(--surface); color: var(--text-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
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='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23475569'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-hint { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* Alert Messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a3a6e 50%, #1a56db 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; }
.hero-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,.75);
  margin-bottom: 40px; max-width: 600px; margin-inline: auto;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-main);
  font-size: 32px; font-weight: 900; color: #fff;
  display: block;
}
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,.6); }

/* ---- Search Box ---- */
.search-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 8px;
  display: flex; gap: 8px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  max-width: 800px; margin: 0 auto;
}
.search-box .form-control {
  flex: 1; min-width: 160px; border: none;
  background: transparent; padding: 12px 16px;
  font-size: 16px;
}
.search-box .form-control:focus { box-shadow: none; }
.search-box .btn { flex-shrink: 0; padding: 12px 28px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ---- Job Card ---- */
.job-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all .2s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}
.job-card.premium {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fffbeb 0%, var(--surface) 100%);
}
.job-card.premium::before {
  content: '⭐ מומלץ';
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}
.job-company-logo {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.job-card-body { flex: 1; min-width: 0; }
.job-title {
  font-size: 17px; font-weight: 700; color: var(--text-1);
  margin-bottom: 4px; line-height: 1.3;
}
.job-company { font-size: 14px; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.job-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-2);
}
.job-meta-item { display: flex; align-items: center; gap: 4px; }
.job-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-blue   { background: var(--brand-light); color: var(--brand); }
.badge-green  { background: #ecfdf5; color: #065f46; }
.badge-yellow { background: #fffbeb; color: #92400e; }
.badge-gray   { background: var(--surface-2); color: var(--text-2); }
.job-card-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  margin-right: auto;
}
.job-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.save-btn {
  background: none; border: none; font-size: 20px;
  cursor: pointer; padding: 4px; color: var(--text-3);
  transition: color .2s, transform .2s;
}
.save-btn:hover, .save-btn.saved { color: var(--danger); transform: scale(1.2); }

/* ---- Jobs List ---- */
.jobs-grid { display: flex; flex-direction: column; gap: 12px; }

/* ---- Sidebar Filters ---- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 40px 0;
}
.filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.filters-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 20px; color: var(--text-1);
  display: flex; align-items: center; justify-content: space-between;
}
.filter-group { margin-bottom: 24px; }
.filter-group-label {
  font-size: 13px; font-weight: 700;
  color: var(--text-2); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 10px;
}
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; cursor: pointer;
  font-size: 14px; color: var(--text-1);
}
.filter-option input { cursor: pointer; accent-color: var(--brand); }

/* ---- Pagination ---- */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 40px; flex-wrap: wrap;
}
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  text-decoration: none;
  transition: all .15s;
}
.pagination a:hover, .pagination a.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

/* ---- Category Cards ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-1);
  transition: all .2s;
}
.category-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-3px);
  text-decoration: none;
}
.category-icon { font-size: 36px; margin-bottom: 10px; }
.category-name { font-size: 14px; font-weight: 700; }
.category-count { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---- Stats Banner ---- */
.stats-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-main);
  font-size: 36px; font-weight: 900;
  color: var(--brand); display: block;
}
.stat-label { font-size: 14px; color: var(--text-2); }

/* ---- Premium Banner ---- */
.premium-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.premium-banner::before {
  content: '⭐';
  position: absolute; font-size: 120px; opacity: .08;
  top: -20px; right: -20px;
}
.premium-banner h2 {
  font-family: var(--font-main);
  font-size: clamp(22px, 4vw, 36px); font-weight: 900;
  margin-bottom: 12px;
}
.premium-banner p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.premium-features {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.premium-feature { font-size: 14px; font-weight: 600; }
.premium-feature::before { content: '✓ '; }

/* ---- Job Detail ---- */
.job-detail-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.job-detail-title {
  font-family: var(--font-main);
  font-size: clamp(22px, 4vw, 36px); font-weight: 900;
  margin-bottom: 16px;
}
.job-detail-company {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.company-logo-large {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.job-detail-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 15px; color: var(--text-2);
}
.job-detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0;
}
.job-description h2 {
  font-size: 18px; font-weight: 700; margin: 24px 0 12px;
}
.job-description p { margin-bottom: 12px; color: var(--text-2); }
.job-description ul { padding-right: 20px; }
.job-description li { margin-bottom: 8px; color: var(--text-2); }
.job-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.apply-section { text-align: center; }
.apply-section .btn { width: 100%; margin-bottom: 12px; }

/* ---- Dashboard ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.dashboard-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: fit-content;
}
.dashboard-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all .15s;
}
.dashboard-nav a:last-child { border-bottom: none; }
.dashboard-nav a:hover, .dashboard-nav a.active {
  background: var(--brand-light); color: var(--brand);
}
.dashboard-content { min-width: 0; }
.section-title {
  font-family: var(--font-main);
  font-size: 22px; font-weight: 800; margin-bottom: 24px;
}

/* ---- Admin ---- */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
  background: #0f172a;
  padding: 24px 0;
}
.admin-sidebar .admin-logo {
  padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-main); font-weight: 900; font-size: 20px; color: #fff;
}
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 14px; color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .15s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.admin-main { padding: 32px; background: var(--bg); overflow-y: auto; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-title { font-family: var(--font-main); font-size: 24px; font-weight: 800; }
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}
.stat-card-num {
  font-family: var(--font-main); font-size: 32px; font-weight: 900;
  color: var(--brand); display: block;
}
.stat-card-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ---- Table ---- */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 14px;
}
.data-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  font-weight: 700; text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, var(--brand-light) 100%);
  padding: 40px 20px;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  width: 100%; max-width: 480px;
  margin: 0 auto;
}
.auth-title {
  font-family: var(--font-main); font-size: 28px; font-weight: 900;
  text-align: center; margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--text-2); margin-bottom: 32px; }

/* ---- Section Layout ---- */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-main); font-size: clamp(22px, 4vw, 36px); font-weight: 900;
  margin-bottom: 12px;
}
.section-header p { font-size: 17px; color: var(--text-2); max-width: 600px; margin: 0 auto; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }
.text-muted { color: var(--text-2); }
.text-small { font-size: 13px; }
.font-bold { font-weight: 700; }
.tag {
  display: inline-flex; padding: 4px 12px;
  background: var(--surface-2); color: var(--text-2);
  border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
}
.locked-overlay {
  position: relative; overflow: hidden;
}
.locked-overlay::after {
  content: '🔒 זמין למנויי פרימיום';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--text-2);
  backdrop-filter: blur(4px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .job-detail-content { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 50px 0 40px; }
  .search-box { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-stats { gap: 24px; }
  .auth-card { padding: 28px 20px; }
  .premium-banner { padding: 28px 20px; }
  .premium-features { flex-direction: column; gap: 12px; }
  .header-actions .btn-outline { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .job-card { flex-wrap: wrap; }
  .job-card-actions { flex-direction: row; width: 100%; justify-content: space-between; }
}

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

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .4s ease forwards; }
.delay-1 { animation-delay: .1s; opacity: 0; }
.delay-2 { animation-delay: .2s; opacity: 0; }
.delay-3 { animation-delay: .3s; opacity: 0; }
