:root {
  --ink: #17211e;
  --muted: #5c675f;
  --paper: #f4f6f3;
  --card: #ffffff;
  --line: #dde5df;
  --green: #14302a;
  --green-2: #1f463c;
  --gold: #9a7a3f;
  --gold-2: #b08948;
  --danger: #8d3a32;
  --shadow: 0 10px 28px rgba(20, 48, 42, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(154, 122, 63, 0.28);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(154, 122, 63, 0.1), transparent 28rem),
    linear-gradient(180deg, #eef2ef 0%, var(--paper) 18rem);
  font-family: var(--font);
  line-height: 1.65;
}

button, input, select, textarea { font: inherit; }

a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-family: var(--display);
}
h1 { font-size: clamp(1.55rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
h2 { font-size: 1.12rem; }
h3 { font-size: 0.98rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green);
  color: #f7f3ea;
  box-shadow: inset 0 -1px 0 rgba(196, 163, 106, 0.55), 0 10px 28px rgba(20, 48, 42, 0.16);
}

.topbar-inner, .page {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.brand, .auth-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
}

.brand-mark svg { width: 40px; height: 40px; display: block; }

.brand-name {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.auth-brand .brand-name { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-label {
  display: none;
  color: rgba(244, 239, 228, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.main-nav a, .main-nav .bell, .link-button {
  color: #f4efe4;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.main-nav a.active, .main-nav a:hover, .main-nav .bell:hover, .link-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main-nav a.active {
  background: rgba(196, 163, 106, 0.22);
  box-shadow: inset 0 0 0 1px rgba(196, 163, 106, 0.45);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.page { padding: 1.5rem 0 3rem; }

.page-head, .panel-head, .form-actions, .search-bar, .inline-add, .row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-head { margin-bottom: 1.25rem; align-items: flex-start; }
.page-head p, .lead, .hint, .muted { color: var(--muted); }
.page-head > div { min-width: 0; }
.page-head .btn { flex: none; }
.lead { margin-bottom: 1.2rem; }

.stats, .agenda, .catalog, .grid-2 {
  display: grid;
  gap: 0.9rem;
}

.stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; }
.agenda { grid-template-columns: repeat(3, 1fr); }
.catalog { grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.stat, .panel, .form-card, .auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem 1rem;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.stat:hover { border-color: var(--gold-2); color: var(--ink); transform: translateY(-1px); }
.stat-num { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }

.panel { padding: 1rem 1.1rem 1.15rem; }
.panel-head { margin-bottom: 0.8rem; }
.form-card { padding: 1.2rem; display: grid; gap: 0.35rem; }
.form-card .grid-2, .form-card [data-for] { display: grid; gap: 0.35rem; }
.agenda article {
  background: #f7f4ee;
  border-radius: 12px;
  padding: 0.9rem;
}
.agenda { align-items: start; }
.agenda p { margin: 0; color: var(--muted); white-space: pre-wrap; }
.agenda article { display: grid; gap: 0.55rem; align-content: start; }

.bell {
  color: #f7f3ea;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.bell span {
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.45rem;
  margin-inline-start: 0.25rem;
}
.bell-wrap { position: relative; }
.bell-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline-end: 0;
  width: min(340px, 82vw);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(20, 48, 42, 0.2);
  z-index: 40;
  overflow: hidden;
  text-align: start;
}
.bell-panel[hidden] { display: none; }
.bell-empty { margin: 0; padding: 1rem; color: var(--ink); }
.main-nav .bell-panel a.bell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.main-nav .bell-panel a.bell-item strong { color: var(--ink); font-weight: 700; }
.main-nav .bell-panel a.bell-item:hover,
.main-nav .bell-panel a.bell-item:hover strong {
  background: #f3efe6;
  color: var(--green);
}
.main-nav .bell-panel a.bell-item span {
  background: var(--green);
  color: #fff;
  min-width: 1.7rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  margin: 0;
  font-weight: 700;
}

.appointment-panel { margin-top: 1rem; }
.appointment-form, .appointment-list, .alert-list { display: grid; gap: 0.7rem; }
.appointment-list article, .alert-list article {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  background: #f7f4ee;
  border-radius: 12px;
  padding: 0.75rem;
}
.appointment-list p, .alert-list p { margin: 0.2rem 0 0; color: var(--muted); white-space: pre-wrap; }
.appointment-actions { display: grid; gap: 0.4rem; justify-items: stretch; }
.postpone { display: flex; gap: 0.35rem; }
.postpone input { min-height: 42px; }

.workspace-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.workspace-tabs button {
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.workspace-tabs button.on,
.workspace-tabs button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.workspace-pane[hidden] { display: none !important; }
.workspace-pane.panel { margin-bottom: 1rem; }
.workspace-pane > .panel { margin-bottom: 1rem; }
.screen-block {
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  margin-bottom: 0.9rem;
}
.screen-block:last-child { margin-bottom: 0; }
.screen-block .panel-head { margin-bottom: 0.65rem; }
.home-overview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.15rem;
}
.home-overview .doors { margin-bottom: 0.9rem; }
.home-overview .stats { margin-bottom: 0; }

.deal-cards { gap: 0.65rem; }
.deal-card {
  display: grid;
  gap: 0.35rem;
  background: #f7f4ee;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.deal-card:hover {
  color: var(--ink);
  border-color: var(--gold-2);
  background: #fff;
  transform: translateY(-1px);
}
.deal-card strong { font-size: 1.02rem; }
.deal-card p { margin: 0; color: var(--muted); }

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0.9rem 0;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}
.filters a { flex: none; white-space: nowrap; }
.filters a {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.filters a span {
  color: var(--muted);
  margin-inline-start: 0.25rem;
}
.filters a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.filters a.active span { color: #d9c7a4; }

.search-bar, .inline-add { margin-bottom: 0.4rem; }
.search-bar .form-control, .inline-add .form-control { flex: 1; }

label, .label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.form-control, .form-select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control { min-height: 110px; }

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus);
}

.btn {
  border-radius: 999px;
  min-height: 42px;
  padding: 0.4rem 1.05rem;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-danger { background: transparent; border-color: #e4c6c2; color: var(--danger); }

.field-error { color: var(--danger); font-size: 0.92rem; }
.validation-summary-valid { display: none; }
.form-card [data-for][hidden] { display: none !important; }
.banner {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  animation: showRise 0.35s ease both;
}
.banner.success { background: #e7f2ec; color: #1d4a38; }
.banner.error { background: #f8ecea; color: var(--danger); }
.banner.error:empty { display: none; }
.banner.warn { background: #f7f1e3; color: #7a5a12; }
.banner.warn:empty { display: none; }
.banner.waiting {
  display: block;
  background: #f8f1e4;
  color: #6d4d22;
  margin-bottom: 1rem;
}

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.people { width: 100%; border-collapse: collapse; }
table.people th, table.people td { padding: 0.85rem 1rem; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people th { color: var(--muted); font-weight: 700; font-size: 0.84rem; background: #f7f3ea; }
table.people tbody tr:hover td { background: #fbf8f3; }
table.people tr:last-child td { border-bottom: 0; }
table.people td a { font-weight: 700; }

.phone { direction: ltr; unicode-bidi: isolate; text-align: right; }

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  background: #eeeae2;
  font-size: 0.9rem;
}
.tag.Client { background: #e7f0ea; color: #1d4a38; }
.tag.Supplier { background: #f8f1e4; color: #6d4d22; }
.tag.Technician { background: #e8eef5; color: #23415f; }
.tag.FinishingCompany { background: #f3eaf2; color: #5d3158; }
.tag.Unclassified { background: #eeeae2; color: #5f584e; }
.tag.available { background: #e7f0ea; color: #1d4a38; }
.tag.finished { background: #f8ecea; color: #8d3a32; }
.crumb { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.92rem; }
.crumb a { font-weight: 700; }
.hit-title { font-weight: 700; font-size: 1.05rem; }
.hit-card {
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  background: #fff;
}
.hit-card.no-photo { grid-template-columns: 1fr; }
.hit-photo { display: block; }
.hit-card img, .hit-photo img {
  width: 168px;
  height: 118px;
  object-fit: cover;
  max-width: none;
  margin: 0;
  border-radius: 12px;
}
.collection-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}
.detail-side { display: grid; gap: 1rem; }
.gallery-open {
  display: block;
  background: #efeae1;
  border-radius: 14px;
  overflow: hidden;
}
.gallery-open img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0;
  display: block;
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.thumb {
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #efeae1;
  cursor: pointer;
}
.thumb.active, .thumb:hover { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; display: block; }
.table-wrap.flat { background: transparent; border: 0; box-shadow: none; border-radius: 0; }

.row-actions { justify-content: flex-end; white-space: nowrap; }
.row-actions form { margin: 0; }
.row-actions button, .text-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  padding: 0;
  cursor: pointer;
}

.checks { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.45rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: #fff;
  font-weight: 500;
}

.catalog-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.catalog-list li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
}
.catalog-list form:first-child { display: flex; gap: 0.45rem; flex: 1; align-items: center; }
.catalog-list form:first-child .form-control { flex: 1; }
.catalog-list .btn-outline { padding: 0.35rem 0.75rem; }
.catalog-list .text-button { white-space: nowrap; }

.empty { text-align: center; padding: 2.4rem 1.2rem; }
.empty h2 { margin-bottom: 0.35rem; }
.empty p { margin: 0 auto; max-width: 28rem; color: var(--muted); }
.panel.empty { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, 0.7); }
.empty-state { display: grid; justify-items: center; gap: 0.75rem; }
.empty-state .btn { margin-top: 0.35rem; }

.flow-steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f4f1ea;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.flow-steps span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.inbox-list { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.inbox-card {
  display: grid;
  gap: 0.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.inbox-card:hover { border-color: var(--gold); color: var(--ink); }
.inbox-top { display: flex; justify-content: space-between; gap: 1rem; }
.inbox-card p { margin: 0.2rem 0; color: var(--muted); }
.inbox-action { color: var(--green-2); font-weight: 700; }
.wa-totals { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.wa-totals span, .wa-totals a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid #e9edef;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #111b21;
  font-weight: 700;
}
.wa-totals a:hover { color: #111b21; background: #f5f6f6; }
.wa-totals b, .wa-pills span {
  min-width: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  line-height: 1.45rem;
}
.wa-totals b.msg, .wa-pills .msg { background: #25d366; }
.wa-totals b.col, .wa-pills .col { background: #b08948; }
.wa-chats {
  background: #fff;
  border: 1px solid #e9edef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.wa-chats a.wa-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #e9edef;
  background: #fff;
  color: #111b21;
  text-decoration: none;
}
.wa-chats a.wa-row:last-child { border-bottom: 0; }
.wa-chats a.wa-row:hover { background: #f5f6f6; color: #111b21; }
.wa-chats .wa-avatar { width: 49px; height: 49px; font-size: 1.15rem; }
.wa-row-main { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.wa-row-top, .wa-row-sub { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.wa-row-top strong { font-weight: 700; color: #111b21; }
.wa-row-top em {
  font-style: normal;
  color: #667781;
  background: #f0f2f5;
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.75rem;
}
.wa-row-top time { margin-inline-start: auto; color: #667781; font-size: 0.75rem; }
.wa-row-top time.hot { color: #25d366; }
.wa-row-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667781;
  font-size: 0.92rem;
}
.wa-pills { display: flex; gap: 0.3rem; margin-inline-start: auto; }
.hook-panel { margin-top: 1rem; }
.hook-status { margin: 0.7rem 0 0; color: var(--muted); }

.thread { display: grid; gap: 0.55rem; }
.thread-panel { margin-bottom: 1rem; }
.bubble {
  width: min(100%, 460px);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
}
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble time { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.bubble.in { background: #f7f4ee; }
.bubble.out { background: #e7f2ec; margin-inline-start: auto; }
.bubble img, .bubble video { max-width: 240px; border-radius: 10px; display: block; }
.bubble audio { width: min(100%, 260px); }

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.doors a {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.doors a:hover {
  border-color: var(--gold);
  color: var(--green);
  transform: translateY(-2px);
}
.section-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; position: sticky; top: 72px; z-index: 4; background: rgba(243, 239, 230, 0.94); padding: 0.55rem 0; margin-bottom: 1rem; backdrop-filter: blur(8px); }
.section-nav a {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-weight: 600;
}
.section-nav a:hover { background: var(--green); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tabs a {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }

.wa {
  position: relative;
  display: flex;
  flex-direction: column;
  direction: ltr;
  height: calc(100dvh - 20rem);
  min-height: 420px;
  background: #efeae2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.wa-top, .wa-search, .wa-compose { background: #f0f2f5; flex-shrink: 0; }
.wa-top {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 60px; padding: 0.5rem 0.85rem;
  border-bottom: 1px solid #e4e7ea;
}
.wa-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #dfe5e7; color: #54656f; font-weight: 700;
}
.wa-who {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 0; flex: 1; line-height: 1.25;
}
.wa-who strong {
  max-width: 100%; color: #111b21; font-size: 1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: ltr; unicode-bidi: isolate; text-align: left;
}
.wa-who .phone { text-align: left; direction: ltr; }
.wa-who span, .wa-meta, .wa-empty { color: #667781; font-size: 0.78rem; }
.wa-icon, .wa-send, .wa-mic, .wa-jump, .wa-copy, .wa-photo, .wa-menu button, .wa-emoji button {
  border: 0; background: transparent; color: #54656f; cursor: pointer; padding: 0;
}
.wa-icon { width: 36px; height: 36px; }
.wa-icon svg, .wa-send svg, .wa-mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wa-search { display: flex; gap: 0.4rem; padding: 0.45rem 0.7rem; }
.wa-search input { flex: 1; border: 0; border-radius: 8px; padding: 0.45rem 0.7rem; }
.wa-thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 4% 1.2rem;
  background-color: #efeae2;
  background-image: radial-gradient(circle at 20% 20%, rgba(17, 27, 33, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 40%, rgba(17, 27, 33, 0.04) 0 8px, transparent 9px);
  background-size: 28px 28px, 120px 120px;
}
.wa-day, .wa-empty {
  align-self: center;
  width: fit-content; margin: 0.45rem 0; background: #fff;
  border-radius: 8px; padding: 0.25rem 0.7rem; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa-bubble {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(420px, 78%);
  margin: 0.15rem 0;
  padding: 0.35rem 0.55rem 0.15rem;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa-bubble.in { background: #fff; border-top-left-radius: 0; }
.wa-bubble.out { background: #d9fdd3; border-top-right-radius: 0; align-self: flex-end; }
.wa-bubble.in::before, .wa-bubble.out::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
}
.wa-bubble.in::before {
  left: -8px;
  background: radial-gradient(circle at 0 0, transparent 8px, #fff 8.5px);
}
.wa-bubble.out::before {
  right: -8px;
  background: radial-gradient(circle at 100% 0, transparent 8px, #d9fdd3 8.5px);
}
.wa-bubble p {
  display: block;
  margin: 0;
  width: auto;
  max-width: 340px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  color: #111b21;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
.wa-missing {
  width: 220px; height: 132px; border-radius: 6px;
  background: #d8e0e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667781' stroke-width='1.6'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Ccircle cx='12' cy='12.5' r='3'/%3E%3Cpath d='M8 6l1.2-2h5.6L16 6'/%3E%3C/svg%3E") center / 42px no-repeat;
}
.wa-bubble img, .wa-bubble video { max-width: 280px; border-radius: 6px; display: block; }
.wa-bubble audio { width: min(240px, 70vw); height: 36px; }
.wa-photo img { cursor: zoom-in; }
.wa-file {
  display: flex; gap: 0.55rem; align-items: center; min-width: 200px;
  background: rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0.45rem;
}
.wa-file span {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: #027eb5; color: #fff; font-size: 0.68rem; font-weight: 700;
}
.wa-meta { display: flex; gap: 0.25rem; align-items: center; justify-content: flex-end; margin-top: 0.1rem; }
.wa-tick { width: 16px; height: 11px; fill: #8696a0; }
.wa-copy {
  position: absolute; top: 0.15rem; left: 0.3rem; font-size: 0.72rem; opacity: 0;
}
.wa-bubble:hover .wa-copy { opacity: 1; }
.wa-jump {
  position: absolute; right: 1.15rem; bottom: 4.6rem; width: 36px; height: 36px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 20, 26, 0.2);
  display: grid; place-items: center; z-index: 3;
}
.wa-jump svg { width: 18px; height: 18px; fill: none; stroke: #54656f; stroke-width: 2; }
.wa-compose { display: flex; align-items: flex-end; gap: 0.35rem; padding: 0.45rem 0.55rem; position: relative; }
.wa-tools { display: flex; }
.wa-box { flex: 1; background: #fff; border-radius: 8px; padding: 0.35rem 0.7rem; }
.wa-box textarea {
  width: 100%; border: 0; resize: none; outline: none; max-height: 120px;
  direction: rtl; background: transparent;
}
.wa-preview { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.wa-preview img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.wa-send, .wa-mic {
  width: 42px; height: 42px; border-radius: 50%; background: #00a884; color: #fff; flex: none;
}
.wa-compose .wa-send svg { stroke: #fff; fill: #fff; }
.wa-compose .wa-mic svg { stroke: #fff; }
.wa-mic.on { background: #c4524a; }
.wa-rec { color: #c4524a; font-size: 0.8rem; direction: rtl; margin-bottom: 0.2rem; cursor: pointer; }
.wa-menu, .wa-emoji {
  position: absolute; bottom: 58px; left: 12px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 20, 26, 0.16); padding: 0.35rem;
}
.wa-menu { display: grid; }
.wa-menu button { text-align: start; padding: 0.45rem 0.7rem; border-radius: 8px; direction: rtl; }
.wa-menu button:hover, .wa-emoji button:hover { background: #f0f2f5; }
.wa-emoji { display: grid; grid-template-columns: repeat(8, 32px); }
.wa-emoji button { font-size: 1.15rem; height: 32px; }
.wa-light {
  position: fixed; inset: 0; background: rgba(11, 20, 26, 0.88);
  display: grid; place-items: center; z-index: 40;
}
.wa-light[hidden], .wa-menu[hidden], .wa-emoji[hidden], .wa-search[hidden], .wa-preview[hidden], .wa-rec[hidden], .wa-jump[hidden], .wa-send[hidden], .wa-mic[hidden] { display: none; }
.wa-light img { max-width: min(920px, 92vw); max-height: 88vh; border-radius: 8px; }
.wa-light button { position: absolute; top: 1rem; right: 1rem; color: #fff; font-size: 2rem; background: transparent; border: 0; cursor: pointer; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(196, 163, 106, 0.28), transparent 24rem),
    var(--green);
}
.auth-shell { width: min(440px, calc(100% - 2rem)); }
.auth-card { padding: 1.7rem 1.5rem 1.4rem; }
.auth-card h1 { margin-top: 1rem; }
.auth-card form { display: grid; gap: 0.25rem; }
.auth-card .btn { margin-top: 0.8rem; }

.collection-form, .collection-list, .lookup-groups { display: grid; gap: 0.75rem; }
.collection-form { margin-top: 0.6rem; grid-template-columns: 1fr 1fr; align-items: end; }
.collection-form label { margin-top: 0; }
.collection-form > .btn,
.collection-form > .form-actions,
.collection-form > .size-editor,
.collection-form label:has(input[type="file"]),
.collection-form label:has(textarea) { grid-column: 1 / -1; }
.size-editor { display: grid; gap: 0.45rem; }
.size-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.7fr) auto;
  gap: 0.45rem;
  align-items: end;
}
.size-list { list-style: none; padding: 0; margin: 0.35rem 0 0; display: grid; gap: 0.25rem; }
.collection-form > .btn { justify-self: start; }
.collection-list article {
  display: grid;
  gap: 0.55rem;
  background: #f7f4ee;
  border-radius: 12px;
  padding: 0.8rem;
}
.collection-list .need-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}
.collection-list .need-actions .collection-form.inline {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 12rem;
}
.collection-list .need-actions .btn { align-self: end; }
.collection-list p { margin: 0.2rem 0 0; color: var(--muted); }
.collection-list img { max-width: 180px; border-radius: 10px; display: block; margin-top: 0.4rem; }
.collection-list .hit-card { grid-template-columns: 168px minmax(0, 1fr); align-items: center; background: #fff; }
.collection-list .hit-card.no-photo { grid-template-columns: 1fr; }
.collection-list .hit-photo img,
.collection-list .hit-card img { width: 168px; height: 118px; max-width: none; object-fit: cover; margin: 0; border-radius: 12px; }
.catalog-wide { margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.chip.active, .chip:hover { background: var(--green); color: #fff; }
.shot-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.45rem; }
.shot { margin: 0; width: 132px; }
.shot img { width: 132px; height: 96px; object-fit: cover; max-width: none; margin: 0; }
.shot form { margin-top: 0.2rem; }
.party-board { display: grid; gap: 1rem; margin-top: 1rem; }
.party-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}
.party-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}
.party-sum { margin: 0.35rem 0 0; color: var(--muted); }
.party-sum strong { color: var(--ink); }
.party-works { display: grid; gap: 0.75rem; }
.party-work {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}
.party-work-name { font-size: 1rem; }
.party-work-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  align-items: end;
}
.party-work-form.add {
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
  margin-top: 0.25rem;
}
.party-work-form label { margin: 0; display: grid; gap: 0.3rem; font-size: 0.86rem; color: var(--muted); }
.party-work-form .btn { justify-self: start; }
.link-button.danger { color: #b42318; }

.deal-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.65rem; margin-bottom: 1rem; }
.deal-totals.accounts-summary { grid-template-columns: repeat(3, 1fr); }
.accounts-hint { margin: -0.4rem 0 1rem; }
.accounts-strip { grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; }
@media (max-width: 900px) {
  .deal-totals.accounts-summary, .accounts-strip { grid-template-columns: 1fr 1fr; }
}
.deal-totals article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.85rem 0.9rem; box-shadow: var(--shadow); }
.deal-totals span { color: var(--muted); display: block; font-size: 0.86rem; }
.deal-totals strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.deal-totals article:last-child { background: var(--green); border-color: var(--green); color: #f7f3ea; }
.deal-totals article:last-child span { color: var(--gold-2); }
.deal-totals.accounts-totals article:last-child { background: var(--card); border-color: var(--line); color: inherit; }
.deal-totals.accounts-totals article:last-child span { color: var(--muted); }
.money-card .money-cols { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.deal-event time { color: var(--muted); font-size: 0.85rem; }
.deal-tabs, .money-tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  position: sticky; top: 72px; z-index: 4;
  background: rgba(243, 239, 230, 0.94);
  padding: 0.55rem 0; margin-bottom: 0.85rem;
  backdrop-filter: blur(8px);
}
.deal-tabs button, .money-tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.deal-tabs button.on, .money-tabs button.on,
.deal-tabs button:hover, .money-tabs button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.deal-pane[hidden], .money-pane[hidden] { display: none !important; }
.money-tabs { position: static; background: transparent; backdrop-filter: none; padding-top: 0; }
.money-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.money-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}
.money-card header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.money-card header strong { font-size: 1rem; }
.money-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.money-cols div {
  background: #f7f3ea;
  border-radius: 12px;
  padding: 0.55rem 0.45rem;
  text-align: center;
}
.money-cols span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.money-cols b { font-size: 0.92rem; letter-spacing: -0.02em; }
.money-pay {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}
.money-form, .money-history {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}
.money-history .collection-list { margin-top: 0.35rem; }
.contact-money { grid-template-columns: repeat(3, 1fr); }
.deal-balance-list { margin-top: 0.35rem; }
.money-meta { color: var(--muted); margin: 0 0 0.55rem; font-size: 0.9rem; }
.tag.expect { background: #efe4c8; color: #5c4618; }
.skill-filters { margin-top: -0.35rem; }
.supply-list { display: grid; gap: 0.85rem; margin-top: 0.8rem; }
.supply-card { border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; background: #fff; }
.supply-card .panel-head { margin-bottom: 0.4rem; }
.supply-card.rebind-focus { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25); }
#active-deals, #history-deals { margin-top: 1rem; }

.site-foot {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.4rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 18, 0.42);
  z-index: 18;
}
.nav-scrim[hidden] { display: none !important; }
body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .stats, .agenda, .catalog, .grid-2, .deal-totals, .doors, .collection-detail, .money-pay, .money-cols { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .topbar-inner { position: relative; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline: 0;
    background: var(--green-2);
    border-radius: var(--radius);
    padding: 0.7rem;
    flex-direction: column;
    align-items: stretch;
    z-index: 25;
    max-height: min(70vh, 32rem);
    overflow: auto;
    box-shadow: 0 18px 40px rgba(10, 22, 18, 0.28);
  }
  .main-nav.open { display: flex; }
  .nav-cluster {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
  }
  .nav-label {
    display: block;
    padding: 0.15rem 0.55rem 0.35rem;
  }
  .main-nav a, .main-nav .bell, .link-button {
    width: 100%;
    text-align: start;
    border-radius: var(--radius-sm);
  }
  .bell-panel { position: static; width: 100%; margin-top: 0.35rem; }
}

@media (min-width: 1100px) {
  .nav-label { display: inline-block; }
}

@media (max-width: 640px) {
  .stats, .agenda, .catalog, .grid-2, .deal-totals, .doors, .page-head, .search-bar, .collection-form { grid-template-columns: 1fr; display: grid; }
  .page-head, .search-bar, .inline-add { display: grid; }
  .section-nav { top: 64px; }
  .size-row { grid-template-columns: 1fr; }
  .wa { height: calc(100dvh - 22rem); min-height: 320px; }
  .wa-emoji { grid-template-columns: repeat(6, 32px); }
  .wa-bubble { max-width: 90%; }
}

.toast-stack {
  position: fixed;
  top: 84px;
  left: 1rem;
  z-index: 40;
  display: grid;
  gap: 0.4rem;
}
.toast {
  background: #14302a;
  color: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  max-width: 280px;
}

.show-body {
  --show-ink: #12251f;
  --show-muted: #5f6d66;
  --show-line: #d9e0db;
  --show-card: #ffffff;
  --show-green: #14302a;
  --show-gold: #c4a36a;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 163, 106, 0.12), transparent 28rem),
    linear-gradient(180deg, #eef3f0 0%, #f7f8f6 42%, #f3f1ec 100%);
  color: var(--show-ink);
  font-family: "IBM Plex Sans Arabic", Cairo, sans-serif;
}
.show-bar, .show-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 6vw;
}
.show-bar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 48, 42, 0.94);
  color: #f7f3ea;
  backdrop-filter: blur(12px);
}
.show-brand { color: inherit; }
.show-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.show-nav a {
  color: #f4efe4;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}
.show-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.show-hero {
  position: relative;
  min-height: min(62vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f3ea;
  background:
    radial-gradient(circle at 85% 15%, rgba(196, 163, 106, 0.28), transparent 26rem),
    repeating-linear-gradient(-28deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 19px),
    linear-gradient(135deg, #0c1c18 0%, #14302a 55%, #1a3d35 100%);
}
.show-hero-media,
.show-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.show-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: showKen 18s ease-in-out alternate both;
}
.show-hero-veil {
  background:
    linear-gradient(90deg, rgba(8, 18, 15, 0.88) 0%, rgba(8, 18, 15, 0.62) 42%, rgba(8, 18, 15, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 18, 15, 0.72) 0%, transparent 48%);
}
.show-hero.has-media {
  background: #0c1c18;
}
.show-hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 6vw 3.4rem;
  max-width: 40rem;
  animation: showRise 0.8s ease both;
}
.show-brand-name {
  margin: 0 0 0.85rem;
  font-family: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}
.show-hero h1 {
  font-family: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  line-height: 1.4;
  color: #e8e1d4;
}
.show-block[hidden] { display: none !important; }
.show-hero-copy > p {
  margin: 0;
  color: #d9d2c4;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 32rem;
}
.show-trust {
  margin: 1.15rem 0 0;
  color: #cfc5b2;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 30rem;
}
.show-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.6rem; }
.show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--show-gold);
  color: #14302a;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.show-btn:hover { transform: translateY(-2px); color: #14302a; background: #d4b57d; }
.show-btn.ghost {
  background: transparent;
  color: #f7f3ea;
  border: 1px solid rgba(247, 243, 234, 0.35);
}
.show-btn.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.show-nav a.show-wa {
  background: #25d366;
  color: #08391c;
  border-radius: 999px;
}
.show-nav a.show-wa:hover { background: #34e078; color: #08391c; }
.show-foot-brand { display: grid; gap: 0.45rem; max-width: 34rem; }
.show-foot-name {
  color: var(--show-green);
  font-family: "El Messiri", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.show-foot-tag {
  margin: 0;
  color: var(--show-ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.55;
}
.show-foot-about {
  margin: 0;
  color: var(--show-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  max-width: 32rem;
}
.show-foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.2rem;
  color: var(--show-muted);
  font-size: 0.9rem;
}
.show-foot-meta a { color: var(--show-green); font-weight: 600; text-decoration: none; }
.show-foot-meta a:hover { text-decoration: underline; }
.show-foot-links {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
  align-content: start;
}
.show-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}
.show-social a {
  color: var(--show-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid color-mix(in srgb, var(--show-green) 28%, transparent);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.show-social a:hover { background: var(--show-green); color: #f7f3ea; border-color: var(--show-green); }
.show-foot-wa {
  display: grid;
  gap: 0.15rem;
  text-align: end;
  color: var(--show-green);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--show-green) 30%, transparent);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.6);
  min-width: 11rem;
}
.show-foot-wa span { color: var(--show-muted); font-weight: 500; font-size: 0.88rem; }
.show-foot-wa:hover { border-color: var(--show-green); background: #fff; }
.form-section {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.form-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sales-links { display: grid; gap: 0.65rem; margin: 0.75rem 0; }
.sales-links label { display: grid; gap: 0.25rem; font-weight: 700; }
.sales-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.6rem;
}
.sales-stats div {
  background: #fff;
  border: 1px solid var(--show-line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.25rem;
}
.sales-stats strong {
  font-family: "El Messiri", sans-serif;
  font-size: 1.6rem;
  color: var(--show-green);
}
.sales-stats span { color: var(--show-muted); font-size: 0.92rem; }
.sales-list { display: grid; gap: 0.65rem; margin: 0.85rem 0 1.4rem; }
.sales-list article {
  background: #fff;
  border: 1px solid var(--show-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
}
.sales-list em { color: var(--show-green); font-style: normal; font-weight: 700; }
.sales-list small { color: var(--show-muted); }
@media (max-width: 700px) {
  .sales-stats { grid-template-columns: 1fr; }
}
.show-tools {
  position: sticky;
  top: 68px;
  z-index: 4;
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 6vw;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--show-line);
}
.show-tools-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.show-tools input {
  flex: 1 1 240px;
  border: 1px solid var(--show-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
}
.show-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.show-chips.soft { margin: 0.85rem 0 0.2rem; }
.show-chips-sub {
  padding-top: 0.15rem;
  border-top: 1px dashed var(--show-line);
}
.show-chips button {
  border: 1px solid var(--show-line);
  background: #fff;
  color: var(--show-ink);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.show-chips button.on { background: var(--show-green); color: #fff; border-color: var(--show-green); }
.show-chips-sub button.on {
  background: #fff;
  color: var(--show-green);
  border-color: var(--show-green);
  box-shadow: inset 0 0 0 1px var(--show-green);
}
.show-block { padding: 2.2rem 6vw 0.6rem; }
.show-head { max-width: 40rem; margin-bottom: 0.35rem; }
.show-head h2 {
  margin: 0;
  font-family: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}
.show-head p, .show-empty, .show-none { color: var(--show-muted); line-height: 1.7; }
.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.6rem;
}
.show-card {
  display: flex;
  flex-direction: column;
  background: var(--show-card);
  border: 1px solid rgba(20, 48, 42, 0.06);
  border-radius: 20px;
  overflow: hidden;
  color: var(--show-ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(18, 37, 31, 0.05);
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.show-card[hidden] { display: none; }
.show-card:hover {
  color: var(--show-ink);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(18, 37, 31, 0.1);
}
.show-photo { display: block; aspect-ratio: 4 / 3; background: #e8eee9; overflow: hidden; }
.show-photo img, .show-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.show-card:hover .show-photo img { transform: scale(1.04); }
.show-photo b, .show-mark {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: "El Messiri", sans-serif;
  font-size: 2.4rem;
  color: var(--show-green);
}
.show-copy { display: grid; gap: 0.2rem; padding: 0.95rem 1rem 1.05rem; }
.show-copy em { font-style: normal; color: #9a7a3f; font-size: 0.8rem; font-weight: 700; }
.show-copy strong { font-size: 1.06rem; line-height: 1.35; }
.show-card.service {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  width: 100%;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  border: 1px solid rgba(20, 48, 42, 0.08);
}
.show-card.service.picked {
  border-color: var(--show-green);
  box-shadow: 0 0 0 1px var(--show-green) inset, 0 18px 40px rgba(18, 37, 31, 0.08);
}
.show-card.service .show-copy { padding: 0; flex: 1; }
.show-pick {
  margin-inline-start: auto;
  border-radius: 999px;
  background: var(--show-green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  flex: none;
}
.show-mark {
  width: 64px; height: 64px; flex: none; border-radius: 18px;
  background: #eef3f0; font-size: 1.55rem;
}
.show-order.service-panel {
  margin: 0.35rem 0 1.8rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--show-line);
  border-radius: 20px;
  animation: showRise 0.35s ease both;
}
.show-order.service-panel[hidden] { display: none !important; }
.show-order.service-panel .panel-head { margin-bottom: 0.75rem; }
.show-order.service-panel .panel-head h2 { margin: 0 0 0.25rem; font-size: 1.15rem; font-family: "El Messiri", sans-serif; }
.show-order.service-panel .panel-head p { margin: 0; color: var(--show-muted); }
.show-none { padding: 0 6vw 2.4rem; }
.show-foot {
  align-items: start;
  color: var(--show-muted);
  padding-block: 1.6rem 2.4rem;
  border-top: 1px solid var(--show-line);
  margin-top: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(20, 48, 42, 0.035));
}
@media (max-width: 700px) {
  .show-foot { flex-direction: column; gap: 1.25rem; }
  .show-foot-links { justify-items: start; width: 100%; }
  .show-social { justify-content: flex-start; }
  .show-foot-wa { text-align: start; width: 100%; }
}
.show-item { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.6rem; padding: 1.6rem 6vw 3rem; }
.show-back { grid-column: 1 / -1; color: var(--show-green); font-weight: 700; }
.show-gallery { display: grid; gap: 0.6rem; align-content: start; }
.show-main { border-radius: 18px; aspect-ratio: 4 / 3; background: #e8eee9; }
.show-slider { position: relative; overflow: hidden; border-radius: 20px; background: #111; aspect-ratio: 4 / 3; direction: ltr; }
.show-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.show-track img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: contain; background: #111; }
.show-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #14302a;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.show-arrow.prev { left: 0.7rem; }
.show-arrow.next { right: 0.7rem; }
.show-count {
  position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%);
  background: rgba(20,48,42,0.78); color: #fff; border-radius: 999px;
  padding: 0.15rem 0.6rem; font-size: 0.8rem;
}
.show-order { display: grid; gap: 0.55rem; margin-top: 1.1rem; padding: 1rem; background: #fff; border: 1px solid var(--show-line); border-radius: 18px; }
.show-order .panel-head h2 { margin: 0 0 0.2rem; font-family: "El Messiri", sans-serif; font-size: 1.15rem; }
.show-order .panel-head p { margin: 0 0 0.35rem; color: var(--show-muted); }
.show-order label { display: grid; gap: 0.25rem; font-weight: 700; }
.show-order input { border: 1px solid var(--show-line); border-radius: 12px; padding: 0.7rem 0.85rem; font: inherit; }
.show-order button {
  border: 0; border-radius: 999px; background: var(--show-green); color: #fff;
  font: inherit; font-weight: 700; padding: 0.85rem 1rem; cursor: pointer;
}
.show-done { margin: 0; padding: 0.9rem 6vw; background: #e7f2ec; color: #14302a; font-weight: 700; }
.show-done.bad { background: #f8e8e6; color: #8d3a32; }
.show-photo.tall { aspect-ratio: 4 / 3; border-radius: 20px; }
.show-thumbs { display: flex; gap: 0.45rem; }
.show-thumbs button { width: 74px; height: 74px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; }
.show-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.show-spec em { font-style: normal; color: #9a7a3f; font-weight: 700; }
.show-spec h1 { margin: 0.2rem 0 0.6rem; font-family: "El Messiri", sans-serif; }
.show-spec h2 { font-family: "El Messiri", sans-serif; font-size: 1.15rem; }
.show-spec p { white-space: pre-wrap; color: #3d4944; }
.show-spec table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.show-spec th, .show-spec td { text-align: start; padding: 0.7rem 0.85rem; border-bottom: 1px solid #efeae2; }
.show-spec th { color: var(--show-muted); font-weight: 700; }
@keyframes showRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes showKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .show-hero-media img,
  .show-hero-copy { animation: none; }
}
@media (max-width: 860px) {
  .show-item { grid-template-columns: 1fr; }
  .show-hero { min-height: auto; }
  .show-hero-copy { padding: 2.2rem 1rem 2.4rem; }
  .show-tools, .show-block, .show-bar, .show-foot, .show-item, .show-none, .show-done { padding-inline: 1rem; }
}

.main-nav a.nav-review, .main-nav a.nav-wa { position: relative; }
.main-nav a .nav-count {
  position: absolute;
  top: -0.45rem;
  inset-inline-end: -0.2rem;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  min-width: 1.2rem;
  padding: 0 0.32rem;
  font-size: 0.72rem;
  line-height: 1.2rem;
  text-align: center;
}
.main-nav a:hover .nav-count,
.main-nav a.active .nav-count { color: #fff; background: var(--gold); }
.main-nav a .nav-count.msg,
.main-nav a:hover .nav-count.msg,
.main-nav a.active .nav-count.msg { background: #25d366; color: #fff; }
.nav-count[hidden] { display: none; }

body.wa-screen { background: #d1d7db; }
body.wa-screen .site-foot { display: none; }
body.wa-screen .page {
  width: 100%;
  padding: 0;
  height: calc(100dvh - 72px);
  overflow: hidden;
}
.wa-app { display: flex; height: 100%; background: #fff; }
.wa-side {
  width: 400px;
  max-width: 38%;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-inline-end: 1px solid #e9edef;
}
.wa-side-head {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: #f0f2f5;
  color: #111b21;
  flex: none;
}
.wa-side-head strong { font-size: 1.2rem; }
.wa-side-search { padding: 0.4rem 0.75rem 0.55rem; background: #fff; flex: none; }
.wa-side-search input {
  width: 100%;
  border: 0;
  background: #f0f2f5;
  border-radius: 8px;
  padding: 0.48rem 0.8rem;
  color: #111b21;
}
.wa-side .wa-chats {
  flex: 1;
  overflow: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.wa-chats a.wa-row.on,
.wa-chats a.wa-row.on:hover { background: #f0f2f5; }
.wa-chats a.wa-row[hidden] { display: none; }
.wa-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  background: #efeae2;
}
.wa-stage-empty { margin: auto; text-align: center; color: #667781; }
.wa-stage-empty strong { display: block; color: #41525d; font-size: 2rem; margin-bottom: 0.35rem; }
.wa-stage .wa {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.wa-back {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #54656f;
  text-decoration: none;
  font-size: 1.35rem;
}
.wa-top a.wa-icon { display: grid; place-items: center; text-decoration: none; }
.wa-top a.wa-icon:hover { color: #54656f; }
.wa-hook { border-top: 1px solid #e9edef; padding: 0.5rem 0.8rem 0.7rem; color: #667781; font-size: 0.78rem; }
.wa-hook summary { cursor: pointer; color: #111b21; font-weight: 700; }
.wa-hook input { margin-top: 0.4rem; }
.wa-hook p { margin: 0.35rem 0 0; }

@media (max-width: 860px) {
  body.wa-screen .page { height: calc(100dvh - 64px); }
  .wa-side { width: 100%; max-width: none; }
  .wa-app.has-chat .wa-side { display: none; }
  .wa-app:not(.has-chat) .wa-stage { display: none; }
  .wa-back { display: grid; }
}
