/* ===== מילק – פאב קהילתי ביקנעם ===== */
:root {
  --bg: #16121c;
  --bg-alt: #1f1930;
  --card: #262038;
  --card-hover: #2e2745;
  --text: #f3eee4;
  --muted: #b5acc7;
  --amber: #ffb52e;
  --amber-deep: #f28b1f;
  --pink: #ff5d8f;
  --teal: #37d6c2;
  --accent: #ffb52e;
  --border: rgba(255, 181, 46, .2);
  --radius: 20px;
  --shadow: 0 10px 35px rgba(0, 0, 0, .35);
  --font-head: 'Secular One', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(760px, 92%); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 18, 28, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 181, 46, .15);
}
.nav { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.nav-logo img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--amber); }
.nav-logo span { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; display: flex; flex-direction: column; }
.nav-logo small { font-size: .65rem; color: var(--muted); font-family: var(--font-body); }
.nav-links { display: flex; align-items: center; gap: .4rem; list-style: none; margin-inline-start: auto; }
.nav-links a:not(.btn) {
  color: var(--text); text-decoration: none; padding: .45rem .7rem;
  border-radius: 10px; font-weight: 500; transition: .2s;
}
.nav-links a:not(.btn):hover { background: rgba(255, 181, 46, .12); color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; color: var(--amber); font-size: 1.7rem; cursor: pointer; margin-inline-start: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .6rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #221500; box-shadow: 0 6px 20px rgba(255, 181, 46, .35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255, 181, 46, .5); }
.btn-outline { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn-outline:hover { background: rgba(255, 181, 46, .12); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-lg { padding: .85rem 2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }
/* כפתור "בקרוב" – לא לחיץ */
.btn-soon { opacity: .55; cursor: default; pointer-events: none; filter: saturate(.6); }
.btn-soon:hover { transform: none; box-shadow: none; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,18,28,.55), rgba(22,18,28,.82) 75%, var(--bg));
}
.hero-content { position: relative; z-index: 1; padding: 6rem 0 7rem; }
.hero-logo {
  width: 130px; height: 130px; border-radius: 50%; margin-inline: auto;
  border: 4px solid var(--amber); box-shadow: 0 0 0 8px rgba(255,181,46,.18), var(--shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 {
  font-family: var(--font-head); font-size: clamp(3.5rem, 10vw, 6.5rem);
  margin-top: 1rem; line-height: 1;
  background: linear-gradient(90deg, var(--amber), #ffe08a, var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* הרקע מכסה רק את קופסת השורה – בלי ריפוד תחתון הסגול שמתחת ל-ל' נחתך ונראה שקוף */
  padding-bottom: .22em; margin-bottom: -.22em;
}
.hero-sub { font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 700; }
.hero-tagline { color: var(--muted); font-size: 1.15rem; letter-spacing: .15em; margin-top: .3rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; inset-inline: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center; margin-bottom: .6rem;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

.pop {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(255, 181, 46, .1);
  transition: transform .2s, border-color .2s, background .2s;
}
.pop:hover { transform: translateY(-4px); border-color: rgba(255, 181, 46, .35); background: var(--card-hover); }

/* ===== Icon images ===== */
.card-icon {
  width: 68px; height: 68px; border-radius: 18px; margin-bottom: .7rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.contact-card .card-icon, .login-card .card-icon { margin-inline: auto; }
.title-icon {
  width: 46px; height: 46px; border-radius: 13px; display: inline-block;
  vertical-align: -12px; margin-inline-end: .4rem; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.meta-icon {
  width: 18px; height: 18px; border-radius: 5px; display: inline-block;
  vertical-align: -3px; margin-inline-end: .3rem;
}

/* ===== Login ===== */
.login-card { padding: 3rem 2.5rem; text-align: center; }
.login-card:hover { transform: none; }
.login-card h1 { font-family: var(--font-head); color: var(--amber); font-size: clamp(1.7rem, 5vw, 2.4rem); margin: .6rem 0 .8rem; }
.login-card p { margin-bottom: .8rem; }
.login-card .muted { color: var(--muted); font-size: .95rem; }
.login-card .hero-cta { margin-top: 1.6rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.about-card { padding: 2.2rem; }
.about-card .emoji { font-size: 2.6rem; display: block; margin-bottom: .6rem; }
.about-card h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: .8rem; color: var(--amber); }
.about-card p { margin-bottom: .9rem; }

/* Pricing */
.pricing { margin-top: 4rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.price-card { padding: 1.8rem 1.2rem; text-align: center; }
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; color: var(--amber); display: block; }
.price-card .price small { font-size: 1rem; color: var(--muted); }
.price-card h3 { font-size: 1rem; font-weight: 500; margin-top: .4rem; }
.price-card.featured { border-color: var(--amber); background: linear-gradient(160deg, var(--card), rgba(255,181,46,.12)); }
.pricing-note { text-align: center; color: var(--muted); margin-top: 2rem; max-width: 640px; margin-inline: auto; }

/* ===== Events ===== */
.events-toolbar { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.view-switch { display: flex; background: var(--card); border-radius: 999px; padding: .3rem; border: 1px solid rgba(255,181,46,.15); }
.view-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: .5rem 1.2rem; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; transition: .2s;
}
.view-btn.active { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #221500; }
.month-nav { display: flex; align-items: center; gap: .8rem; }
.month-nav span { font-family: var(--font-head); font-size: 1.2rem; min-width: 150px; text-align: center; }
.month-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,181,46,.3);
  background: var(--card); color: var(--amber); font-size: 1.3rem; cursor: pointer; transition: .2s;
}
.month-btn:hover { background: var(--amber); color: #221500; }

.events-list { display: grid; gap: 1rem; max-width: 760px; margin-inline: auto; }
.event-card {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.1rem 1.4rem;
  background: var(--card); border-radius: var(--radius); border: 1px solid rgba(255,181,46,.1);
  transition: transform .2s, border-color .2s;
}
.event-card:hover { transform: translateX(-4px); border-color: rgba(255,181,46,.4); }
.event-date {
  flex-shrink: 0; width: 72px; text-align: center; background: rgba(255,181,46,.12);
  border-radius: 14px; padding: .5rem 0; border: 1px solid rgba(255,181,46,.25);
}
.event-date .day { font-family: var(--font-head); font-size: 1.7rem; color: var(--amber); line-height: 1.1; display: block; }
.event-date .month { font-size: .8rem; color: var(--muted); }
.event-info h3 { font-size: 1.15rem; }
.event-info p { color: var(--muted); font-size: .92rem; }
.event-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--teal); }

/* Month grid */
.events-month { max-width: 920px; margin-inline: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-weight: 700; color: var(--amber); padding: .4rem 0; font-size: .9rem; }
.cal-cell {
  min-height: 92px; background: var(--card); border-radius: 10px; padding: .35rem .45rem;
  border: 1px solid transparent; font-size: .85rem;
  min-width: 0; overflow: hidden; /* שמות ארוכים נחתכים ולא מרחיבים את העמודה */
}
.cal-cell.other { opacity: .35; }
.cal-cell.today { border-color: var(--amber); box-shadow: 0 0 12px rgba(255,181,46,.25); }
.cal-cell .num { color: var(--muted); font-size: .8rem; }
.cal-event {
  display: block; margin-top: .25rem; background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #221500; border-radius: 6px; padding: .12rem .4rem; font-size: .74rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default;
}
.events-status { text-align: center; color: var(--muted); margin-top: 1.5rem; font-size: .9rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px; grid-auto-rows: 190px;
}
.gallery-grid .g-item {
  border-radius: 14px; overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(255,181,46,.1);
}
.gallery-grid .g-item:nth-child(5n+1) { grid-row: span 2; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s;
}
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-video-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 14, .62); color: #fff; font-size: 1.1rem; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .35);
}
.gallery-more { text-align: center; margin-top: 2rem; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; grid-column: 1/-1; }

/* פוסטים מהאינסטגרם בגלריה */
.ig-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600;
  color: #fff; background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af);
  box-shadow: 0 2px 8px rgba(0,0,0,.35); pointer-events: none;
}
.g-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2rem .8rem .7rem;
  font-size: .82rem; line-height: 1.3; color: #fff;
  background: linear-gradient(transparent, rgba(10,8,14,.85));
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.g-item:hover .g-caption { opacity: 1; }

/* הטמעות רשמיות של אינסטגרם (fallback) */
.ig-embeds {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-top: 1.5rem; justify-items: center;
}
.ig-embeds .instagram-media { border-radius: 14px !important; min-width: 0 !important; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,8,14,.92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox video.lightbox-video { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox { flex-direction: column; gap: .8rem; }
.lightbox-caption { text-align: center; max-width: 720px; color: var(--text); }
.lightbox-caption p { margin: 0 0 .3rem; font-size: .95rem; }
.lightbox-caption a { color: var(--amber); font-weight: 600; }
.lightbox-close {
  position: absolute; top: 1rem; inset-inline-start: 1rem; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: var(--card); color: var(--text); font-size: 1.2rem; cursor: pointer;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--card); border-radius: 14px; margin-bottom: .8rem;
  border: 1px solid rgba(255,181,46,.1); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; font-size: 1.05rem;
  list-style: none; position: relative; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; inset-inline-end: 1.3rem; color: var(--amber);
  font-size: 1.4rem; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--amber); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.contact-card { padding: 2rem; text-align: center; }
.contact-card .emoji { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.contact-card h3 { font-family: var(--font-head); color: var(--amber); margin-bottom: .5rem; }
.link { color: var(--teal); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: #110d18; padding: 2.5rem 0; margin-top: 2rem; }
.footer-inner { text-align: center; color: var(--muted); font-size: .9rem; }
.footer-inner img { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .8rem; border: 2px solid var(--amber); }
.footer-inner a { color: var(--muted); }

/* ===== Signup form ===== */
.signup-section { min-height: 70vh; }
.signup-head { text-align: center; margin-bottom: 2rem; }
.signup-head h1 { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3rem); color: var(--amber); }
.signup-head p { color: var(--muted); margin-top: .6rem; }
.signup-form { padding: 2.2rem; display: grid; gap: 1.2rem; }
.signup-form:hover { transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label, .form-field legend { font-weight: 500; font-size: .95rem; }
.form-field input[type="text"], .form-field input[type="tel"], .form-field input[type="email"],
.form-field input[type="password"],
.form-field select {
  background: var(--bg); border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
  color: var(--text); padding: .75rem 1rem; font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,181,46,.2); }
fieldset.form-field { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem 1.2rem; }
fieldset.form-field legend { padding: 0 .5rem; color: var(--amber); font-weight: 700; }
.choice { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; padding: .35rem 0; font-size: .95rem; }
.choice input { accent-color: var(--amber); margin-top: .3rem; flex-shrink: 0; width: 17px; height: 17px; }

/* בחירת סוג מנוי */
.plan-choice {
  align-items: center; border: 1px solid rgba(255,181,46,.18); border-radius: 12px;
  padding: .7rem .9rem; margin-bottom: .5rem; transition: border-color .2s, background .2s;
}
.plan-choice:hover { border-color: var(--amber); }
.plan-choice:has(input:checked) { border-color: var(--amber); background: rgba(255,181,46,.08); }
.plan-choice input { margin-top: 0; }
.plan-choice span { flex: 1; }
.plan-price { color: var(--amber); font-size: 1.05rem; white-space: nowrap; }
.field-hint { color: var(--teal); font-size: .88rem; margin: .3rem 0 0; }
/* פרטים נוספים (לא חובה) בטופס ההרשמה */
.signup-more { border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; padding: .8rem 1rem; }
.signup-more summary { cursor: pointer; font-weight: 600; color: var(--amber); list-style: none; }
.signup-more summary::-webkit-details-marker { display: none; }
.signup-more[open] summary { margin-bottom: 1rem; }
.signup-more .form-row, .signup-more .form-field { margin-top: .6rem; }

.form-status { text-align: center; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--pink); }
.signup-footnote { text-align: center; color: var(--muted); margin-top: 1.6rem; font-size: .92rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-shacharut { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; background: rgba(22,18,28,.97);
    padding: 1rem 1.3rem 1.4rem; gap: .5rem; border-bottom: 1px solid rgba(255,181,46,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cal-cell { min-height: 64px; }
  .cal-event { font-size: .62rem; padding-inline: .2rem; }
  .section { padding: 3.5rem 0; }
}

/* ===== סיכום תשלום בדף התודה ===== */
.payment-summary {
  margin: 1.2rem auto; max-width: 340px; text-align: right;
  background: var(--bg); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 1rem 1.2rem; display: grid; gap: .5rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.summary-row span { color: var(--muted, rgba(255,255,255,.65)); }
.summary-row strong { color: var(--amber); direction: ltr; }

/* קישורי רשתות בפוטר */
.footer-social { font-size: .9rem; line-height: 1.8; }
.footer-social a { color: var(--amber); text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }

/* קרדיט בניה בפוטר */
.footer-credit { font-size: .8rem; opacity: .7; }
.footer-credit a { color: var(--amber); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* פרטי בן/בת זוג (מנוי זוגי) */
.partner-fields .form-row { margin-top: .6rem; }
.partner-fields .form-field label { color: var(--text); }

/* תמונת 'למה כדאי להיות חבר.ת פאב' */
.why-member { margin: 3rem auto 0; max-width: 620px; }
.why-member img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }

/* ===== גלגלי המתנה (יצירת לינק תשלום, אימות עסקה) ===== */
@keyframes spin { to { transform: rotate(360deg); } }

.btn-spinner,
.spinner {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  border: 3px solid currentColor;
  border-inline-start-color: transparent;
  opacity: .9;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -0.22em;
  margin-inline-end: .55em;
  flex: none;
}

.form-status.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2em;
  color: var(--accent, #f0a500);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== לוגואים בפוטר + אייקוני רשתות חברתיות ===== */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .8rem;
}
.footer-logos img { margin: 0; }
.footer-inner .shacharut-logo {
  width: auto;
  height: 56px;
  border-radius: 14px;
  border: 2px solid var(--amber);
  background: #fff;
  padding: 4px 10px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: .6rem;
}
.social-icons img {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 0;
  margin: 0;
  transition: transform .15s ease;
}
.social-icons a:hover img { transform: scale(1.18); }
.contact-card .social-icons { margin-top: .9rem; }
.contact-card .social-icons img { filter: none; }

/* ===== לוגו שחרות בכותרת העליונה ===== */
.nav-shacharut {
  height: 38px; width: auto;
  background: #fff; border-radius: 10px; padding: 3px 7px;
  border: 1px solid rgba(255, 181, 46, .4);
}

/* ===== דיאלוג "עוד שאלות ותשובות" ===== */
.faq-more-wrap { text-align: center; margin-top: 1.6rem; }
.faq-dialog {
  width: min(760px, 92vw); max-height: 82vh;
  margin: auto; padding: 1.6rem 1.6rem 1.8rem;
  background: var(--bg-alt); color: var(--text);
  border: 1px solid rgba(255, 181, 46, .3); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow-y: auto;
}
.faq-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.faq-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.faq-dialog-head h3 { font-family: var(--font-head); color: var(--amber); font-size: 1.4rem; }
.faq-dialog-close {
  background: none; border: 0; color: var(--muted); font-size: 1.3rem;
  cursor: pointer; padding: .3rem .5rem; border-radius: 8px; transition: .2s;
}
.faq-dialog-close:hover { color: var(--amber); background: rgba(255, 181, 46, .12); }

/* ===== רקע מתחלף (bg-rotator.js) ===== */
.bg-rotator { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.bg-rotator .bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.bg-rotator .bg-layer.active { opacity: 1; }
.bg-rotator .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-rotator .bg-dim { position: absolute; inset: 0; }
/* כשהרקע פעיל – הקטעים נעשים שקופים-למחצה כדי שהתמונות יציצו מבעד */
body.bg-rotating { background: transparent; }
/* ההירו מצטרף לרקע המתחלף – בלי hero.jpg קבוע, שהעמוד ייראה אחד */
body.bg-rotating .hero-bg { display: none; }
body.bg-rotating .hero-overlay {
  background: linear-gradient(180deg, rgba(22, 18, 28, .3), rgba(22, 18, 28, 0) 75%);
}
body.bg-rotating .hero-wave { display: none; }
body.bg-rotating .section-alt { background: rgba(31, 25, 48, .82); }
body.bg-rotating .site-footer { background: rgba(17, 13, 24, .9); }

/* ===== דף כניסה ===== */
.login-form { display: grid; gap: 1rem; text-align: right; margin-top: 1.4rem; }
.login-form .form-field input { width: 100%; }
.form-error { color: var(--pink, #ff6b9d); font-weight: 500; text-align: center; margin: 0; }
.login-hint { margin-top: 1.4rem; }
.login-divider { border-top: 1px dashed rgba(255, 181, 46, .25); margin: 1.6rem 0 1.2rem; }

/* ===== מערכת ניהול ===== */
.btn-sm { padding: .45rem .95rem; font-size: .88rem; }
.admin-user { display: flex; align-items: center; gap: .9rem; margin-inline-start: auto; }
.admin-user .muted { color: var(--muted); font-size: .92rem; }
.admin-section { min-height: 75vh; padding-top: 2.5rem; }
.admin-title { font-family: var(--font-head); color: var(--amber); font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 1.4rem; }

/* פריסת מערכת: תפריט צד + תוכן */
.admin-layout {
  width: min(1500px, 100% - 2.6rem); margin-inline: auto;
  display: grid; grid-template-columns: 210px 1fr; gap: 1.6rem; align-items: start;
}
.admin-menu {
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: var(--radius);
  padding: .8rem; position: sticky; top: 90px; display: grid; gap: .3rem;
}
.admin-menu nav { display: grid; gap: .3rem; }
.admin-menu-item {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: right;
  border: 0; background: transparent; color: var(--text); font-family: var(--font-body);
  font-size: 1rem; padding: .7rem .9rem; border-radius: 12px; cursor: pointer; transition: .15s;
}
.admin-menu-item:hover { background: rgba(255,181,46,.1); }
.admin-menu-item.active { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #1d1526; font-weight: 700; }
.menu-icon { font-size: 1.15rem; }
.admin-main { min-width: 0; }
.admin-placeholder { padding: 3rem 2rem; text-align: center; font-size: 1.15rem; }
.admin-placeholder:hover { transform: none; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.admin-tabs { display: flex; background: var(--card); border-radius: 999px; padding: .3rem; border: 1px solid rgba(255,181,46,.15); }
.admin-tab {
  border: 0; background: transparent; color: var(--text); font-family: var(--font-body);
  padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; font-size: .95rem; transition: .2s;
}
.admin-tab.active { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #1d1526; font-weight: 700; }
.admin-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.admin-tools input[type="search"] {
  background: var(--card); border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
  color: var(--text); padding: .55rem 1.1rem; font-family: var(--font-body); font-size: .92rem; min-width: 230px;
}
.admin-tools input[type="search"]:focus { outline: none; border-color: var(--amber); }
.admin-count { margin-bottom: .6rem; color: var(--muted); font-size: .9rem; }

.admin-table-wrap {
  background: var(--card); border-radius: var(--radius); border: 1px solid rgba(255,181,46,.12);
  overflow-x: auto; position: relative; min-height: 120px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th {
  text-align: right; padding: .8rem .9rem; color: var(--amber); font-weight: 700;
  border-bottom: 1px solid rgba(255,181,46,.25); white-space: nowrap; position: sticky; top: 0; background: var(--card);
  cursor: pointer; user-select: none;
}
.admin-table th.sortable:hover { color: #ffe08a; }
.admin-table td {
  padding: .65rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-wrap: anywhere; /* נפרס לכל הרוחב במקום גלילה רוחבית */
}
.admin-table td:first-child { white-space: nowrap; }
/* עמודת המייל – מצומצמת עם שלוש נקודות (הערך המלא ב-title ובדיאלוג) */
.admin-table td.col-email { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-table tbody tr { cursor: pointer; transition: background .15s; }
.admin-table tbody tr:hover { background: rgba(255,181,46,.07); }
.admin-empty { text-align: center; padding: 2.5rem 1rem; }
.admin-loading { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.admin-loading .spinner { color: var(--amber); }

/* דפדוף */
.admin-paging { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.admin-paging span { color: var(--muted); font-size: .9rem; min-width: 110px; text-align: center; }
.admin-paging button:disabled { opacity: .35; cursor: default; }
.admin-paging select {
  background: var(--card); border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
  color: var(--text); padding: .45rem .9rem; font-family: var(--font-body); font-size: .88rem; cursor: pointer;
}
.admin-paging select:focus { outline: none; border-color: var(--amber); }

.badge { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-ok { background: rgba(64, 200, 150, .18); color: #4fe0ab; }
.badge-wait { background: rgba(255, 181, 46, .16); color: var(--amber); }
.badge-off { background: rgba(255, 255, 255, .1); color: var(--muted); }

/* דיאלוג צפייה ברשומה */
.admin-detail {
  background: var(--card); color: var(--text); border: 1px solid rgba(255,181,46,.25);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 640px; width: calc(100% - 2rem);
  max-height: 85vh;
  position: fixed; inset: 0; margin: auto; height: fit-content; /* ממורכז תמיד */
}
.admin-detail::backdrop { background: rgba(10, 8, 14, .75); backdrop-filter: blur(3px); }
.admin-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-detail-head h2 { font-family: var(--font-head); color: var(--amber); font-size: 1.4rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.4rem; }
.detail-row { display: flex; justify-content: space-between; gap: .8rem; font-size: .9rem; border-bottom: 1px dashed rgba(255,255,255,.08); padding: .3rem 0; }
.detail-row span { color: var(--muted); flex-shrink: 0; }
.detail-row strong { text-align: left; overflow-wrap: anywhere; font-weight: 500; }
.detail-sub { color: var(--amber); font-family: var(--font-head); margin: 1.3rem 0 .6rem; font-size: 1.05rem; }

/* פעולות על חבר/ה בדיאלוג – שינוי סטטוס ומחיקה */
.detail-actions {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.detail-actions label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.detail-actions select {
  background: var(--card); border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  color: var(--text); padding: .4rem .7rem; font-family: var(--font-body); font-size: .9rem; cursor: pointer;
}
.detail-actions select:focus { outline: none; border-color: var(--amber); }
.btn-danger { border-color: rgba(255, 99, 99, .6); color: #ff7b7b; background: transparent; }
.btn-danger:hover { background: rgba(255, 99, 99, .12); }
.detail-payment { border: 1px solid rgba(255,181,46,.18); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .7rem; }

/* --- דיאלוג פרטי אירוע --- */
.events-month-sep {
  font-family: var(--font-head); color: var(--amber); font-size: 1.2rem;
  margin: 1.6rem 0 .2rem; text-align: center;
}
.event-clickable { cursor: pointer; }
.event-card.event-clickable:hover { border-color: var(--amber); }
.event-more { color: var(--amber); font-weight: 500; }
.event-dialog { max-width: 560px; }
.event-dialog-meta { margin: .4rem 0 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.event-dialog-body { color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.event-dialog-body a { color: var(--amber); text-decoration: underline; }
.event-dialog-body img { max-width: 100%; border-radius: 12px; }

/* --- מהתפריט שלנו (דף הבית) --- */
.menu-home-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem;
}
.menu-home-card {
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.menu-home-img {
  height: 160px; display: grid; place-items: center; font-size: 3rem;
  background: rgba(255,181,46,.07); position: relative;
}
.menu-home-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-home-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.menu-home-body h3 { font-family: var(--font-head); color: var(--amber); font-size: 1.15rem; }
.menu-home-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.menu-home-pick { font-size: .95rem; }
.menu-home-body p.menu-home-pick-note { color: var(--amber); font-size: .85rem; font-weight: 600; flex: 0 0 auto; }
.menu-home-price { color: var(--amber); font-weight: 700; font-size: 1.1rem; }

/* --- ניהול תפריט --- */
.menu-admin-list { display: grid; gap: 1.2rem; }
.menu-cat {
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.menu-cat-off { opacity: .55; }
.menu-cat-head { display: flex; gap: 1rem; align-items: flex-start; }
.menu-cat-img {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,181,46,.08);
}
.menu-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-cat-info { flex: 1; min-width: 0; }
.menu-cat-info h2 { font-family: var(--font-head); color: var(--amber); font-size: 1.3rem; margin-bottom: .15rem; }
.menu-cat-avail { font-size: .85rem; }
.menu-cat-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.menu-cat-products { display: grid; gap: .6rem; margin-top: .9rem; }
.menu-cat-noprods { padding: .4rem 0; }

/* רשת כרטיסי קטגוריות */
.menu-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.menu-cat-card {
  display: flex; flex-direction: column; text-align: start; cursor: pointer;
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: var(--radius);
  padding: 0; overflow: hidden; color: var(--text); font-family: var(--font-body);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.menu-cat-card:hover, .menu-cat-card:focus-visible {
  transform: translateY(-3px); border-color: var(--amber);
  box-shadow: 0 8px 24px rgba(255,181,46,.12); outline: none;
}
.menu-card-visual {
  height: 130px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,181,46,.08); overflow: hidden; padding: .5rem;
}
/* תמונות (גם מרובעות) מוצגות בשלמותן וממורכזות, בלי חיתוך */
.menu-card-visual img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.menu-card-icon { font-size: 3rem; }
.menu-card-body { padding: .8rem 1rem 1rem; display: grid; gap: .25rem; }
.menu-card-body .menu-card-title { font-family: var(--font-head); color: var(--amber); font-size: 1.2rem; }
.menu-card-body p { font-size: .85rem; }
.menu-card-count {
  justify-self: start; margin-top: .3rem; font-size: .8rem; font-weight: 700;
  background: rgba(255,181,46,.12); color: var(--amber); border-radius: 999px; padding: .15rem .65rem;
}
.menu-back { margin-bottom: .9rem; }

/* בורר אייקון בטפסים */
.menu-icon-field { display: grid; gap: .4rem; }
.menu-icon-field label { display: grid; gap: .3rem; font-size: .9rem; }
.menu-icon-input { width: 90px; text-align: center; font-size: 1.2rem; }
.menu-icon-pick { display: flex; gap: .25rem; flex-wrap: wrap; }
.menu-icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,181,46,.2);
  background: rgba(255,255,255,.04); font-size: 1.1rem; cursor: pointer; transition: .15s;
}
.menu-icon-btn:hover { background: rgba(255,181,46,.15); border-color: var(--amber); }

/* --- מתנדבים: אירועים, סידור עבודה וניקוד --- */
.vol-events-list { display: grid; gap: .6rem; }
.vol-event {
  display: grid; grid-template-columns: 220px 1fr auto; gap: .8rem; align-items: center;
  width: 100%; text-align: start; cursor: pointer;
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: 12px;
  padding: .7rem 1rem; color: var(--text); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .15s, transform .15s;
}
.vol-event:hover { border-color: var(--amber); transform: translateY(-1px); }
.vol-event-date { color: var(--amber); font-weight: 700; font-size: .88rem; }
.vol-event-title { font-weight: 700; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.vol-event-meta { display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.vol-cancelled { opacity: .5; }
.vol-past { opacity: .65; }
.vol-sep { font-family: var(--font-head); color: var(--muted); margin: 1.2rem 0 .3rem; font-size: 1.05rem; }

.vol-detail {
  background: var(--card); border: 1px solid rgba(255,181,46,.15); border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.vol-detail-head { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.vol-detail-head h2 { font-family: var(--font-head); color: var(--amber); font-size: 1.4rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.vol-desc { font-size: .9rem; max-width: 60ch; }
.vol-equipment {
  background: rgba(255,181,46,.07); border-radius: 10px; padding: .5rem .8rem; margin-top: .6rem; font-size: .9rem;
}
.vol-sub { font-family: var(--font-head); color: var(--amber); margin: 1.2rem 0 .5rem; font-size: 1.1rem; }

.vol-role { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .55rem; }
.vol-role-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.vol-role-actions { margin-inline-start: auto; display: flex; gap: .3rem; }
.vol-role-actions .btn { padding: .2rem .45rem; }
.vol-assignees { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; align-items: center; }
.vol-chip {
  display: inline-flex; gap: .35rem; align-items: center;
  background: rgba(255,181,46,.12); color: var(--amber); border-radius: 999px; padding: .2rem .7rem; font-size: .88rem; font-weight: 700;
}
.vol-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: .85rem; padding: 0; }
.vol-chip button:hover { color: #fff; }
.vol-add-assign { display: inline-flex; gap: .35rem; align-items: center; }
.vol-add-assign input, .vol-add-role input[type="text"] {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,181,46,.2); border-radius: 8px;
  color: var(--text); padding: .35rem .6rem; font-family: var(--font-body); font-size: .88rem; width: 160px;
}
.vol-add-role { display: flex; gap: .5rem; margin-top: .6rem; align-items: center; flex-wrap: wrap; }
.vol-add-role input[type="text"] { width: 300px; max-width: 100%; }
.vol-add-role input[type="number"] {
  width: 64px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,181,46,.2); border-radius: 8px;
  color: var(--text); padding: .35rem .5rem;
}

/* שעות על צ'יפ שיבוץ + בחירת מתנדב מומלץ */
.vol-hours { font-style: normal; font-weight: 400; font-size: .78rem; opacity: .8; direction: ltr; }
.vol-add-assign select {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,181,46,.2); border-radius: 8px;
  color: var(--text); padding: .35rem .5rem; font-family: var(--font-body); font-size: .88rem; max-width: 240px;
}
.vol-add-assign select option, .vol-add-assign select optgroup { background: #1d1526; color: var(--text); }

/* טאב מתנדבים – יכולות לכל מתנדב */
.vol-caps { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
.vol-cap {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.vol-cap input { accent-color: var(--amber); cursor: pointer; }

/* סימון מתנדב בכרטיס חבר */
.detail-volunteer {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .6rem .8rem;
  background: rgba(255,181,46,.08); border: 1px solid rgba(255,181,46,.25); border-radius: 10px;
  font-weight: 700; cursor: pointer;
}
.detail-volunteer input { accent-color: var(--amber); width: 18px; height: 18px; cursor: pointer; }
.detail-volunteer .muted { font-weight: 400; font-size: .82rem; }

.vol-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.vol-photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.vol-photo img { width: 100%; height: 100%; object-fit: cover; }
.vol-photo button {
  position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: .75rem;
}
.vol-photo-add {
  display: grid; place-items: center; aspect-ratio: 1; cursor: pointer;
  border: 2px dashed rgba(255,181,46,.35); border-radius: 10px; color: var(--amber); font-weight: 700; font-size: .9rem;
  transition: .15s;
}
.vol-photo-add:hover { background: rgba(255,181,46,.08); border-color: var(--amber); }

.vol-score-tools { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.vol-score-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; align-items: start; }
.vol-inactive { opacity: .55; }

@media (max-width: 900px) {
  .vol-event { grid-template-columns: 1fr; gap: .25rem; }
  .vol-score-grid { grid-template-columns: 1fr; }
}

.menu-prod {
  display: flex; gap: .9rem; align-items: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: .6rem .8rem;
}
.menu-prod-off { opacity: .5; }
.menu-prod-img {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,181,46,.07);
}
.menu-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-prod-info { flex: 1; min-width: 0; }
.menu-prod-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.menu-prod-info p { font-size: .85rem; margin-top: .1rem; }
.menu-prod-meta { display: flex; gap: .8rem; font-size: .8rem; flex-wrap: wrap; }
.menu-prod-side { display: grid; gap: .35rem; justify-items: end; }
.menu-prod-price { color: var(--amber); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.menu-prod-actions { display: flex; gap: .3rem; }
.menu-prod-actions .btn { padding: .25rem .5rem; }

/* טפסים של התפריט */
.menu-form { display: grid; gap: .85rem; margin-top: 1rem; }
.menu-form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--text); }
.menu-form input, .menu-form textarea, .menu-form select {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,181,46,.2); border-radius: 10px;
  color: var(--text); padding: .55rem .7rem; font-family: var(--font-body); font-size: .95rem;
}
.menu-form input:focus, .menu-form textarea:focus, .menu-form select:focus { outline: 2px solid var(--amber); }
.menu-form-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.menu-form-row label { flex: 1; min-width: 130px; }
.menu-form-row label.grow { flex: 2; }
.menu-check { display: flex !important; align-items: center; gap: .5rem; }
.menu-check input { width: auto; }
.menu-days { border: 1px solid rgba(255,181,46,.2); border-radius: 10px; padding: .6rem .8rem; }
.menu-days legend { font-size: .85rem; padding: 0 .4rem; }
.menu-days-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.menu-days-row label { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }
.menu-form-actions { display: flex; gap: .6rem; justify-content: flex-start; margin-top: .3rem; }

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-tools input[type="search"] { flex: 1; min-width: 0; }
  .menu-cat-head { flex-wrap: wrap; }
  .menu-prod { flex-wrap: wrap; }
  .menu-prod-side { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-menu { position: static; }
  .admin-menu nav { display: flex; flex-wrap: wrap; }
  .admin-menu-item { width: auto; }
}

/* ===== האזור האישי לחברים (member.html) ===== */
.member-body { background: var(--bg); min-height: 100vh; min-height: 100dvh; }

/* --- כניסה --- */
.m-login { min-height: 100dvh; display: grid; place-items: center; padding: 1.2rem; }
.m-login-card {
  width: min(420px, 100%); background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem 1.6rem; text-align: center;
}
.m-login-logo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .8rem; border: 3px solid var(--amber); }
.m-login-card h1 { font-family: var(--font-head); color: var(--amber); }
.m-login-card form { margin-top: 1.2rem; text-align: right; }
.m-code-hint { text-align: center; color: var(--muted); }
#loginCode { letter-spacing: .5em; text-align: center; font-size: 1.4rem; }
.m-link-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  display: block; margin: 1rem auto 0; font-size: .9rem; text-decoration: underline;
}

/* --- מסגרת האפליקציה --- */
.m-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .7rem;
  padding: .55rem .9rem; background: rgba(22, 18, 28, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 181, 46, .15);
}
.m-header-logo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--amber); }
.m-header-title { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; display: flex; flex-direction: column; }
.m-header-title small { font-size: .62rem; color: var(--muted); font-family: var(--font-body); }
.m-header-points {
  margin-inline-start: auto; background: rgba(255, 181, 46, .14); color: var(--amber);
  font-weight: 700; padding: .25rem .7rem; border-radius: 999px; font-size: .92rem;
}
.m-main { padding: 1rem .9rem 6.5rem; max-width: 640px; margin-inline: auto; }
.m-view { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.m-title { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: .8rem; }
.m-subtitle { font-family: var(--font-head); font-size: 1.05rem; color: var(--amber); margin: 1.2rem 0 .5rem; }
.m-hint { font-size: .85rem; margin-bottom: .6rem; }
.m-card { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: .9rem; }

/* --- טאב-בר תחתון --- */
.m-tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: flex;
  background: rgba(31, 25, 48, .97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 181, 46, .18);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tab {
  flex: 1; background: none; border: 0; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  font-family: var(--font-body); font-size: .68rem; padding: .5rem 0 .55rem; position: relative;
}
.m-tab span { font-size: 1.25rem; line-height: 1; filter: grayscale(.6); transition: .15s; }
.m-tab.active { color: var(--amber); }
.m-tab.active span { filter: none; transform: scale(1.12); }
.m-badge {
  position: absolute; top: .2rem; inset-inline-end: 18%; min-width: 16px; height: 16px;
  background: var(--pink); color: #fff; border-radius: 999px; font-size: .62rem;
  font-style: normal; display: grid; place-items: center; padding-inline: 3px; font-weight: 700;
}

/* --- אווטרים --- */
.m-ava { border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.m-ava img { width: 100%; height: 100%; object-fit: cover; }
.m-ava-init { color: #fff; font-weight: 700; font-family: var(--font-head); }
.m-ava-emoji { background: var(--bg-alt); }
.m-ava-sm { width: 38px; height: 38px; font-size: .95rem; }
.m-ava-sm.m-ava-emoji { font-size: 1.3rem; }
.m-ava-md { width: 48px; height: 48px; font-size: 1.1rem; }
.m-ava-md.m-ava-emoji { font-size: 1.7rem; }
.m-ava-lg { width: 76px; height: 76px; font-size: 1.7rem; border: 3px solid var(--amber); }
.m-ava-lg.m-ava-emoji { font-size: 2.6rem; }

/* --- בפאב: צ'ק-אין --- */
.m-checkin-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .5rem; }
.m-checkin-btn {
  background: var(--card); border: 2px solid rgba(255, 181, 46, .25); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 1.1rem .5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: .3rem; transition: .15s;
}
.m-checkin-btn span { font-size: 2rem; }
.m-checkin-btn:active { transform: scale(.96); }
.m-checkin-btn:disabled { opacity: .4; cursor: not-allowed; }
.m-checkin-main { background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #221a10; border-color: transparent; }
.m-here { display: flex; flex-direction: column; gap: .5rem; }
.m-here-row { display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 14px; padding: .55rem .8rem; }
.m-here-info { display: flex; flex-direction: column; line-height: 1.3; }
.m-here-info small { color: var(--muted); font-size: .8rem; }

/* --- חברים --- */
.m-search {
  width: 100%; background: var(--card); border: 1px solid rgba(255, 181, 46, .2);
  border-radius: 999px; color: var(--text); font-family: var(--font-body);
  padding: .6rem 1.1rem; font-size: 1rem; margin-bottom: .5rem;
}
.m-friend-card { display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 14px; padding: .6rem .8rem; margin-bottom: .5rem; }
.m-friend-info { flex: 1; min-width: 0; }
.m-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.m-tag { background: rgba(55, 214, 194, .14); color: var(--teal); border-radius: 999px; padding: .08rem .55rem; font-size: .74rem; }
.m-follow-btn {
  background: none; border: 1.5px solid var(--amber); color: var(--amber); border-radius: 999px;
  padding: .3rem .8rem; font-family: var(--font-body); font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.m-follow-btn.following { background: rgba(55, 214, 194, .15); border-color: var(--teal); color: var(--teal); }
.m-dm-btn {
  background: none; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 999px;
  width: 34px; height: 34px; font-size: .95rem; cursor: pointer; flex-shrink: 0;
}
.m-dm-text {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .15);
  border-radius: 12px; color: var(--ink, #fff); font-family: var(--font-body); font-size: .95rem;
  padding: .6rem .8rem; margin: .6rem 0 1rem; resize: vertical;
}
.m-dm-text:focus { outline: none; border-color: var(--amber); }
.m-date-input {
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .15); border-radius: 12px;
  color: #fff; font-family: var(--font-body); font-size: 1rem; padding: .55rem .8rem; width: 100%;
  color-scheme: dark;
}
.m-date-input:focus { outline: none; border-color: var(--amber); }

/* --- מסך משתמשי מערכת --- */
.user-row {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--card); border-radius: 14px; padding: .7rem .9rem; margin-bottom: .55rem;
}
.user-row-off { opacity: .5; }
.user-row-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .15rem; }
.user-row-actions { display: flex; gap: .4rem; }
.user-screens { margin: .4rem 0 .8rem; }
.user-screen-chk {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  background: rgba(255, 255, 255, .06); border-radius: 999px; padding: .3rem .7rem;
  margin: 0 0 .4rem .4rem; font-size: .88rem;
}

/* --- מסך מלאי --- */
.inv-alerts {
  background: var(--card); border: 1px solid rgba(255, 170, 60, .35);
  border-radius: 16px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.inv-alerts h3 { margin: 0 0 .6rem; font-size: 1rem; }
.inv-alerts-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.inv-alert {
  border: none; cursor: pointer; border-radius: 12px; padding: .45rem .75rem;
  font-size: .88rem; color: inherit; text-align: right; font-family: inherit;
}
.inv-alert-low { background: rgba(255, 90, 90, .16); border: 1px solid rgba(255, 90, 90, .4); }
.inv-alert-exp { background: rgba(255, 190, 70, .14); border: 1px solid rgba(255, 190, 70, .4); }
.inv-alert-expired { background: rgba(255, 60, 60, .25); border: 1px solid rgba(255, 60, 60, .6); }
.inv-group { margin-bottom: 1.1rem; }
.inv-group-title { margin: 0 0 .5rem; font-size: 1.02rem; color: var(--amber); }
.inv-row {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--card); border-radius: 14px; padding: .65rem .9rem; margin-bottom: .5rem;
}
.inv-row-off { opacity: .5; }
.inv-row-low { border: 1px solid rgba(255, 90, 90, .45); }
.inv-row-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .12rem; }
.inv-row-info .muted { font-size: .8rem; }
.inv-row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.inv-stock { font-weight: 700; font-size: .92rem; }
.inv-stock-low { color: #ff7a7a; }
.inv-moves { display: flex; flex-direction: column; gap: .4rem; max-height: 55vh; overflow: auto; }
.inv-move {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  background: rgba(255, 255, 255, .05); border-radius: 10px; padding: .45rem .7rem; font-size: .88rem;
}
.inv-move-qty.pos { color: #7ddf8f; font-weight: 700; }
.inv-move-qty.neg { color: #ff8a8a; font-weight: 700; }
.inv-types-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.inv-type-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .07); border-radius: 999px; padding: .35rem .75rem; font-size: .9rem;
}
.inv-type-chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; }
.inv-type-chip button:hover { color: #ff8a8a; }

/* --- לוח בקרה --- */
.dash-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem;
}
.dash-filter-btn {
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; border-radius: 999px;
  padding: .35rem .9rem; font-size: .88rem; color: var(--text); cursor: pointer;
}
.dash-filter-btn:hover { background: rgba(255, 255, 255, .12); }
.dash-filter-btn.active { border-color: var(--amber); background: rgba(245, 166, 35, .15); color: var(--amber); }
.dash-custom { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.dash-custom input[type="date"] {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px;
  color: var(--text); padding: .3rem .5rem; font-size: .85rem; color-scheme: dark;
}
.dash-events-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.dash-events-head h3 { margin: 0; }
.dash-ev-nav { display: flex; align-items: center; gap: .5rem; }
.dash-ev-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: stretch; }
@media (max-width: 900px) { .dash-ev-cards { grid-template-columns: 1fr; } }
.dash-ev-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px; padding: .75rem .9rem;
  display: flex; flex-direction: column; gap: .4rem; min-width: 0;
}
.dash-ev-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.dash-ev-title { font-size: .95rem; line-height: 1.3; }
.dash-ev-when { font-size: .8rem; }
.dash-ev-roles { display: flex; flex-direction: column; gap: .35rem; margin-top: .2rem; }
.dash-ev-role { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; }
.dash-ev-role-name { font-weight: 600; color: var(--text); }
.dash-ev-role-name small { color: var(--muted); font-weight: 400; }
.dash-ev-role-missing .dash-ev-role-name { color: #ffb27a; }
.dash-ev-names { display: flex; flex-wrap: wrap; gap: .3rem; }
.dash-ev-name {
  background: rgba(125, 223, 143, .12); color: #a9e8b4;
  border-radius: 999px; padding: .1rem .55rem; font-size: .76rem;
}
.dash-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1000px) { .dash-row3 { grid-template-columns: 1fr; } }
.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem; align-items: start;
}
.dash-card {
  background: var(--card); border-radius: 16px; padding: .9rem 1.1rem;
  min-width: 0;
}
.dash-wide { grid-column: 1 / -1; }
.dash-card h3 { margin: 0 0 .7rem; font-size: 1rem; color: var(--amber); }
.dash-chart { position: relative; height: 230px; }
.dash-wide .dash-chart { height: 260px; }
.dash-item {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .04); border-radius: 12px;
  padding: .5rem .7rem; margin-bottom: .45rem;
}
.dash-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.dash-item-main .muted { font-size: .78rem; }
.dash-missing { font-size: .78rem; color: #ffb27a; }
.dash-badge { font-size: .76rem; border-radius: 999px; padding: .25rem .6rem; white-space: nowrap; }
.dash-ok { background: rgba(125, 223, 143, .15); color: #7ddf8f; }
.dash-warn { background: rgba(245, 208, 107, .15); color: #f2d06b; }
.dash-bad { background: rgba(255, 110, 110, .16); color: #ff8a8a; }
.dash-muted { background: rgba(255, 255, 255, .08); color: var(--muted); }
.dash-rank { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.dash-rank-num { width: 1.8em; text-align: center; font-weight: 700; color: var(--amber); flex-shrink: 0; }
.dash-rank-main { flex: 1; min-width: 0; }
.dash-rank-head { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; }
.dash-rank-head span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.dash-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin-top: .25rem; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 4px; background: var(--amber); }
.dash-bar-pts { background: #c79bf2; }
.dash-bar-low { background: #ff8a8a; }

/* --- ניהול תקציבי --- */
.bdg-filter { flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.bdg-filter input[type="date"], .bdg-filter input[type="month"] {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px; color: var(--text); padding: .3rem .5rem; font: inherit; font-size: .85rem;
}
.bdg-select { max-width: 9rem; padding: .35rem .6rem; font-size: .88rem; }
.bdg-row {
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255, 255, 255, .04); border-radius: 12px;
  border-inline-start: 3px solid transparent;
  padding: .55rem .8rem; margin-bottom: .45rem;
}
.bdg-in { border-inline-start-color: #7ddf8f; }
.bdg-out { border-inline-start-color: #e8604c; }
.bdg-date { font-size: .8rem; color: var(--muted); width: 4.5em; flex-shrink: 0; }
.bdg-badge { font-size: .78rem; white-space: nowrap; flex-shrink: 0; }
.bdg-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.bdg-name small { font-size: .78rem; }
.bdg-amount { font-weight: 700; white-space: nowrap; }
.bdg-in .bdg-amount { color: #7ddf8f; }
.bdg-out .bdg-amount { color: #ff8a8a; }
.bdg-actions { display: flex; gap: .3rem; flex-shrink: 0; }
.bdg-kind { display: flex; gap: 1.2rem; margin: .4rem 0; font-size: .9rem; }
.bdg-kind label { display: flex; align-items: center; gap: .35rem; }
.bdg-doc-label small { display: block; margin-top: .25rem; }
.bdg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.bdg-card {
  background: rgba(255, 255, 255, .05); border-radius: 14px; padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.bdg-card small { color: var(--muted); font-size: .78rem; }
.bdg-card b { font-size: 1.25rem; }
.bdg-pos { color: #7ddf8f; }
.bdg-neg { color: #ff8a8a; }
.bdg-chart { height: 260px; }
.bdg-row3 { margin-top: 1rem; }
.bdg-cats { display: flex; flex-direction: column; gap: .4rem; }
.bdg-cat {
  display: flex; justify-content: space-between; gap: .6rem; font-size: .9rem;
  background: rgba(255, 255, 255, .04); border-radius: 10px; padding: .45rem .7rem;
}
@media (max-width: 640px) {
  .bdg-row { flex-wrap: wrap; }
  .bdg-name { flex-basis: 100%; order: 5; }
}

/* --- שיתופי פעולה – הטבות מעסקים --- */
/* דף הבית */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.partner-card {
  background: var(--card, rgba(255, 255, 255, .05)); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.partner-img { aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255, 255, 255, .05); }
.partner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.partner-body h3 { margin: 0; font-size: 1.05rem; }
.partner-body p { margin: 0; font-size: .9rem; color: var(--muted); }
.partner-meta { font-size: .78rem; color: var(--amber); margin-top: auto; }

/* אזור אישי */
.m-partner {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .04); border-radius: 12px;
  padding: .55rem .7rem; margin-bottom: .45rem;
}
.m-partner-img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.m-partner-body { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; min-width: 0; }
.m-partner-body small { font-size: .78rem; }
.m-partner-code {
  background: rgba(245, 166, 35, .15); color: var(--amber);
  border-radius: 6px; padding: .05rem .4rem; letter-spacing: .05em;
}

/* מסך ניהול */
.prt-form label { display: grid; gap: .3rem; font-size: .9rem; margin-bottom: .7rem; }
.prt-form input, .prt-form textarea {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; padding: .5rem .7rem; color: var(--text); font: inherit;
}
.prt-form input:focus, .prt-form textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
.prt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.prt-card {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .04); border-radius: 14px; padding: .6rem .8rem;
}
.prt-card.prt-off, .prt-card.prt-expired { opacity: .55; }
.prt-img {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.prt-img img { width: 100%; height: 100%; object-fit: cover; }
.prt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.prt-body small { font-size: .78rem; }
.prt-tag-expired { color: #ff8a8a; }
.prt-actions { display: flex; flex-direction: column; gap: .25rem; flex-shrink: 0; }

/* --- ניהול גלריה ורקעים --- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.gal-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, .04); border-radius: 14px;
}
.gal-card.gal-off { opacity: .5; }
.gal-media {
  position: relative; height: 150px; background: rgba(255, 255, 255, .06);
}
.gal-media img, .gal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-type-badge {
  position: absolute; top: 8px; inset-inline-start: 8px;
  padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 600;
  color: #fff; background: rgba(10, 10, 14, .72); pointer-events: none;
}
.gal-body { padding: .6rem .8rem .2rem; display: flex; flex-direction: column; gap: .35rem; }
.gal-flags { display: flex; gap: 1rem; font-size: .85rem; }
.gal-flags label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.gal-actions { display: flex; gap: .3rem; padding: .5rem .8rem .7rem; }

/* --- שורות תמונות בדף הבית: מרכוז / קרוסלה --- */
.hs-wrap { position: relative; }
.hs-centered { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.hs-carousel {
  display: flex !important; overflow-x: auto; gap: 1.2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: .4rem; scrollbar-width: none;
}
.hs-carousel::-webkit-scrollbar { display: none; }
.hs-carousel > * { flex: 0 0 auto; scroll-snap-align: start; }
/* מידות אחידות לפריטים בשורה */
.gallery-grid.hs-carousel .g-item, .gallery-grid.hs-centered .g-item { width: 230px; height: 190px; }
.menu-home-grid.hs-carousel .menu-home-card, .menu-home-grid.hs-centered .menu-home-card { width: 260px; }
.partners-grid.hs-carousel .partner-card, .partners-grid.hs-centered .partner-card { width: 280px; }
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: none;
  background: rgba(10, 10, 14, .72); color: var(--amber);
  border: 1px solid rgba(255, 181, 46, .35); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.hs-arrow:hover { background: rgba(255, 181, 46, .2); }
.hs-wrap.hs-has-arrows .hs-arrow { display: block; }
.hs-arrow-left { left: -8px; }
.hs-arrow-right { right: -8px; }

/* --- כפתור "עוד אירועים" --- */
.events-more-btn { display: block; margin: 1rem auto 0; }

/* --- טבלאות מערכת --- */
.tbl-picker { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.tbl-group-title { font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.tbl-group-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tbl-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; border-radius: 999px;
  padding: .35rem .8rem; font-size: .88rem; color: var(--text); cursor: pointer;
}
.tbl-chip:hover { background: rgba(255, 255, 255, .12); }
.tbl-chip.active { border-color: var(--amber); background: rgba(245, 166, 35, .15); color: var(--amber); }
.tbl-chip-count { font-size: .75rem; color: var(--muted); background: rgba(0, 0, 0, .25); border-radius: 999px; padding: .05rem .45rem; }
.tbl-chip.active .tbl-chip-count { color: var(--amber); }
.tbl-grid-wrap { overflow-x: auto; border-radius: 12px; background: var(--card); }
.tbl-grid { width: 100%; border-collapse: collapse; font-size: .84rem; white-space: nowrap; }
.tbl-grid th, .tbl-grid td { padding: .45rem .6rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tbl-grid th { position: sticky; top: 0; background: var(--card); color: var(--amber); font-weight: 600; font-size: .78rem; }
.tbl-grid tbody tr:hover { background: rgba(255, 255, 255, .04); }
.tbl-row-actions { white-space: nowrap; }
.tbl-row-actions .btn-icon { background: none; border: none; cursor: pointer; font-size: .95rem; padding: .1rem .2rem; }
.tbl-json { font-family: monospace; font-size: .78rem; color: var(--muted); }
.tbl-pager { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .8rem; }
.tbl-row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; max-height: 55vh; overflow-y: auto; padding-inline-end: .3rem; }
.tbl-field { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.tbl-field input, .tbl-field select, .tbl-field textarea {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px;
  color: var(--text); padding: .4rem .55rem; font-size: .88rem;
}
.tbl-field textarea { font-family: monospace; font-size: .8rem; resize: vertical; }
.tbl-field-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .tbl-row-fields { grid-template-columns: 1fr; } }

/* --- מתכון מוצר (רכיבים מהמלאי) --- */
.menu-recipe { margin: .6rem 0 .8rem; display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.menu-recipe-title { font-size: .92rem; font-weight: 600; }
.recipe-row { display: flex; align-items: center; gap: .45rem; width: 100%; flex-wrap: wrap; }
.recipe-row .recipe-item { flex: 1; min-width: 150px; }
.recipe-row .recipe-name { flex: 1; min-width: 120px; }
.recipe-row .recipe-qty { width: 90px; }
.recipe-row .recipe-unit-free { width: 70px; }
.recipe-unit { color: var(--muted); font-size: .85rem; min-width: 2.2em; }
.recipe-del {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: .95rem;
}
.recipe-del:hover { color: #ff8a8a; }

/* --- תפריט + הזמנה --- */
.m-menu-cat { margin-bottom: .6rem; }
.m-prod { display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 14px; padding: .55rem .7rem; margin-bottom: .5rem; }
.m-prod-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.m-prod-icon { font-size: 1.8rem; width: 52px; text-align: center; flex-shrink: 0; }
.m-prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.m-prod-info small { color: var(--muted); font-size: .78rem; }
.m-prod-price { color: var(--amber); font-weight: 700; font-size: .9rem; }
.m-qty { display: flex; align-items: center; gap: .45rem; }
.m-qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--amber);
  background: none; color: var(--amber); font-size: 1.15rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.m-qty span { min-width: 1.1em; text-align: center; font-weight: 700; }
.m-cartbar {
  position: fixed; bottom: calc(52px + env(safe-area-inset-bottom)); inset-inline: 0; z-index: 39;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  max-width: 640px; margin-inline: auto; background: var(--card-hover);
  border: 1px solid rgba(255, 181, 46, .3); border-radius: 999px;
  padding: .45rem .5rem .45rem 1.1rem; margin-inline: max(.7rem, calc((100% - 640px) / 2));
  box-shadow: var(--shadow); font-weight: 700;
}
.m-dialog {
  background: var(--card); color: var(--text); border: 1px solid rgba(255, 181, 46, .25);
  border-radius: var(--radius); padding: 1.2rem; width: min(440px, 92vw); box-shadow: var(--shadow);
  margin: auto; /* מרכוז – ה-reset הגלובלי מאפס margin גם ל-dialog */
  max-height: 90vh; overflow-y: auto;
}
.m-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.m-dialog h3 { font-family: var(--font-head); color: var(--amber); margin-bottom: .8rem; }

/* --- Onboarding בכניסה ראשונה --- */
.m-onboard { width: min(480px, 94vw); }
.m-ob-body p { margin-bottom: .7rem; }
.m-ob-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: .4rem 0 .8rem; }
.m-ob-list li { background: rgba(255, 181, 46, .06); border: 1px solid rgba(255, 181, 46, .12); border-radius: 10px; padding: .5rem .7rem; font-size: .92rem; }
.m-ob-list li b { color: var(--amber); }
.m-ob-dots { display: flex; justify-content: center; gap: .45rem; margin: 1rem 0 .4rem; }
.m-ob-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .2s; }
.m-ob-dots i.on { background: var(--amber); }
.m-order-row { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.m-order-row > span { flex: 1; }
.m-order-total { margin: .7rem 0; font-size: 1.05rem; }
.m-dialog-actions { display: flex; gap: .6rem; }

/* --- אירועים --- */
.m-event { display: flex; gap: .8rem; background: var(--card); border-radius: 14px; padding: .7rem .8rem; margin-bottom: .55rem; cursor: pointer; }
.m-event-date {
  width: 50px; flex-shrink: 0; text-align: center; background: rgba(255, 181, 46, .12);
  border-radius: 12px; padding: .35rem 0; line-height: 1.15; align-self: flex-start;
}
.m-event-date b { font-size: 1.25rem; color: var(--amber); display: block; }
.m-event-date small { color: var(--muted); font-size: .7rem; }
.m-event-info { flex: 1; min-width: 0; }
.m-event-info small { color: var(--muted); font-size: .8rem; display: block; }
.m-event-desc { margin-top: .5rem; font-size: .88rem; color: var(--muted); word-break: break-word; }
.m-event-desc a { color: var(--teal); }
.m-event-more { color: var(--amber); align-self: center; }

/* --- הודעות --- */
.m-notif { background: var(--card); border-radius: 14px; padding: .65rem .85rem; margin-bottom: .5rem; position: relative; }
.m-notif.unread { border-inline-start: 3px solid var(--pink); }
.m-notif small { display: block; color: var(--muted); font-size: .83rem; }
.m-notif time { position: absolute; top: .55rem; inset-inline-end: .8rem; color: var(--muted); font-size: .72rem; }

/* --- פרופיל --- */
.m-profile-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.m-profile-name { display: block; font-size: 1.15rem; }
.m-profile-stats { color: var(--amber); font-size: .85rem; font-weight: 600; margin-top: .15rem; }
.m-ava-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.m-ava-actions .btn { font-size: .85rem; padding: .4rem .8rem; }
.m-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .3rem; margin-top: .7rem; }
.m-emoji-grid button { background: var(--bg-alt); border: 0; border-radius: 10px; font-size: 1.4rem; padding: .3rem 0; cursor: pointer; transition: .12s; }
.m-emoji-grid button:hover { background: var(--card-hover); transform: scale(1.1); }
.m-tags-edit .m-tag { font-size: .85rem; display: inline-flex; align-items: center; gap: .25rem; }
.m-tags-edit .m-tag button { background: none; border: 0; color: inherit; cursor: pointer; font-size: .95rem; }
.m-tag-form { display: flex; gap: .5rem; margin-top: .6rem; }
.m-tag-form input {
  flex: 1; background: var(--bg-alt); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; color: var(--text); padding: .45rem .9rem; font-family: var(--font-body);
}
.m-switch { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem 0; cursor: pointer; }
.m-switch + .m-switch { border-top: 1px dashed rgba(255, 255, 255, .08); }
.m-switch input { width: 22px; height: 22px; accent-color: var(--amber); flex-shrink: 0; margin-top: .2rem; }
.m-switch small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }

/* --- toast --- */
.m-toast {
  position: fixed; bottom: calc(64px + env(safe-area-inset-bottom)); inset-inline: 0; z-index: 60;
  margin-inline: auto; width: fit-content; max-width: 90vw;
  background: var(--card-hover); border: 1px solid rgba(255, 181, 46, .4); color: var(--text);
  border-radius: 999px; padding: .55rem 1.2rem; box-shadow: var(--shadow);
  font-weight: 600; animation: fadeIn .2s ease;
}

/* ===== ëøèéñ QR ùì çáø ===== */
.m-qr-card { text-align: center; }
.m-qr {
  display: inline-block; background: #fff; padding: 12px; border-radius: 14px; margin: .5rem auto;
}
.m-qr img, .m-qr canvas { display: block; }
.m-qr-id { display: block; font-size: 1.15rem; letter-spacing: .08em; margin-bottom: .25rem; }

/* ===== ãéàìåâ ñøé÷ú ëøèéñ (àãîéï) ===== */
.scan-dialog { max-width: 440px; width: 92vw; }
.scan-video-wrap {
  position: relative; border-radius: 14px; overflow: hidden; background: #000;
  aspect-ratio: 4 / 3; margin-bottom: .75rem;
}
.scan-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  position: absolute; inset: 15%; border: 3px solid rgba(255, 181, 46, .85);
  border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35);
}
.scan-result { margin-bottom: .75rem; }
.scan-card {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 14px;
  text-align: right;
}
.scan-card b { display: block; font-size: 1.1rem; }
.scan-card small { display: block; opacity: .85; }
.scan-icon { font-size: 1.8rem; }
.scan-ok { background: rgba(60, 180, 110, .18); border: 1px solid rgba(60, 180, 110, .5); }
.scan-warn { background: rgba(255, 181, 46, .15); border: 1px solid rgba(255, 181, 46, .5); }
.scan-bad { background: rgba(230, 70, 70, .15); border: 1px solid rgba(230, 70, 70, .5); }

/* ===== ÷åôä (POS) ===== */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: .8rem; align-items: start; }
.pos-layout > * { min-width: 0; }
@media (max-width: 900px) { .pos-layout { grid-template-columns: 1fr; } }

/* שורת כותרת דחוסה: כותרת + טאבים + רענון בשורה אחת */
.pos-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.pos-head .admin-title { font-size: 1.45rem; margin: 0; }
.pos-head #posRefreshBtn { margin-inline-start: auto; }
/* במסך הקופה מצמצמים את הריווח העליון של האזור כולו */
.admin-section:has(#screen-pos:not([hidden])) { padding-top: 1rem; }

/* עמודת צד: זיהוי חבר מעל סיכום ההזמנה */
.pos-side { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: .8rem; }
.pos-side .pos-cart { position: static; }

.pos-customer {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: .55rem .7rem; margin-bottom: 0;
}
.pos-member-form { display: flex; gap: .4rem; }
.pos-member-form input { max-width: 160px; }

/* תיבת חיפוש חבר בקופה */
.pos-search { position: relative; flex: 1; min-width: 160px; }
.pos-search-icon {
  position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%);
  font-size: .95rem; opacity: .6; pointer-events: none;
}
.pos-search input {
  width: 100%; background: var(--bg-alt); color: var(--text);
  border: 1px solid rgba(255, 181, 46, .3); border-radius: 999px;
  padding: .55rem 2.3rem .55rem 1rem; font-size: .95rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.pos-search input::placeholder { color: var(--muted); }
.pos-search input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 181, 46, .18);
}
.pos-search-results {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30;
  background: var(--card); border: 1px solid rgba(255, 181, 46, .35); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45); overflow: hidden;
  display: flex; flex-direction: column;
}
.pos-search-item {
  display: flex; flex-direction: row; align-items: center; gap: .6rem;
  background: none; border: none; border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--text); text-align: right; width: 100%;
  padding: .55rem .9rem; cursor: pointer; font-family: inherit;
}
.pos-search-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.pos-search-ava {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 181, 46, .15); border: 1px solid var(--border);
}
.pos-search-ava img { width: 100%; height: 100%; object-fit: cover; }
.pos-search-ava-emoji { font-size: 1.2rem; }
.pos-search-ava-init { color: var(--amber); font-weight: 700; font-size: .85rem; }
.pos-search-item:last-child { border-bottom: none; }
.pos-search-item:hover, .pos-search-item:focus { background: var(--card-hover); }
.pos-search-item b { font-size: .95rem; }
.pos-search-item small { color: var(--muted); font-size: .8rem; }
.pos-search-empty { padding: .6rem .9rem; color: var(--muted); font-size: .9rem; }
.pos-hint { font-size: .85rem; }
.pos-member { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; width: 100%; border-radius: 10px; padding: .4rem .6rem; }
.pos-member.ok { background: rgba(60, 180, 110, .15); }
.pos-member.warn { background: rgba(255, 181, 46, .12); }
.pos-member small { opacity: .85; }
.pos-member button { margin-inline-start: auto; }
.pos-member button + button { margin-inline-start: 0; }

/* הטבות של חבר בקופה */
.pos-benefits { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.pos-benefit {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 181, 46, .12); border: 1px dashed rgba(255, 181, 46, .45);
  border-radius: 999px; padding: .3rem .4rem .3rem .4rem; font-size: .92rem;
}

/* דיאלוג טעינת קרדיט */
.pos-credit-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.pos-credit-tier {
  display: flex; flex-direction: column; gap: .2rem; align-items: center;
  background: rgba(255, 255, 255, .04); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: .6rem .5rem; cursor: pointer;
}
.pos-credit-tier small { opacity: .8; text-align: center; }
.pos-credit-tier.active { border-color: var(--amber); background: rgba(255, 181, 46, .12); }

/* ניהול הגדרות הטבות */
.pos-benefit-defs { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.pos-benefit-def {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .8rem;
}
.pos-benefit-def.off { opacity: .55; }
.pos-benefit-def > b { color: var(--amber); min-width: 70px; }
.pos-benefit-actions { margin-inline-start: auto; display: flex; gap: .4rem; }
.pos-benefit-form { max-width: 520px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.pos-benefit-form h3 { margin-bottom: .6rem; }
.pos-benefit-prods { display: flex; flex-direction: column; gap: .2rem; max-height: 260px; overflow-y: auto; margin-bottom: .6rem; }

/* הטבות באזור האישי */
.m-benefit { border-top: 1px solid var(--border); padding: .5rem 0; display: flex; flex-direction: column; gap: .1rem; }
.m-benefit:first-of-type { border-top: 0; padding-top: 0; }
.m-benefit.redeemed { opacity: .55; }

/* קטגוריות בשורה אחת – קרוסלה עם גלילה פנימית, מופרדות מהמוצרים בקו */
.pos-cats {
  display: flex; flex-wrap: nowrap; gap: .5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  padding-bottom: .55rem; margin-bottom: .8rem;
  border-bottom: 2px solid rgba(255, 181, 46, .35);
}
.pos-cat {
  flex: 0 0 auto; width: 96px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 14px; padding: .7rem .4rem .6rem; cursor: pointer; font-weight: 600;
  text-align: center; font-size: .9rem; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s;
}
.pos-cat:hover { border-color: rgba(255, 181, 46, .55); background: var(--card-hover); }
.pos-cat.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1026; border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 181, 46, .35); font-weight: 700;
}
.pos-cat-img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .25);
}
.pos-cat-icon {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 181, 46, .12); font-size: 1.7rem;
}
.pos-cat.active .pos-cat-icon { background: rgba(26, 16, 38, .15); }

/* כפתורי כניסה מהירה ללקוח מזדמן – בוטלו (כניסה חד-פעמית נכנסת אוטומטית לעגלה) */

.pos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .65rem;
  /* ניצול מסך מלא: המוצרים נגללים פנימית במקום לגלול את כל הדף */
  max-height: calc(100vh - 330px); min-height: 240px; overflow-y: auto;
  scrollbar-width: thin; padding-inline-end: .2rem;
}
@media (max-width: 900px) { .pos-grid { max-height: none; min-height: 0; } }
.pos-prod {
  background: linear-gradient(170deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border); color: var(--text);
  border-radius: 14px; padding: .85rem .5rem .7rem; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: .3rem; align-items: center;
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.pos-prod:hover {
  transform: translateY(-2px); border-color: rgba(255, 181, 46, .6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.pos-prod:active { transform: scale(.96); }
.pos-prod-icon { font-size: 1.7rem; line-height: 1; }
.pos-prod-img {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .15);
}
.pos-prod-name { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.pos-prod-price {
  color: #1a1026; font-weight: 700; font-size: .88rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border-radius: 999px; padding: .1rem .65rem; margin-top: auto;
}

.pos-cart {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1rem; position: sticky; top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.pos-cart h3 { margin: 0 0 .75rem; }
.pos-cart-items { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .75rem; }
.pos-cart-row { display: flex; align-items: center; gap: .5rem; }
.pos-cart-name { flex: 1; font-weight: 600; }
.pos-qty { display: flex; align-items: center; gap: .35rem; }
.pos-qty button, .pos-cart-del {
  background: var(--card-hover); border: 1px solid var(--border); color: var(--text);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; line-height: 1;
}
.pos-cart-del { color: #e66; }
.pos-cart-price { min-width: 56px; text-align: left; }
.pos-note { width: 100%; margin-bottom: .6rem; }
.pos-total {
  display: flex; justify-content: space-between; font-size: 1.15rem; margin: .5rem 0 .75rem;
  border-top: 1px dashed rgba(255, 181, 46, .3); padding-top: .6rem;
}
.pos-total b { color: var(--amber); font-size: 1.25rem; }
.pos-pay { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.pos-pay label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.pos-pay label.disabled { opacity: .45; cursor: not-allowed; }
.pos-save { width: 100%; margin-bottom: .4rem; }

.pos-orders { display: flex; flex-direction: column; gap: .8rem; }
.pos-order {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem;
}
.pos-order.working { border-color: rgba(255, 181, 46, .6); }
.pos-order-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pos-order-num { color: var(--accent); font-weight: 700; }
.pos-order-move { margin-inline-start: auto; display: flex; gap: .3rem; }
.pos-order-move button {
  background: var(--card-hover); border: 1px solid var(--border); color: var(--text);
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
}
.pos-order-move button:disabled { opacity: .35; cursor: default; }
.pos-order-items { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pos-prep-btn {
  background: none; border: none; color: var(--accent); cursor: pointer; font-size: .85rem; padding: 0 .4rem;
}
.pos-prep {
  background: var(--card-hover); border-radius: 8px; padding: .5rem .7rem; margin-top: .3rem;
  font-size: .9rem; white-space: pre-wrap;
}
.pos-order-note { margin: .3rem 0; font-size: .9rem; }
/* כפתורי סטטוס בצד שמאל */
.pos-order-actions { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; justify-content: flex-end; }
.pos-badge { color: var(--accent); font-weight: 600; }

/* בקרת גודל תצוגה בקופה */
.pos-size-ctl { display: inline-flex; gap: .25rem; margin-inline-start: auto; }
.pos-size-ctl button {
  background: var(--card-hover); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; cursor: pointer; padding: .2rem .5rem; font-family: inherit;
  font-size: .75rem; line-height: 1.3;
}
.pos-size-ctl button:nth-child(2) { font-size: .9rem; }
.pos-size-ctl button:nth-child(3) { font-size: 1.05rem; }
.pos-size-ctl button.active { background: var(--amber); color: #1a1026; border-color: var(--amber); font-weight: 700; }

/* גודל תצוגה – גדול */
.pos-size-lg .pos-cat { font-size: 1.05rem; width: 112px; }
.pos-size-lg .pos-cat-img, .pos-size-lg .pos-cat-icon { width: 68px; height: 68px; }
.pos-size-lg .pos-cat-icon { font-size: 2rem; }
.pos-size-lg .pos-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.pos-size-lg .pos-prod-img { width: 84px; height: 84px; }
.pos-size-lg .pos-prod-icon { font-size: 2.3rem; }
.pos-size-lg .pos-prod-name { font-size: 1.05rem; }
.pos-size-lg .pos-prod-price { font-size: 1rem; }

/* גודל תצוגה – ענק */
.pos-size-xl .pos-cat { font-size: 1.2rem; width: 128px; }
.pos-size-xl .pos-cat-img, .pos-size-xl .pos-cat-icon { width: 80px; height: 80px; }
.pos-size-xl .pos-cat-icon { font-size: 2.3rem; }
.pos-size-xl .pos-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.pos-size-xl .pos-prod { padding: 1.1rem .6rem .9rem; }
.pos-size-xl .pos-prod-img { width: 120px; height: 120px; }
.pos-size-xl .pos-prod-icon { font-size: 3rem; }
.pos-size-xl .pos-prod-name { font-size: 1.2rem; }
.pos-size-xl .pos-prod-price { font-size: 1.1rem; }

/* הזמנה ריקה בעגלה */
.pos-cart-empty {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: 1.1rem 0 1.3rem; border: 1px dashed rgba(255, 181, 46, .3);
  border-radius: 12px; margin-bottom: .75rem; color: var(--muted);
}
.pos-cart-empty-icon { font-size: 1.9rem; opacity: .7; }
.pos-save:disabled { opacity: .45; cursor: not-allowed; }

/* היסטוריית הזמנות בקופה */
.pos-hist-bar {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: .7rem .9rem; margin-bottom: 1rem;
}
.pos-hist-bar label { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.pos-hist-bar input[type="date"], .pos-hist-bar select {
  background: var(--bg-alt); color: var(--text); border: 1px solid rgba(255, 181, 46, .3);
  border-radius: 10px; padding: .4rem .6rem; font-family: inherit; font-size: .9rem;
}
.pos-hist-search { max-width: 260px; min-width: 180px; }
.pos-hist-sum { margin-bottom: .6rem; }
.pos-hist-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.pos-hist-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
.pos-hist-table th, .pos-hist-table td { padding: .55rem .75rem; text-align: right; }
.pos-hist-table thead th {
  background: var(--card-hover); color: var(--amber); font-weight: 700;
  position: sticky; top: 0;
}
.pos-hist-table tbody tr { border-top: 1px solid rgba(255, 255, 255, .06); }
.pos-hist-table tbody tr:hover { background: var(--card-hover); }
.pos-hist-items { max-width: 320px; color: var(--muted); font-size: .85rem; }

/* äéñèåøééú äæîðåú áàæåø äàéùé */
.m-order { border-top: 1px solid var(--border); padding: .55rem 0; display: flex; flex-direction: column; gap: .15rem; }
.m-order:first-child { border-top: none; }
.m-order-head { display: flex; justify-content: space-between; align-items: center; }
.m-order-status { font-size: .9rem; }

/* äòìàú úîåðä áèôñé äúôøéè */
.menu-img-row { display: flex; gap: .5rem; align-items: center; }
.menu-img-row input { flex: 1; min-width: 0; }
.menu-img-row .menu-img-upload { white-space: nowrap; flex-shrink: 0; }
.menu-img-preview {
  margin-top: .5rem; max-height: 110px; max-width: 100%;
  border-radius: 10px; object-fit: cover; border: 1px solid var(--border);
}
