:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #2f3033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #009fd9;
  --brand-dark: #0077a8;
  --ok: #2f9e44;
  --chip: #e8f7fc;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  background-image: none;
}
body[dir="rtl"] { font-family: "Segoe UI", "Arial Hebrew", Arial, sans-serif; }
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 88px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: none;
}
.logo span { color: var(--brand); }
.lang {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-weight: 700;
}
.lang button.on { background: var(--brand); color: #fff; }
.hero, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 12px;
}
.profile-bg { background: #fff; }
.hero h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.hero p { margin: 0; color: var(--muted); }
.btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  width: 100%;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff;
}
input[type="date"] {
  min-height: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23009fd9' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 20px;
}
body[dir="rtl"] input[type="date"] { background-position: left 12px center; }
textarea { min-height: 90px; resize: vertical; }
.filters { display: flex; gap: 8px; overflow: auto; padding-bottom: 6px; }
.chip {
  border: 1px solid var(--line);
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.chip.on { background: var(--brand); color: #fff; }
.job h3 { margin: 0 0 6px; font-size: 18px; }
.job.order { border-right: 5px solid #009fd9; }
.job.offer { border-right: 5px solid #2f9e44; }
body[dir="rtl"] .job.order { border-right: 0; border-left: 5px solid #009fd9; }
body[dir="rtl"] .job.offer { border-right: 0; border-left: 5px solid #2f9e44; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 8px; margin-bottom: 8px; }
.badge.order { background: #e8f7fc; color: #0077a8; }
.badge.offer { background: #d8f3e7; color: #1d6b4f; }
.stars { color: #f5a524; font-weight: 700; }
.stars b { color: var(--ink); }
.tag.warn { background: #ffd4d4; color: #8a1f1f; }
.tag.ok { background: #d3f9d8; color: #2b8a3e; }
.tag.muted { background: #eef1f4; color: #6b7280; }
.rules-card ol.rules { padding-inline-start: 1.2em; line-height: 1.45; }
.rules-card li { margin: 10px 0; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { background: var(--chip); border-radius: 999px; padding: 4px 8px; font-size: 12px; }
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(448px, calc(100% - 16px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(0, 159, 217, .22);
  border: 2px solid #7ad3f0;
  z-index: 40;
}
.nav button {
  border: 0;
  background: transparent;
  color: #334155;
  padding: 12px 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  border-radius: 16px;
}
.nav button svg { width: 22px; height: 22px; display: block; margin: 0 auto 4px; }
.nav button.on {
  color: #fff;
  background: #00a8e8;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 168, 232, .35);
}
.empty { text-align: center; color: var(--muted); padding: 28px 8px; }
.ok { color: var(--ok); font-weight: 700; }
.ad {
  border: 1px dashed #d7b089;
  background: #fff7ee;
  color: #7a4b22;
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
  font-size: 13px;
}
.checkgrid { display: grid; gap: 8px; margin: 6px 0 4px; grid-template-columns: 1fr 1fr; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 13px;
}
.check input { width: auto; accent-color: var(--brand); }
.ico { font-style: normal; font-size: 16px; }
.plan-preview { margin-top: 8px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.file-open { display: block; text-decoration: none; color: inherit; }
.file-open .plan-preview { display: block; width: 100%; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flag {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer;
}
.plan-name { font-size: 13px; color: var(--muted); }
.reviews { margin: 8px 0; padding: 8px; background: #fff7ee; border-radius: 12px; }
.review-item { font-size: 13px; margin: 6px 0; color: var(--ink); }
.review-write textarea { margin: 8px 0; }

.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 8px; background: #ffe2cf; }
.avatar.lg { width: 96px; height: 96px; margin: 0 auto 10px; }
.avatar.stub { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.page-head { text-align: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 12px 0; }
.stats div { background: #fff; border-radius: 12px; padding: 10px 6px; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: var(--muted); }

.tt-card { display: block; }
.tt-row { display: flex; gap: 14px; align-items: flex-start; }
.tt-photo {
  width: 88px; height: 88px; min-width: 88px;
  border-radius: 16px; object-fit: cover;
  background: #d7eef7;
}
.tt-body { flex: 1; min-width: 0; }
.tt-body h3 { font-size: 16px; line-height: 1.25; }
.tt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; position: relative; z-index: 3; }
.tt-actions .btn { width: 100%; padding: 11px 8px; font-size: 13px; position: relative; z-index: 3; }
.wa-btn { white-space: nowrap; }
.reviews { margin-top: 10px; position: relative; z-index: 1; clear: both; }
.work-gallery { margin: 8px 0; position: relative; z-index: 1; }

.compare { max-width: 480px; margin: 0 auto; padding: 10px 16px 0; font-size: 13px; font-weight: 700; display: flex; gap: 8px; }
.compare a { color: #009fd9; border: 1px solid #cfe8f3; background: #fff; border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.compare a.on { background: #009fd9; color: #fff; border-color: #009fd9; }

@media (prefers-reduced-motion: no-preference) {
  .card, .hero, .ad {
    animation: rise .35s ease both;
  }
  .card:nth-child(2) { animation-delay: .04s; }
  .card:nth-child(3) { animation-delay: .08s; }
  .card:nth-child(4) { animation-delay: .12s; }
  .card:nth-child(5) { animation-delay: .16s; }
  .chip, .btn, .nav button {
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  }
  .btn:active, .chip:active, .nav button:active { transform: scale(.97); }
  .picwrap.big { transition: transform .2s ease; }
  .tt-card:hover .picwrap.big { transform: scale(1.03); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.icon {
  width: 18px; height: 18px;
  display: inline-block; vertical-align: -3px;
  margin-inline-end: 4px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav .icon { display: block; margin: 0 auto 3px; width: 20px; height: 20px; }
.tag .icon { width: 14px; height: 14px; }

.icon.pic {
  object-fit: cover;
  border-radius: 6px;
  stroke: none;
  background: #fff;
}
.nav .icon.pic { width: 22px; height: 22px; border-radius: 50%; }
.tag .icon.pic { width: 18px; height: 18px; }

.icon.pic, .tt-photo, .avatar {
  image-rendering: auto;
}
.picwrap {
  display: inline-block;
  vertical-align: middle;
}
.picwrap.big { display: block; flex-shrink: 0; }
.picwrap .icon.pic, .picwrap .tt-photo {
  display: block;
}

.stars { white-space: nowrap; display: inline-block; }
.citypick { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.citypick select { border: 0; background: transparent; font: inherit; padding: 8px 4px; max-width: 140px; }
.filebtn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 16px; text-align: center; background: #009fd9; color: #fff; font-weight: 700; cursor: pointer; }
.filebtn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.filebtn:active { transform: scale(.98); opacity: .92; }
.filebtn input { display: none; }
.avatar.lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 8px; }

.mine-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn.danger { background: #c62828; color: #fff; border: 0; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mine-tile {
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 12px 8px; text-align: center; color: inherit;
}
.mine-tile b { display: block; margin: 4px 0 2px; }
.mine-tile span { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.mine-tile .icon, .mine-tile .picwrap { margin: 0 auto; }

.logo { display:flex; align-items:center; gap:8px; }
.brand-face { width:36px; height:36px; border-radius:10px; object-fit:cover; background:#e25a12; }
.file-open { display:block; width:100%; text-align:left; background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px; cursor:pointer; }
.file-open .plan-preview { display:block; width:100%; max-height:240px; object-fit:contain; background:#f3f1ea; }
#lightbox { position:fixed; inset:0; z-index:80; background:rgba(8,16,24,.92); display:flex; align-items:center; justify-content:center; padding:16px; }
#lightbox[hidden] { display:none !important; }
#lightbox img, #lightbox iframe { max-width:100%; max-height:92vh; background:#fff; border-radius:8px; }
#lightbox-x { position:absolute; top:12px; right:12px; width:44px; height:44px; border:0; border-radius:22px; font-size:28px; background:#fff; cursor:pointer; }

.work-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0; }
.work-gallery .file-open { padding:0; }
.work-gallery img { height:90px; object-fit:cover; width:100%; border-radius:10px; }

.avatar-open { border:0; background:none; padding:0; cursor:zoom-in; }
.file-open { cursor:zoom-in; }
#lightbox img { max-width:96vw; max-height:92vh; object-fit:contain; cursor:zoom-out; }

.tt-row { display:flex; gap:14px; align-items:flex-start; width:100%; }
.tt-row > .file-open,
.tt-row > .picwrap {
  flex:0 0 88px;
  width:88px;
  min-width:88px;
  max-width:88px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  display:block;
  box-sizing:border-box;
}
.tt-row .tt-photo { width:88px; height:88px; display:block; }
.tt-body { flex:1 1 auto; min-width:0; overflow:hidden; }
.tt-body .tags, .tt-body .flags { flex-wrap:wrap; max-width:100%; }
.file-open.picwrap.big { width:88px; }

.wa-row { margin: 10px 0 12px; display: flex; justify-content: flex-start; }
.wa-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  max-width: 160px;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 700;
  background: #25D366 !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.wa-btn .icon { width: 16px; height: 16px; fill: #fff; flex: 0 0 16px; }
.complain-write { margin-top: 14px; }
.complain-write .btn.danger { position: relative; z-index: 1; }

.tt-card.slim { padding: 14px; }
.tt-card.slim h3 { font-size: 16px; margin: 4px 0 6px; }
.tt-card.slim .meta { margin-bottom: 8px; }
.badge.demo { background: #fff3bf; color: #7a5b00; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.sm { width: auto !important; flex: 0 0 auto; padding: 8px 10px !important; font-size: 12px !important; font-weight: 600; }
.tt-actions { align-items: center; }
.tt-card.slim .wa-btn { max-width: none; flex: 1; padding: 12px 14px !important; font-size: 15px !important; }

.details-sep {
  width: 100%;
  margin-top: 8px;
  background: #fff !important;
  color: #5a6a75 !important;
  border: 1px solid #d7e3ea !important;
}
.wa-row { margin: 8px 0 0; }
.tt-card .wa-btn { width: 100% !important; max-width: none !important; }

.kind-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.kind-btn, .city-btn {
  display: flex; align-items: center; gap: 8px; text-align: left;
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 16px; padding: 12px 12px; font: inherit; cursor: pointer;
}
.kind-btn.on, .city-btn.on { border-color: #009fd9; background: #eef8fc; }
.kind-btn b, .city-btn b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.kind-btn small, .city-btn small { display: block; color: var(--muted); font-size: 12px; }
.city-btn { margin-bottom: 8px; min-height: 56px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 0 0 12px; }
.sheet-title { font-weight: 700; margin: 4px 6px 8px; }
.sheet-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 11px 10px; border-radius: 10px; font: inherit; cursor: pointer;
}
.sheet-item.on { background: #eef8fc; color: #009fd9; font-weight: 700; }

.avatar-edit { display: inline-block; position: relative; cursor: pointer; }
.avatar-edit input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.picwrap { position: relative; display: inline-block; }
.star-on-photo {
  position: absolute; left: 6px; bottom: 6px;
  color: #f5c518; font-size: 13px; letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  pointer-events: none; line-height: 1;
}

.install-bar {
  margin: 0 14px 10px; padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.install-bar .btn { width: auto; flex: 1; }
.install-bar .btn.ghost { flex: 0; }

.tap-open { cursor: pointer; }
.picwrap.tap-open:active { opacity: .85; }

.help-mini {
  border: 0; background: transparent; color: #0a66c2; font-weight: 700;
  font-size: 13px; padding: 6px 8px; cursor: pointer;
}
.faq { border-top: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: #444; }

.news-card b { display:block; margin-bottom:6px; }
.news-card .btn { margin-top:8px; }

.mine-tile.live { background:#e8f7ee; border-color:#2e9e57; color:#146c36; }
.mine-tile.done { background:#fdecea; border-color:#d32f2f; color:#b71c1c; }
.live-card { border: 2px solid #2e9e57; }
.done-card { border: 2px solid #d32f2f; }

.live-label, .done-label { display:block; margin:12px 0 6px; }
.live-label { color:#146c36; }
.done-label { color:#b71c1c; }
.btn.ghost.live { background:#e8f7ee; border-color:#2e9e57; color:#146c36; }
.btn.ghost.done { background:#fdecea; border-color:#d32f2f; color:#b71c1c; }

.passbox { display:flex; gap:8px; align-items:center; }
.passbox input { flex:1; }
.eye { border:0; background:transparent; color:#0b6e99; font-size:13px; }

.google-btn { display:flex; align-items:center; justify-content:center; gap:8px; background:#fff; color:#222; border:1px solid #d0d7de; }
.glogo { width:18px; height:18px; }

.lang-gate { max-width: 420px; margin: 48px auto; padding: 28px 20px; text-align: center; background: #fff; border-radius: 20px; }
.lang-gate .brand-face { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; }
.lang-gate h1 { margin: 12px 0 4px; }
.lang-gate p { color: #667085; margin: 0 0 18px; }
.lang-pick { display: block; width: 100%; margin: 8px 0; font-size: 18px; padding: 14px; }

.lang-cards { display: flex; gap: 10px; justify-content: center; }
.lang-card { flex: 1; border: 1px solid #e4ddd0; background: #fff; border-radius: 18px; padding: 8px 6px 12px; cursor: pointer; }
.lang-card img { width: 100%; height: auto; border-radius: 14px; display: block; }
.lang-card span { display: block; margin-top: 8px; font-weight: 700; font-size: 16px; }
.lang-card small { color: #667085; }
.lang-card:active { transform: scale(.97); }
