:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #6a6f75;
  --line: #ddd7cc;
  --accent: #0f8b8d;
  --accent-dark: #0a6263;
  --danger: #d64b4b;
  --warning: #d79b28;
  --shadow: 0 24px 80px rgba(29, 35, 39, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(15, 139, 141, 0.12), transparent 38%),
    linear-gradient(240deg, rgba(215, 155, 40, 0.14), transparent 42%),
    var(--bg);
  color: var(--ink);
}

.mobile-app-body {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(15, 139, 141, 0.16), transparent 34%),
    linear-gradient(330deg, rgba(215, 155, 40, 0.15), transparent 40%),
    #f7f4ee;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(15, 139, 141, 0.2), transparent 34%),
    linear-gradient(330deg, rgba(215, 155, 40, 0.18), transparent 40%),
    #f7f4ee;
}

.auth-gate.is-hidden {
  display: none;
}

.auth-gate-card {
  width: min(390px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-gate-card h1 {
  margin-bottom: 10px;
  font-size: 32px;
}

.auth-gate-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px 0;
}

.profile-panel,
.feed-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.brand-row,
.feed-header,
.job-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-row {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1;
}

.profile-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.secondary-button,
.small-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
}

.danger-button {
  color: var(--danger);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.mobile-app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 104px;
  position: relative;
}

.mobile-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-topbar h1 {
  font-size: 28px;
}

.mobile-screen {
  display: none;
}

.mobile-screen.is-active {
  display: block;
}

.compact-feed-header {
  margin: 8px 0 12px;
}

.mobile-job-stage {
  min-height: 0;
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.mobile-job-card {
  width: 100%;
  height: min(440px, calc(100dvh - 258px));
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr;
}

.mobile-job-card .job-image {
  min-height: 0;
}

.mobile-job-card .job-content {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-meta-grid {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.55fr);
  margin: 14px 0;
}

.mobile-action-row {
  position: relative;
  z-index: 4;
  width: min(318px, calc(100% - 112px));
  margin: 0 auto;
  padding: 0;
}

.mobile-action-row .icon-button {
  width: 64px;
  height: 64px;
}

.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 10;
  width: min(402px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(221, 215, 204, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(23, 23, 23, 0.16);
  backdrop-filter: blur(18px);
}

.bottom-nav-item {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav-item span {
  font-size: 21px;
  line-height: 1;
}

.bottom-nav-item.is-active {
  background: #e7f4f2;
  color: var(--accent-dark);
}

.profile-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 10px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.auth-card p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.auth-actions {
  display: grid;
  gap: 8px;
}

.large-avatar {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

.profile-summary h2 {
  margin-bottom: 6px;
}

.profile-summary p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-profile-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vacancy-bot-link {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 900;
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.history-filter {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.history-filter.is-active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-row h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.history-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.history-contact {
  margin-top: 10px;
}

.history-contact a,
.history-contact span {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7f4f2;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.history-contact span {
  background: #f1eee8;
  color: var(--muted);
}

.history-like {
  border-left: 4px solid var(--accent);
}

.history-save {
  border-left: 4px solid var(--warning);
}

.history-skip {
  border-left: 4px solid var(--danger);
}

.feed-panel {
  min-height: 760px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto auto;
  gap: 20px;
}

.job-stage {
  display: grid;
  place-items: center;
}

.job-card {
  width: min(430px, 100%);
  min-height: 400px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.18);
  transition: transform 180ms ease, opacity 180ms ease;
  touch-action: pan-y;
  user-select: none;
  transform: translate(var(--drag-x, 0), var(--drag-y, 0)) rotate(var(--drag-rotate, 0));
}

.job-card.is-like {
  transform: translateX(140px) rotate(10deg);
  opacity: 0.2;
}

.job-card.is-skip {
  transform: translateX(-140px) rotate(-10deg);
  opacity: 0.2;
}

.job-card.is-save {
  transform: translateY(-150px) scale(0.96);
  opacity: 0.2;
}

.job-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.job-image {
  min-height: 230px;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2)),
    var(--job-bg, #0f8b8d);
  background-position: center;
  background-size: cover;
  position: relative;
}

.job-image::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.job-content {
  padding: 22px;
}

.job-title-row {
  align-items: start;
}

.job-title-row > div {
  min-width: 0;
}

.mobile-job-card .job-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, max-content);
  gap: 12px;
}

.mobile-job-card h3 {
  display: -webkit-box;
  max-height: 4.35em;
  overflow: hidden;
  font-size: clamp(28px, 7.4vw, 38px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.venue {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.salary-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.salary-tag {
  padding: 6px 12px;
  border-radius: 20px;
  background: #6366F1; /* Primary Indigo color */
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.address-row {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.meta-grid span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.description {
  color: #3d4246;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f1eee8;
  color: #4a4f54;
  font-size: 13px;
  font-weight: 800;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.icon-button {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.12);
}

.skip {
  color: var(--danger);
}

.save {
  color: var(--warning);
  font-size: 22px;
}

.like {
  color: var(--accent);
}

.matches {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.matches h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.matches ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matches li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.candidate-strip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.candidate-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.candidate-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 18px;
}

.list-header,
.business-title-row,
.toolbar,
.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar {
  align-items: end;
  margin-bottom: 16px;
}

.toolbar label:first-child {
  flex: 1 1 auto;
}

.toolbar label:last-child {
  flex: 0 0 190px;
}

.business-list {
  display: grid;
  gap: 10px;
}

.business-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.job-admin-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.admin-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f1eee8;
}

.placeholder-thumb {
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 900;
}

.business-title-row {
  justify-content: flex-start;
}

.business-row h3 {
  font-size: 20px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f4f2;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.business-meta,
.business-notes {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.business-notes {
  color: #3d4246;
}

.row-actions {
  align-self: start;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feed-panel {
    min-height: auto;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .profile-panel,
  .feed-panel,
  .admin-card {
    padding: 16px;
  }

  h1 {
    font-size: 21px;
  }

  h3 {
    font-size: 28px;
  }

  .brand-row,
  .feed-header,
  .job-title-row {
    align-items: flex-start;
  }

  .meta-grid,
  .matches ul,
  .form-grid,
  .business-row,
  .job-admin-row {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 20px, 1240px);
    padding: 10px 0;
  }

  .admin-topbar,
  .toolbar,
  .form-actions,
  .row-actions,
  .auth-card {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-card {
    display: flex;
  }

  .form-actions {
    display: flex;
  }

  .toolbar label:last-child {
    flex: 1 1 auto;
  }
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(23, 23, 23, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  text-align: center;
  width: max-content;
  max-width: 90%;
  backdrop-filter: blur(8px);
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Contact Button Custom Deep-Link Styles */
.history-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.history-contact-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.history-contact-btn:active {
  transform: scale(0.96);
}
.history-contact-btn.contact-whatsapp {
  background: #25d366;
}
.history-contact-btn.contact-telegram {
  background: #0088cc;
}
.history-contact-btn.contact-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.history-contact-btn.contact-phone {
  background: #6a6f75;
}
.history-contact-btn.contact-email {
  background: #0f8b8d;
}
.history-contact-btn.contact-fallback {
  background: #f1eee8;
  color: var(--muted);
}

/* Job Card Brand Header & Logo styles */
.job-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.job-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

