/* ═══════════════════════════════════════════════
   ICAPP DESIGN TOKENS (V3 REFINED)
═══════════════════════════════════════════════ */
:root {
  /* — Sidebar / Brand — */
  --ic-blue: #3f51b5;
  --ic-blue-dark: #303f9f;
  --ic-blue-deeper: #283593;
  --ic-blue-light: #5c6bc0;
  --ic-blue-faint: #e8eaf6;
  --ic-blue-muted: #c5cae9;

  /* — CTA colours — */
  --ic-red: #c0392b;
  --ic-red-dark: #a93226;
  --ic-red-light: #e74c3c;
  --ic-teal: #00796b;
  --ic-teal-dark: #00695c;

  /* — Surface & Background — */
  --bg: #f4f5f9;
  --surface: #ffffff;
  --border: #e0e3f0;
  --border-strong: #c5cae9;

  /* — Text — */
  --ink: #1a237e;
  --ink-body: #37474f;
  --ink-muted: #78909c;
  --ink-light: #b0bec5;

  /* — Status — */
  --green: #2e7d32;
  --green-bg: #e8f5e9;
  --green-border: #a5d6a7;
  --amber: #e65100;
  --amber-bg: #fff3e0;
  --amber-border: #ffcc80;
  --blue-badge: #1565c0;
  --blue-badge-bg: #e3f2fd;
  --blue-badge-bd: #90caf9;

  /* — Shadows — */
  --shadow-sm: 0 1px 3px rgba(63, 81, 181, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(63, 81, 181, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(63, 81, 181, 0.18), 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-modal: 0 24px 80px rgba(26, 35, 126, 0.22), 0 6px 20px rgba(0, 0, 0, 0.12);

  --sidebar-w: 230px;
  --topbar-h: 52px;
  --r: 8px;
  --r-sm: 5px;
}

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

html {
  font-size: 20px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--ink-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button {
  font-family: 'Nunito Sans', inherit;
}

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--ic-blue);
  display: flex;
  align-items: center;
  padding: 0 1rem 0 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.topbar-toggle {
  width: var(--topbar-h);
  height: var(--topbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 14px;
}

.topbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.sidebar-open .topbar-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.sidebar-open .topbar-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.sidebar-open .topbar-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-brand {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-right: auto;
  white-space: nowrap;
}

.topbar-brand small {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  line-height: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tb-search-icon {
  position: absolute;
  left: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  pointer-events: none;
}

.tb-search {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 10px 6px 28px;
  color: white;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.82rem;
  width: 220px;
  outline: none;
  transition: all 0.2s;
}

.tb-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.tb-search:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  width: 260px;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-tb-submit {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--ic-red);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4);
}

.btn-tb-submit:hover {
  background: var(--ic-red-dark);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.5);
}

/* ═══════════════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════════════ */
.layout {
  display: flex;
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--ic-blue);
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* Collapsed state (desktop only) */
body.sidebar-collapsed .sidebar {
  width: 52px;
}

body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .sidebar-cta,
body.sidebar-collapsed .sidebar-section-title {
  display: none;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
}

body.sidebar-collapsed .nav-icon {
  margin: 0;
  font-size: 16px;
}

body.sidebar-collapsed .sidebar-divider {
  margin: 4px 8px;
}

/* ── Nav sections ── */
.sidebar-section {
  padding: 0.6rem 0 0.3rem;
}

.sidebar-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 14px 4px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 500;
  border-left-color: #ffffff;
}

.nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
}

.nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-badge.active-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ic-blue);
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 14px;
}

.sidebar-spacer {
  flex: 1;
}

/* Sidebar CTA block */
.sidebar-cta {
  margin: 0.8rem 0.8rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-sm);
  padding: 0.9rem;
  overflow: hidden;
  transition: all 0.3s;
}

.sidebar-cta p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.btn-sidebar-submit {
  width: 100%;
  background: var(--ic-red);
  color: white;
  border: none;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4);
}

.btn-sidebar-submit:hover {
  background: var(--ic-red-dark);
}

/* User row */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.15s;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.user-plan {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

/* Overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--topbar-h);
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.sidebar-overlay.visible {
  display: block;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.content {
  padding: 1.5rem 1.6rem 3rem;
  flex: 1;
}

/* ── Page tabs ── */
.tabs-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.4rem;
  gap: 0;
}

.tab {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tab:hover {
  color: var(--ic-blue);
}

.tab.active {
  color: var(--ic-blue);
  border-bottom-color: var(--ic-blue);
  font-weight: 700;
}

.tab-count {
  background: var(--ic-blue-faint);
  color: var(--ic-blue);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ── Filter row ── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 24px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip:hover {
  border-color: var(--ic-blue);
  color: var(--ic-blue);
  background: var(--ic-blue-faint);
}

.filter-chip.active {
  background: var(--ic-blue);
  border-color: var(--ic-blue);
  color: white;
  font-weight: 700;
}

.filter-sep {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
}

.sort-select {
  margin-left: auto;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-body);
  background: var(--surface);
  outline: none;
  cursor: pointer;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-count {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════
   JOB CARDS
═══════════════════════════════════════════════ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: fadeCard 0.4s ease both;
}

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

.job-card:hover .card-role {
  color: var(--ic-blue);
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ic-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.job-card:hover::before {
  transform: scaleX(1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.company-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--ic-blue-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ic-blue);
  flex-shrink: 0;
}

.card-company {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.card-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.2s;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.7rem;
}

.tag {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-domain {
  background: var(--ic-blue-faint);
  color: var(--ic-blue);
}

.tag-loc {
  background: #f5f5f5;
  color: var(--ink-muted);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

.cstat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.cstat-val {
  font-weight: 700;
  color: var(--ink-body);
}

.card-status {
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sp-ready {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.sp-process {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.sp-queued {
  background: var(--ic-blue-faint);
  color: var(--ic-blue);
  border: 1px solid var(--ic-blue-muted);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.btn-prepare {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--ic-teal);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 121, 107, 0.35);
  text-decoration: none;
}

.btn-prepare:hover {
  background: var(--ic-teal-dark);
  box-shadow: 0 3px 10px rgba(0, 121, 107, 0.45);
}

.btn-play-submission {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(231, 76, 60, 0.35);
  text-decoration: none;
  width: 50%;
}

.btn-play-submission:hover {
  background: #c0392b;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.45);
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  background: #9b59b6;
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(155, 89, 182, 0.35);
  width: 50%;
}

.btn-copy-link:hover {
  background: #8e44ad;
  box-shadow: 0 3px 10px rgba(155, 89, 182, 0.45);
}

.btn-view-desc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ic-blue);
  border: 1.5px solid var(--ic-blue-muted);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-view-desc:hover {
  background: var(--ic-blue-faint);
  border-color: var(--ic-blue);
}

/* ═══════════════════════════════════════════════
   HERO CARD
═══════════════════════════════════════════════ */
.hero-card {
  background: linear-gradient(135deg, #1a237e 0%, #3f51b5 55%, #5c6bc0 100%);
  border-radius: 12px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 35, 126, 0.28);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 80px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-icon-col {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.hero-text-col {
  flex: 1;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.hero-headline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.hero-headline em {
  font-style: normal;
  color: #ffd54f;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  padding: 12px 28px;
  background: #ffd54f;
  color: #1a237e;
  border: none;
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary:hover {
  background: #ffe082;
  transform: translateY(-1px);
}

.hero-btn-ghost {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── SPIN ─── */
.spin {
  display: inline-block;
  animation: spin 1.2s linear infinite;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r);
  color: var(--ink-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

/* ── Buttons shared ── */
.btn-primary {
  padding: 10px 16px;
  background: var(--ic-blue);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(63, 81, 181, 0.35);
}

.btn-primary:hover {
  background: var(--ic-blue-dark);
}

.btn-icapp-login {
  width: 100%;
  padding: 10px 16px;
  background: var(--ic-blue);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(63, 81, 181, 0.35);
}

.btn-icapp-login:hover {
  background: var(--ic-blue-dark);
}

/* Flash messages */
.alert {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeCard {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE (V3 Refined)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .tb-search {
    width: 160px;
  }

  .tb-search:focus {
    width: 190px;
  }
}

@media (max-width: 700px) {

  /* Sidebar becomes off-canvas on mobile */
  body:not(.sidebar-open) .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
  }

  .tb-search-wrap {
    display: none;
  }

  .hero-icon-col {
    display: none;
  }

  .minput {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }

  .btn-icapp-login {
    padding: 12px !important;
    font-size: 1rem !important;
  }

  .content {
    padding: 1.2rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .topbar-right {
    gap: 0.3rem;
  }
}