/* Jobster app — editorial / sticker look, mobile-first, RTL */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root {
  --paper: #FAF4E8;
  --card: #FFFDF7;
  --ink: #16130E;
  --muted: #5C564A;
  --coral: #FF4B33;
  --yellow: #FFC93C;
  --yellow-soft: #FFF3CE;
  --green: #0FA36B;
  --wa: #25d366;
  --b: 2px solid var(--ink);
  --hard: 5px 5px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --radius: 20px;
}
html, body { height: 100%; }
body {
  font-family: 'Rubik', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; display: none; flex-direction: column; max-width: 480px; margin: 0 auto; background: var(--paper); }
.screen.active { display: flex; }
.screen.sub { z-index: 20; }

/* ---------- onboarding ---------- */
#screen-onboard { padding: max(24px, env(safe-area-inset-top)) 24px 32px; overflow-y: auto; }
.ob-step { display: none; flex: 1; flex-direction: column; justify-content: center; gap: 14px; animation: fadeUp .35s ease; }
.ob-step.active { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ob-hero { text-align: center; margin-bottom: 18px; }
.logo-big { font-size: 56px; margin-bottom: 8px; }
.brand { font-size: 46px; font-weight: 900; letter-spacing: -.02em; }
.brand::after { content: '.'; color: var(--coral); }
.tagline { color: var(--muted); font-size: 17px; line-height: 1.55; margin-top: 8px; }
.role-cards { display: flex; flex-direction: column; gap: 16px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--card); border: var(--b); border-radius: var(--radius);
  padding: 22px; color: var(--ink); font-family: inherit; cursor: pointer; transition: .12s;
  box-shadow: var(--hard);
}
.role-card:first-child { transform: rotate(-.6deg); }
.role-card:last-child { transform: rotate(.6deg); background: var(--yellow-soft); }
.role-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.role-emoji { font-size: 42px; }
.role-title { font-size: 19px; font-weight: 800; }
.role-sub { color: var(--muted); font-size: 14px; }

h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; }
input, textarea, select {
  background: var(--card); border: var(--b); border-radius: 13px;
  padding: 13px 16px; color: var(--ink); font-family: inherit; font-size: 16px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: var(--hard-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card); border: var(--b); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip.sel { background: var(--ink); color: var(--yellow); font-weight: 700; }
.cta {
  display: block; width: 100%; text-align: center; background: var(--coral); color: #fff;
  border: var(--b); border-radius: 15px; padding: 15px; font-family: inherit;
  font-size: 18px; font-weight: 800; cursor: pointer; margin-top: 16px;
  box-shadow: var(--hard); transition: transform .1s, box-shadow .1s;
  text-decoration: none;
}
.cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.cta.small { width: auto; padding: 11px 26px; margin: 12px auto 0; font-size: 16px; }
.cta.whatsapp { background: var(--wa); }
.cta.video-cta { background: var(--ink); color: var(--yellow); }
.ghost-btn { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 600; margin-top: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ghost-btn.light { color: #fff; }
.ghost-btn.danger { color: var(--coral); margin: 6px auto 20px; }
.ob-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.back-btn { background: none; border: none; color: var(--ink); font-size: 26px; cursor: pointer; align-self: flex-start; margin-bottom: 4px; }
.back-btn.inline { margin: 0; font-size: 24px; }

/* ---------- main ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 18px 10px;
}
.topbar h2 { margin: 0; font-size: 20px; flex: 1; }
.brand-small { font-weight: 900; font-size: 20px; color: var(--ink); }
.brand-small::after { content: '.'; color: var(--coral); }
.loc-pill {
  background: var(--card); border: var(--b); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--hard-sm);
}

.building-banner {
  display: flex; align-items: center; gap: 12px; margin: 8px 16px 0;
  background: var(--yellow); color: var(--ink); border: var(--b); border-radius: 16px; padding: 12px 16px; cursor: pointer;
  animation: dropIn .5s cubic-bezier(.2, 1.4, .4, 1); box-shadow: var(--hard); transform: rotate(-.5deg);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-30px) rotate(-.5deg) scale(.9); } to { opacity: 1; transform: rotate(-.5deg); } }
.bb-emoji { font-size: 32px; }
.bb-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.bb-text strong { font-size: 15px; font-weight: 800; }
.bb-text span { font-size: 13px; color: #4a4436; }
.bb-cta { font-weight: 800; font-size: 14px; }

.filter-chip {
  display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; align-self: flex-start;
  background: var(--ink); color: var(--yellow);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700;
}
.filter-chip button { background: none; border: none; color: var(--yellow); font-size: 14px; cursor: pointer; }

/* ---------- deck ---------- */
.deck-wrap { flex: 1; position: relative; margin: 12px 18px 8px; }
.deck { position: absolute; inset: 0; }
.card {
  position: absolute; inset: 0; background: var(--card); color: var(--ink);
  border-radius: var(--radius); border: var(--b); box-shadow: var(--hard);
  display: flex; flex-direction: column; overflow: hidden;
  touch-action: none; will-change: transform;
}
.card .card-top { background: var(--yellow-soft); border-bottom: var(--b); padding: 26px 20px 16px; text-align: center; position: relative; }
.card .c-emoji { font-size: 62px; line-height: 1; }
.card .c-dist {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px;
  font-size: 13px; font-weight: 700;
}
.card .c-building {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  transform: rotate(1.2deg);
}
.card .card-body { flex: 1; padding: 16px 20px 90px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 23px; font-weight: 800; line-height: 1.2; }
.card .c-sub { color: var(--muted); font-size: 15px; font-weight: 500; }
.card .c-salary { font-size: 18px; font-weight: 800; color: var(--green); }
.card .c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .c-tag { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.card .c-desc { color: #4a4436; font-size: 14.5px; line-height: 1.55; overflow: hidden; }
.stamp {
  position: absolute; top: 34px; font-size: 30px; font-weight: 900; padding: 6px 18px;
  border: 4px solid; border-radius: 10px; opacity: 0; transform: rotate(12deg); pointer-events: none; z-index: 3;
  background: var(--card);
}
.stamp.like { color: var(--green); border-color: var(--green); inset-inline-start: 18px; transform: rotate(-14deg); }
.stamp.nope { color: var(--coral); border-color: var(--coral); inset-inline-end: 18px; }
.card.behind { pointer-events: none; }

.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--muted); }
.de-emoji { font-size: 56px; }
.deck-empty h3 { color: var(--ink); font-weight: 800; }

.actions { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 14px 0 10px; }
.act {
  width: 62px; height: 62px; border-radius: 50%; border: var(--b); cursor: pointer;
  font-size: 26px; font-weight: 900; background: var(--card); color: var(--ink);
  box-shadow: var(--hard-sm); transition: transform .1s, box-shadow .1s;
}
.act:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.act.like { background: var(--green); color: #fff; font-size: 28px; }
.act.nope { background: var(--coral); color: #fff; }
.act.info { width: 48px; height: 48px; font-size: 20px; font-style: italic; font-family: Georgia, serif; }

.bottomnav {
  display: flex; justify-content: space-around; padding: 9px 10px max(11px, env(safe-area-inset-bottom));
  background: var(--card); border-top: var(--b);
}
.nav-btn { position: relative; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nav-btn span { font-size: 11px; font-weight: 700; }
.nav-btn.active { color: var(--ink); }
.nav-btn.active span { background: var(--yellow); border-radius: 999px; padding: 0 8px; }
.badge {
  position: absolute; top: -4px; inset-inline-end: -8px; background: var(--coral); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px; min-width: 20px; height: 20px; font-size: 11px; font-weight: 700;
  font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- matches ---------- */
.match-list { flex: 1; overflow-y: auto; padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 12px; }
.match-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: var(--b); border-radius: 16px; padding: 14px; box-shadow: var(--hard-sm);
}
.match-row:nth-child(even) { background: var(--yellow-soft); }
.match-row .m-emoji { font-size: 34px; }
.match-row .m-info { flex: 1; line-height: 1.35; min-width: 0; }
.match-row .m-info strong { font-size: 15.5px; }
.match-row .m-info span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: var(--b); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink); background: var(--card);
}
.icon-btn.wa { background: var(--wa); }
.icon-btn.video { background: var(--ink); }
.icon-btn.cv { background: var(--yellow); }
.empty-note { text-align: center; color: var(--muted); margin-top: 60px; padding: 0 30px; line-height: 1.6; }

/* ---------- forms / personal area ---------- */
.form-scroll { flex: 1; overflow-y: auto; padding: 6px 20px 40px; }
.panel {
  background: var(--card); border: var(--b); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--hard-sm);
}
.panel h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.profile-head { text-align: center; padding: 24px 20px; }
.profile-head .p-emoji {
  width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--yellow); border: var(--b); display: flex; align-items: center; justify-content: center; font-size: 44px;
}
.profile-head h2 { margin-bottom: 2px; }
.profile-head .p-sub { color: var(--muted); font-size: 14.5px; }
.cv-box {
  display: flex; align-items: center; gap: 12px; border: 2px dashed var(--ink); border-radius: 14px;
  padding: 14px; background: var(--paper);
}
.cv-box .cv-emoji { font-size: 30px; }
.cv-box .cv-info { flex: 1; line-height: 1.35; min-width: 0; }
.cv-box .cv-info b { font-size: 14.5px; }
.cv-box .cv-info span { display: block; color: var(--muted); font-size: 12.5px; }
.cv-btn {
  background: var(--ink); color: var(--yellow); border: none; border-radius: 999px;
  padding: 9px 16px; font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.cv-view { display: inline-block; margin-top: 4px; color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.myjob-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px dashed #d8d0bd; font-size: 14.5px; }
.myjob-row:last-child { border-bottom: none; }
.myjob-row .mj-emoji { font-size: 22px; }
.myjob-row .mj-info { flex: 1; min-width: 0; }
.myjob-row .mj-info b { display: block; }
.myjob-row .mj-info span { color: var(--muted); font-size: 12.5px; }

/* ---------- match overlay ---------- */
.match-overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--coral);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 30px; text-align: center; animation: fadeUp .3s ease; color: #fff;
}
.mo-title {
  font-size: 44px; font-weight: 900; background: var(--card); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 16px; padding: 8px 26px; transform: rotate(-3deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.mo-emoji { font-size: 72px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.mo-text { font-size: 18px; line-height: 1.5; max-width: 300px; font-weight: 500; }
.mo-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mo-hearts i { position: absolute; bottom: -40px; font-style: normal; animation: floatUp 3.2s linear infinite; opacity: .85; }
@keyframes floatUp { to { transform: translateY(-110vh) rotate(30deg); opacity: 0; } }
.match-overlay .cta { max-width: 320px; margin-top: 8px; }

/* ---------- bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: #16130eb8; display: flex; align-items: flex-end; }
.sheet {
  background: var(--paper); width: 100%; max-width: 480px; margin: 0 auto;
  border-top: var(--b); border-radius: 22px 22px 0 0; padding: 22px 20px max(24px, env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40%); } to { transform: none; } }
.sheet h3 { font-weight: 800; }
.sheet-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 14px; line-height: 1.5; }
.loc-options { display: flex; flex-direction: column; gap: 9px; max-height: 45vh; overflow-y: auto; }
.loc-opt {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: var(--b);
  border-radius: 13px; padding: 13px 14px; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: start;
  box-shadow: 2px 2px 0 var(--ink);
}
.loc-opt:active { transform: translate(2px, 2px); box-shadow: none; }
.loc-opt small { color: var(--muted); margin-inline-start: auto; font-weight: 500; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 20px;
  font-weight: 600; font-size: 14.5px; box-shadow: 4px 4px 0 rgba(22, 19, 14, .3);
  animation: fadeUp .25s ease; max-width: 88vw; text-align: center;
}

@media (min-width: 480px) {
  body { background: #efe7d6; }
  .screen { border-inline: var(--b); }
}

/* ---------- role closet & directions ---------- */
.form-hint, .panel-hint { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 4px 0 10px; }
.mj-toggle {
  border: var(--b); border-radius: 999px; padding: 8px 13px; font-family: inherit;
  font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap;
  background: var(--yellow); color: var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.mj-toggle.on { background: var(--green); color: #fff; }
.mj-toggle:active { transform: translate(2px, 2px); box-shadow: none; }
.mj-toggle:disabled { opacity: .5; }
.c-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.c-nav span { flex-basis: 100%; }
.c-nav a {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.icon-btn.map { background: #CDE6FF; }

/* ---------- push chip, liked badge, delete ---------- */
.push-chip {
  margin: 10px 16px 0; padding: 10px 14px; border: var(--b); border-radius: 999px;
  background: var(--card); font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink); cursor: pointer; box-shadow: var(--hard-sm); text-align: center;
}
.push-chip:active { transform: translate(2px, 2px); box-shadow: none; }
.c-liked {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px;
  padding: 7px 12px; font-size: 13px; font-weight: 800; transform: rotate(-.6deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.mj-del { background: none; border: none; font-size: 16px; cursor: pointer; padding: 4px; }
