:root {
  --ink: #0b1630;
  --ink-2: #172a52;
  --ink-3: #243a6b;
  --ivory: #f6f1e7;
  --paper: #fffdf8;
  --gold: #c9a45c;
  --gold-2: #e8cd8f;
  --gold-3: #a77c32;
  --gold-soft: #f1e6cb;
  --text: #1b2236;
  --muted: #6a7188;
  --line: #e6dfcf;
  --danger: #a33a2c;
  --ok: #2c7a58;
  --warn: #8a6517;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11,22,48,.05), 0 18px 40px -18px rgba(11,22,48,.25);
  --shadow-lg: 0 30px 60px -24px rgba(11,22,48,.45);
  --gold-grad: linear-gradient(135deg, #e8cd8f 0%, #c9a45c 45%, #a77c32 100%);
  --serif: "Frank Ruhl Libre", "David", Georgia, serif;
  --sans: "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,164,92,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(23,42,82,.07), transparent 60%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p { margin: .4em 0; }
svg.i { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.18em; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 100% { transform: translateX(-100%); } }

/* ---------- כרטיסים וטפסים ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

label { display: block; margin-bottom: 16px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
input, select, textarea {
  display: block; width: 100%; margin-top: 7px;
  padding: 12px 15px; font: inherit; color: var(--text);
  border: 1px solid #d8d0bd; border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.22);
}
textarea { min-height: 100px; resize: vertical; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold-3); }

button {
  padding: 12px 22px; font: inherit; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .2s, filter .15s;
}
button:hover { background: var(--ink-2); box-shadow: 0 10px 22px -10px rgba(11,22,48,.6); }
button:active { transform: translateY(1px); }
button.gold { background: var(--gold-grad); color: var(--ink); font-weight: 600; box-shadow: 0 8px 18px -10px rgba(167,124,50,.9); }
button.gold:hover { background: var(--gold-grad); filter: brightness(1.06); box-shadow: 0 12px 24px -10px rgba(167,124,50,.95); }
button.secondary { background: #fff; color: var(--ink); border-color: #d8d0bd; }
button.secondary:hover { background: var(--ivory); box-shadow: none; }
button.link { background: none; color: var(--ink-2); padding: 6px 8px; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
button.link:hover { background: none; color: var(--gold-3); box-shadow: none; }
button.danger { color: var(--danger); }
button.link.danger:hover { color: var(--danger); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(201,164,92,.6); outline-offset: 2px; }

.error { color: var(--danger); min-height: 1.2em; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }

.notice {
  position: fixed; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 90; font-size: 15px;
  border: 1px solid var(--gold);
}

.pill { display: inline-block; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--ink-2); }
.pill.pending { background: #f7edd4; color: var(--warn); }
.pill.approved { background: #dcefe4; color: var(--ok); }
.pill.rejected { background: #f5dcd8; color: var(--danger); }
.status { font-weight: 500; }
.status.pending { color: var(--warn); }
.status.approved { color: var(--ok); }
.status.rejected { color: var(--danger); }

.badge-verified {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.16); color: #fff; padding: 3px 10px 3px 8px; border-radius: 999px;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
}
.badge-verified svg { color: var(--gold-2); }

/* ---------- מסך כניסה ---------- */

.auth { margin: -32px -22px -80px; min-height: calc(100vh - 62px); display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(600px 400px at 20% 15%, rgba(201,164,92,.38), transparent 60%),
    radial-gradient(500px 500px at 90% 90%, rgba(36,58,107,.9), transparent 60%),
    linear-gradient(160deg, #0b1630 0%, #060d1f 100%);
}
.auth-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image:
    linear-gradient(45deg, #fff 1px, transparent 1px),
    linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 56px 56px;
}
.auth-hero > * { position: relative; }
.eyebrow { color: var(--gold-2); letter-spacing: 4px; font-size: 13px; margin-bottom: 14px; }
.auth-hero h2 { color: #fff; font-size: 58px; line-height: 1.08; margin-bottom: 18px; }
.auth-hero h2 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero > p { color: #c3cce2; font-size: 18px; max-width: 460px; }
.features { display: grid; gap: 16px; margin-top: 38px; max-width: 480px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: rgba(201,164,92,.14); border: 1px solid rgba(201,164,92,.45); color: var(--gold-2); font-size: 22px;
}
.feature strong { display: block; font-family: var(--serif); font-size: 19px; color: #fff; }
.feature span { color: #aab6d3; font-size: 15px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-panel .card { width: 100%; max-width: 440px; padding: 36px; box-shadow: var(--shadow-lg); }
.auth-toggle { text-align: center; margin-top: 12px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth-hero { padding: 44px 26px; }
  .auth-hero h2 { font-size: 38px; }
}

/* ---------- גלריה ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { margin: 0; font-size: 38px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.search-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { color: var(--muted); font-size: 14px; }



.facts-row { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 14px; }
.facts-row span { display: inline-flex; align-items: center; gap: 6px; }
.facts-row svg { color: var(--gold-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #f3eddd; color: var(--ink-2); }
.chip.accent { background: var(--ink); color: var(--gold-2); }
.noph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }

.empty {
  text-align: center; color: var(--muted); padding: 70px 24px;
  border: 1px dashed #d4cab1; border-radius: var(--radius); background: rgba(255,253,248,.7);
}
.empty svg { width: 54px; height: 54px; color: var(--gold); stroke-width: 1.2; margin-bottom: 8px; }

.skeleton { border-radius: var(--radius); height: 470px; background: #e9e2cf; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite;
}

/* ---------- לוח סינון: לשוניות, צ'יפים וסליידר כפול ---------- */

.ftabs { display: flex; background: var(--ivory); border-radius: 999px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); }
.ftab { flex: 1; background: none; color: var(--ink-2); box-shadow: none; padding: 9px 10px; font-size: 14px; }
.ftab:hover { background: none; box-shadow: none; color: var(--ink); }
.ftab.active { background: var(--ink); color: #fff; }
.fpanel[hidden] { display: none; }

.chipset { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.opt { background: #fff; color: var(--ink); border: 1px solid #d8d0bd; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.opt:hover { background: var(--ivory); box-shadow: none; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.field { margin-bottom: 16px; }
.field .lbl { display: block; font-weight: 500; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.field .chipset { justify-content: flex-start; }

.dual { margin-bottom: 24px; }
.dual-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-family: var(--serif); color: var(--ink); }
.dual-val { color: var(--gold-3); font-family: var(--sans); font-weight: 600; direction: ltr; }
.dual-track { position: relative; height: 28px; }
.dual-track::before { content: ""; position: absolute; inset-inline: 0; top: 12px; height: 4px; border-radius: 4px; background: #e3ddcf; }
.dual-fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--gold-grad); }
.dual-track input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; height: 28px;
  background: none; border: 0; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.dual-track input[type=range]:focus { box-shadow: none; }
.dual-track input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.dual-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold); box-shadow: 0 3px 8px rgba(11,22,48,.4);
}
.dual-track input[type=range]::-moz-range-track { background: transparent; }
.dual-track input[type=range]::-moz-range-thumb { pointer-events: auto; cursor: grab; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }

.tags { margin-top: -2px; }
.tag { font-size: 13px; color: var(--gold-3); }

/* ---------- חלון פרופיל מלא ---------- */

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6,13,31,.62); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: rise .25s both; }
.composer { width: 100%; max-width: 480px; margin: 0; }
.composer textarea { min-height: 120px; }
.composer .actions { display: flex; gap: 8px; margin-top: 12px; }

.profile-modal { position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 32px); overflow: auto; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1.05fr; }
.pm-photos { background: var(--ink); position: relative; min-height: 420px; }
.pm-photos .main { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.pm-thumbs { position: absolute; bottom: 14px; inset-inline: 14px; display: flex; gap: 8px; z-index: 2; }
.pm-thumbs button { width: 54px; height: 54px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); background: #222; }
.pm-thumbs button.on { border-color: var(--gold); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 34px 32px; }
.pm-info h2 { font-size: 36px; margin-bottom: 2px; }
.pm-info h2 span { color: var(--gold-3); font-weight: 400; }
.pm-info .where { color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.pm-info h4 { font-size: 16px; color: var(--gold-3); letter-spacing: .5px; margin: 20px 0 6px; }
.pm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 16px 0; }
.pm-facts div { display: flex; gap: 10px; align-items: center; }
.pm-facts .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-3); display: grid; place-items: center; flex: none; }
.pm-facts small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.pm-facts b { font-weight: 500; color: var(--ink); }
.pm-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; }
.pm-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.pm-actions .gold { flex: 1; min-width: 170px; }

/* ---------- פרופיל שלי ---------- */

.profile-hero { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.avatar {
  width: 100%; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 72px;
  box-shadow: var(--shadow); border: 3px solid var(--paper); outline: 1px solid var(--gold);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 18px 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); }
.quote {
  border-inline-start: 3px solid var(--gold); padding: 8px 18px; margin: 16px 0 0;
  color: var(--ink-2); font-family: var(--serif); font-size: 19px; background: var(--ivory); border-radius: 0 12px 12px 0;
}
.progress { margin: 14px 0 4px; }
.progress .bar { height: 8px; border-radius: 8px; background: #e9e2cf; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 8px; transition: width .6s; }
.progress small { color: var(--muted); }

details.edit summary {
  cursor: pointer; font-family: var(--serif); font-size: 22px; color: var(--ink); padding: 4px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.edit summary::-webkit-details-marker { display: none; }
details.edit summary::after { content: "+"; color: var(--gold-3); font-size: 28px; font-family: var(--sans); }
details.edit[open] summary::after { content: "−"; }
details.edit .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 16px; }
details.edit .form-grid .full { grid-column: 1 / -1; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 14px 0; }
.photo { position: relative; border-radius: 16px; overflow: hidden; background: #eee; }
.photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.photo .pill { position: absolute; top: 8px; inset-inline-start: 8px; }
.photo .link { position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(255,255,255,.92); border-radius: 999px; }

/* ---------- הודעות ---------- */

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.person { display: flex; align-items: center; gap: 14px; }
.thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--gold-soft); flex: none; border: 2px solid var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thread { width: 100%; background: none; color: var(--text); border-radius: 0; padding: 16px 0; text-align: start; box-shadow: none; }
.thread:hover { background: var(--ivory); transform: none; box-shadow: none; }
.initial { display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--serif); color: var(--ink); font-size: 22px; }

.thread-view h2 { margin-top: 8px; }
.messages { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; padding: 16px 4px; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bubble { max-width: 78%; padding: 11px 16px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-start; background: var(--ink); color: #fff; border-end-start-radius: 4px; }
.bubble.theirs { align-self: flex-end; background: var(--gold-soft); color: var(--ink); border-end-end-radius: 4px; }
.reply { display: flex; gap: 10px; align-items: flex-end; }
.reply textarea { min-height: 56px; margin: 0; flex: 1; }

/* ---------- רספונסיבי ---------- */

@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .filters-panel { display: none; position: static; }
  .filters-panel.open { display: block; }
  .profile-hero { grid-template-columns: 1fr; }
  .avatar { max-width: 260px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr; }
  .profile-modal { grid-template-columns: 1fr; }
  .pm-photos { min-height: 340px; }
  .pm-info { padding: 24px 22px; }
}
@media (max-width: 480px) {
  main { padding: 20px 14px 60px; }
  .card { padding: 20px; }
  details.edit .form-grid { grid-template-columns: 1fr; }
  h2 { font-size: 28px; }
  .page-head h2 { font-size: 30px; }
  header { padding: 10px 14px; }
  nav button { padding: 7px 11px; font-size: 14px; }
  .brand small { display: none; }
  .grid { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- כרטיס מתהפך ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }

.tile { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.flip { perspective: 1400px; aspect-ratio: 3 / 4.6; cursor: pointer; outline-offset: 4px; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.2,1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip:not(.flipped):hover .flip-inner { transform: rotateY(-6deg) translateY(-4px); }

.face {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
}
.face.front { background: linear-gradient(160deg, #e9e2cf, #d6cdb5); border: 1px solid rgba(201,164,92,.5); }
.face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.front::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none;
  background: linear-gradient(to top, rgba(6,13,31,.92), rgba(6,13,31,.3) 60%, transparent);
}
.face.front .top-badges { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.flip-hint { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(6,13,31,.55); color: var(--gold-2); backdrop-filter: blur(6px); }
.face.front .name { position: absolute; inset-inline: 16px; bottom: 14px; z-index: 2; color: #fff; }
.face.front .name h3 { color: #fff; margin: 0; font-size: 26px; }
.face.front .name h3 span { font-weight: 400; color: var(--gold-2); }
.face.front .name .where { font-size: 13px; opacity: .92; }

.face.back {
  transform: rotateY(180deg); padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 9px;
  color: #dfe5f4; overflow-y: auto; scrollbar-width: none;
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(201,164,92,.28), transparent 70%),
    linear-gradient(165deg, #12234a 0%, #0a1430 100%);
  border: 1px solid var(--gold);
}
.face.back::-webkit-scrollbar { display: none; }
.face.back > * { flex-shrink: 0; }
.face.back .back-actions { margin-top: auto; }
.face.back::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201,164,92,.35); border-radius: 16px; pointer-events: none;
}
.face.back h3 { color: #fff; font-size: 24px; margin: 0; }
.face.back h3 span { color: var(--gold-2); font-weight: 400; }
.face.back .where { color: var(--gold-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.face.back .facts-row { color: #cfd7ec; font-size: 13px; gap: 4px 12px; }
.face.back .facts-row svg { color: var(--gold-2); }
.face.back .chip { background: rgba(255,255,255,.1); color: #e8edf8; font-size: 12px; }
.face.back .chip.accent { background: var(--gold-grad); color: var(--ink); font-weight: 500; }
.face.back .about { font-size: 14px; line-height: 1.5; margin: 0; color: #e9eefb; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-height: 4.6em; }
.face.back .seek { font-size: 13px; color: #b9c4de; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face.back .seek b { color: var(--gold-2); font-weight: 500; }
.face.back .tag { color: var(--gold-2); font-size: 12px; }
.back-actions { margin-top: auto; display: grid; gap: 7px; position: relative; z-index: 1; }
.back-actions button { width: 100%; padding: 10px 14px; font-size: 14px; }
.back-actions .ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.back-actions .ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .flip:not(.flipped):hover .flip-inner { transform: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .face.front .name h3 { font-size: 20px; }
  .face.back { padding: 16px 13px 12px; gap: 7px; }
  .face.back h3 { font-size: 20px; }
}

/* ---------- כלי כותרת, מתג תצוגה, מיון ---------- */

.head-tools { display: flex; gap: 10px; align-items: center; }
.seg { display: inline-flex; background: #fff; border: 1px solid #d8d0bd; border-radius: 999px; padding: 3px; }
.seg button { background: none; color: var(--ink-2); padding: 7px 12px; box-shadow: none; display: grid; place-items: center; }
.seg button svg { width: 20px; height: 20px; }
.seg button:hover { background: var(--ivory); box-shadow: none; }
.seg button.on { background: var(--ink); color: var(--gold-2); }

.sortbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sortbar .results-count { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-inline-end: auto; }
.sort-label { color: var(--muted); font-size: 14px; }
.sort-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sc { background: #fff; color: var(--ink-2); border: 1px solid #d8d0bd; padding: 7px 15px; font-size: 14px; box-shadow: none; }
.sc:hover { background: var(--ivory); box-shadow: none; }
.sc.active { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }

label.switch { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-weight: 400; font-size: 14px; cursor: pointer; }
label.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; margin: 0; padding: 0; border-radius: 999px; background: #d8d0bd; position: relative; flex: none; transition: background .2s; cursor: pointer; }
label.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
label.switch input:checked { background: var(--gold-3); }
label.switch input:checked::after { inset-inline-start: 21px; }

/* ---------- סיפון החלקה ---------- */

.deck { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.deck-stage { position: relative; width: min(92vw, 380px); aspect-ratio: 3 / 4.6; margin-top: 6px; }
.scard { position: absolute; inset: 0; will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; }
.scard:active { cursor: grabbing; }
.scard .tile { height: 100%; animation: none; }
.scard .flip { height: 100%; aspect-ratio: auto; }
.scard .flip:not(.flipped):hover .flip-inner { transform: none; }
.scard img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.stamp {
  position: absolute; top: 34px; z-index: 20; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 14px; border: 4px solid; border-radius: 12px; opacity: 0; pointer-events: none; background: rgba(6,13,31,.35);
}
.stamp.like { left: 20px; color: #46e0a0; border-color: #46e0a0; transform: rotate(-14deg); }
.stamp.pass { right: 20px; color: #ff7676; border-color: #ff7676; transform: rotate(14deg); }

.deck-actions { display: flex; align-items: center; justify-content: center; gap: 22px; direction: ltr; } /* שמאל = לא מתאים, ימין = אהבתי, כמו כיוון ההחלקה */
.deck-actions[hidden], .deck-hint[hidden] { display: none; }
.act { width: 66px; height: 66px; padding: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(11,22,48,.55); }
.act svg { width: 30px; height: 30px; stroke-width: 2; }
.act.pass { background: #fff; color: #c0463a; border: 1px solid #e6d9d6; }
.act.pass:hover { background: #fff3f1; }
.act.msg { width: 54px; height: 54px; background: var(--ink); color: var(--gold-2); }
.act.msg svg { width: 24px; height: 24px; }
.act.like { background: var(--gold-grad); color: var(--ink); }
.act.like:hover { background: var(--gold-grad); filter: brightness(1.07); }
.deck-hint { color: var(--muted); font-size: 13px; margin: 0; text-align: center; }
.deck-empty { width: min(92vw, 380px); }

/* ---------- לייקים ---------- */

.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 14px; }
.mini { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.mini-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--gold-soft); border: 1px solid rgba(201,164,92,.5); display: grid; place-items: center; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-photo .initial { font-size: 44px; }
.match-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--gold-grad); color: var(--ink); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.mini button { margin-top: 6px; padding: 9px 10px; font-size: 14px; }

/* ---------- חלון "התאמה!" ---------- */

.match { text-align: center; max-width: 420px; width: 100%; margin: 0; padding: 36px 28px; }
.match h2 { font-size: 42px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.match-hearts { color: var(--gold-3); font-size: 54px; line-height: 1; margin-bottom: 8px; }
.match .actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- סליידר מרחק וצ'יפים עם אייקון ---------- */
.single { margin-bottom: 24px; }
.single input[type=range] { padding: 0; margin: 6px 0 4px; height: 28px; border: 0; box-shadow: none; background: none; accent-color: var(--gold-3); }
.single .hint { display: block; font-size: 12px; }
.sc svg { width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -2px; }

/* ---------- תצוגה מוגדלת ---------- */
.pm-photos .main { cursor: zoom-in; }
.photo img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,7,18,.94); display: flex; align-items: center; justify-content: center; animation: rise .2s both; touch-action: pan-y; }
.lightbox .lb-stage img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; stroke-width: 2; }
.lb-close:hover { background: rgba(255,255,255,.28); box-shadow: none; }
.lb-nav:hover { background: rgba(255,255,255,.28); box-shadow: none; }
.lb-prev { right: 14px; }
.lb-next { left: 14px; }

/* =====================================================================
   מעטפת האפליקציה: תפריט צד, סרגל עליון/תחתון, מגירת סינון, דפים
   ===================================================================== */

.shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; }
.content { min-width: 0; }
main { max-width: 1320px; margin: 0 auto; padding: 34px 32px 90px; }

/* ---------- תפריט צד ---------- */

.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px; color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(201,164,92,.24), transparent 70%),
    radial-gradient(360px 300px at 0% 100%, rgba(36,58,107,.7), transparent 70%),
    linear-gradient(180deg, #0c1834 0%, #070e21 100%);
  border-inline-start: 1px solid rgba(201,164,92,.4);
  box-shadow: -18px 0 40px -28px rgba(0,0,0,.7);
}
.side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.side > * { position: relative; }

.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.side-brand svg, .topbar-brand svg { width: 42px; height: 42px; flex: none; }
.side-brand h1 { color: #fff; font-size: 28px; margin: 0; line-height: 1; letter-spacing: .5px; }
.side-brand small { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: 3px; color: var(--gold-2); }

.su-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 12px;
  border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(201,164,92,.35);
  color: #fff; box-shadow: none;
}
.su-card:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.su-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); padding: 2px;
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.su-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.su-avatar .initial { color: var(--gold-2); font-size: 24px; }
.su-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.su-meta strong { font-family: var(--serif); font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-status { font-size: 12px; color: #aab6d3; }
.su-status.approved { color: #7fe0b0; }
.su-status.pending { color: var(--gold-2); }
.su-status.frozen { color: #9fb4ff; }
.su-status.rejected { color: #ff9a8f; }
.su-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 3px; }
.su-bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; transition: width .6s; }

#nav { display: flex; flex-direction: column; gap: 16px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 11px; letter-spacing: 2.5px; color: #7d89a8; padding: 0 12px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  padding: 11px 14px; border-radius: 14px; background: none; color: #c9d1e6; font-size: 15.5px; font-weight: 400;
  border: 0; box-shadow: none;
}
.nav-item svg { width: 21px; height: 21px; color: var(--gold-2); opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }
.nav-item.active {
  color: #fff; font-weight: 500;
  background: linear-gradient(270deg, rgba(201,164,92,.26), rgba(201,164,92,.05));
}
.nav-item.active::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold-grad);
}
.nav-item.active svg { opacity: 1; }
.nbadge {
  margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--gold-grad); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(201,164,92,.9);
}
.side-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.side-logout {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px;
  background: none; color: #9aa6c4; font-size: 15px; box-shadow: none;
}
.side-logout:hover { background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }
.side-logout svg { width: 20px; height: 20px; }

/* ---------- סרגל עליון (טלפון/טאבלט), סרגל תחתון, רקע ---------- */

.topbar { display: none; }
.tabbar { display: none; }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(4,9,22,.6); backdrop-filter: blur(3px); }
.scrim[hidden] { display: none; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; position: sticky;
    min-height: 58px; padding: 8px 14px; color: #fff;
    background: linear-gradient(180deg, #0b1630, #0f1d3c); border-bottom: 1px solid rgba(201,164,92,.55);
  }
  .topbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; }
  .topbar-brand svg { width: 34px; height: 34px; }
  .menu-btn {
    position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; padding: 0; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff; box-shadow: none;
  }
  .menu-btn svg { width: 24px; height: 24px; stroke-width: 2; }
  .menu-btn:hover { background: rgba(255,255,255,.16); box-shadow: none; }

  .side {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 70; width: min(86vw, 320px);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.7,.2,1);
  }
  .side.open { transform: none; box-shadow: -30px 0 60px -20px rgba(0,0,0,.8); }

  .tabbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, #0b1630, #0f1d3c); border-top: 1px solid rgba(201,164,92,.55);
  }
  .tab {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px;
    background: none; color: #aab6d3; font-size: 11.5px; border-radius: 12px; box-shadow: none;
  }
  .tab svg { width: 24px; height: 24px; }
  .tab:hover { background: none; box-shadow: none; color: #fff; }
  .tab.active { color: var(--gold-2); }
  .tab.active svg { filter: drop-shadow(0 0 6px rgba(232,205,143,.5)); }
  .tab .nbadge { position: absolute; top: 2px; inset-inline-end: calc(50% - 26px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; margin: 0; }

  main { padding: 22px 16px 110px; }
  .notice { bottom: 92px; }
}

/* מצב אורח: מסך כניסה בלי תפריט */
body.guest .shell { grid-template-columns: minmax(0, 1fr); }
body.guest .side, body.guest .tabbar, body.guest .menu-btn { display: none; }
body.guest .topbar { display: flex; position: relative; justify-content: center; }
body.guest main { max-width: none; padding: 0; }
body.guest .auth { margin: 0; min-height: calc(100vh - 58px); }
@media (min-width: 1001px) { body.guest .topbar { display: none; } body.guest .auth { min-height: 100vh; } }

/* ---------- כותרות דפים ---------- */

.eyebrow-s { color: var(--gold-3); font-size: 12px; letter-spacing: 3px; margin-bottom: 4px; font-weight: 500; }
.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 40px; margin: 0; }
.inline-note { background: var(--gold-soft); border: 1px solid rgba(201,164,92,.5); color: var(--ink-2); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.inline-note.warn { background: #e8eefc; border-color: #b8c7ee; }

/* ---------- חיפוש: מגירת סינון ---------- */

.browse { display: block; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; }
.fbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 2px; border-radius: 999px; background: var(--gold-grad); color: var(--ink); font-size: 12px; font-weight: 700; }
.fbadge[hidden] { display: none; }

.drawer-scrim { position: fixed; inset: 0; z-index: 74; background: rgba(4,9,22,.55); backdrop-filter: blur(3px); }
.drawer-scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 75; width: min(94vw, 410px);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: 30px 0 70px -20px rgba(4,9,22,.7);
  transform: translateX(-104%); visibility: hidden; transition: transform .32s cubic-bezier(.3,.7,.2,1), visibility 0s linear .32s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.3,.7,.2,1); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: #fff;
  background: linear-gradient(180deg, #0b1630, #12234a); border-bottom: 1px solid rgba(201,164,92,.6);
}
.drawer-head h3 { color: #fff; margin: 0; font-size: 22px; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.icon-btn:hover { background: rgba(255,255,255,.24); box-shadow: none; }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 2; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer-foot button { flex: 1; }
.drawer h4 { font-family: var(--serif); font-size: 17px; text-align: center; margin: 20px 0 9px; }
.drawer h4 small, .lbl small { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.drawer label { font-size: 14px; }
.browse-main { min-width: 0; }

/* ---------- רשת כרטיסים צפופה ---------- */

.grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 18px; }
.flip { aspect-ratio: 3 / 4.7; }
.sortbar { padding: 14px 18px; background: rgba(255,253,248,.8); border: 1px solid var(--line); border-radius: 18px; }
.sortbar .results-count { font-size: 18px; }

/* ---------- תצוגה מקדימה ---------- */

.preview-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.preview-card .flip { aspect-ratio: 3 / 4.6; }
.preview-tips ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.preview-tips li { position: relative; padding-inline-start: 30px; color: var(--ink-2); }
.preview-tips li::before { content: "○"; position: absolute; inset-inline-start: 0; color: var(--gold-3); font-size: 18px; line-height: 1.3; }
.preview-tips li.ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 760px) { .preview-layout { grid-template-columns: minmax(0, 1fr); } .preview-card { max-width: 320px; margin: 0 auto; width: 100%; } }

/* ---------- הגדרות חשבון, חסומים ---------- */

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.setting-row h3 { margin-bottom: 4px; }
.setting-row .switch { flex: none; margin: 0; }
.pw-form { display: grid; gap: 0; max-width: 420px; }
.danger-zone { border-color: #e8c8c2; background: linear-gradient(180deg, #fffaf8, #fff5f2); }
.danger-btn { background: #fff; color: var(--danger); border-color: #e0b3ab; }
.danger-btn:hover { background: var(--danger); color: #fff; box-shadow: none; }
.empty-mini { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty-mini svg { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.3; }
.thread .su-badge { margin-inline-start: auto; }

/* ---------- שאלות לימוד ואורח חיים ---------- */
.life-box { margin: 4px 0 8px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #fbf6ea, #f6efdc); border: 1px solid rgba(201,164,92,.45); }
.life-box .field:last-child { margin-bottom: 0; }
.other-input { margin-top: 10px; }
.other-input[hidden] { display: none; }
.life-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.life-list li { position: relative; padding-inline-start: 16px; font-size: 12.5px; line-height: 1.35; color: #d4dcf0; }
.life-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* כפתור הגדלה על תמונת הכרטיס */
.corner-tools { display: flex; gap: 6px; align-items: center; }
.zoom-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(6,13,31,.55); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
.zoom-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.zoom-btn:hover { background: rgba(6,13,31,.85); box-shadow: none; }

/* =====================================================================
   כרטיס תמונה: שני צדדים של תמונות, "פרטים נוספים" קבוע מתחת
   ===================================================================== */

.tile .flip { aspect-ratio: 3 / 4.05; cursor: default; }
.flip:not(.flipped):hover .flip-inner { transform: none; }

.face.photo { background: linear-gradient(160deg, #e9e2cf, #d6cdb5); border: 1px solid rgba(201,164,92,.5); cursor: zoom-in; }
.face.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.face.photo:hover img { transform: scale(1.03); }
.face.photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none;
  background: linear-gradient(to top, rgba(6,13,31,.92), rgba(6,13,31,.3) 60%, transparent);
}
.face.photo .name { position: absolute; inset-inline: 16px; bottom: 14px; z-index: 2; color: #fff; }
.face.photo .name h3 { color: #fff; margin: 0; font-size: 26px; }
.face.photo .name h3 span { font-weight: 400; color: var(--gold-2); }
.face.photo .name .where { font-size: 13px; opacity: .92; }
/* הצד השני הוא גם תמונה: מבטלים את עיצוב "גב הכרטיס" הכהה הישן */
.face.back.photo { padding: 0; display: block; overflow: hidden; background: linear-gradient(160deg, #e9e2cf, #d6cdb5); border: 1px solid rgba(201,164,92,.5); color: inherit; }
.face.back.photo::before { display: none; }

.flip > .top-badges {
  position: absolute; top: 12px; inset-inline: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.flip > .top-badges > * { pointer-events: auto; }
.flip-btn { width: auto; min-width: 34px; height: 34px; padding: 0 11px; gap: 7px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; }
.flip-btn .pcount { letter-spacing: .5px; }

.tile-foot { display: flex; gap: 8px; margin-top: 10px; }
.more-btn { flex: 1; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); font-weight: 500; box-shadow: none; }
.more-btn:hover { background: var(--gold-grad); color: var(--ink); box-shadow: 0 8px 18px -10px rgba(167,124,50,.9); }
.chat-btn { width: 46px; padding: 0; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); }
.chat-btn svg { width: 20px; height: 20px; }

/* בהחלקה הכרטיס כולל את הכפתור בתוכו, כך שהוא תמיד גלוי */
.scard .tile { height: 100%; display: flex; flex-direction: column; animation: none; }
.scard .tile .flip { flex: 1; min-height: 0; aspect-ratio: auto; }
.scard .tile-foot { margin-top: 8px; }

/* ---------- חלון פרופיל: ניווט בין פרופילים ---------- */
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline-end: 44px; }
.pm-nav { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pm-nav button { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--ivory); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.pm-nav button:hover:not(:disabled) { background: var(--gold-soft); box-shadow: none; }
.pm-nav button:disabled { opacity: .35; cursor: default; }
/* בערימה רק לכרטיס העליון יש כפתורים גלויים (אחרת כפתורי הכרטיסים שמאחור מציצים מתחתיו) */
.scard:nth-child(n+2) .tile-foot { visibility: hidden; }

/* ---------- צפייה מוגדלת: אפליקציה (נעילת גלילה, אזורים בטוחים, סרגל ממוזערות) ---------- */
body.no-scroll { overflow: hidden; }
.lightbox { flex-direction: column; touch-action: none; overscroll-behavior: contain; }
.lb-stage { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(64px + env(safe-area-inset-top)) 14px 8px; overflow: hidden; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; cursor: zoom-in; transition: transform .25s ease; will-change: transform; }
.lightbox.zoomed .lb-stage img { cursor: grab; transition: none; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); width: 48px; height: 48px; z-index: 3; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 76px; padding: 0; border-radius: 16px; background: rgba(255,255,255,.18); color: #fff; font-size: 40px; line-height: 1; backdrop-filter: blur(6px); }
.lb-nav:hover { background: rgba(255,255,255,.32); box-shadow: none; }
.lb-bottom { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); }
.lb-count { color: #e6eaf5; font-size: 14px; background: rgba(0,0,0,.4); padding: 2px 12px; border-radius: 999px; }
.lb-thumbs { display: flex; gap: 10px; justify-content: center; max-width: 100%; overflow-x: auto; padding: 4px; }
.lb-thumbs button { width: 58px; height: 58px; flex: none; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.35); background: #111; box-shadow: none; opacity: .75; transition: opacity .15s, border-color .15s, transform .15s; }
.lb-thumbs button:hover { opacity: 1; box-shadow: none; }
.lb-thumbs button.on { opacity: 1; border-color: var(--gold); transform: translateY(-3px); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .lb-nav { width: 44px; height: 64px; font-size: 34px; }
  .lb-thumbs button { width: 52px; height: 52px; }
}

/* ---------- סינון מהיר בשורת המיון ---------- */
.sortbar { row-gap: 10px; }
.bar-sep { width: 1px; height: 26px; background: var(--line); margin-inline: 4px; }
.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.qc { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink-2); border: 1px solid #d8d0bd; padding: 7px 15px; font-size: 14px; box-shadow: none; }
.qc svg { width: 15px; height: 15px; color: var(--gold-3); }
.qc:hover { background: var(--ivory); box-shadow: none; }
.qc.active { background: var(--gold-grad); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.qc.active svg { color: var(--ink); }
@media (max-width: 700px) { .bar-sep { display: none; } }

/* =====================================================================
   צורות תצוגה: גדלי רשת, רשימה עם פרטים, רשימה מצומצמת
   ===================================================================== */

.head-tools { flex-wrap: wrap; justify-content: flex-end; }
.seg[hidden] { display: none; }
.sz { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.sz-s { width: 9px; height: 12px; }
.sz-m { width: 13px; height: 17px; }
.sz-l { width: 18px; height: 23px; }
.seg-size button { width: 44px; height: 38px; display: grid; place-items: center; }

/* גדלי רשת */
.grid.size-sm { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; }
.grid.size-sm .face.photo .name h3 { font-size: 17px; }
.grid.size-sm .face.photo .name { inset-inline: 10px; bottom: 9px; }
.grid.size-sm .face.photo .name .where { font-size: 11px; }
.grid.size-sm .flip > .top-badges { top: 8px; inset-inline: 8px; }
.grid.size-sm .badge-verified { display: none; }
.grid.size-sm .flip-btn { height: 28px; padding: 0 8px; min-width: 28px; font-size: 11px; }
.grid.size-sm .tile-foot { margin-top: 7px; }
.grid.size-sm .more-btn { padding: 8px 6px; font-size: 13px; }
.grid.size-sm .chat-btn { display: none; }
.grid.size-lg { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.grid.size-lg .face.photo .name h3 { font-size: 32px; }
.grid.size-lg .face.photo .name .where { font-size: 15px; }
.grid.size-lg .more-btn { padding: 14px 24px; font-size: 16px; }
.grid.size-lg .chat-btn { width: 54px; }

/* רשימה עם פרטים: תמונה בצד ימין (תחילת השורה בעברית), תקציר הכרטיס בצד שמאל */
.rows { display: grid; gap: 16px; }
.row-card {
  display: flex; gap: 20px; align-items: stretch; padding: 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both; transition: opacity .25s, transform .25s, box-shadow .25s;
}
.row-card:hover { box-shadow: var(--shadow-lg); }
.row-card.leaving { opacity: 0; transform: translateX(-30px); pointer-events: none; }
.rc-photo { position: relative; flex: none; width: 210px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #e9e2cf, #d6cdb5); border: 1px solid rgba(201,164,92,.5); cursor: zoom-in; }
.rc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rc-photo:hover img { transform: scale(1.04); }
.rc-count { position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; gap: 6px; align-items: center; background: rgba(6,13,31,.62); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.rc-count svg { width: 13px; height: 13px; color: var(--gold-2); }
.rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.rc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.rc-head h3 { margin: 0; font-size: 26px; }
.rc-head h3 span { color: var(--gold-3); font-weight: 400; }
.rc-where { color: var(--muted); font-size: 14px; display: inline-flex; gap: 5px; align-items: center; }
.rc-badge { background: var(--ink); margin-inline-start: auto; align-self: center; }
.rc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.rc-facts li { display: inline-flex; align-items: center; gap: 6px; }
.rc-facts svg { color: var(--gold-3); }
.rc-about { margin: 0; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.rc-actions .more-btn { flex: 0 1 auto; padding: 10px 22px; }
.rc-like { width: 46px; padding: 0; display: grid; place-items: center; background: var(--gold-grad); color: var(--ink); }
.rc-like:hover { background: var(--gold-grad); filter: brightness(1.07); }
.rc-like svg, .rc-pass svg { width: 20px; height: 20px; }
.rc-pass { width: 46px; padding: 0; display: grid; place-items: center; background: #fff; color: #c0463a; border: 1px solid #e6d9d6; box-shadow: none; }
.rc-pass:hover { background: #fff3f1; box-shadow: none; }

/* רשימה מצומצמת: שורה אחת לכל כרטיס */
.rows.compact-rows { gap: 10px; }
.row-card.compact { align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; }
.row-card.compact .rc-photo { width: 64px; border-radius: 14px; aspect-ratio: 1 / 1; }
.row-card.compact .rc-count { display: none; }
.row-card.compact .rc-body { gap: 6px; padding: 0; }
.row-card.compact .rc-head h3 { font-size: 19px; }
.row-card.compact .chips { gap: 5px; }
.row-card.compact .rc-actions { margin: 0; padding: 0; flex: none; }
.row-card.compact .more-btn { padding: 8px 16px; font-size: 14px; }
.row-card.compact .chat-btn, .row-card.compact .rc-like { width: 40px; height: 40px; }

.rows .skeleton { height: 150px; }

@media (max-width: 760px) {
  .row-card { gap: 12px; padding: 10px; border-radius: 20px; }
  .rc-photo { width: 118px; border-radius: 14px; }
  .rc-head h3 { font-size: 21px; }
  .rc-badge { display: none; }
  .rc-about { -webkit-line-clamp: 2; font-size: 14px; }
  .rc-facts { font-size: 13px; gap: 4px 12px; }
  .rc-actions .more-btn { padding: 9px 14px; font-size: 14px; }
  .row-card.compact .rc-actions .more-btn { display: none; }
  .row-card.compact .rc-photo { width: 56px; }
  .grid.size-lg { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   תפריט צד: גרסה משודרגת (ברכה, טבעת השלמה, סטטוס, חיפוש מהיר, מצב מכווץ)
   ===================================================================== */

.side { gap: 16px; }
.side-greet { padding: 0 8px; display: grid; gap: 2px; }
.side-greet strong { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-greet small { color: var(--gold-2); font-size: 12.5px; letter-spacing: .4px; }

/* תמונה בטבעת שמתמלאת לפי אחוז השלמת הפרופיל */
.su-ring {
  --pct: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; padding: 3px; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255,255,255,.16) 0);
  box-shadow: 0 0 22px -6px rgba(201,164,92,.55);
}
.su-ring .su-avatar { width: 100%; height: 100%; padding: 0; outline: none; border: 3px solid #0b1630; }
.su-bar { display: none; }
.su-pct { font-size: 12px; color: #aab6d3; }

/* כרטיסי סטטוס: לייקים והודעות חדשים */
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i n" "t t"; align-items: center; column-gap: 8px; row-gap: 2px;
  padding: 10px 12px; text-align: start; border-radius: 16px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); color: #cfd7ea; box-shadow: none; transition: background .2s, border-color .2s, transform .2s;
}
.stat svg { grid-area: i; width: 18px; height: 18px; color: var(--gold-2); }
.stat b { grid-area: n; font-family: var(--serif); font-size: 21px; color: #fff; line-height: 1; justify-self: end; }
.stat span { grid-area: t; font-size: 11.5px; color: #98a5c4; }
.stat:hover { background: rgba(255,255,255,.1); box-shadow: none; transform: translateY(-1px); }
.stat.hot { border-color: rgba(201,164,92,.65); background: rgba(201,164,92,.13); }
.stat.hot b { color: var(--gold-2); }

/* חיפוש מהיר */
.side-search { position: relative; }
.side-search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gold-2); pointer-events: none; }
.side-search input {
  margin: 0; padding: 11px 14px; padding-inline-start: 42px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.side-search input::placeholder { color: #8e9bbb; }
.side-search input:focus { background: rgba(255,255,255,.12); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.18); }

/* פריטי ניווט: אייקון בתוך מסגרת, קו מפריד לכותרות קבוצה */
.nav-title { display: flex; align-items: center; gap: 10px; }
.nav-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, rgba(201,164,92,.4), transparent); }
.nav-item { gap: 12px; padding: 7px 10px; transition: background .2s, transform .2s; }
.nav-item .ni { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); transition: background .2s, transform .2s, box-shadow .2s; }
.nav-item .ni svg { width: 20px; height: 20px; color: var(--gold-2); opacity: 1; }
.nav-item:hover { transform: translateX(-3px); }
.nav-item:hover .ni { background: rgba(255,255,255,.13); transform: scale(1.06); }
.nav-item.active { background: linear-gradient(270deg, rgba(201,164,92,.24), rgba(201,164,92,.03)); }
.nav-item.active .ni { background: var(--gold-grad); box-shadow: 0 6px 16px -6px rgba(201,164,92,.95); }
.nav-item.active .ni svg { color: var(--ink); }
.nav-item.active .nl { color: #fff; font-weight: 500; }

/* תחתית: כיווץ ויציאה */
.side-foot { display: grid; gap: 2px; }
.side-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; background: none; color: #9aa6c4; font-size: 14.5px; box-shadow: none; }
.side-btn:hover { background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }
.side-btn svg { width: 20px; height: 20px; }

/* מצב מכווץ (מחשב בלבד): רק אייקונים */
@media (min-width: 1001px) {
  .shell.rail { grid-template-columns: 92px minmax(0, 1fr); }
  .rail .side { padding: 18px 12px; align-items: center; }
  .rail .side-brand div, .rail .side-greet, .rail .side-search, .rail .su-meta, .rail .side-stats,
  .rail .nav-title, .rail .nl, .rail .side-btn span { display: none; }
  .rail .side-brand { padding: 0; justify-content: center; }
  .rail .su-card { padding: 4px; width: auto; justify-content: center; background: none; border: 0; }
  .rail #nav { width: 100%; gap: 6px; }
  .rail .nav-group { gap: 6px; }
  .rail .nav-group + .nav-group { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
  .rail .nav-item { justify-content: center; padding: 5px; }
  .rail .nav-item::before { display: none; }
  .rail .nav-item.active { background: none; }
  .rail .nav-item:hover { transform: none; }
  .rail .nbadge { position: absolute; top: -2px; inset-inline-end: 2px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; margin: 0; }
  .rail .side-foot { width: 100%; }
  .rail .side-btn { justify-content: center; padding: 10px; }
  .rail #sideRail svg { transform: scaleX(-1); }
}
@media (max-width: 1000px) {
  .side-greet strong { font-size: 22px; }
}

/* גובה חלון נמוך: מצמצמים את התפריט כדי שהיציאה והכיווץ יישארו בטווח הראייה */
@media (min-width: 1001px) and (max-height: 860px) {
  .side { gap: 10px; padding-top: 14px; padding-bottom: 12px; }
  .stat span { display: none; }
  .stat { padding: 8px 12px; }
  .nav-item .ni { width: 32px; height: 32px; }
  .nav-item { padding: 5px 10px; }
  #nav { gap: 10px; }
  .su-ring { width: 56px; height: 56px; }
  .side-greet small { display: none; }
}

/* יציאה וכיווץ נשארים צמודים לתחתית התפריט גם כשהוא נגלל */
.side-foot { position: sticky; bottom: -12px; z-index: 2; margin-inline: -4px; padding: 8px 4px 12px; background: linear-gradient(180deg, rgba(7,14,33,0), #070e21 28%); }

/* ---------- החלקה: חותמת "דלג" וכפתור דילוג ---------- */
.stamp.skip { left: 50%; top: auto; bottom: 90px; transform: translateX(-50%) rotate(-4deg); color: #8fb4ff; border-color: #8fb4ff; }
.act.skip { width: 54px; height: 54px; background: var(--ink); color: var(--gold-2); }
.act.skip svg { width: 24px; height: 24px; }
.act.skip:hover { background: var(--ink-2); }

/* דף הניהול (אין בו תפריט צד): כותרת עליונה פשוטה */
body > header { background: linear-gradient(180deg, #0b1630, #0f1d3c); color: #fff; padding: 14px 24px; border-bottom: 1px solid rgba(201,164,92,.55); }
body > header h1 { color: #fff; margin: 0; font-size: 24px; }

/* ---------- ניהול מאמרים ---------- */
.art-admin { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.art-list { display: grid; gap: 8px; align-content: start; max-height: 560px; overflow-y: auto; padding: 2px; }
.art-item { text-align: start; display: grid; gap: 3px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.art-item strong { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.art-item span { font-size: 12px; color: var(--muted); }
.art-item:hover { background: var(--ivory); box-shadow: none; }
.art-item.on { border-color: var(--gold); background: var(--gold-soft); }
@media (max-width: 800px) { .art-admin { grid-template-columns: minmax(0, 1fr); } }

/* ---------- מאמרים, מדריכים וטיפים ---------- */
.art-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.art-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; cursor: pointer; background: var(--paper);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both; transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.art-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--gold-grad); opacity: .85; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.art-card h3 { margin: 4px 0 0; font-size: 23px; }
.art-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card footer { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.art-card footer span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.art-more { color: var(--gold-3); font-weight: 600; }
.art-type { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--ink-2); }
.art-type.guide { background: #e1ecf8; color: #1d4a7a; }
.art-type.tip { background: #e2f1e8; color: #2b6a4b; }

.article-modal { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 34px 38px; margin: 0; }
.article-modal .pm-close { top: 16px; inset-inline-end: 16px; }
.am-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-inline-end: 50px; }
.am-meta { color: var(--muted); font-size: 13px; }
.article-modal h2 { font-size: 36px; margin-bottom: 8px; }
.am-summary { font-family: var(--serif); font-size: 20px; color: var(--ink-2); border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; margin: 12px 0 20px; }
.am-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.am-body h3 { font-size: 24px; margin: 26px 0 6px; color: var(--ink); }
.am-body p { margin: 0 0 14px; }
.am-body ul { margin: 0 0 16px; padding-inline-start: 24px; }
.am-body li { margin-bottom: 6px; }
.am-body li::marker { color: var(--gold-3); }
.am-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.am-nav .secondary { max-width: 48%; text-align: start; white-space: normal; }
@media (max-width: 600px) { .article-modal { padding: 24px 20px; } .article-modal h2 { font-size: 28px; } .am-nav .secondary { max-width: 100%; } }

/* ---------- תמונה ראשית באלבום ---------- */
.photo.is-main { outline: 3px solid var(--gold); outline-offset: -3px; }
.main-badge { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; background: var(--gold-grad); color: var(--ink); padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
.main-badge svg { width: 13px; height: 13px; }
.photo .main-btn { inset-inline-start: auto; inset-inline-end: 6px; font-size: 13px; }

/* =====================================================================
   דף כניסה (נחיתה): סרגל עליון, אזור ראשי עם הרשמה מהירה, יתרונות, שלבים ופעולה
   ===================================================================== */

html { scroll-behavior: smooth; }
body.guest .topbar { display: none !important; }
body.guest .shell { display: block; }
body.guest main { max-width: none; padding: 0; }

/* ---------- דף פתיחה ---------- */
.lx {
  color: var(--text); min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(201,164,92,.18), transparent 70%),
    repeating-linear-gradient(45deg, rgba(120,95,50,.035) 0 2px, transparent 2px 9px),
    #f4eedf;
}
body.lx-lock { overflow: hidden; }

/* סרגל עליון בהיר עם קו זהב */
.lx-nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 5vw, 56px);
  background: rgba(250,246,236,.92); backdrop-filter: blur(12px); border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, #c9a45c 20%, #e8cd8f 50%, #c9a45c 80%, transparent) 1;
}
.lx-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 30px; font-weight: 700; text-decoration: none; }
.lx-brand svg { width: 44px; height: 44px; }
.lx-brand span { background: linear-gradient(180deg, #b8892f, #7a5714); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-links { display: flex; gap: 4px; margin-inline-start: 10px; }
.lx-links a { color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.lx-links a:hover { background: rgba(201,164,92,.16); color: var(--ink); }
.lx-actions { margin-inline-start: auto; display: flex; gap: 10px; }
.lx-btn { padding: 10px 24px; border-radius: 999px; font-size: 15px; font-weight: 700; border: 1px solid transparent; cursor: pointer; box-shadow: none; }
.lx-btn.ghost { background: transparent; color: var(--ink); border-color: rgba(11,22,48,.3); }
.lx-btn.ghost:hover { background: rgba(11,22,48,.06); box-shadow: none; }
.lx-btn.gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(167,124,50,.9); }
.lx-btn.gold:hover { background: var(--gold-grad); filter: brightness(1.06); }
.lx-btn.ink { background: var(--ink); color: #fff; }
.lx-btn.ink:hover { background: var(--ink-2); }
.lx-btn.big { padding: 15px 46px; font-size: 19px; }

/* מסגרת מרכזית, כמו דף מודפס */
.lx-frame { max-width: 1180px; margin: 22px auto 0; background: var(--paper); box-shadow: 0 30px 70px -40px rgba(60,40,10,.55); border-top: 4px solid #c9a45c; }

/* אזור ראשי: איור ירושלים בשקיעה וכרטיס ממוסגר */
.lx-hero { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: flex-start; padding: 40px clamp(16px, 5vw, 60px); overflow: hidden; }
.lx-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-hero-card {
  position: relative; width: min(500px, 100%); text-align: center; padding: 34px 34px 26px; background: rgba(255,253,247,.97);
  outline: 2px solid #fff; outline-offset: -10px; border: 1px solid rgba(201,164,92,.7); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.lx-ribbon {
  position: absolute; top: 14px; inset-inline-start: -38px; transform: rotate(-45deg); width: 140px; padding: 4px 0; text-align: center;
  background: #6b5a2a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
[dir="rtl"] .lx-ribbon { transform: rotate(45deg); }
.lx-hero-card { overflow: hidden; }
.lx-eyebrow { color: var(--gold-3); font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.lx-hero-card h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 64px); line-height: 1; margin: 0 0 8px; color: var(--ink); }
.lx-hero-card h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-sub { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.lx-sub strong { color: var(--gold-3); }
.lx-lead { color: var(--muted); font-size: 16px; margin: 0 auto 20px; max-width: 380px; }
.lx-already { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* רצועת כניסה */
.lx-band { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: #fff; border-bottom: 1px solid var(--line); }
.lx-band > div { padding: 26px clamp(16px, 4vw, 40px); }
.lx-band h2 { font-size: 22px; margin: 0 0 14px; color: #4b5b2a; }
.lx-band-new { border-inline-start: 1px solid var(--line); text-align: center; }
.lx-band-new h2 { color: var(--gold-3); }
.lx-band-new p { color: var(--muted); margin: 0 0 14px; }
.lx-login { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.lx-login label { display: grid; gap: 6px; margin: 0; font-weight: 700; font-size: 14px; }
.lx-login input { margin: 0; }
.lx-login .lx-btn { padding: 12px 28px; }

/* אודות */
.lx-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); padding: clamp(40px, 6vw, 70px) clamp(16px, 5vw, 60px); align-items: center; }
.lx-kicker { color: var(--gold-3); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 6px; }
.lx-about h2, .lx-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 16px; color: var(--ink); }
.lx-about p { font-size: 17px; line-height: 1.85; color: var(--text); margin: 0 0 12px; }
.lx-paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lx-paths li { display: grid; gap: 2px; padding: 16px 20px; background: linear-gradient(135deg, #fffaf0, #f6eedb); border: 1px solid rgba(201,164,92,.45); border-inline-start: 4px solid #c9a45c; border-radius: 14px; }
.lx-paths b { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.lx-paths span { color: var(--muted); font-size: 15px; }

/* מקטעים */
.lx-section { padding: clamp(40px, 6vw, 70px) clamp(16px, 5vw, 60px); }
.lx-head { text-align: center; margin-bottom: 30px; }
.lx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.lx-feature { background: #fffdf7; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.lx-feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(60,40,10,.6); }
.lx-feature .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-3); margin-bottom: 12px; }
.lx-feature h3 { margin: 0 0 6px; font-size: 19px; }
.lx-feature p { margin: 0; color: var(--muted); }
.lx-steps { background: linear-gradient(180deg, #f6efdd, #fbf7ee); border-block: 1px solid var(--line); }
.lx-stepslist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; text-align: center; }
.lx-stepslist .num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); background: var(--gold-grad); box-shadow: 0 10px 22px -10px rgba(167,124,50,.9); margin-bottom: 10px; }
.lx-stepslist h3 { margin: 0 0 4px; }
.lx-stepslist p { margin: 0; color: var(--muted); }

.lx-quote { text-align: center; padding: 46px 20px; background: linear-gradient(160deg, #0b1630, #1a2550); color: #fff; }
.lx-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); color: #f3e2b4; }
.lx-quote cite { display: block; margin-top: 8px; color: #b7c0d8; font-style: normal; font-size: 15px; }

.lx-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.lx-faq details { background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.lx-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; color: var(--gold-3); font-size: 22px; line-height: 1; }
.lx-faq details[open] summary::after { content: "−"; }
.lx-faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; }

.lx-cta { text-align: center; padding: clamp(44px, 7vw, 80px) 20px; background: radial-gradient(500px 260px at 50% 0%, rgba(201,164,92,.3), transparent 70%), #fbf6ea; border-top: 1px solid var(--line); }
.lx-cta h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.lx-cta p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }

.lx-foot { text-align: center; padding: 20px 16px 26px; background: #efe7d3; border-top: 1px solid var(--line); }
.lx-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-bottom: 10px; }
.lx-foot nav a, .lx-foot nav .l-foot-legal { padding: 2px 16px; color: var(--ink-2); text-decoration: none; }
.lx-foot nav > * + * { border-inline-start: 1px solid #c9b88f; }
.lx-foot nav .l-foot-legal:empty { display: none; }
.lx-foot p { margin: 0; color: var(--muted); font-size: 13px; }

/* חלון הרשמה */
.lx-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lx-modal[hidden] { display: none; }
.lx-modal-back { position: absolute; inset: 0; background: rgba(6,13,31,.62); backdrop-filter: blur(4px); }
.lx-modal-box {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 22px;
  padding: 28px 28px 20px; border: 1px solid rgba(201,164,92,.6); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); animation: lxIn .22s ease-out;
}
@keyframes lxIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lx-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--ivory); color: var(--ink); box-shadow: none; display: grid; place-items: center; }
.lx-x svg { width: 18px; height: 18px; }
.lx-modal-head { text-align: center; margin-bottom: 10px; }
.lx-modal-head svg { width: 52px; height: 52px; }
.lx-modal-head h2 { font-family: var(--serif); font-size: 30px; margin: 4px 0; }
.lx-modal-head p { margin: 0; color: var(--muted); }
.lx-modal .chipset { justify-content: flex-start; }
.lx-modal .opt { flex: 1; padding: 11px 16px; }
.lx-modal .auth-toggle { text-align: center; margin-top: 8px; }
.l-submit { width: 100%; margin-top: 6px; padding: 14px; font-size: 17px; }

@media (max-width: 900px) {
  .lx-links { display: none; }
  .lx-frame { margin-top: 0; }
  .lx-hero { justify-content: center; min-height: 0; padding: 120px 16px 30px; }
  .lx-band, .lx-about { grid-template-columns: minmax(0, 1fr); }
  .lx-band-new { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .lx-nav { gap: 8px; padding: 10px 16px; }
  .lx-brand { font-size: 22px; }
  .lx-brand svg { width: 34px; height: 34px; }
  .lx-btn { padding: 8px 14px; font-size: 14px; }
  .lx-btn.big { padding: 13px 34px; font-size: 17px; }
  .lx-hero-card { padding: 28px 18px 22px; }
  .lx-login { grid-template-columns: minmax(0, 1fr); }
  .lx-modal-box { padding: 24px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lx-modal-box { animation: none; } .lx-feature { transition: none; } html { scroll-behavior: auto; } }

/* ---------- מגן פרטיות: מסך שחור בניסיון צילום, והדפסה חסומה ---------- */
.shield { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.shield[hidden] { display: none; }
.shield-box { max-width: 520px; color: #fff; display: grid; gap: 18px; justify-items: center; }
.shield-box svg { width: 64px; height: 64px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shield-box strong { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); font-weight: 500; line-height: 1.4; }
/* תמונות: בלי בחירה, בלי תפריט לחיצה ארוכה בטלפון, בלי גרירה */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
@media print {
  body > * { display: none !important; }
  body::before { content: "לא ניתן להדפיס כדי לשמור על פרטיות הגולשים"; display: block; font-size: 24px; padding: 40px; text-align: center; color: #000; }
}

/* המסך החוסם: שחור-דהוי (כהה עם טשטוש), כך שהתוכן שמאחוריו לא קריא */
.shield { background: rgba(0,0,0,.93); backdrop-filter: blur(22px) brightness(.35); -webkit-backdrop-filter: blur(22px) brightness(.35); }

/* סרגלי גלילה שקופים וחלשים (בעברית סרגל הגלילה מופיע בצד שמאל): התפריט הראשי והמגירה */
.side, .drawer-body, .lb-thumbs { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.drawer-body { scrollbar-color: rgba(11,22,48,.18) transparent; }
.side::-webkit-scrollbar, .drawer-body::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-track, .drawer-body::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 6px; }
.side:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(11,22,48,.12); border-radius: 6px; }
.drawer-body:hover::-webkit-scrollbar-thumb { background: rgba(11,22,48,.28); }
/* גם הצל בקצה השמאלי של התפריט עדין יותר */
.side { box-shadow: -10px 0 30px -26px rgba(0,0,0,.45); }

/* ---------- לב "אהבתי" על התמונה (פינה שמאלית תחתונה) ---------- */
.heart-btn {
  position: absolute; left: 12px; bottom: 12px; z-index: 6; width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; background: rgba(6,13,31,.55); color: #fff; backdrop-filter: blur(6px); box-shadow: none; border: 1px solid rgba(255,255,255,.35);
  transition: background .2s, color .2s, transform .15s;
}
.heart-btn svg { width: 20px; height: 20px; stroke-width: 2; }
.heart-btn:hover { background: var(--gold-grad); color: var(--ink); border-color: transparent; transform: scale(1.1); box-shadow: none; }
.heart-btn.liked { background: var(--gold-grad); color: var(--ink); border-color: transparent; animation: heartPop .6s ease; pointer-events: none; }
.heart-btn.liked svg { fill: currentColor; }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.rc-photo .heart-btn { left: 10px; bottom: 10px; }
.grid.size-sm .heart-btn { width: 32px; height: 32px; left: 8px; bottom: 8px; }
.grid.size-sm .heart-btn svg { width: 16px; height: 16px; }
/* בהחלקה יש כבר כפתור לב והחלקה ימינה */
.scard .heart-btn { display: none; }
.tile.leaving { opacity: 0; transform: scale(.94); transition: opacity .25s, transform .25s; pointer-events: none; }

/* ---------- מאמן הכרטיס ---------- */
.coach-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.coach-ring {
  --pct: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), #e8e0cc 0); color: var(--ink);
}
.coach-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.coach-ring b, .coach-ring small { position: relative; line-height: 1.1; }
.coach-ring b { font-family: var(--serif); font-size: 38px; }
.coach-ring small { font-size: 11px; color: var(--muted); }
.coach-head h3 { margin-bottom: 2px; }
.coach-level { margin: 0; font-weight: 600; color: var(--gold-3); }
.coach-level.top { color: var(--ok); }
.coach-sub { font-size: 16px; color: var(--gold-3); margin: 22px 0 8px; }
.coach-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coach-tips li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; }
.coach-tips .gain { flex: none; min-width: 52px; text-align: center; font-weight: 700; color: var(--ink); background: var(--gold-grad); padding: 4px 8px; border-radius: 999px; font-size: 14px; }
.coach-tips li div { flex: 1; min-width: 0; }
.coach-tips p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.coach-tips .secondary { flex: none; padding: 8px 18px; }
.coach-done { color: var(--ok); font-weight: 600; margin: 16px 0 0; }
.coach-all { margin-top: 16px; }
.coach-all summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.coach-group h5 { margin: 14px 0 4px; font-family: var(--serif); font-size: 16px; color: var(--ink); }
.coach-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; }
.coach-group li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); padding: 3px 0; border-bottom: 1px dashed var(--line); }
.coach-group li.ok { color: var(--ok); }
.coach-group li.part { color: var(--warn); }
.coach-group b { font-weight: 600; direction: ltr; }
.preview-tips .coach-tips li { flex-wrap: wrap; }
@media (max-width: 560px) { .coach-tips li { flex-wrap: wrap; } .coach-tips .secondary { width: 100%; } }

/* =====================================================================
   ממשק ניהול: תפריט צד כהה, סקירה, אישור המוני
   ===================================================================== */

body.ad-body > header { display: none; }
.ad-login { max-width: 420px; margin: 8vh auto; padding: 34px; }
.ad-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ad-login-brand svg { width: 46px; height: 46px; }
.ad-login-brand strong { font-family: var(--serif); font-size: 26px; color: var(--ink); display: block; line-height: 1; }
.ad-login-brand small { color: var(--gold-3); letter-spacing: 3px; font-size: 11px; }

.ad-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ad-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px 14px; color: #fff;
  background:
    radial-gradient(380px 240px at 100% 0%, rgba(201,164,92,.26), transparent 70%),
    linear-gradient(180deg, #0c1834 0%, #070e21 100%);
  border-inline-start: 1px solid rgba(201,164,92,.4);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.ad-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ad-brand svg { width: 42px; height: 42px; flex: none; }
.ad-brand strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; }
.ad-brand small { color: var(--gold-2); letter-spacing: 3px; font-size: 10.5px; }
.ad-nav { display: flex; flex-direction: column; gap: 4px; }
.ad-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }

.ad-main { min-width: 0; padding: 34px clamp(16px, 3vw, 40px) 80px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* אריחי סקירה */
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.ad-tile { display: grid; gap: 6px; text-align: start; padding: 22px; border-radius: 22px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ad-tile b { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--ink); }
.ad-tile span { font-size: 14px; color: var(--muted); }
.ad-tile:hover { background: var(--paper); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ad-tile.hot { border-color: var(--gold); background: linear-gradient(180deg, #fffdf6, var(--gold-soft)); }
.ad-tile.hot b { color: var(--gold-3); }

/* סרגל בחירה ואישור המוני */
.ad-toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px;
  background: rgba(255,253,248,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.ad-toolbar .check { margin: 0; font-weight: 500; }
.ad-sel { color: var(--muted); font-size: 14px; }
.ad-bulk { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ad-bulk button:disabled, .actions-row button:disabled { opacity: .45; cursor: default; }
.ghost-gold { background: #fff; color: var(--gold-3); border: 1px solid var(--gold); box-shadow: none; }
.ghost-gold:hover { background: var(--gold-soft); filter: none; box-shadow: none; }

/* כרטיס פרופיל לאישור */
.ad-card { display: flex; gap: 18px; align-items: flex-start; padding: 18px; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); transition: border-color .2s, background .2s; }
.ad-card.selected, .ad-photo.selected { border-color: var(--gold); background: #fffbef; }
.ad-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: 4px 0 0; cursor: pointer; }
.ad-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold-3); cursor: pointer; }
.ad-thumbs { display: flex; gap: 8px; flex: none; max-width: 270px; flex-wrap: wrap; }
.ad-thumbs img { width: 78px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #eee; border: 1px solid var(--line); }
.ad-info { flex: 1; min-width: 0; }
.ad-info h3 { margin-bottom: 4px; }
.ad-info p { margin: 3px 0; color: var(--ink-2); font-size: 15px; }

/* רשת תמונות לאישור */
.ad-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ad-photo { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: border-color .2s; }
.ad-photo > img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #eee; }
.ad-check.over { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; width: 34px; height: 34px; background: rgba(255,255,255,.92); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.25); margin: 0; }
.ad-photo-info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.ad-photo-info small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ad-photo-info .actions-row { display: flex; gap: 6px; margin-top: 6px; }
.ad-photo-info .actions-row button { flex: 1; padding: 8px 10px; font-size: 14px; }

@media (max-width: 900px) {
  .ad-shell { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; }
  .ad-brand { padding: 0 6px 0 0; border: 0; }
  .ad-brand div { display: none; }
  .ad-nav { flex-direction: row; gap: 4px; }
  .ad-nav .nl { display: none; }
  .ad-nav .nav-item { padding: 5px; }
  .ad-foot { margin: 0; flex-direction: row; border: 0; padding: 0; }
  .ad-foot .side-btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .ad-card { flex-direction: column; }
  .ad-thumbs { max-width: none; }
}

/* =====================================================================
   סרגל עליון מהיר (דסקטופ): מיקום, מעבר גילוי/חיפוש, אייקונים עם מונים ותפריט משתמש
   ===================================================================== */

.qbar { display: none; }
@media (min-width: 1001px) {
  body:not(.guest) .qbar {
    position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 18px; padding: 12px clamp(20px, 3vw, 40px);
    background: rgba(250,247,241,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -26px rgba(11,22,48,.6);
  }
}
.q-crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; white-space: nowrap; }
.q-crumb i { font-style: normal; color: var(--gold); }
.q-crumb strong { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 600; }

.q-seg { margin-inline: auto; display: inline-flex; padding: 4px; gap: 2px; background: #fff; border: 1px solid #d8d0bd; border-radius: 999px; box-shadow: 0 6px 18px -12px rgba(11,22,48,.5); }
.q-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border-radius: 999px; background: none; color: var(--ink-2); font-size: 15px; box-shadow: none; }
.q-seg button svg { width: 18px; height: 18px; color: var(--gold-3); }
.q-seg button:hover { background: var(--ivory); box-shadow: none; }
.q-seg button.on { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(11,22,48,.8); }
.q-seg button.on svg { color: var(--gold-2); }

.q-end { display: flex; align-items: center; gap: 10px; }
.q-icon {
  position: relative; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--ink-2); border: 1px solid #d8d0bd; box-shadow: none; transition: transform .15s, background .2s;
}
.q-icon svg { width: 21px; height: 21px; }
.q-icon:hover { background: var(--ivory); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(11,22,48,.6); }
.q-icon.active { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.q-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--gold-grad); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(201,164,92,.9); }

.q-user { position: relative; }
.q-avatar { width: 48px; height: 48px; padding: 3px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--ink-3), var(--ink)); outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: none; }
.q-avatar:hover { box-shadow: 0 8px 18px -8px rgba(167,124,50,.9); background: linear-gradient(160deg, var(--ink-3), var(--ink)); }
.q-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.q-avatar .initial { color: var(--gold-2); font-size: 20px; }
.q-menu {
  position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 30; width: 250px; padding: 8px; display: none; flex-direction: column; gap: 2px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  transform-origin: top left; animation: qpop .18s ease both;
}
.q-user.open .q-menu { display: flex; }
@keyframes qpop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.q-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.q-menu-head strong { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.q-menu-head small { color: var(--muted); font-size: 12.5px; }
.q-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; background: none; color: var(--ink-2); font-size: 15px; text-align: start; box-shadow: none; }
.q-menu button svg { width: 19px; height: 19px; color: var(--gold-3); }
.q-menu button:hover { background: var(--gold-soft); color: var(--ink); box-shadow: none; }
.q-menu .q-logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--danger); }
.q-menu .q-logout svg { color: var(--danger); }
@media (max-width: 1180px) { .q-crumb span, .q-crumb i { display: none; } }
@media (prefers-reduced-motion: reduce) { .q-menu { animation: none; } }

/* מנויים ושוברים */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.inline-form label { flex: 1 1 160px; min-width: 140px; }
.inline-form button { flex: none; }
.pill.ok { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold); }
.card .row { flex-wrap: wrap; gap: 10px; }
.card .row .actions-row { display: flex; align-items: center; gap: 8px; }
.card .row .actions-row select { width: auto; }

/* =====================================================================
   כפתור "חיפוש מותאם אישית": כהה, עם מסגרת זהב ואייקון בעיגול
   ===================================================================== */
.filter-toggle.lux {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 10px;
  border-radius: 999px; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: .2px;
  background: linear-gradient(135deg, #172a55 0%, #0b1630 55%, #070e21 100%);
  border: 1px solid var(--gold); box-shadow: 0 14px 28px -14px rgba(11,22,48,.85), inset 0 1px 0 rgba(232,205,143,.35);
  transition: transform .18s, box-shadow .25s;
}
.filter-toggle.lux::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(232,205,143,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s;
}
.filter-toggle.lux:hover { background: linear-gradient(135deg, #1c3265 0%, #0e1c3d 55%, #08112a 100%); transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(11,22,48,.95), 0 0 0 3px rgba(201,164,92,.22), inset 0 1px 0 rgba(232,205,143,.5); }
.filter-toggle.lux:hover::before { transform: translateX(120%); }
.filter-toggle.lux .ft-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-grad); color: var(--ink); box-shadow: 0 6px 14px -6px rgba(201,164,92,.95); flex: none; }
.filter-toggle.lux .ft-ico svg { width: 19px; height: 19px; }
.filter-toggle.lux .ft-text { background: linear-gradient(180deg, #fff 30%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.filter-toggle.lux .fbadge { background: #fff; color: var(--ink); }
@media (max-width: 560px) { .filter-toggle.lux { padding-inline-end: 16px; font-size: 15px; } .filter-toggle.lux .ft-ico { width: 32px; height: 32px; } }

/* הצעות היום */
.daily { margin: 0 0 22px; padding: 18px 20px; border-radius: 24px; background: linear-gradient(180deg, #fffdf6, var(--gold-soft)); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.daily[hidden] { display: none; }
.daily-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.daily-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.daily-head h3 svg { width: 22px; height: 22px; color: var(--gold-3); }
.daily-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.daily-card { flex: 0 0 132px; scroll-snap-align: start; display: grid; gap: 4px; justify-items: center; padding: 12px 8px 14px; border-radius: 20px; background: #fff; border: 1px solid #e3dcc9; color: var(--ink); box-shadow: none; transition: transform .18s, box-shadow .2s; }
.daily-card:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 16px 26px -16px rgba(11,22,48,.55); }
.daily-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--ink-3), var(--ink)); outline: 2px solid var(--gold); outline-offset: 2px; }
.daily-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-photo .initial { color: var(--gold-2); font-size: 34px; }
.daily-card strong { font-family: var(--serif); font-size: 17px; }
.daily-card small { color: var(--gold-3); font-size: 12.5px; }

/* "למה זה מתאים לך" וממליצים בחלון הפרופיל */
.fit-box { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(180deg, #fffdf6, var(--gold-soft)); border: 1px solid var(--gold); }
.fit-box h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.fit-box h4 svg { width: 18px; height: 18px; color: var(--gold-3); }
.fit-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.fit-box li { position: relative; padding-inline-start: 22px; font-size: 14.5px; color: var(--ink-2); }
.fit-box li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold-3); font-weight: 700; }

/* תזכורות בהודעות */
.stale { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #f7edd4; color: var(--warn); font-size: 12.5px; }
.stale.mine { background: var(--gold-soft); color: var(--ink-2); }

/* סיפורי הצלחה וקורסים: תוויות סוג */
.art-type.story { background: #f5dcd8; color: #8a2f3a; }
.art-type.course { background: #dcdff2; color: #2b3a7a; }

/* קורסים */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .25s; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.course-cover { position: relative; height: 130px; display: grid; place-items: center; color: var(--gold-2); }
.course-cover svg { width: 54px; height: 54px; opacity: .9; }
.course-cover span { position: absolute; bottom: 12px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(232,205,143,.5); color: #fff; font-size: 12.5px; }
.course-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.course-body h3 { margin: 0; font-size: 23px; }
.course-body p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-body footer { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.course-pct { color: var(--gold-3); font-weight: 600; }
.course-bar { height: 6px; border-radius: 6px; background: #ece5d3; overflow: hidden; }
.course-bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 6px; }

.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.lesson { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: start; transition: transform .15s, border-color .2s; }
.lesson:hover { background: var(--paper); transform: translateX(-4px); border-color: var(--gold); }
.lesson-num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, var(--ink-3), var(--ink)); color: var(--gold-2); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.lesson.done .lesson-num { background: var(--gold-grad); color: var(--ink); }
.lesson-title { flex: 1; display: grid; gap: 2px; }
.lesson-title strong { font-family: var(--serif); font-size: 19px; }
.lesson-title small { color: var(--muted); font-size: 13px; }

/* ניהול: מתגי תכונות */
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-text { flex: 1; min-width: 0; }
.feature-text strong { font-family: var(--serif); font-size: 19px; }
.feature-text p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.feature-row.off .feature-text strong { color: var(--muted); }
.feature-row .switch { flex: none; margin: 0; }
.feature-num { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.feature-num input { width: 84px; }
.legal-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* =====================================================================
   תפריט צד יוקרתי: כרטיס חבר עם תג מנוי, מחוון זהב גולש,
   סרגל תחתון צף ומגירה מלמטה במובייל
   ===================================================================== */

/* כרטיס חבר: טבעת גדולה יותר, מסגרת זהב מנצנצת ותג מנוי */
.su-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(201,164,92,.55);
  box-shadow: 0 18px 34px -22px rgba(0,0,0,.8), inset 0 1px 0 rgba(232,205,143,.28);
}
.su-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(232,205,143,.16) 50%, transparent 62%);
  transform: translateX(120%); transition: transform .8s;
}
.su-card:hover::after { transform: translateX(-120%); }
.su-ring { width: 72px; height: 72px; }
.su-sub {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; color: #98a5c4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.su-sub svg { width: 13px; height: 13px; }
.su-sub.on { color: var(--ink); background: var(--gold-grad); border-color: transparent; font-weight: 600; box-shadow: 0 6px 14px -8px rgba(201,164,92,.95); }

/* מחוון הזהב: גולש בין הפריטים במקום רקע שקופץ */
#nav { position: relative; }
.nav-ind {
  position: absolute; inset-inline: 0; top: 0; height: 0; z-index: 0; pointer-events: none; border-radius: 14px;
  background: linear-gradient(270deg, rgba(201,164,92,.3), rgba(201,164,92,.05));
  border: 1px solid rgba(201,164,92,.38);
  box-shadow: 0 10px 24px -16px rgba(201,164,92,.8);
  transition: top .38s cubic-bezier(.3,.85,.25,1), height .3s, opacity .2s;
}
.nav-ind::before { content: ""; position: absolute; inset-inline-start: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold-grad); }
.nav-item { position: relative; z-index: 1; }
.nav-item.active { background: none; }
.nav-item.active::before { display: none; }
.rail .nav-ind { display: none; }

/* חלוקה לפי שימוש: שלושת הפריטים המרכזיים בולטים יותר */
.nav-item[data-tab="discover"] .nl, .nav-item[data-tab="inbox"] .nl, .nav-item[data-tab="likes"] .nl { font-weight: 500; color: #fff; }

@media (max-width: 1000px) {
  /* סרגל תחתון צף: כמוסה כהה עם בליטה זהובה לפריט הפעיל */
  .tabbar {
    inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; gap: 2px; border-radius: 28px;
    background: rgba(11,22,48,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(201,164,92,.55); box-shadow: 0 22px 44px -14px rgba(0,0,0,.75), inset 0 1px 0 rgba(232,205,143,.2);
  }
  .tab { padding: 4px 2px 6px; border-radius: 22px; font-size: 11px; transition: color .2s; }
  .tab svg { width: 34px; height: 34px; padding: 7px; border-radius: 14px; transition: background .25s, transform .25s, box-shadow .25s; }
  .tab.active { color: #fff; }
  .tab.active svg { background: var(--gold-grad); color: var(--ink); filter: none; transform: translateY(-5px); box-shadow: 0 10px 18px -8px rgba(201,164,92,.95); }
  .tab .nbadge { top: 0; inset-inline-end: calc(50% - 24px); }
  .notice { bottom: calc(96px + env(safe-area-inset-bottom)); }
  main { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }

  /* תפריט מלא כמגירה שעולה מלמטה, עם ידית משיכה */
  .side {
    inset-block: auto 0; inset-inline: 0; width: auto; height: auto; max-height: 88vh; max-height: 88dvh;
    padding: 30px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
    border-inline-start: 0; border-top: 1px solid rgba(201,164,92,.6);
    transform: translateY(105%); transition: transform .38s cubic-bezier(.25,.85,.3,1);
    overscroll-behavior: contain;
  }
  .side.open { transform: none; box-shadow: 0 -30px 70px -20px rgba(0,0,0,.85); }
  .side::after {
    content: ""; position: absolute; top: 10px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 5px;
    background: rgba(255,255,255,.28);
  }
  .side-brand { display: none; }
  #sideRail { display: none; }
  .nav-ind { display: none; }
  .nav-item.active { background: linear-gradient(270deg, rgba(201,164,92,.28), rgba(201,164,92,.05)); box-shadow: inset 0 0 0 1px rgba(201,164,92,.38); }
  /* פעולות בגודל נוח לאגודל: שתי עמודות */
  .nav-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-title { grid-column: 1 / -1; }
  .nav-item { padding: 8px 10px; min-height: 52px; }
  .nav-item .nl { font-size: 14.5px; line-height: 1.2; }
  .side-foot { position: static; margin: 0; padding: 8px 0 0; background: none; }
}
@media (max-width: 340px) {
  .nav-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-ind, .side, .su-card::after, .tab svg { transition: none; }
}

.nav-list { display: flex; flex-direction: column; gap: 16px; }
.rail .nav-list { gap: 6px; }

/* סרגל עליון בטלפון: לייקים וצפו בי */
.topbar-actions { display: none; }
@media (max-width: 1000px) {
  .topbar-actions { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
  .topbar-actions .q-icon { width: 40px; height: 40px; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(201,164,92,.5); }
  .topbar-actions .q-icon:hover { background: rgba(255,255,255,.16); }
  .topbar-actions .q-icon svg { width: 20px; height: 20px; }
}
body.guest .topbar-actions { display: none; }

/* לשוניות דף הלייקים */
.likes-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ltab-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: rgba(11,22,48,.08); font-size: 12px; font-weight: 600; }
.likes-tabs .sc.active .ltab-n { background: rgba(255,255,255,.2); }

/* =====================================================================
   תפריט צד: מראה יוקרתי (כחול לילה, זהב מוברש, זכוכית וקישוטים עדינים)
   ===================================================================== */

.side {
  gap: 18px; padding: 26px 18px 18px;
  background:
    radial-gradient(520px 320px at 100% -6%, rgba(232,205,143,.30), transparent 68%),
    radial-gradient(420px 420px at -10% 108%, rgba(52,86,160,.55), transparent 70%),
    radial-gradient(260px 260px at 50% 46%, rgba(201,164,92,.07), transparent 70%),
    linear-gradient(185deg, #0e1d3f 0%, #0a1430 46%, #060c1f 100%);
  border-inline-start: 1px solid transparent;
  border-image: linear-gradient(180deg, rgba(232,205,143,.85), rgba(167,124,50,.25) 55%, rgba(232,205,143,.6)) 1;
  box-shadow: -24px 0 50px -30px rgba(0,0,0,.85), inset -1px 0 0 rgba(232,205,143,.08);
}
/* דוגמת מעוינים עדינה על הרקע */
.side::before {
  opacity: .055;
  background-image: linear-gradient(45deg, #e8cd8f 1px, transparent 1px), linear-gradient(-45deg, #e8cd8f 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* מותג: סמל במדליון זהב ושם בגרדיאנט זהב */
.side-brand { gap: 14px; padding: 0 4px 16px; position: relative; }
.side-brand::after {
  content: ""; position: absolute; inset-inline: 4px; bottom: 0; height: 1px;
  background: linear-gradient(270deg, transparent, rgba(232,205,143,.7) 20%, rgba(232,205,143,.7) 80%, transparent);
}
.side-brand svg {
  width: 52px; height: 52px; padding: 7px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, rgba(232,205,143,.28), rgba(232,205,143,.04) 70%);
  border: 1px solid rgba(232,205,143,.7);
  box-shadow: 0 0 26px -6px rgba(232,205,143,.6), inset 0 0 14px rgba(232,205,143,.12);
}
.side-brand h1 {
  font-size: 31px; font-weight: 700; letter-spacing: .6px;
  background: linear-gradient(180deg, #fff6dc 0%, #e8cd8f 55%, #b98d3e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.side-brand small { color: rgba(232,205,143,.75); letter-spacing: 4px; font-size: 10px; }

/* ברכה */
.side-greet { padding: 2px 6px 0; }
.side-greet strong { font-size: 22px; color: #fff; letter-spacing: .2px; }
.side-greet small { color: rgba(232,205,143,.85); font-size: 12px; letter-spacing: .6px; }

/* כרטיס חבר: זכוכית עם מסגרת זהב מדורגת */
.su-card {
  padding: 14px; border-radius: 24px; border: 1px solid transparent;
  background:
    linear-gradient(155deg, rgba(25,42,86,.92), rgba(10,20,46,.94)) padding-box,
    linear-gradient(140deg, #f3dfa8, #a77c32 38%, #e8cd8f 72%, #7d5a22) border-box;
  box-shadow: 0 22px 40px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(232,205,143,.05), inset 0 1px 0 rgba(255,255,255,.1);
}
.su-card:hover { background:
    linear-gradient(155deg, rgba(31,50,100,.95), rgba(12,24,54,.96)) padding-box,
    linear-gradient(140deg, #f3dfa8, #a77c32 38%, #e8cd8f 72%, #7d5a22) border-box; }
.su-ring { width: 76px; height: 76px; box-shadow: 0 0 30px -4px rgba(232,205,143,.65); }
.su-meta strong { font-size: 21px; color: #fff; }

/* כרטיסי הסטטוס: מספרים בזהב */
.stat {
  border-radius: 18px; border: 1px solid rgba(232,205,143,.22);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
.stat b { font-size: 24px; color: #fff; }
.stat.hot { border-color: rgba(232,205,143,.8); background: linear-gradient(160deg, rgba(232,205,143,.2), rgba(201,164,92,.05)); box-shadow: 0 10px 24px -16px rgba(232,205,143,.9); }
.stat.hot b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* חיפוש */
.side-search input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,205,143,.25); border-radius: 999px;
  box-shadow: inset 0 1px 6px rgba(0,0,0,.35);
}
.side-search input:focus { border-color: #e8cd8f; box-shadow: 0 0 0 4px rgba(232,205,143,.16), inset 0 1px 6px rgba(0,0,0,.35); background: rgba(255,255,255,.1); }

/* כותרות קבוצה: עם יהלום קטן וקו מדורג */
#nav .nav-list { gap: 20px; }
.nav-title { font-family: var(--serif); font-size: 13px; letter-spacing: 3px; color: rgba(232,205,143,.78); padding: 0 8px 8px; gap: 10px; }
.nav-title::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-grad); flex: none; border-radius: 1px; }
.nav-title::after { background: linear-gradient(270deg, rgba(232,205,143,.5), transparent); }

/* פריטי ניווט: אריחי אייקון עם מסגרת זהב דקה */
.nav-item { padding: 6px 8px; gap: 14px; border-radius: 16px; color: #d4dbed; font-size: 15.5px; letter-spacing: .15px; }
.nav-item .ni {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(232,205,143,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-item .ni svg { width: 21px; height: 21px; color: #e8cd8f; }
.nav-item:hover { background: rgba(255,255,255,.04); transform: translateX(-4px); color: #fff; }
.nav-item:hover .ni { border-color: rgba(232,205,143,.6); background: linear-gradient(160deg, rgba(232,205,143,.2), rgba(232,205,143,.05)); transform: scale(1.05); }
.nav-item.active .ni {
  background: linear-gradient(145deg, #f6e3ae, #c9a45c 52%, #9c7330);
  border-color: rgba(255,246,220,.7);
  box-shadow: 0 10px 22px -8px rgba(232,205,143,.95), 0 0 0 3px rgba(232,205,143,.14), inset 0 1px 0 rgba(255,255,255,.55);
}
.nav-item.active .ni svg { color: #0b1630; }
.nav-item.active .nl { color: #fff6dc; font-weight: 600; }
.nav-ind {
  border-radius: 18px; border: 1px solid rgba(232,205,143,.5);
  background: linear-gradient(270deg, rgba(232,205,143,.26), rgba(232,205,143,.04) 80%);
  box-shadow: 0 14px 30px -18px rgba(232,205,143,.95), inset 0 1px 0 rgba(255,255,255,.1);
}
.nav-ind::before { top: 8px; bottom: 8px; width: 4px; background: linear-gradient(180deg, #fff1c8, #c9a45c 60%, #8f6a2b); box-shadow: 0 0 10px rgba(232,205,143,.9); }
.nbadge { background: linear-gradient(145deg, #f6e3ae, #c9a45c 60%, #a77c32); color: #0b1630; box-shadow: 0 6px 14px -6px rgba(232,205,143,.95); }

/* תחתית */
.side-foot { border-top: 0; position: sticky; }
.side-foot::before { content: ""; position: absolute; inset-inline: 8px; top: 0; height: 1px; background: linear-gradient(270deg, transparent, rgba(232,205,143,.5), transparent); }
.side-foot { background: linear-gradient(180deg, rgba(6,12,31,0), #060c1f 30%); }
.side-btn { color: #aab6d3; border-radius: 14px; }
.side-btn:hover { background: rgba(255,255,255,.06); color: #fff6dc; }

/* מצב מכווץ: האריחים נשארים אלגנטיים */
@media (min-width: 1001px) {
  .rail .side-brand { padding-bottom: 12px; }
  .rail .side-brand svg { width: 46px; height: 46px; padding: 6px; }
  .rail .nav-item .ni { width: 42px; height: 42px; }
}

/* מגירת הטלפון נשארת בסגנון אחיד עם הדסקטופ */
@media (max-width: 1000px) {
  .side { border-image: none; border-top: 1px solid rgba(232,205,143,.7); }
  .side-greet strong { font-size: 24px; }
  .nav-item .ni { width: 38px; height: 38px; }
}

/* התאמות גובה ותג מנוי בשורה אחת */
.su-sub { white-space: nowrap; font-size: 11px; padding: 2px 8px; }
.su-ring { width: 70px; height: 70px; }
@media (min-width: 1001px) and (max-height: 940px) {
  .side { gap: 12px; padding-top: 18px; }
  #nav .nav-list { gap: 12px; }
  .nav-item .ni { width: 36px; height: 36px; }
  .nav-item { padding: 4px 8px; }
  .stat span, .side-greet small { display: none; }
  .side-brand { padding-bottom: 12px; }
}

/* =====================================================================
   "חיפוש מותאם אישית": חלון יוקרתי במרכז המסך (מחשב), ולוח שעולה מלמטה (טלפון)
   ===================================================================== */

.drawer-scrim {
  background: radial-gradient(900px 600px at 50% 40%, rgba(24,44,92,.55), rgba(4,9,22,.82));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: dmFade .25s ease both;
}
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(94vw, 800px); max-height: min(88vh, 880px); border-radius: 32px; overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(140deg, #f3dfa8, #a77c32 40%, #e8cd8f 72%, #8f6a2b) border-box;
  box-shadow: 0 60px 120px -34px rgba(4,9,22,.9), 0 0 0 1px rgba(232,205,143,.12);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; visibility: hidden;
  transition: transform .32s cubic-bezier(.25,.85,.3,1), opacity .25s, visibility 0s linear .32s;
}
.drawer.open { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; transition: transform .32s cubic-bezier(.25,.85,.3,1), opacity .25s; }

.drawer-head {
  position: relative; padding: 22px 28px; justify-content: center;
  background:
    radial-gradient(420px 160px at 50% -40%, rgba(232,205,143,.38), transparent 70%),
    linear-gradient(180deg, #0f1f45, #0a1431);
  border-bottom: 1px solid rgba(232,205,143,.6);
}
.drawer-head h3 {
  font-size: 27px; letter-spacing: .5px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fff6dc 10%, #e8cd8f 60%, #b98d3e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.drawer-head h3::before, .drawer-head h3::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); border-radius: 1px; }
.drawer-head .icon-btn { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(232,205,143,.5); background: rgba(255,255,255,.08); }
.drawer-head .icon-btn:hover { background: rgba(232,205,143,.25); }

.drawer-body { padding: 24px 30px 8px; }
/* שתי עמודות במחשב: הכותרת צמודה לבורר שלה */
@media (min-width: 701px) {
  .drawer-body .fpanel:not([hidden]) { column-count: 2; column-gap: 40px; }
  .drawer-body .fpanel > * { break-inside: avoid; }
  .drawer h4 { break-after: avoid; text-align: start; margin-top: 18px; }
  .drawer h4:first-child { margin-top: 0; }
  .drawer h4 small { display: inline; margin-inline-start: 6px; }
}
.drawer .ftabs { background: #f3ede0; border-color: #ddd3bb; max-width: 440px; margin-inline: auto; }
.drawer .ftab.active { background: linear-gradient(160deg, #13244a, #0a1431); color: #f6e3ae; box-shadow: 0 8px 18px -10px rgba(11,22,48,.8); }

.drawer-foot { padding: 16px 30px calc(18px + env(safe-area-inset-bottom)); gap: 12px; background: linear-gradient(180deg, rgba(255,253,248,.4), #fffdf8 40%); border-top: 1px solid #e6dcc4; }
.drawer-foot .gold { flex: 2; padding: 14px 20px; font-size: 17px; border-radius: 16px; }
.drawer-foot .secondary { flex: 1; border-radius: 16px; }

/* טלפון: לוח שעולה מלמטה, קליל ונוח לאגודל */
@media (max-width: 700px) {
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 92vh; max-height: 92dvh;
    border-radius: 28px 28px 0 0; border-bottom: 0;
    transform: translateY(104%); opacity: 1;
  }
  .drawer.open { transform: none; }
  .drawer-head { padding: 24px 18px 14px; }
  .drawer-head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(255,255,255,.3); }
  .drawer-head h3 { font-size: 22px; }
  .drawer-body { padding: 18px 18px 6px; }
  .drawer-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; animation: none; } }

/* תפריט מהיר: השקפה, מתחת ל"סדר לפי" */
.outbar { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; padding: 10px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.outbar-label { flex: none; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.outbar-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.oc {
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--ink-2); background: #fff;
  border: 1px solid #d8d0bd; box-shadow: none; white-space: nowrap; transition: background .18s, color .18s, border-color .18s, transform .15s;
}
.oc:hover { background: var(--ivory); border-color: var(--gold); box-shadow: none; transform: translateY(-1px); }
.oc.active { background: linear-gradient(160deg, #13244a, #0a1431); color: #f6e3ae; border-color: var(--gold); font-weight: 500; box-shadow: 0 8px 16px -10px rgba(11,22,48,.85); }
@media (max-width: 700px) {
  .outbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 12px; }
  /* בטלפון: שורה אחת שנגללת הצידה, קלילה ונוחה לאגודל */
  .outbar-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .outbar-chips::-webkit-scrollbar { display: none; }
}

/* "בחר הכל" ליד כותרות הבוררים בחיפוש המותאם */
.drawer h4.has-selall { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; text-align: start; }
.drawer h4.has-selall small { display: inline; }
.selall { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--muted); cursor: pointer; }
.selall input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; padding: 0; border-radius: 999px; background: #d8d0bd; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.selall input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.selall input:checked { background: var(--gold-3); }
.selall input:checked::after { inset-inline-start: 17px; }

/* היציאה והכיווץ לא צפים מעל הפריטים: נראים רק כשיורדים לתחתית התפריט (מונע לחיצה בטעות) */
.side-foot { position: static; bottom: auto; margin: auto 0 0; padding: 14px 0 4px; background: none; }

/* =====================================================================
   חלון הפרופיל: צד הפרטים בעיצוב יוקרתי (נייר שנהב, זהב מוברש, כרטיסי עובדות)
   ===================================================================== */

.profile-modal {
  border: 1px solid transparent; border-radius: 30px; overflow: hidden;
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(140deg, #f3dfa8, #a77c32 38%, #e8cd8f 72%, #8f6a2b) border-box;
  box-shadow: 0 60px 120px -34px rgba(4,9,22,.9), 0 0 0 1px rgba(232,205,143,.15);
}
.pm-info {
  position: relative; padding: 34px 34px 30px; overflow-y: auto; max-height: calc(100vh - 34px);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(232,205,143,.26), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(232,205,143,.14), transparent 72%),
    linear-gradient(180deg, #fffdf8, #fbf6ea);
  scrollbar-width: thin; scrollbar-color: rgba(167,124,50,.35) transparent;
}
/* דוגמת מעוינים עדינה בפינה */
.pm-info::before {
  content: ""; position: absolute; inset-inline-end: 0; top: 0; width: 220px; height: 220px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(45deg, rgba(201,164,92,.18) 1px, transparent 1px), linear-gradient(-45deg, rgba(201,164,92,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
}
.pm-info > * { position: relative; }

.pm-top .badge-verified { background: linear-gradient(160deg, #13244a, #0a1431) !important; color: #f6e3ae; border: 1px solid rgba(232,205,143,.6); box-shadow: 0 8px 18px -10px rgba(11,22,48,.8); }
.pm-nav button { background: #fff; border-color: #e3d6b4; color: var(--ink); }

.pm-info h2 { font-size: 46px; line-height: 1.05; margin: 18px 0 4px !important; letter-spacing: .3px; }
.pm-info h2 span {
  font-weight: 500; background: linear-gradient(180deg, #d9b867, #a77c32);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pm-info h2::after {
  content: ""; display: block; height: 1px; margin-top: 14px;
  background: linear-gradient(270deg, rgba(201,164,92,.9), rgba(201,164,92,.1));
}
.pm-info .where { color: #7d7a6d; font-size: 15px; margin-bottom: 14px; }
.pm-info .where svg { color: var(--gold-3); width: 17px; height: 17px; }
.pm-info .chips { gap: 8px; }
.pm-info .chip.accent {
  background: linear-gradient(160deg, #13244a, #0a1431); color: #f6e3ae; border: 1px solid rgba(232,205,143,.55);
  padding: 6px 16px; font-weight: 500; box-shadow: 0 8px 16px -12px rgba(11,22,48,.9);
}

/* עובדות ככרטיסים קטנים עם אייקון זהב */
.pm-facts { gap: 10px; margin: 20px 0 8px; }
.pm-facts > div {
  padding: 10px 12px; gap: 12px; border-radius: 18px; background: rgba(255,255,255,.82);
  border: 1px solid #ecdfbd; box-shadow: 0 10px 20px -18px rgba(11,22,48,.55);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.pm-facts > div:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 16px 26px -18px rgba(167,124,50,.6); }
.pm-facts .ico {
  width: 40px; height: 40px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(145deg, #f6e3ae, #c9a45c 60%, #a77c32);
  box-shadow: 0 8px 14px -8px rgba(167,124,50,.9), inset 0 1px 0 rgba(255,255,255,.55);
}
.pm-facts .ico svg { width: 20px; height: 20px; }
.pm-facts small { color: var(--gold-3); font-size: 11.5px; letter-spacing: .6px; font-weight: 500; }
.pm-facts b { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; display: block; margin-top: 1px; }

/* כותרות מקטע: יהלום וקו מדורג */
.pm-info h4 {
  display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; letter-spacing: .4px; margin: 26px 0 8px;
  background: linear-gradient(180deg, #b98d3e, #8f6a2b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pm-info h4::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); flex: none; border-radius: 1px; }
.pm-info h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, rgba(201,164,92,.55), transparent); }
.pm-info p { font-size: 16.5px; line-height: 1.75; color: #2a3350; }
.pm-info .quote {
  padding: 14px 18px; border-radius: 18px; border: 1px solid #ecdfbd; border-inline-start: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(232,205,143,.22), rgba(255,255,255,.7)); font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink);
}
.pm-info .tags { margin-top: 14px !important; }
.pm-info .tag { background: #fff; border: 1px solid #e3d6b4; color: var(--gold-3); padding: 4px 14px; border-radius: 999px; font-size: 13.5px; }

.pm-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ecdfbd; gap: 12px; }
.pm-actions .gold { padding: 15px 22px; font-size: 17px; border-radius: 18px; box-shadow: 0 18px 28px -16px rgba(167,124,50,.95), inset 0 1px 0 rgba(255,255,255,.5); }
.pm-actions .link { color: #7d7a6d; }

.pm-close { background: #fff; border: 1px solid #e3d6b4; box-shadow: 0 8px 18px -10px rgba(11,22,48,.6); }
@media (max-width: 760px) {
  .pm-info { padding: 24px 20px 24px; max-height: none; }
  .pm-info h2 { font-size: 38px; }
  .pm-facts { grid-template-columns: 1fr; }
}

/* תמונת הכרטיס בריבוע: לחיצה פותחת פרטים, ובמעבר עכבר התמונה מתגדלת ב-30% באפקט חלק */
.face.photo { cursor: pointer; overflow: hidden; }
@media (hover: hover) {
  .face.photo img { transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .5s; will-change: transform; }
  .face.photo:hover img { transform: scale(1.3); filter: saturate(1.08) contrast(1.03); }
  .tile .flip { transition: box-shadow .35s, transform .35s; border-radius: 22px; }
  .tile:hover .flip { transform: translateY(-4px); box-shadow: 0 26px 40px -22px rgba(11,22,48,.75), 0 0 0 2px rgba(201,164,92,.55); }
}

/* במעבר עכבר על כרטיס ברשת: כל הקוביה מתגדלת ב-30% (המאפיין scale לא מתנגש באנימציית הכניסה) */
@media (hover: hover) {
  .face.photo:hover img { transform: scale(1.04); filter: none; }
  .tile:hover .flip { transform: none; box-shadow: none; }
  .grid .tile { position: relative; z-index: 1; transition: scale .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; border-radius: 24px; }
  .grid .tile:hover { scale: 1.3; z-index: 40; box-shadow: 0 44px 70px -26px rgba(11,22,48,.85), 0 0 0 2px rgba(201,164,92,.7); }
}

/* חלון הפרופיל: ריבועי תמונות בתחתית וחיצים עדינים ושקופים בצדדים */
.pm-photos::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(6,13,31,.55)); }
.pm-thumbs { z-index: 3; justify-content: center; bottom: 16px; gap: 10px; }
.pm-thumbs button { width: 58px; height: 58px; border-radius: 14px; border: 2px solid rgba(255,255,255,.55); opacity: .8; transition: transform .2s, opacity .2s, border-color .2s, box-shadow .2s; box-shadow: 0 8px 16px -8px rgba(0,0,0,.7); }
.pm-thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.pm-thumbs button.on { opacity: 1; border-color: var(--gold-2); transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 2px rgba(232,205,143,.35), 0 10px 18px -8px rgba(0,0,0,.8); }
.pm-arrow {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; padding: 0; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; line-height: 1; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); box-shadow: none;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: .45; transition: opacity .25s, background .25s, transform .25s;
}
.pm-arrow:hover { opacity: 1; background: rgba(255,255,255,.26); box-shadow: none; }
.pm-arrow.prev { right: 12px; }
.pm-arrow.next { left: 12px; }
.pm-arrow.prev:hover { transform: translateX(2px); }
.pm-arrow.next:hover { transform: translateX(-2px); }

/* פס סינון מהיר בשורה אחת: השקפה ומצב אישי כתפריטים קטנים */
.qfbar { position: relative; display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; flex-wrap: wrap; }
.qf { position: relative; }
.qf-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 400;
  background: var(--paper); color: var(--ink-2); border: 1px solid #d8d0bd; box-shadow: none; max-width: 100%;
}
.qf-btn:hover { background: var(--ivory); border-color: var(--gold); box-shadow: none; }
.qf-label { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.qf-val { color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--gold-3); transition: transform .2s; }
.qf-btn[aria-expanded="true"] .qf-chev { transform: rotate(180deg); }
.qf-btn.has-value { background: linear-gradient(160deg, #13244a, #0a1431); border-color: var(--gold); color: #f6e3ae; }
.qf-btn.has-value .qf-label, .qf-btn.has-value .qf-val { color: #f6e3ae; }
.qf-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-start: 0; width: max-content; max-width: min(92vw, 420px);
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 18px; background: #fffdf8;
  border: 1px solid var(--gold); box-shadow: 0 24px 46px -20px rgba(11,22,48,.7);
  animation: qfIn .16s ease both;
}
.qf-pop[hidden] { display: none; }
@keyframes qfIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.qf-pop .oc { padding: 5px 12px; font-size: 13px; }
.qf-clear { height: 38px; padding: 0 12px; background: none; color: var(--gold-3); font-size: 13.5px; box-shadow: none; text-decoration: underline; }
.qf-clear:hover { background: none; box-shadow: none; color: var(--ink); }
.qf-clear[hidden] { display: none; }
@media (max-width: 700px) {
  .qfbar { flex-wrap: nowrap; max-width: 100%; gap: 6px; }
  /* שורה אחת שמתכווצת לרוחב המסך במקום לדחוף את הדף הצידה */
  .qf { min-width: 0; flex: 0 1 auto; }
  .qf-btn { width: 100%; min-width: 0; overflow: hidden; gap: 5px; }
  .qf-label { flex: none; font-size: 14px; }
  .qf-val { min-width: 0; flex: 0 1 auto; }
  .qf-chev { flex: none; }
  .qf-clear { flex: none; padding: 0 6px; }
  .qf { position: static; }
  .qf-btn { padding: 0 10px; height: 36px; }
  .qf-val { max-width: 90px; }
  .qf-pop { inset-inline: 0; top: 100%; width: auto; max-width: none; margin-top: 8px; }
}

/* =====================================================================
   רמות צבע בתפריט הצד: לכל קבוצה גוון משלה (ראשי = זהב, הכרטיס שלי = רוז-נחושת,
   ללמוד ולהתחזק = אזמרגד, חשבון = כחול-כסף)
   ===================================================================== */
.nav-group { --ac: #e8cd8f; --ac2: #c9a45c; --ac-ink: #0b1630; }
.nav-group[data-group="card"] { --ac: #f4bfa9; --ac2: #d88a70; }
.nav-group[data-group="learn"] { --ac: #8fe3cb; --ac2: #38a98e; }
.nav-group[data-group="account"] { --ac: #aebfff; --ac2: #6a82d4; }

.nav-title { color: color-mix(in srgb, var(--ac) 85%, #fff 0%); }
.nav-title::before { background: linear-gradient(135deg, var(--ac), var(--ac2)); }
.nav-title::after { background: linear-gradient(270deg, color-mix(in srgb, var(--ac) 55%, transparent), transparent); }

.nav-item .ni { border-color: color-mix(in srgb, var(--ac) 30%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 14%, transparent), rgba(255,255,255,.03)); }
.nav-item .ni svg { color: var(--ac); }
.nav-item:hover .ni { border-color: color-mix(in srgb, var(--ac) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 28%, transparent), color-mix(in srgb, var(--ac) 6%, transparent)); }
.nav-item.active .ni {
  background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 85%, #fff), var(--ac) 52%, var(--ac2));
  border-color: color-mix(in srgb, var(--ac) 60%, #fff);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--ac) 90%, transparent), 0 0 0 3px color-mix(in srgb, var(--ac) 16%, transparent), inset 0 1px 0 rgba(255,255,255,.55);
}
.nav-item.active .ni svg { color: #0b1630; }
.nav-item.active .nl { color: color-mix(in srgb, var(--ac) 35%, #fff); }

/* המחוון הגולש: הצבע נקבע לפי הקבוצה של הפריט הפעיל (--ac נקבע ב-JS) */
.nav-ind {
  --ac: #e8cd8f;
  border-color: color-mix(in srgb, var(--ac) 55%, transparent);
  background: linear-gradient(270deg, color-mix(in srgb, var(--ac) 28%, transparent), color-mix(in srgb, var(--ac) 4%, transparent) 80%);
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ac) 95%, transparent), inset 0 1px 0 rgba(255,255,255,.1);
  transition: top .38s cubic-bezier(.3,.85,.25,1), height .3s, opacity .2s, border-color .38s, background .38s;
}
.nav-ind::before { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 70%, #fff), var(--ac) 60%, color-mix(in srgb, var(--ac) 70%, #000)); box-shadow: 0 0 10px color-mix(in srgb, var(--ac) 90%, transparent); }

@media (max-width: 1000px) {
  .nav-item.active { background: linear-gradient(270deg, color-mix(in srgb, var(--ac) 28%, transparent), color-mix(in srgb, var(--ac) 5%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 40%, transparent); }
}

/* דף לייקים וצפיות: תמונה ושם פותחים את הפרופיל */
.mini-photo[data-open], .mini-name[data-open] { cursor: pointer; }
.mini-photo[data-open] { transition: transform .25s, box-shadow .25s; }
.mini-photo[data-open]:hover { transform: translateY(-3px); box-shadow: 0 18px 28px -16px rgba(11,22,48,.7); }
.mini-name[data-open]:hover { color: var(--gold-3); }

/* ניהול: רשימת משתמשים */
.ad-user { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.ad-user:first-child { border-top: 0; }
.ad-uphotos { display: flex; gap: 8px; flex-wrap: wrap; flex: none; width: 238px; }
.ad-uph { position: relative; width: 74px; }
.ad-uph img { width: 74px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #eee; border: 1px solid var(--line); display: block; }
.ad-delph { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: rgba(179,64,47,.92); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.ad-delph:hover { background: #8f2f22; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.ad-phst { position: absolute; bottom: 4px; inset-inline-start: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(11,22,48,.85); color: #fff; font-size: 11px; }
.ad-uinfo { flex: 1; min-width: 0; }
.ad-uinfo h3 { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-uinfo p { margin: 3px 0; color: var(--ink-2); font-size: 14.5px; }
.ad-uinfo .actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ad-uinfo .actions-row select { width: auto; }
@media (max-width: 700px) { .ad-user { flex-direction: column; } .ad-uphotos { width: auto; } }

/* תוכן HTML במסגרת מבודדת */
.rich-frame { display: block; width: 100%; min-height: 80px; border: 0; background: transparent; }

/* תפריט גיל בפס המהיר */
.qf-age { flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px; min-width: 230px; }
.qf-age label { display: grid; gap: 4px; margin: 0; font-size: 13px; color: var(--muted); }
.qf-age select { width: 92px; padding: 7px 10px; border-radius: 12px; font-size: 15px; }
.qf-age .hint { flex-basis: 100%; margin: 0; font-size: 12px; }

/* ניהול: כפתורים על תמונה, הוספת תמונה וחיתוך */
.ad-phbtns { position: absolute; top: 4px; inset-inline-end: 4px; display: flex; flex-direction: column; gap: 4px; }
.ad-phbtns button { width: 24px; height: 24px; padding: 0; border-radius: 50%; background: rgba(11,22,48,.88); color: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.ad-phbtns button:hover { background: var(--gold-3); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.ad-phbtns button.del { background: rgba(179,64,47,.92); font-size: 16px; }
.ad-phbtns button.del:hover { background: #8f2f22; }
.ad-addph { width: 74px; aspect-ratio: 3/4; border-radius: 12px; border: 2px dashed var(--gold); background: var(--gold-soft); color: var(--gold-3); font-size: 26px; display: grid; place-items: center; align-content: center; box-shadow: none; padding: 0; }
.ad-addph small { font-size: 11px; display: block; }
.ad-addph:hover { background: #fff; box-shadow: none; }
.ad-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4,9,22,.7); backdrop-filter: blur(4px); }
.ad-modal-box { width: min(94vw, 640px); max-height: 94vh; overflow: auto; padding: 22px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-lg); }
.crop-stage { position: relative; display: inline-block; max-width: 100%; margin: 6px 0 14px; user-select: none; touch-action: none; cursor: crosshair; border-radius: 12px; overflow: hidden; line-height: 0; }
.crop-stage img { max-width: 100%; max-height: 62vh; display: block; }
.crop-sel { position: absolute; border: 2px solid var(--gold-2); box-shadow: 0 0 0 9999px rgba(4,9,22,.55); pointer-events: none; }
.crop-sel[hidden] { display: none; }

/* תגית על כרטיס שכבר טופל (במיון "הכל") */
.seen-tag { padding: 3px 10px; border-radius: 999px; background: rgba(11,22,48,.72); color: var(--gold-2); font-size: 12px; border: 1px solid rgba(232,205,143,.5); }
.rc-like.liked { background: var(--gold-grad); color: var(--ink); pointer-events: none; }
.rc-like.liked svg { fill: currentColor; }

/* פס גלילה עדין, דק ושקוף בתפריט הצד ובחלונות */
.side { scrollbar-width: auto; scrollbar-color: auto; }
.side::-webkit-scrollbar { width: 3px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb { background: rgba(232,205,143,.2); border-radius: 3px; }
.side:hover::-webkit-scrollbar-thumb { background: rgba(232,205,143,.42); }
.drawer-body, .pm-info { scrollbar-width: auto; scrollbar-color: auto; }
.drawer-body::-webkit-scrollbar, .pm-info::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-track, .pm-info::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb, .pm-info::-webkit-scrollbar-thumb { background: rgba(167,124,50,.28); border-radius: 4px; }
@supports not selector(::-webkit-scrollbar) {
  .side { scrollbar-width: thin; scrollbar-color: rgba(232,205,143,.3) transparent; }
  .drawer-body, .pm-info { scrollbar-width: thin; scrollbar-color: rgba(167,124,50,.35) transparent; }
}

/* תמונות פרטיות */
.pill.private { background: #e5e0f5; color: #3b2f77; display: inline-flex; align-items: center; gap: 4px; }
.pill.private svg { width: 13px; height: 13px; }
.pm-private {
  position: absolute; z-index: 3; inset-inline: 14px; bottom: 90px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 16px; color: #fff; font-size: 14px;
  background: rgba(11,22,48,.72); border: 1px solid rgba(232,205,143,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pm-private span { display: inline-flex; align-items: center; gap: 6px; }
.pm-private svg { width: 16px; height: 16px; color: var(--gold-2); }
.pm-private button { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; background: var(--gold-grad); color: var(--ink); font-weight: 600; box-shadow: none; }
.pm-private button:disabled { opacity: .7; cursor: default; filter: grayscale(.3); }

/* שיחה: תמונת פרופיל קטנה ליד השם ויד ההודעות */
.thread-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.thread-head h2 { margin: 0; cursor: pointer; }
.t-av, .b-av { flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; cursor: pointer; background: linear-gradient(160deg, var(--ink-3), var(--ink)); outline: 2px solid var(--gold); outline-offset: 1px; }
.t-av { width: 48px; height: 48px; }
.b-av { width: 30px; height: 30px; }
.t-av img, .b-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-av .initial, .b-av .initial { color: var(--gold-2); font-size: 18px; }
.b-av .initial { font-size: 14px; }
.brow { display: flex; align-items: flex-end; gap: 8px; align-self: flex-end; max-width: 86%; }
.brow .bubble.theirs { align-self: auto; }
.bubble.pending { opacity: .75; }
.b-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--gold-2); }
.screen-note { color: var(--gold-3); }
.radio-list { display: grid; gap: 10px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; margin: 0; background: #fff; }
.radio input { margin-top: 4px; width: auto; }
.radio span { display: grid; gap: 2px; }
.radio small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.radio:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* ניהול: הודעות */
.ad-msg { padding: 14px 0; border-top: 1px solid var(--line); }
.ad-msg:first-of-type { border-top: 0; }
.ad-msg-body { margin: 6px 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--ivory); white-space: pre-wrap; }
.ad-conv { margin: 14px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ad-conv h4 { margin: 0 0 8px; }
.ad-bub { display: grid; gap: 2px; margin: 6px 0; padding: 8px 12px; border-radius: 12px; max-width: 86%; white-space: pre-wrap; }
.ad-bub small { color: var(--muted); font-size: 11.5px; }
.ad-bub.sent { background: var(--ink); color: #fff; margin-inline-end: auto; }
.ad-bub.sent small { color: var(--gold-2); }
.ad-bub.got { background: var(--gold-soft); margin-inline-start: auto; }

/* אלבום: תמונה עם תגיות למעלה, וכפתורי פעולה מסודרים מתחתיה (לא מעל התמונה) */
.photos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.photo { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.photo.is-main { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,164,92,.55), var(--shadow); }
.photo-img { position: relative; background: #eee; }
.photo-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.photo-tags { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.photo-tags .pill { position: static; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.photo-img .main-badge { top: 8px; bottom: auto; inset-inline-end: 8px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.pa { flex: 1 1 auto; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--ivory); color: var(--ink); border: 1px solid #e3d6b4; box-shadow: none; white-space: nowrap; }
.pa:hover { background: var(--gold-soft); border-color: var(--gold); box-shadow: none; }
.pa.danger { flex: 0 0 auto; color: var(--danger); background: #fff; border-color: #ecc9c3; }
.pa.danger:hover { background: #fbeceb; border-color: var(--danger); }

/* ניהול: אימות דו-שלבי */
.tfa-steps { margin: 10px 0; padding-inline-start: 22px; line-height: 1.8; }
.tfa-secret { padding: 3px 10px; border-radius: 8px; background: var(--ivory); border: 1px solid var(--line); letter-spacing: 1.5px; user-select: all; }
.tfa-codes { padding: 14px; border-radius: 14px; background: var(--ivory); border: 1px dashed var(--gold); font-size: 16px; line-height: 1.9; user-select: all; }

/* כרטיס ברשת: הלב עבר מעל התמונה (שהסתיר את הכתוב) לשורת הכפתורים, ליד סמל ההודעה, והכפתורים קטנו קצת */
.tile-foot { align-items: stretch; }
.tile-foot .more-btn { padding: 10px 8px; font-size: 14.5px; white-space: nowrap; }
.tile-foot .chat-btn { width: 42px; flex: none; }
.tile-foot .heart-btn {
  position: static; inset: auto; width: 42px; height: 42px; flex: none; padding: 0; margin: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--gold-3); border: 1px solid var(--gold);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.tile-foot .heart-btn svg { width: 19px; height: 19px; }
.tile-foot .heart-btn:hover { background: var(--gold-grad); color: var(--ink); border-color: transparent; transform: scale(1.06); }
.tile-foot .heart-btn.liked { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.grid.size-sm .tile-foot .heart-btn { width: 34px; height: 34px; }
.grid.size-sm .tile-foot .more-btn { padding: 7px 4px; font-size: 12.5px; }
.scard .tile-foot .heart-btn { display: none; }

/* חלונית מילוי קטנה לאחר בחירת "אחר" */
.other-box {
  margin: 10px auto 4px; max-width: 360px; padding: 10px 14px 12px; border-radius: 16px;
  background: linear-gradient(160deg, #13244a, #0a1431); border: 1px solid var(--gold);
  box-shadow: 0 14px 26px -18px rgba(11,22,48,.9); animation: qfIn .18s ease both;
}
.other-box[hidden] { display: none; }
.other-box label { display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--gold-2); letter-spacing: .3px; }
.other-box input { margin: 0; padding: 9px 14px; border-radius: 12px; font-size: 14.5px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(232,205,143,.45); }
.other-box input::placeholder { color: #8e9bbb; }
.other-box input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(232,205,143,.18); background: rgba(255,255,255,.12); }
.side-brand, .topbar-brand { cursor: pointer; }

/* ---------- דף פתיחה: שדרוג עיצוב ---------- */
.lx-hero { min-height: 540px; padding-bottom: 86px; }
.lx-scene .lx-stars circle { animation: lxTwinkle 4s ease-in-out infinite; }
.lx-scene .lx-stars circle:nth-child(2n) { animation-delay: -1.3s; }
.lx-scene .lx-stars circle:nth-child(3n) { animation-delay: -2.6s; }
@keyframes lxTwinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.lx-scene .lx-rings { animation: lxFloat 7s ease-in-out infinite; transform-origin: 300px 250px; }
@keyframes lxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lx-scene .lx-spark path { animation: lxTwinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lx-scene .lx-spark path:nth-child(2) { animation-delay: -.9s; }
.lx-scene .lx-spark path:nth-child(3) { animation-delay: -1.7s; }
.lx-scene .lx-hearts path { animation: lxRise 9s ease-in-out infinite; transform-box: fill-box; opacity: .8; }
.lx-scene .lx-hearts path:nth-child(2) { animation-delay: -3s; }
.lx-scene .lx-hearts path:nth-child(3) { animation-delay: -5s; }
.lx-scene .lx-hearts path:nth-child(4) { animation-delay: -7s; }
@keyframes lxRise { 0% { translate: 0 0; opacity: 0; } 15% { opacity: .85; } 80% { opacity: .5; } 100% { translate: 0 -70px; opacity: 0; } }

/* כרטיס הפתיחה: מסגרת זהב כפולה ופינות מעוטרות */
.lx-hero-card {
  padding: 30px 40px 28px; border: 1px solid #c9a45c; outline: 1px solid rgba(201,164,92,.55); outline-offset: -9px;
  background: linear-gradient(180deg, rgba(255,253,247,.98), rgba(251,245,230,.97));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.25);
}
.lx-corner { position: absolute; width: 22px; height: 22px; border: 2px solid #b8892f; pointer-events: none; }
.lx-corner.tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.lx-corner.tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.lx-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.lx-corner.br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.lx-emblem { width: 58px; height: 58px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 10px rgba(167,124,50,.35)); }
.lx-orn { display: block; width: 150px; height: 14px; margin: 6px auto 12px; color: #c9a45c; }
.lx-about .lx-orn { margin-inline: 0; }
[dir="rtl"] .lx-about .lx-orn { margin-inline-start: 0; }
.lx-hero-card h1 { margin-bottom: 0; }
.lx-hero-card .lx-btn.big { box-shadow: 0 14px 30px -12px rgba(167,124,50,.95), inset 0 1px 0 rgba(255,255,255,.5); }

/* רצועת הכניסה צפה מעל תחתית האיור */
.lx-band { position: relative; z-index: 2; margin: -46px clamp(12px, 3vw, 36px) 0; border-radius: 20px; border: 1px solid rgba(201,164,92,.5); box-shadow: 0 30px 60px -36px rgba(40,25,5,.7); overflow: hidden; }
.lx-band h2 { font-family: var(--serif); color: var(--ink); }

/* כרטיסי "למה אצלנו": מדליון זהב ופס עליון */
.lx-feature { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 24px 24px; background: linear-gradient(180deg, #fffdf8, #fbf5e8); }
.lx-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); opacity: .85; }
.lx-feature .ico { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff6d8, #f0dca6); border: 1px solid #d9b96c; box-shadow: 0 8px 18px -10px rgba(167,124,50,.9), inset 0 0 0 4px rgba(255,255,255,.6); }
.lx-feature h3 { font-family: var(--serif); font-size: 21px; }

/* צעדים: קו זהב מחבר */
.lx-stepslist { position: relative; }
.lx-stepslist::before { content: ""; position: absolute; top: 28px; inset-inline: 16%; border-top: 2px dashed rgba(184,137,47,.5); }
.lx-stepslist li { position: relative; }
.lx-stepslist .num { outline: 6px solid #f6efdd; }
@media (max-width: 760px) { .lx-stepslist::before { display: none; } }

/* ציטוט: רקע לילה עם כוכבים ומסגרת */
.lx-quote { position: relative; overflow: hidden; padding: 64px 20px; background:
  radial-gradient(1.2px 1.2px at 12% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 64%, #fff 50%, transparent 51%),
  radial-gradient(600px 240px at 50% 120%, rgba(201,164,92,.35), transparent 70%), linear-gradient(160deg, #0b1630, #1d2858); }
.lx-quote blockquote { display: inline-block; padding: 14px 40px; border-block: 1px solid rgba(232,205,143,.5); }

/* תחתית כהה ומכובדת */
.lx-foot { background: linear-gradient(180deg, #0d1834, #070e22); color: #aab4cf; border-top: 3px solid #c9a45c; padding: 30px 16px 24px; }
.lx-foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.lx-foot-brand svg { width: 38px; height: 38px; }
.lx-foot-brand span { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.lx-foot-brand small { color: #e8cd8f; font-size: 14px; }
.lx-foot nav a, .lx-foot nav .l-foot-legal, .lx-foot nav .link { color: #e2e7f3; }
.lx-foot nav a:hover { color: #e8cd8f; }
.lx-foot nav > * + * { border-inline-start-color: rgba(232,205,143,.35); }
.lx-foot p { color: #8e9bbb; }

@media (max-width: 900px) {
  .lx-hero { min-height: 0; padding-top: 250px; }
  .lx-band { margin-top: -24px; }
}
@media (max-width: 560px) {
  .lx-hero { padding-top: 210px; }
  .lx-hero-card { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-scene .lx-stars circle, .lx-scene .lx-rings, .lx-scene .lx-spark path, .lx-scene .lx-hearts path { animation: none; }
}

/* הודעת "שלב אחרון" אחרי הרשמה */
.welcome-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding: 18px 22px; border-radius: 18px; background: linear-gradient(135deg, #fff8e6, #f6ead0); border: 1px solid #d9b96c; box-shadow: 0 16px 30px -24px rgba(120,85,20,.8); }
.welcome-step .ws-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--ink); font-weight: 800; font-size: 20px; }
.welcome-step strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.welcome-step p { margin: 4px 0 0; color: var(--text); }

/* ---------- אשף בניית פרופיל אחרי הרשמה ---------- */
.wiz-head { text-align: center; margin-bottom: 16px; padding: 26px 22px 20px; border-radius: 24px; color: #fff;
  background: radial-gradient(420px 220px at 50% -20%, rgba(232,205,143,.35), transparent 70%), linear-gradient(160deg, #13244a, #0a1431);
  border: 1px solid rgba(201,164,92,.6); box-shadow: 0 24px 50px -30px rgba(4,9,22,.9); }
.wiz-logo { width: 54px; height: 54px; }
.wiz-head h2 { color: #fff; font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); margin: 6px 0 4px; }
.wiz-head p { color: #c9d1e6; margin: 0 auto 18px; max-width: 560px; }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.wiz-steps li { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; cursor: pointer; transition: background .2s; position: relative; }
.wiz-steps li:hover { background: rgba(255,255,255,.06); }
.wiz-steps .wn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #e8cd8f;
  border: 2px solid rgba(232,205,143,.55); background: rgba(255,255,255,.04); transition: all .25s; }
.wiz-steps .wn svg { width: 20px; height: 20px; }
.wiz-steps b { color: #fff; font-size: 14px; }
.wiz-steps small { color: #98a4c4; font-size: 12px; }
.wiz-steps li.on .wn { background: var(--gold-grad); color: var(--ink); border-color: #f3dfa8; box-shadow: 0 0 0 6px rgba(232,205,143,.18); }
.wiz-steps li.done .wn { background: rgba(232,205,143,.25); color: #fff; }
.wiz-steps li.done .wn::after { content: "✓"; position: absolute; font-size: 0; }
.wiz-steps li.on b { color: #f6e3ae; }
.wiz-steps li.wiz-later { cursor: default; opacity: .55; }
.wiz-steps li.wiz-later:hover { background: none; }
.wizard .wiz-off { display: none !important; }
.wizard label.req::before { content: "* "; color: #b4532a; font-weight: 800; }
.wiz-card details.edit > summary { display: none; }
.wiz-card { border: 1px solid rgba(201,164,92,.55); }
.wiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-nav [hidden] { display: none; }
.wiz-nav #wizNext, .wiz-nav #wizDone { margin-inline-start: auto; min-width: 150px; padding: 13px 26px; font-size: 16px; }
.wiz-nav #wizSkip { color: var(--muted); }
@media (max-width: 560px) {
  .wiz-steps { gap: 2px; }
  .wiz-steps .wn { width: 34px; height: 34px; }
  .wiz-steps b { font-size: 12.5px; }
  .wiz-steps small { font-size: 11px; }
  .wiz-nav #wizNext, .wiz-nav #wizDone { min-width: 0; flex: 1; }
}

/* ---------- סרגלים מתכווצים בגלילה (טלפון וטאבלט) ---------- */
@media (max-width: 1000px) {
  .topbar { transition: min-height .3s ease, padding .3s ease, box-shadow .3s ease; }
  .topbar-brand, .topbar-brand svg, .menu-btn, .topbar-actions { transition: all .3s ease; }
  body.scrolled .topbar { min-height: 46px; padding-block: 4px; box-shadow: 0 10px 24px -14px rgba(4,9,22,.8); }
  body.scrolled .topbar-brand { font-size: 20px; }
  body.scrolled .topbar-brand svg { width: 28px; height: 28px; }
  body.scrolled .menu-btn { width: 36px; height: 36px; }
  body.scrolled .topbar-actions { transform: translateY(-50%) scale(.88); }
  .tabbar { transition: transform .35s cubic-bezier(.25,.85,.3,1), opacity .3s; transform-origin: 50% 100%; }
  body.scrolled .tabbar { transform: scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar-brand, .topbar-brand svg, .menu-btn, .topbar-actions, .tabbar { transition: none; }
}
#profileForm [hidden] { display: none !important; } /* תיבות "אחר" נפתחות רק כשבוחרים "אחר" */
