/* ═══════════════════════════════════════════════════════════
   Recrut PL — Premium Dark + iOS Clean
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  /* Background layers */
  --bg:          #0a0a0a;
  --bg-1:        #111113;
  --bg-2:        #18181b;
  --bg-3:        #1f1f23;

  /* Surfaces (glass) */
  --surface:     rgba(255, 255, 255, 0.045);
  --surface-2:   rgba(255, 255, 255, 0.07);
  --surface-3:   rgba(255, 255, 255, 0.10);

  /* Borders */
  --border:      rgba(255, 255, 255, 0.07);
  --border-2:    rgba(255, 255, 255, 0.12);
  --border-3:    rgba(255, 255, 255, 0.18);

  /* Gold palette */
  --gold:        #d4a853;
  --gold-light:  #f0cc7a;
  --gold-dim:    rgba(212, 168, 83, 0.12);
  --gold-border: rgba(212, 168, 83, 0.28);
  --gold-glow:   rgba(212, 168, 83, 0.15);

  /* Hot / urgent */
  --hot:         #e05c5c;
  --hot-dim:     rgba(224, 92, 92, 0.12);
  --hot-border:  rgba(224, 92, 92, 0.32);

  /* Text */
  --text:        #f2f2f3;
  --text-2:      #9a9a9e;
  --text-3:      #55555a;

  /* Radii */
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   20px;
  --r-xl:   24px;

  /* Shadows */
  --shadow-card:  0 1px 0 rgba(255,255,255,0.06) inset,
                  0 12px 32px rgba(0,0,0,0.55);
  --shadow-float: 0 20px 60px rgba(0,0,0,0.7),
                  0 1px 0 rgba(255,255,255,0.08) inset;

  /* Layout */
  --nav-h:   62px;
  --safe-t:  env(safe-area-inset-top, 0px);
  --safe-b:  env(safe-area-inset-bottom, 0px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ── App shell ── */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}

/* ── Screens ── */
.screen {
  display: none;
  padding: 0 20px 32px;
  animation: screenIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.screen.active {
  display: block;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   HOME — Hero
══════════════════════════════════════ */
.hero {
  padding: 16px 0 24px;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(160deg, var(--text) 50%, var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0;
}

/* Lang switcher — pill group */
.lang-segment {
  display: flex;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-shrink: 0;
  gap: 2px;
}
.lang-btn {
  min-width: 34px;
  padding: 5px 9px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--gold-dim);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-border);
}

/* ── Search ── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.search {
  flex: 1;
  height: 46px;
  padding: 0 16px 0 42px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search::placeholder { color: var(--text-3); }
.search:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* ── Sections ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-3);
}
.section-title em { font-style: normal; color: var(--gold); }
.section-title--hot em { color: var(--hot); }

/* ── Horizontal carousel ── */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px 32px;
  padding: 4px 20px 8px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    #000 20px,
    #000 calc(100% - 48px),
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0,
    #000 20px,
    #000 calc(100% - 48px),
    transparent 100%);
}
.scroll-x::-webkit-scrollbar { display: none; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════
   JOB CARDS
══════════════════════════════════════ */
.job-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.18s,
              box-shadow 0.18s;
  box-shadow: var(--shadow-card);
}
.job-card:active {
  transform: scale(0.975);
}

/* Left accent bar */
.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 3px 0 0 3px;
  transition: background 0.2s;
}
.job-card--hot::before   { background: var(--hot); }
.job-card--premium::before { background: var(--gold); }

/* Hot card glow — everywhere */
.job-card--hot {
  border-color: var(--hot-border);
  box-shadow: var(--shadow-card),
              0 0 0 1px var(--hot-border),
              0 6px 24px rgba(224, 92, 92, 0.12);
}
.job-card--hot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(224,92,92,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Premium card glow — everywhere */
.job-card--premium {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-card),
              0 0 0 1px var(--gold-border),
              0 6px 24px var(--gold-glow);
}
.job-card--premium::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212,168,83,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Carousel card */
.job-card--carousel {
  flex: 0 0 260px;
  width: 260px;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px 20px;
  scroll-snap-align: start;
}
/* Stronger glow in carousel */
.job-card--carousel.job-card--hot {
  box-shadow: var(--shadow-card),
              0 0 0 1px var(--hot-border),
              0 8px 36px rgba(224, 92, 92, 0.18);
}
.job-card--carousel.job-card--premium {
  box-shadow: var(--shadow-card),
              0 0 0 1px var(--gold-border),
              0 8px 36px rgba(212, 168, 83, 0.18);
}

/* List card — fixed two-row layout */
.job-card--list {
  width: 100%;
  padding: 14px 16px 12px 20px;
  display: flex;
  flex-direction: column;
  height: 108px;
}
.job-card--list:active {
  background: var(--bg-2);
}

/* Row 1: icon + title/company + salary/badges */
.job-card__list-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.job-card__list-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.job-card__list-info .job-card__title {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.job-card__list-info .job-card__company {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row 2: meta + tags — single line */
.job-card__list-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  overflow: hidden;
}
.job-card__list-bottom .job-card__meta {
  flex-shrink: 0;
  margin-top: 0;
  white-space: nowrap;
}
.job-card__list-bottom .job-card__tags {
  flex: 1;
  margin-top: 0;
  overflow: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.job-card__list-bottom .job-card__tags .tag {
  flex-shrink: 0;
}

/* Right column (salary + badges) */
.job-card__right {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Vacancy icon box */
.vacancy-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.vacancy-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.job-card--hot .vacancy-icon {
  color: var(--hot);
  border-color: var(--hot-border);
  background: var(--hot-dim);
  box-shadow: 0 0 12px rgba(224, 92, 92, 0.15);
}
.job-card--premium .vacancy-icon {
  color: var(--gold-light);
  border-color: var(--gold-border);
  background: var(--gold-dim);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Badges row below salary */
.job-card__badges-right {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* Card layout */
.job-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.job-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

/* Salary — primary info */
.job-card__salary-block {
  text-align: right;
  flex-shrink: 0;
  align-self: flex-start;
}
.job-card__salary {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
}
.job-card__salary span {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
}
/* Larger salary in carousel cards */
.job-card--carousel .job-card__salary {
  font-size: 18px;
}

/* Accent salary on hot/premium */
.job-card--hot .job-card__salary {
  color: #fff;
}
.job-card--premium .job-card__salary {
  color: var(--gold-light);
}

/* Badges */
.job-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
}
.badge.hot {
  background: var(--hot-dim);
  color: var(--hot);
  border: 1px solid var(--hot-border);
  animation: hotPulse 2.5s ease-in-out infinite;
}
.badge.premium {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* Card body */
.job-card__main { flex: 1; min-width: 0; }
.job-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.job-card__company {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-3);
}
.job-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.tag.on {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

/* Staggered entrance */
.stack .job-card {
  animation: cardIn 0.32s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════ */
.actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.contact-manager-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 16px 16px 24px;
  padding: 14px 20px;
  background: transparent; border: 1.5px solid var(--gold);
  border-radius: 14px; color: var(--gold);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, color .15s;
}
.contact-manager-btn:active {
  background: var(--gold); color: #000;
}
.contact-manager-btn svg { flex-shrink: 0; stroke: currentColor; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.55; pointer-events: none; }

/* Primary — gold gradient + shimmer */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b8893a 100%);
  color: #1a1100;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3),
              0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%);
  animation: shimmer 2.8s ease infinite;
}
@keyframes shimmer {
  0%   { left: -80%; }
  60%, 100% { left: 120%; }
}
.btn-primary:active {
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.2);
}

/* Secondary — glass */
.btn-secondary {
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--border-3);
  color: var(--text);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--border-3);
  color: var(--text);
}

/* Small */
.btn-sm { height: 42px; font-size: 14px; }

/* ══════════════════════════════════════
   OFFER BANNER
══════════════════════════════════════ */
.offer-banner {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  cursor: pointer;
}
.offer-banner::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
  pointer-events: none;
}
.offer-banner h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  position: relative;
}
.offer-banner p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  position: relative;
}

/* ══════════════════════════════════════
   TOPBAR & BACK
══════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 14px;
  margin: 0 -20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.topbar h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  flex: 1;
}
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.back-btn:active { background: var(--bg-3); }
.back-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════
   CHIPS / TABS
══════════════════════════════════════ */
.chips, .tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar,
.tabs::-webkit-scrollbar { display: none; }

.chip, .tab, .sort-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.chip.active, .tab.active, .sort-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-glow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* Filter button */
.filter-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-btn svg { width: 18px; height: 18px; }
.filter-btn.active {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-dim);
}
.filter-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1100;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ══════════════════════════════════════
   DETAIL SCREEN
══════════════════════════════════════ */
.detail-hero {
  padding: 22px 20px;
  margin-bottom: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.detail-hero .job-card__badges { margin-bottom: 14px; }
.detail-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.detail-company {
  font-size: 14px;
  color: var(--text-2);
}
.detail-salary {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 18px 0 14px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-salary small {
  font-size: 18px;
  font-weight: 600;
}

/* Panels */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 10px;
}
.panel-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 10px;
}
.panel--accent {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, var(--bg-1) 80%, rgba(212,168,83,0.04));
}
.panel--accent .panel-label { color: var(--gold); }
.panel p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
}

/* Apply form */
.form-panel {
  margin-top: 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.form-panel .panel-label {
  color: var(--gold-light);
  font-size: 11px;
  margin-bottom: 18px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.field input, .field-hint ~ input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* ══════════════════════════════════════
   SUCCESS SCREEN
══════════════════════════════════════ */
.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.success-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-light);
  stroke-width: 2.5;
  fill: none;
}
.success-icon svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.45s ease-out 0.35s forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* ══════════════════════════════════════
   OFFERS
══════════════════════════════════════ */
.offer-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.offer-card:hover { border-color: var(--border-2); }
.offer-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.offer-card p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   NAV BAR — Glass + dot indicator
══════════════════════════════════════ */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
  padding: 8px 4px 4px;
  position: relative;
}
.nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-btn span {
  font-size: 10px;
  transition: color 0.15s;
}
/* Active dot indicator */
.nav-btn.active {
  color: var(--gold-light);
}
.nav-btn.active svg {
  stroke-width: 2.2;
  transform: translateY(-1px);
}
.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* Center "Vacancies" button — elevated bubble */
.nav-btn--center {
  position: relative;
}
.nav-btn--center .nav-btn__bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-btn--center svg {
  width: 24px;
  height: 24px;
}
.nav-btn--center.active .nav-btn__bubble {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  box-shadow: 0 -4px 20px rgba(212,175,55,0.2);
}
.nav-btn--center.active::after {
  bottom: 2px;
}

/* ══════════════════════════════════════
   FILTER MODAL
══════════════════════════════════════ */
.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
}
.filter-modal.hidden { display: none; }
.filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.filter-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 88vh;
  background: var(--bg-1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 1px solid var(--border-2);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-float);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.filter-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.14);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.filter-close {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.filter-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filter-sheet__footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  padding-bottom: calc(14px + var(--safe-b));
  border-top: 1px solid var(--border);
}
.filter-sheet__footer .btn {
  flex: 1;
  height: 48px;
  font-size: 15px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-sep { color: var(--text-3); font-size: 14px; }
.filter-input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.filter-input:focus { border-color: var(--gold-border); }
.filter-input::placeholder { color: var(--text-3); }

.filter-shifts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-shift-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s, box-shadow 0.12s;
}
.filter-shift-chip.active {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold-light);
  box-shadow: 0 0 6px var(--gold-glow);
}

/* Toggle switch */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  padding: 5px 0;
  gap: 12px;
}
.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s;
}
.toggle-switch.on {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  box-shadow: 0 0 8px var(--gold-glow);
}
.toggle-switch.on::after {
  transform: translateX(22px);
  background: var(--gold-light);
}

/* ══════════════════════════════════════
   ADMIN
══════════════════════════════════════ */
.admin-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 10px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat-box span {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.admin-tab {
  height: 38px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-tab.active {
  background: var(--gold-dim);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-border);
}

/* Vacancy Active / Archive subtabs */
.admin-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 3px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.admin-subtab {
  flex: 1;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-subtab.active {
  background: var(--bg-1);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-2);
}

.admin-form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.admin-form-textarea:focus { border-color: var(--gold-border); }
.admin-form-textarea::placeholder { color: var(--text-3); }

.admin-add-btn { margin-bottom: 14px; }

.admin-form {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}
.admin-form .field { margin-bottom: 12px; }
.admin-form textarea,
.admin-form select,
.admin-form input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}
.admin-form select { height: 46px; resize: none; }
.admin-form input:not([type="checkbox"]):not([type="hidden"]) { height: 46px; resize: none; padding: 0 14px; }
.admin-form textarea:focus,
.admin-form select:focus,
.admin-form input:focus {
  outline: none;
  border-color: var(--gold-border);
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.admin-checks label:has(input:checked) {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
}
.admin-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin: 0;
}
.admin-check-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  cursor: pointer;
}
.admin-check-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin: 0;
}

.admin-list { display: flex; flex-direction: column; gap: 8px; }

.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.15s;
}
.admin-row:hover { border-color: var(--border-2); }
.admin-row .title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}
.admin-row .title small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.admin-row--muted { opacity: 0.5; }

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle label {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.push-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.push-btn:hover { background: rgba(212,168,83,0.2); }

.admin-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.admin-mini-btn:hover { border-color: var(--border-3); color: var(--text-2); }

.owner-only.hidden { display: none !important; }

.admin-filter-select,
.app-status-select {
  height: 36px;
  padding: 0 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.admin-filter-select:focus,
.app-status-select:focus {
  outline: none;
  border-color: var(--gold-border);
}
.admin-filter-select { width: 100%; margin-bottom: 12px; }
.app-status-select { min-width: 120px; }

.field-hint {
  font-size: 12px;
  color: var(--text-3);
  margin: -4px 0 10px;
}

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shift-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.shift-check:has(input:checked) {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
}
.shift-check input { margin-top: 2px; accent-color: var(--gold); }

/* ══════════════════════════════════════
   ICON PICKER (admin)
══════════════════════════════════════ */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.icon-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-3);
  cursor: pointer;
  font-size: 9px;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  text-align: center;
  line-height: 1.2;
}
.icon-picker-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.icon-picker-btn.active,
.icon-picker-btn:active {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
}
.icon-picker-btn.active svg { stroke: var(--gold-light); }

/* ══════════════════════════════════════
   SKELETON
══════════════════════════════════════ */
.skeleton {
  background: var(--bg-2);
  background-image: linear-gradient(90deg,
    var(--bg-2) 0%,
    var(--bg-3) 50%,
    var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.6s linear infinite;
  border-radius: var(--r);
  min-height: 110px;
}
@keyframes skelShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton--carousel {
  flex: 0 0 260px;
  min-height: 152px;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  top: calc(14px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 20px));
  width: calc(100% - 40px);
  max-width: 440px;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-3);
  border-radius: var(--r);
  font-size: 14px;
  z-index: 400;
  box-shadow: var(--shadow-float);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   DEV BANNER
══════════════════════════════════════ */
.dev-banner {
  background: rgba(60, 20, 0, 0.9);
  padding: 8px 12px;
  font-size: 12px;
  color: #ffb380;
  text-align: center;
}

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.hidden { display: none !important; }
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 14px;
}

/* ── Broadcast tab ── */
.bc-type-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.bc-type-chips .chip { flex: 1; text-align: center; }

#bc-item-group.hidden { display: none; }

.bc-btn-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.bc-btn-row input,
.bc-btn-row select {
  height: 40px;
  padding: 0 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.bc-btn-row input:focus,
.bc-btn-row select:focus {
  outline: none;
  border-color: var(--gold-border);
}
.bc-btn-label { min-width: 0; }
.bc-btn-type-sel { width: 100px; }
.bc-btn-target { min-width: 0; }
.bc-btn-target input,
.bc-btn-target select { width: 100%; }
.bc-btn-remove {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255,59,48,0.15);
  color: #ff3b30;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.bc-geo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.bc-geo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.bc-geo-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

@media (max-width: 420px) {
  .bc-btn-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .bc-btn-label { grid-column: 1 / -1; }
  .bc-btn-remove { grid-row: 1; grid-column: 2; justify-self: end; }
}

/* ── Offer detail ── */
.offer-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px;
  background: var(--card);
  border-radius: var(--radius);
  margin: 12px 0;
}
.offer-detail-hero__text {
  flex: 1;
  min-width: 0;
}
.offer-detail-hero__text .detail-title {
  margin-top: 8px;
}
.offer-detail-hero__text .detail-company {
  margin-top: 4px;
  color: var(--text-2);
}
.offer-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--bg-2);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-avatar-emoji {
  font-size: 32px;
  line-height: 1;
}
.offer-detail-action {
  padding: 16px 0;
  text-align: center;
}
.offer-detail-action .btn {
  display: inline-block;
  min-width: 200px;
  text-decoration: none;
  text-align: center;
}

.offer-card--clickable {
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.offer-card--clickable:active {
  transform: scale(0.98);
}
.offer-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.offer-card__info {
  flex: 1;
  min-width: 0;
}
.offer-card__desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.offer-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-2);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-card__avatar .offer-avatar-emoji {
  font-size: 24px;
}

/* ── Upload row ── */
.upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.upload-row input[type="url"] { flex: 1; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .15s;
}
.upload-btn:active { background: var(--border); }
.upload-preview {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 120px;
}
.upload-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ── Import panel ── */
.import-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.import-section:last-child { border-bottom: none; }
.import-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.import-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 12px;
  line-height: 1.4;
}
.import-filename {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.upload-label {
  cursor: pointer;
  flex-shrink: 0;
}
.import-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}
.import-result-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
#import-json-textarea {
  width: 100%;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  resize: vertical;
}

/* ══════════════════════════════════════
   CRM SCREEN
══════════════════════════════════════ */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.crm-stat {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 4px;
}
.crm-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
}
.crm-stat small {
  font-size: 11px;
  color: var(--text-3);
}
.crm-stat--warn {
  border-color: var(--gold-border);
}
.crm-stat--warn .crm-stat__num {
  color: var(--gold-light);
}

.crm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.crm-tab {
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.crm-tab.active {
  background: var(--gold-dim);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-border);
}

.crm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  transition: border-color 0.2s;
}
.crm-card--overdue {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.06);
}
.crm-card--verified {
  border-color: #2a7a3a;
  background: rgba(42, 122, 58, 0.06);
}
.crm-card--rejected {
  border-color: #7a2a2a;
  background: rgba(122, 42, 42, 0.06);
}

.crm-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.crm-card__info {
  flex: 1;
  min-width: 0;
}
.crm-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
}
.crm-card__vacancy {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.crm-card__agency {
  font-size: 12px;
  color: var(--gold-light);
  margin-top: 2px;
}
.crm-card__dates {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.crm-card__dates span {
  margin-right: 10px;
}
.crm-card__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.crm-card__badge--overdue {
  background: rgba(201, 162, 39, 0.2);
  color: #e8c340;
}
.crm-card__badge--days {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-3);
}

.crm-card__body {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.crm-card__body.open {
  display: block;
}
.crm-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.crm-card__row label {
  color: var(--text-3);
  font-size: 12px;
}
.crm-card__row span, .crm-card__row a {
  color: var(--text-1);
}
.crm-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.crm-card__actions select,
.crm-card__actions input {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-1);
  font-size: 13px;
  padding: 0 10px;
  font-family: inherit;
}
.crm-card__actions select {
  flex: 1;
  min-width: 120px;
}
.crm-card__actions input[type="date"] {
  flex: 1;
  min-width: 130px;
}
.crm-card__note {
  margin-top: 8px;
}
.crm-card__note textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-1);
  font-size: 13px;
  padding: 8px 10px;
  font-family: inherit;
  resize: vertical;
}
.crm-card__save {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

/* ── Admin Messages / Chat ── */
.msg-threads-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px;
}
.msg-threads-search-wrap svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.msg-threads-search {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-1); font-size: 14px; font-family: inherit;
}
.msg-threads-search::placeholder { color: var(--text-3); }

.msg-threads { display: flex; flex-direction: column; gap: 2px; }

.msg-thread {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface); cursor: pointer;
  transition: background .15s;
}
.msg-thread:hover { background: var(--surface-2); }

.msg-thread__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-3); display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--text-2);
  flex-shrink: 0;
}

.msg-thread__body { flex: 1; min-width: 0; }

.msg-thread__name {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.msg-thread__preview {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.msg-thread__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}

.msg-thread__time { font-size: 11px; color: var(--text-3); }

.msg-thread__badge {
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--gold); color: #000;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.msg-chat { display: flex; flex-direction: column; height: calc(100vh - 140px); }

.msg-chat__header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 12px; border-bottom: 1px solid var(--border);
}
.msg-chat__title { min-width: 0; }
.msg-chat__title strong {
  display: block; font-size: 15px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-chat__title small { font-size: 11px; color: var(--text-3); }

.msg-chat__body {
  flex: 1; overflow-y: auto; padding: 12px 0;
  display: flex; flex-direction: column; gap: 6px;
}

.msg-bubble {
  max-width: 80%; padding: 8px 12px; border-radius: 14px;
  font-size: 14px; line-height: 1.45; word-break: break-word;
  position: relative;
}
.msg-bubble--out {
  align-self: flex-end; background: var(--gold); color: #000;
  border-bottom-right-radius: 4px;
}
.msg-bubble--in {
  align-self: flex-start; background: var(--surface-2); color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.msg-bubble__time {
  font-size: 10px; opacity: .6; margin-top: 2px; text-align: right;
}

.msg-chat__footer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 0 4px; border-top: 1px solid var(--border);
}
.msg-chat__footer textarea {
  flex: 1; resize: none; border: 1px solid var(--border-2);
  border-radius: 18px; padding: 8px 14px;
  background: var(--bg-2); color: var(--text-1);
  font-size: 14px; font-family: inherit;
  max-height: 100px; line-height: 1.4;
}
.msg-chat__footer textarea:focus { outline: none; border-color: var(--gold); }
.msg-chat__footer .btn {
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
}

/* ── Admin Users list ── */
.user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface); margin-bottom: 4px;
}
.user-row__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-2); flex-shrink: 0;
}
.user-row__info { flex: 1; min-width: 0; }
.user-row__name {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-row__meta {
  font-size: 12px; color: var(--text-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-row__actions { display: flex; gap: 6px; flex-shrink: 0; }
.user-row__actions .btn { padding: 4px 10px; font-size: 12px; }
.user-row__role {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-2); flex-shrink: 0;
}
.user-row__role--staff { background: rgba(201,169,89,.15); color: var(--gold); }

/* ── User chat screen ── */
#screen-chat.active {
  display: flex; flex-direction: column;
  height: calc(100vh - 80px);
}
#screen-chat .msg-chat__body { flex: 1; min-height: 0; overflow-y: auto; }
#screen-chat .msg-chat__footer { padding: 10px 0 4px; flex-shrink: 0; }

.chat-welcome {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 32px; text-align: center;
  color: var(--text-3); font-size: 14px; line-height: 1.5;
}
.chat-welcome svg { opacity: .5; }

/* attach button */
.chat-attach-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  cursor: pointer; color: var(--text-3); transition: color .15s;
  border-radius: 50%;
}
.chat-attach-btn:active { color: var(--gold); }

/* file preview strip */
.chat-file-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--surface); border-top: 1px solid var(--border);
}
.chat-file-preview.hidden { display: none; }
.chat-file-preview img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 6px;
}
.chat-file-preview__name {
  flex: 1; font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-file-preview__remove {
  background: none; border: none; color: var(--text-3); font-size: 18px;
  cursor: pointer; padding: 4px; line-height: 1;
}

/* images & files in chat bubbles */
.msg-bubble img.msg-img {
  max-width: 100%; max-height: 240px; border-radius: 8px;
  display: block; margin-bottom: 4px; cursor: pointer;
}
.msg-bubble .msg-file-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: rgba(255,255,255,.08); border-radius: 8px;
  color: var(--gold); font-size: 13px; text-decoration: none;
  margin-bottom: 4px;
}
.msg-bubble .msg-file-link:active { opacity: .7; }

/* ── Admin burger ── */
.admin-burger {
  background: none; border: none; color: var(--text-1); cursor: pointer;
  width: 36px; height: 36px; padding: 6px; margin-right: 4px; flex-shrink: 0;
}
.admin-burger svg { width: 100%; height: 100%; }

/* ── Admin sidebar ── */
.admin-sidebar-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  transition: opacity .25s ease;
}
.admin-sidebar-overlay.hidden { display: none; }

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 910;
  width: 260px; max-width: 80vw;
  background: var(--bg-1); border-right: 1px solid var(--border);
  transform: translateX(-110%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  padding-bottom: 24px;
}
.admin-sidebar.open { transform: translateX(0); }

.admin-sidebar__header {
  padding: 18px 16px 12px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.admin-sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: none; border: none;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.admin-sidebar__item:hover { background: var(--surface); color: var(--text-1); }
.admin-sidebar__item.active {
  background: var(--surface-2); color: var(--gold);
  border-left-color: var(--gold);
}
.admin-sidebar__item svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* sidebar & nav badges */
.sidebar-badge {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e53935; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; line-height: 1;
}
.sidebar-badge.hidden { display: none; }
.nav-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e53935; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; line-height: 1;
}
.nav-badge.hidden { display: none; }
.nav-btn { position: relative; }

/* ── City autocomplete ── */
.city-autocomplete-wrap { position: relative; z-index: 100; }
.city-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 9999;
  max-height: 260px; overflow-y: auto;
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: 12px; margin-top: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  backdrop-filter: none;
}
.city-dropdown.hidden { display: none; }
.city-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #1a1a1a;
}
.city-option:last-child { border-bottom: none; }
.city-option:hover, .city-option.active { background: #252525; }
.city-option__name { color: var(--text-1); font-size: 14px; font-weight: 500; }
.city-option__alt { color: var(--text-3); font-size: 11px; margin-left: 6px; font-style: italic; }
.city-option__meta { color: var(--text-3); font-size: 12px; margin-left: auto; white-space: nowrap; }

/* ── Search city autocomplete ── */
#list-search::-webkit-search-cancel-button,
#list-search::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.search-wrap.city-autocomplete-wrap { z-index: 100; }
.search-wrap .city-dropdown {
  background: #111; border: 1.5px solid var(--gold);
  top: calc(100% + 2px); left: 0; right: 0;
}
.list-city-clear {
  position: absolute; right: 52px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); font-size: 14px;
  cursor: pointer; padding: 4px; line-height: 1; z-index: 5;
}
.list-city-clear.hidden { display: none; }

/* ── Proximity divider ── */
.proximity-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 8px; padding: 0 4px;
}
.proximity-divider__line {
  flex: 1; height: 1px; background: var(--border);
}
.proximity-divider__label {
  color: var(--text-3); font-size: 12px; font-weight: 500;
  white-space: nowrap; letter-spacing: .02em;
}
.proximity-badge {
  display: inline-block; background: var(--surface-2);
  color: var(--text-3); font-size: 11px; padding: 2px 8px;
  border-radius: 8px; margin-left: 6px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
