:root {
  color-scheme: dark;
  --bg: #0c0a08;
  --panel: rgba(16, 16, 15, 0.78);
  --panel-soft: rgba(255, 247, 234, 0.06);
  --line: rgba(229, 190, 120, 0.42);
  --line-soft: rgba(255, 247, 234, 0.16);
  --gold: #f5c878;
  --gold-strong: #ffd18a;
  --text: #fff7ec;
  --muted: rgba(255, 247, 236, 0.72);
  --faint: rgba(255, 247, 236, 0.5);
  --green: #9ede9e;
  --green-bg: rgba(91, 158, 91, 0.18);
  --red: #ff8581;
  --red-bg: rgba(190, 75, 69, 0.18);
  --amber: #f3bf66;
  --amber-bg: rgba(198, 144, 54, 0.18);
  font-family: "Assistant", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.82), rgba(10, 8, 6, 0.72)),
    url("../PIC/EXTRAZOOMP/אקסטרה כהה חלון.png") center / cover fixed,
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 86% 18%, rgba(245, 200, 120, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

button,
input {
  font: inherit;
}

.dashboard-shell {
  width: min(1720px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(320px, 2fr) minmax(160px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.brand-lockup {
  display: inline-grid;
  gap: 2px;
  justify-self: start;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  letter-spacing: 8px;
  text-align: center;
  text-transform: uppercase;
  background: rgba(9, 8, 7, 0.44);
}

.brand-lockup span {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.brand-lockup small {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 5px;
}

.dashboard-title {
  text-align: center;
}

.dashboard-title p,
.panel-kicker {
  margin: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.dashboard-title h1 {
  margin: 0;
  font-family: "Noto Serif Hebrew", "Assistant", serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.dashboard-title span {
  display: block;
  color: var(--muted);
  font-size: 1.2rem;
}

.back-link {
  justify-self: end;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 244, 232, 0.05);
}

.stats-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, 0.9fr);
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card,
.approval-card,
.guest-panel {
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, rgba(20, 20, 19, 0.82), rgba(9, 9, 8, 0.72));
  backdrop-filter: blur(18px);
}

.stat-card {
  min-height: 172px;
  padding: 24px;
  border-radius: 14px;
}

.stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  place-items: center;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 1.08rem;
}

.stat-card strong {
  display: block;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(2.5rem, 3.9vw, 3.95rem);
  font-weight: 400;
  line-height: 0.95;
}

.stat-card em {
  color: var(--faint);
  font-style: normal;
}

.stat-confirmed .stat-icon {
  color: var(--green);
}

.stat-pending .stat-icon {
  color: var(--amber);
}

.stat-declined .stat-icon {
  color: var(--red);
}

.approval-card {
  display: grid;
  min-height: 172px;
  border-radius: 50%;
  place-items: center;
}

.approval-ring {
  position: relative;
  width: 164px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #100f0e 72%, transparent 73%),
    conic-gradient(var(--gold-strong) var(--approval-deg, 0deg), rgba(255, 255, 255, 0.18) 0);
}

.approval-ring strong {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Prata", Georgia, serif;
  font-size: 2.72rem;
  font-weight: 400;
  line-height: 0.9;
  transform: translate(-50%, -50%);
}

.approval-ring span {
  position: absolute;
  top: calc(50% + 48px);
  left: 50%;
  margin-top: 0;
  color: var(--muted);
  transform: translateX(-50%);
}

.guest-panel {
  padding: 22px;
  border-radius: 18px;
}

.panel-toolbar {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-toolbar h2 {
  margin: 0;
  font-family: "Noto Serif Hebrew", "Assistant", serif;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-weight: 400;
}

.search-box {
  display: grid;
  width: min(520px, 100%);
  gap: 7px;
}

.search-box span {
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-tabs button {
  min-width: 112px;
  padding: 10px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 247, 236, 0.04);
}

.filter-tabs button.is-active {
  border-color: var(--gold-strong);
  color: #1a1308;
  background: linear-gradient(135deg, #ffd98e, #f2b45c);
}

.guest-table {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.guest-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.8fr;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 247, 236, 0.1);
}

.guest-head {
  color: var(--faint);
  background: rgba(255, 247, 236, 0.04);
}

.guest-row:last-child {
  border-bottom: 0;
}

.guest-name {
  display: grid;
  gap: 3px;
}

.guest-name strong {
  font-size: 1.08rem;
}

.guest-name span,
.guest-phone,
.guest-count {
  color: var(--muted);
}

.status-pill {
  justify-self: start;
  min-width: 112px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-align: center;
}

.status-pill.confirmed {
  color: var(--green);
  background: var(--green-bg);
}

.status-pill.pending {
  color: var(--amber);
  background: var(--amber-bg);
}

.status-pill.declined {
  color: var(--red);
  background: var(--red-bg);
}

.dashboard-note {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--muted);
}

.empty-state {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .stats-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-card {
    border-radius: 18px;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    width: min(100% - 28px, 720px);
    padding: 22px 0;
  }

  .dashboard-hero,
  .panel-toolbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand-lockup,
  .back-link {
    justify-self: center;
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 144px;
  }

  .guest-row,
  .guest-head {
    grid-template-columns: 1fr;
  }

  .guest-head {
    display: none;
  }

  .guest-row {
    gap: 8px;
    padding: 18px;
  }
}
