/* ארגן את האירוע שלי — client portal, dark luxury */
:root {
  --bg: #0d0a08;
  --bg-2: #14100d;
  --card: #1a1510;
  --ink: #f5efe6;
  --ink-dim: #b6ab9a;
  --gold: #c9a35c;
  --gold-light: #e8cf9b;
  --gold-deep: #9a7635;
  --line: rgba(201, 163, 92, 0.18);
  --danger: #e08a8a;
  --ok: #8fce9a;
  --serif: 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Assistant', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15.5px; line-height: 1.6; }
a { color: var(--gold-light); text-decoration: none; }
button { font-family: var(--sans); }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- login ---------- */
.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(201, 163, 92, 0.1), transparent 70%),
    var(--bg);
}
.login-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 2.8rem 2.4rem; width: min(410px, 100%); text-align: center;
  animation: rise 0.7s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.login-logo { max-height: 66px; max-width: 80%; width: auto; margin-inline: auto; display: block; }
.login-card h1 { font-family: var(--serif); font-size: 1.6rem; margin-top: 0.5rem; }
.login-sub { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.8rem; }
.login-error { color: var(--danger); font-size: 0.88rem; margin-top: 0.9rem; min-height: 1.2em; }
.login-hint { color: var(--ink-dim); font-size: 0.8rem; margin-top: 1.4rem; }

/* ---------- fields & buttons ---------- */
.pfield { text-align: start; margin-bottom: 1rem; }
.pfield label { display: block; font-size: 0.8rem; color: var(--gold-light); margin-bottom: 0.3rem; }
.pfield input, .pfield select, .pfield textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.65rem 0.85rem; color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.25s; color-scheme: dark;
}
.pfield input:focus, .pfield select:focus, .pfield textarea:focus { outline: none; border-color: var(--gold); }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 999px; padding: 0.65rem 1.5rem;
  font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s var(--ease);
}
.pbtn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #1a1206; box-shadow: 0 6px 20px rgba(201, 163, 92, 0.3); }
.pbtn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 163, 92, 0.42); }
.pbtn-ghost { background: none; border: 1px solid var(--line); color: var(--ink-dim); }
.pbtn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.pbtn-danger { background: rgba(224, 138, 138, 0.12); color: var(--danger); border: 1px solid rgba(224, 138, 138, 0.3); }
.pbtn-danger:hover { background: var(--danger); color: #2b0f0f; }
.pbtn-block { width: 100%; }
.pbtn-sm { padding: 0.4rem 0.9rem; font-size: 0.83rem; }

/* ---------- header ---------- */
.phead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 10, 8, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.phead-inner {
  display: flex; align-items: center; gap: 1rem;
  width: min(1080px, 94%); margin-inline: auto; padding: 0.9rem 0 0.5rem;
}
.phead-logo { max-height: 34px; max-width: 140px; width: auto; }
.phead-mid { flex: 1; text-align: center; }
.phead-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.phead-count { color: var(--gold-light); font-size: 0.82rem; }
.ptabs {
  display: flex; gap: 0.2rem; width: min(1080px, 94%); margin-inline: auto;
  overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none;
}
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button {
  background: none; border: none; color: var(--ink-dim); cursor: pointer;
  padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.9rem; white-space: nowrap;
  transition: all 0.25s;
}
.ptabs button:hover { color: var(--ink); }
.ptabs button.active { background: var(--gold); color: #1a1206; font-weight: 500; }

/* ---------- view ---------- */
.pview { width: min(1080px, 94%); margin-inline: auto; padding: 1.6rem 0 4rem; }
.pcard {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem; margin-bottom: 1.2rem;
  animation: rise 0.5s var(--ease) backwards;
}
.pcard h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.9rem; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.pcard-head h3 { margin: 0; }
.hint { color: var(--ink-dim); font-size: 0.83rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.2rem; }
.kpi {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.2rem; text-align: center; animation: rise 0.5s var(--ease) backwards;
}
.kpi:nth-child(2) { animation-delay: 0.06s; } .kpi:nth-child(3) { animation-delay: 0.12s; } .kpi:nth-child(4) { animation-delay: 0.18s; }
.kpi-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 900; color: var(--gold-light); line-height: 1.15; }
.kpi-label { color: var(--ink-dim); font-size: 0.8rem; }

/* progress bar */
.prog { height: 8px; background: var(--card); border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); border-radius: 99px; transition: width 0.8s var(--ease); }

/* tables */
.ptbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ptbl th { text-align: start; color: var(--ink-dim); font-weight: 400; font-size: 0.78rem; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
.ptbl td { padding: 0.55rem 0.5rem; border-bottom: 1px solid rgba(201, 163, 92, 0.08); vertical-align: middle; }
.ptbl input, .ptbl select {
  background: var(--card); border: 1px solid transparent; border-radius: 6px;
  padding: 0.35rem 0.5rem; color: var(--ink); font-family: var(--sans); font-size: 0.88rem;
  width: 100%; color-scheme: dark;
}
.ptbl input:focus, .ptbl select:focus { outline: none; border-color: var(--gold); }

.chip { border-radius: 999px; padding: 0.12rem 0.65rem; font-size: 0.76rem; white-space: nowrap; }
.chip-ok { background: rgba(143, 206, 154, 0.15); color: var(--ok); }
.chip-wait { background: rgba(232, 207, 155, 0.14); color: var(--gold-light); }
.chip-no { background: rgba(224, 138, 138, 0.14); color: var(--danger); }

/* vendors */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vcard {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem;
  transition: transform 0.35s var(--ease), border-color 0.3s; animation: rise 0.5s var(--ease) backwards;
}
.vcard:hover { transform: translateY(-4px); border-color: rgba(201, 163, 92, 0.45); }
.vcard.booked { border-color: var(--gold); background: linear-gradient(170deg, rgba(201, 163, 92, 0.08), var(--bg-2) 55%); }
.vcard h4 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.2rem; }
.vcard .vcat { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; }
.vcard p { color: var(--ink-dim); font-size: 0.87rem; margin: 0.5rem 0; }
.vfilters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.vfilters button {
  background: none; border: 1px solid var(--line); color: var(--ink-dim); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.82rem; cursor: pointer; transition: all 0.25s;
}
.vfilters button.active { background: var(--gold); border-color: var(--gold); color: #1a1206; }

/* checklist */
.clgroup { margin-bottom: 1.3rem; }
.clgroup-title { font-family: var(--serif); font-weight: 700; color: var(--gold-light); margin-bottom: 0.4rem; font-size: 1.02rem; }
.clitem {
  display: flex; gap: 0.7rem; align-items: baseline; padding: 0.45rem 0.6rem;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.clitem:hover { background: rgba(201, 163, 92, 0.06); }
.clitem.done { opacity: 0.5; }
.clitem.done .cltext { text-decoration: line-through; }
.clcheck {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--gold);
  flex-shrink: 0; display: grid; place-items: center; font-size: 0.7rem; color: #1a1206;
  transition: background 0.25s; align-self: center;
}
.clitem.done .clcheck { background: var(--gold); }

/* schedule timeline */
.tl { position: relative; padding-inline-start: 1.6rem; }
.tl::before { content: ''; position: absolute; inset-block: 6px; inset-inline-start: 6px; width: 1.5px; background: var(--line); }
.tlrow { position: relative; padding: 0.5rem 0 0.5rem 0; display: flex; gap: 0.8rem; align-items: center; }
.tlrow::before {
  content: ''; position: absolute; inset-inline-start: -1.6rem; top: 50%;
  transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); margin-inline-start: 1px;
}
.tltime { font-family: var(--serif); font-weight: 700; color: var(--gold-light); min-width: 52px; }

.empty { text-align: center; color: var(--ink-dim); padding: 2rem 1rem; }

/* toast */
.toast {
  position: fixed; bottom: 1.4rem; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--gold); color: #1a1206; border-radius: 999px; padding: 0.65rem 1.5rem;
  font-size: 0.9rem; font-weight: 500; z-index: 99; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: rise 0.35s var(--ease);
}
.toast.err { background: #5d2626; color: #ffd9d9; }

@media (max-width: 720px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .ptbl .hide-m { display: none; }
  .phead-title { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
