/* sv-admin.css — פאנל ניהול (נטען רק כשפותחים #admin) */
#svAdmin { --a-ink:#181009; --a-cream:#f7f5f3; --a-sand:#c1ab98; --a-sand-l:#ebe4df; --a-blue:#617b93; --a-red:#b3402f;
  position: fixed; inset: 0; z-index: 99999; overflow: auto; background: var(--a-cream); color: var(--a-ink);
  font-family: "Polin", "Leon Regular", sans-serif; font-size: 17px; line-height: 1.5; direction: rtl; display: none; zoom: 1; }
#svAdmin.open { display: block; }
#svAdmin *, #svAdmin *::before, #svAdmin *::after { box-sizing: border-box; }
:where(#svAdmin) button { font: inherit; color: inherit; cursor: pointer; }
#svAdmin :focus-visible { outline: 3px solid var(--a-blue); outline-offset: 2px; }

.a-demo { background: var(--a-sand); color: var(--a-ink); font-size: 15px; padding: 10px 24px; text-align: center; }
.a-bar { background: var(--a-ink); color: var(--a-cream); display: flex; align-items: center; gap: 18px; padding: 14px 32px; position: sticky; top: 0; z-index: 5; }
.a-bar img { height: 44px; width: auto; display: block; }
.a-bar h1 { font-family: "Leon Heavy", "Polin", sans-serif; font-weight: 900; font-size: 24px; margin: 0; flex: 1; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 26px; border: 0; border-radius: 50px; background: var(--a-ink); color: var(--a-cream); font-weight: 600; font-size: 16px; transition: background .2s, transform .2s; text-decoration: none; }
.a-btn:hover { background: #2b2016; }
.a-btn:active { transform: translateY(1px); }
.a-btn.blue { background: var(--a-blue); } .a-btn.blue:hover { background: #4f677d; }
.a-btn.light { background: var(--a-cream); color: var(--a-ink); } .a-btn.light:hover { background: #fff; }
.a-btn.ghost { background: transparent; color: var(--a-ink); border: 2px solid var(--a-ink); } .a-btn.ghost:hover { background: var(--a-sand-l); }
.a-btn.danger { background: var(--a-red); color: #fff; } .a-btn.danger:hover { background: #8f3224; }
.a-btn[disabled] { opacity: .45; cursor: not-allowed; }
.a-btn svg { width: 20px; height: 20px; flex: none; }

.a-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 32px 90px; }
.a-tabs { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.a-tab { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 30px; border-radius: 50px; border: 2px solid var(--a-sand); background: transparent; font-size: 19px; font-weight: 600; transition: background .2s; }
.a-tab:hover { background: var(--a-sand-l); }
.a-tab[aria-selected="true"] { background: var(--a-ink); border-color: var(--a-ink); color: var(--a-cream); }
.a-tab svg { width: 24px; height: 24px; }
.a-tab .n { background: var(--a-sand); color: var(--a-ink); border-radius: 30px; min-width: 28px; height: 28px; padding: 0 9px; display: inline-grid; place-items: center; font-size: 15px; }
.a-tab[aria-selected="true"] .n { background: var(--a-cream); }

.a-h2 { font-family: "Leon Heavy", "Polin", sans-serif; font-weight: 900; font-size: 34px; margin: 0 0 6px; }
.a-lead { margin: 0 0 24px; color: #5a4d43; font-size: 17px; }

/* ---------- gallery ---------- */
.a-drop { border: 3px dashed var(--a-sand); border-radius: 30px; background: #fff; padding: 34px 20px; text-align: center; transition: background .2s, border-color .2s; margin-bottom: 28px; }
.a-drop.over { background: var(--a-sand-l); border-color: var(--a-ink); }
.a-drop svg.big { width: 54px; height: 54px; color: var(--a-sand); margin-bottom: 6px; }
.a-drop p { margin: 0 0 16px; font-size: 19px; font-weight: 600; }
.a-drop small { display: block; margin-top: 14px; color: #6b5d52; font-size: 14px; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.a-tile { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 8px rgba(24,16,9,.08); display: flex; flex-direction: column; }
.a-tile .ph { position: relative; aspect-ratio: 4/3; background: var(--a-sand-l); }
.a-tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-tile .no { position: absolute; top: 10px; right: 10px; background: var(--a-ink); color: #fff; border-radius: 30px; min-width: 30px; height: 30px; padding: 0 10px; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.a-tile .acts { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 6px; }
.a-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--a-sand-l); transition: background .2s; }
.a-ico:hover:not([disabled]) { background: var(--a-sand); }
.a-ico[disabled] { opacity: .35; cursor: not-allowed; }
.a-ico svg { width: 20px; height: 20px; }
.a-del { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 50px; border: 0; background: transparent; color: var(--a-red); font-weight: 600; font-size: 15px; }
.a-del:hover { background: #f6e4e0; }
.a-del svg { width: 20px; height: 20px; }
.a-empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: 24px; color: #6b5d52; }
.a-foot { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #6b5d52; font-size: 15px; }
.a-link { background: none; border: 0; text-decoration: underline; color: var(--a-blue); font-size: 15px; padding: 8px 0; }

/* ---------- testimonials ---------- */
.a-two { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 32px; align-items: start; }
.a-card { background: #fff; border-radius: 30px; padding: 28px; box-shadow: 0 1px 8px rgba(24,16,9,.08); }
.a-card h3 { font-family: "Leon Heavy", "Polin", sans-serif; font-weight: 900; font-size: 24px; margin: 0 0 18px; }
.a-field { margin-bottom: 18px; }
.a-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.a-field input, .a-field textarea { width: 100%; border: 2px solid var(--a-sand); border-radius: 18px; padding: 12px 16px; font: inherit; background: var(--a-cream); color: var(--a-ink); direction: rtl; }
.a-field textarea { min-height: 130px; resize: vertical; }
.a-field input:focus, .a-field textarea:focus { outline: none; border-color: var(--a-ink); background: #fff; }
.a-field .hint { display: flex; justify-content: space-between; color: #6b5d52; font-size: 14px; margin-top: 4px; }
.a-field .hint .warn { color: var(--a-red); }
.a-prev-l { font-weight: 600; margin: 4px 0 8px; }
.a-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.mini { background: var(--a-ink); color: #fff; border-radius: 30px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 14% 9% 0; overflow: hidden; }
.mini .q { font-size: 14px; line-height: 1.5; margin: 0; max-height: 7.5em; overflow: hidden; }
.mini .hr { width: 15%; height: 1px; background: #fff; opacity: .35; margin: 7% 0 5%; }
.mini .nm { font-weight: 800; font-size: 16px; }
.mini .rl { font-size: 13px; color: #cfc6bd; }
.mini.big { max-width: 300px; margin: 0 auto; }
.mini.big .q { font-size: 15px; }

.a-list { display: flex; flex-direction: column; gap: 14px; }
.a-row { background: #fff; border-radius: 24px; padding: 16px 20px; box-shadow: 0 1px 8px rgba(24,16,9,.08); display: flex; align-items: center; gap: 16px; }
.a-row.editing { outline: 3px solid var(--a-blue); }
.a-row .no { background: var(--a-sand-l); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 600; flex: none; }
.a-row .tx { flex: 1; min-width: 0; }
.a-row .tx .q { margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-row .tx .m { color: #6b5d52; font-size: 15px; }
.a-row .tx .m b { color: var(--a-ink); }
.a-row .rb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.a-edit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 50px; border: 0; background: var(--a-sand-l); font-weight: 600; font-size: 15px; }
.a-edit:hover { background: var(--a-sand); }
.a-edit svg { width: 18px; height: 18px; }

/* ---------- toast + modal ---------- */
.a-toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); background: var(--a-ink); color: #fff; padding: 14px 28px; border-radius: 50px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 100001; max-width: 90vw; text-align: center; }
.a-toast.show { opacity: 1; transform: translate(-50%, 0); }
.a-toast.err { background: var(--a-red); }
.a-modal { position: fixed; inset: 0; background: rgba(24,16,9,.55); display: grid; place-items: center; z-index: 100000; padding: 20px; }
.a-modal .box { background: #fff; border-radius: 30px; padding: 32px; max-width: 440px; width: 100%; text-align: center; }
.a-modal h4 { font-family: "Leon Heavy", "Polin", sans-serif; font-weight: 900; font-size: 24px; margin: 0 0 10px; }
.a-modal p { margin: 0 0 24px; color: #5a4d43; }
.a-modal .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.a-modal img { max-width: 100%; max-height: 180px; border-radius: 18px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .a-two { grid-template-columns: 1fr; }
  .a-wrap { padding: 20px 16px 80px; }
  .a-bar { padding: 12px 16px; flex-wrap: wrap; } .a-bar h1 { font-size: 19px; }
  .a-row { flex-wrap: wrap; } .a-row .rb { width: 100%; justify-content: flex-start; }
  .a-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .a-tile .acts { padding: 8px; } .a-del span { display: none; }
}
@media (prefers-reduced-motion: reduce) { #svAdmin * { transition: none !important; } }

/* drag to reorder */
.a-tile .ph { cursor: grab; user-select: none; -webkit-user-select: none; }
.a-tile .ph .grip { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(24,16,9,.72); color: #fff; display: grid; place-items: center; touch-action: none; }
.a-tile .ph .grip svg { width: 18px; height: 18px; }
.a-grid.sorting, .a-grid.sorting * { cursor: grabbing !important; }
.a-tile.dragging { opacity: .35; outline: 3px dashed var(--a-blue); outline-offset: -3px; }
.a-tile { transition: transform .15s; }
.a-tile .acts { justify-content: flex-end; }

/* login + user bar */
.a-login { display: flex; justify-content: center; padding: 48px 20px; }
.a-lcard { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.a-lcard input { width: 100%; box-sizing: border-box; text-align: left; }
.a-err { color: #b3261e; font-size: 15px; min-height: 20px; }
.a-barr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.a-user .em { opacity: .75; }
.a-status { font-size: 14px; opacity: .8; }
.a-status.busy { opacity: 1; font-weight: 700; }

.a-inq.done { opacity: .55; }
.a-inq a { color: inherit; }
