/* ============================================================
   Ziyava HQ — concept page (crm.html only).
   Everything here is additive; deleting crm.html + this file +
   crm.js removes the concept cleanly.
   ============================================================ */

/* ---------------- nav additions ---------------- */

.nav__links a.is-active { color: var(--green); }

/* ---------------- hero ---------------- */

.hero--crm { padding-bottom: 84px; }

.crm-hero__copy { max-width: 720px; }

/* ---------------- stage + scaling frame ---------------- */

.crm-stage {
  position: relative;
  margin-top: 64px;
}

.crm-frame {
  width: 100%;
  overflow-x: auto;          /* no-JS fallback: scroll the mock */
  overflow-y: hidden;
  border-radius: 22px;
}
.crm-frame.is-scaled { overflow: hidden; }

.crm-canvas {
  width: 1060px;
  margin-inline: auto;   /* centered when the container is wider */
  transform-origin: top left;
}

/* ---------------- window chrome ---------------- */

.win {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(240, 244, 238, 0.12);
  background: #0C1310;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 90px -40px rgba(46, 210, 115, 0.3);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: #101813;
  border-bottom: 1px solid var(--line-soft);
}
.win__dots { display: inline-flex; gap: 6px; }
.win__dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #29332C;
}
.win__url {
  margin-inline: auto;
  padding: 5px 18px;
  border-radius: 8px;
  background: #0A0F0C;
  border: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.win__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.win__live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(58, 223, 124, 0.5);
  animation: livepulse 2s infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(58, 223, 124, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(58, 223, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 223, 124, 0); }
}

/* ---------------- app layout ---------------- */

.app {
  position: relative;
  display: grid;
  grid-template-columns: 192px 1fr 274px;
  height: 612px;
  font-size: 12.5px;
}

/* ----- sidebar ----- */

.app__side {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-right: 1px solid var(--line-soft);
  background: #0E1511;
}

.side__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.side__brand svg { width: 20px; height: 20px; }
.side__brand b { color: var(--green); }

.side__nav { display: grid; gap: 3px; }
.side__nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--dim);
  font-weight: 500;
  cursor: default;
}
.side__nav a svg { width: 15px; height: 15px; flex: none; }
.side__nav a.is-active {
  background: var(--green-dim);
  color: var(--green);
}
.side__count {
  margin-left: auto;
  min-width: 16px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 122, 107, 0.18);
  color: var(--red);
  font-size: 9.5px;
  font-weight: 700;
  font-style: normal;
  text-align: center;
}

.side__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line-soft);
}
.side__user i {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ADF7C, #147A4B);
  color: #05230F;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
}
.side__user b { display: block; font-size: 12px; line-height: 1.2; }
.side__user span { font-size: 10.5px; color: var(--dim); }

/* ----- main column ----- */

.app__main {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.app__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.top__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #121B15;
  border: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 12px;
}
.top__search svg { width: 14px; height: 14px; }
.top__search em {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-style: normal;
  color: var(--dim);
}
.top__date { color: var(--dim); font-size: 12px; white-space: nowrap; }
.top__bell { position: relative; color: var(--muted); }
.top__bell svg { width: 17px; height: 17px; }
.top__bell i {
  position: absolute;
  top: -1px; right: -1px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #0C1310;
}
.top__avatar {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22302818;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* ----- KPI row ----- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  padding: 11px 13px;
  border-radius: 13px;
  background: #121B15;
  border: 1px solid var(--line-soft);
}
.kpi--alert { border-color: rgba(255, 122, 107, 0.28); }
.kpi__label {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  white-space: nowrap;
}
.kpi strong {
  display: block;
  font-family: var(--font-disp);
  font-weight: 560;
  font-size: 23px;
  line-height: 1.1;
}
.kpi__delta, .kpi__sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-style: normal;
  color: var(--dim);
  white-space: nowrap;
}
.kpi__delta { color: var(--green); }
.kpi__sub svg { width: 12px; height: 12px; }
.kpi__sub b { color: var(--green); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--red { background: var(--red); }

/* ----- panels ----- */

.panel {
  border-radius: 13px;
  background: #121B15;
  border: 1px solid var(--line-soft);
  padding: 12px 13px;
}
.panel__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.panel__head b { font-size: 12.5px; }
.panel__head span { font-size: 10.5px; color: var(--dim); margin-left: auto; }

/* ----- timeline ----- */

.tl {
  display: flex;
  gap: 8px;
}
.tl__slot { flex: 1; min-width: 0; }
.tl__slot > span {
  display: block;
  font-size: 10px;
  color: var(--dim);
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 1px dashed var(--line);
}

.bk {
  padding: 7px 8px;
  border-radius: 9px;
  background: #16211A;
  border: 1px solid var(--line-soft);
  border-left: 2px solid #3A4A40;
}
.bk b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk em {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk--wa { border-left-color: var(--green); }
.bk--vip {
  border-color: rgba(231, 181, 77, 0.4);
  border-left: 2px solid var(--gold);
  background: rgba(231, 181, 77, 0.07);
}
.bk--muted { opacity: 0.62; }
.bk--free {
  border-style: dashed;
  background: transparent;
  text-align: center;
}
.bk--free b { color: var(--dim); font-weight: 500; }

/* the booking that "just arrived" via Ziyava */
.bk--new {
  border-left-color: var(--green);
  box-shadow: 0 0 0 1px rgba(58, 223, 124, 0.35), 0 6px 18px -8px rgba(58, 223, 124, 0.45);
}
.js .bk--new { opacity: 0; transform: scale(0.85); }
.js .bk--new.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

/* ----- needs you ----- */

.need {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
}
.need + .need { border-top: 1px solid var(--line-soft); }
.need__badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 122, 107, 0.16);
  color: var(--red);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.need__badge--soft { background: rgba(231, 181, 77, 0.14); color: var(--gold); }
.need__txt { min-width: 0; }
.need__txt b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.need__txt span {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.need__act {
  flex: none;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(58, 223, 124, 0.4);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ----- right rail ----- */

.app__rail {
  padding: 12px;
  border-left: 1px solid var(--line-soft);
  background: #0E1511;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.guest { transition: box-shadow 0.5s ease, border-color 0.5s ease; }
.guest.is-hot {
  border-color: rgba(231, 181, 77, 0.5);
  box-shadow: 0 0 26px -8px rgba(231, 181, 77, 0.45);
}

.guest__head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.guest__head i {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7B54D, #B37B22);
  color: #241703;
  font-weight: 700;
  font-style: normal;
  font-size: 13px;
}
.guest__head b { display: block; font-size: 13px; line-height: 1.25; }
.guest__vip { font-size: 10px; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; }

.guest__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 9px;
}

.guest__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.tag--warn { background: rgba(255, 122, 107, 0.14); color: var(--red); }

.guest__note {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}
.guest__src {
  font-size: 9.5px;
  color: var(--dim);
  margin-bottom: 10px;
}
.guest__src b { color: var(--muted); font-weight: 500; }
.guest__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4CE98C, #1FBE68);
  color: var(--green-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.guest__cta svg { width: 14px; height: 14px; }

/* ----- floor plan ----- */

.floor__tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.floor__tab {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
}
.floor__tab.is-active {
  background: var(--green-dim);
  border-color: transparent;
  color: var(--green);
}
.floor__edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px dashed rgba(58, 223, 124, 0.45);
  border-radius: 999px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 600;
}
.floor__edit svg { width: 11px; height: 11px; }

.floor__canvas {
  position: relative;
  height: 176px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(236, 242, 233, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 242, 233, 0.025) 1px, transparent 1px),
    #0E1611;
  background-size: 22px 22px, 22px 22px, auto;
}

.floor__tools {
  position: absolute;
  bottom: 6px; right: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.floor__tools span {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px dashed var(--line);
  color: var(--dim);
  font-size: 9.5px;
  background: rgba(10, 15, 12, 0.6);
}

.tbl {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #141E17;
  border: 1.5px solid #39493F;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
.tbl small { font-size: 8.5px; font-weight: 500; color: inherit; opacity: 0.85; }
.tbl--round { border-radius: 50%; }
.tbl--bar {
  border-radius: 7px;
  background: #101812;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.tbl--seated {
  background: rgba(58, 223, 124, 0.16);
  border-color: var(--green);
  color: #CFF5DD;
}
.tbl--later {
  background: rgba(231, 181, 77, 0.09);
  border-color: var(--gold);
  color: var(--gold);
}
.tbl--room {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.tbl--room small { color: var(--dim); }
.tbl--edit {
  border-style: dashed;
  border-color: var(--green);
  color: var(--green);
}
.tbl--edit::before, .tbl--edit::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 1.5px;
}
.tbl--edit::before { top: -4px; left: -4px; }
.tbl--edit::after { bottom: -4px; right: -4px; }

/* a WhatsApp booking landing on the floor, live */
.tbl.is-booked {
  background: rgba(231, 181, 77, 0.09);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px -4px rgba(231, 181, 77, 0.55);
  transition: background 0.45s ease, border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.floor__legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--dim);
}
.floor__legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg {
  width: 9px; height: 9px;
  display: inline-block;
  border-radius: 3px;
  border: 1.5px solid #39493F;
}
.lg--seated { background: rgba(58, 223, 124, 0.3); border-color: var(--green); }
.lg--later { background: rgba(231, 181, 77, 0.2); border-color: var(--gold); }
.lg--open { background: transparent; }
.lg--edit { border-style: dashed; border-color: var(--green); }
.floor__hint {
  margin-left: auto;
  font-weight: 500;
  font-style: italic;
  color: var(--dim);
}

/* ----- in-app live toast ----- */

.app-toast {
  position: absolute;
  right: 292px;
  bottom: 172px;   /* floats over the floor canvas, clear of the timeline */
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 330px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(14, 21, 17, 0.96);
  border: 1px solid rgba(58, 223, 124, 0.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  pointer-events: none;
}
.app-toast.is-on { opacity: 1; transform: none; }
.app-toast svg { width: 17px; height: 17px; flex: none; }

/* ---------------- floating callouts ---------------- */

.callout {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(17, 26, 20, 0.92);
  border: 1px solid rgba(58, 223, 124, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.callout span { font-size: 15px; }

.callout--1 { top: -17px; left: 6%; }
.callout--2 { top: -17px; right: 13%; border-color: rgba(231, 181, 77, 0.4); }
.callout--3 { bottom: -17px; left: 14%; }

/* ---------------- flow: three sources, one memory ---------------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.flow__sources { display: grid; gap: 16px; }

.flow__src {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
}
.flow__src::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -49px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(58, 223, 124, 0.5), rgba(58, 223, 124, 0.06));
}
.flow__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-dim);
  font-size: 19px;
}
.flow__src b { display: block; font-size: 15px; margin-bottom: 4px; }
.flow__src p { margin: 0; font-size: 13px; color: var(--muted); }

.flow__profile {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(150deg, rgba(231, 181, 77, 0.55), rgba(76, 233, 140, 0.35), rgba(231, 181, 77, 0.08)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
}
.flow__phead { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.flow__phead i {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #E7B54D, #B37B22);
  color: #241703;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
}
.flow__phead b { display: block; font-size: 17px; }
.flow__phead span { font-size: 12.5px; color: var(--gold); }

.flow__profile ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; }
.flow__profile li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.flow__profile li span { font-size: 14px; color: var(--text); }
.flow__profile li em {
  flex: none;
  font-size: 11px;
  font-style: normal;
  color: var(--dim);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.flow__pfoot { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------------- features 2-col + works strip ---------------- */

.cards--2col { grid-template-columns: 1fr 1fr; }

.works {
  margin: 44px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}
.works b { color: var(--muted); font-weight: 500; }

/* ---------------- responsive ---------------- */

@media (max-width: 1120px) {
  .callout { display: none; }
}

@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow__src::after { display: none; }
}

@media (max-width: 980px) {
  .crm-stage { margin-top: 48px; }
}

@media (max-width: 720px) {
  .cards--2col { grid-template-columns: 1fr; }
  .flow__profile { padding: 22px 18px; }
  .flow__profile li span { font-size: 13px; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .win__live i { animation: none; }
  .js .bk--new { opacity: 1; transform: none; }
  .app-toast { transition: none; }
}
