/* Tier layer — widgets injected into the demo sites themselves so each tier is
   visibly different in-page (and in full-screen). All classes prefixed tl-. */

.tl { --tl-accent: #7c3aed; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.tl *, .tl *::before, .tl *::after { box-sizing: border-box; }
.tl button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- tier ribbon + switcher (always present) ---------- */
.tl-ribbon {
  position: fixed; bottom: 14px; left: 14px; z-index: 99990;
  display: flex; align-items: center; gap: 8px;
  background: #14121f; color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 12px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.tl-ribbon .tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tl-accent); }
.tl-ribbon .tl-pills { display: flex; gap: 3px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.tl-ribbon .tl-pill { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); }
.tl-ribbon .tl-pill.on { background: var(--tl-accent); color: #fff; }

/* ---------- hello bar (top campaign strip, top tier only) ---------- */
.tl-hello {
  position: relative; z-index: 99980; background: var(--tl-accent); color: #fff;
  text-align: center; font-size: 13px; font-weight: 600; padding: 8px 40px 8px 14px;
}
.tl-hello a { color: #fff; text-decoration: underline; }
.tl-hello .tl-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.8); font-size: 16px; padding: 4px 8px; }

/* ---------- utility top bar (Tier 3: locations + staff dashboard) ---------- */
.tl-topbar {
  position: relative; z-index: 99980; display: flex; align-items: center; gap: 14px;
  background: #14121f; color: #e7e5f0; font-size: 12.5px; padding: 7px 16px;
}
.tl-topbar .tl-loc { position: relative; }
.tl-topbar .tl-loc > button { display: inline-flex; align-items: center; gap: 6px; color: #e7e5f0; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.08); }
.tl-topbar .tl-loc-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background: #1d1a2e; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 5px; display: none; box-shadow: 0 10px 32px rgba(0,0,0,.4); }
.tl-topbar .tl-loc-menu.open { display: block; }
.tl-topbar .tl-loc-menu button { display: block; width: 100%; text-align: left; color: #e7e5f0; font-size: 12.5px; padding: 7px 10px; border-radius: 7px; }
.tl-topbar .tl-loc-menu button:hover, .tl-topbar .tl-loc-menu button.on { background: rgba(124,58,237,.25); }
.tl-topbar .tl-dash { margin-left: auto; color: #c4b5fd; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.tl-topbar .tl-dash:hover { color: #fff; }

/* ---------- floating launchers ---------- */
.tl-fab {
  position: fixed; z-index: 99991; display: flex; align-items: center; gap: 9px;
  border-radius: 999px; padding: 12px 18px; color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); transition: transform .15s ease;
}
.tl-fab:hover { transform: scale(1.05); }
.tl .tl-fab-wa { right: 18px; bottom: 84px; background: #25d366; }
.tl .tl-fab-chat { right: 18px; bottom: 18px; background: var(--tl-accent); }
.tl-fab svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- sticky book bar ---------- */
.tl-bookbar {
  position: fixed; z-index: 99989; left: 50%; transform: translateX(-50%); bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  background: #14121f; color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  font-size: 13px; max-width: calc(100vw - 240px);
}
.tl-bookbar b { font-weight: 700; white-space: nowrap; }
.tl-bookbar button { background: var(--tl-accent); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
@media (max-width: 720px) { .tl-bookbar { display: none; } }

/* ---------- panels (chat / whatsapp / booking) ---------- */
.tl-panel {
  position: fixed; z-index: 99995; right: 16px; bottom: 16px;
  width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 60px));
  background: #0f0d18; border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.tl-panel.open { display: flex; }
.tl-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.tl-panel-head .tl-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; background: var(--tl-accent); flex: none; }
.tl-panel-head .tl-who { min-width: 0; }
.tl-panel-head .tl-who b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-panel-head .tl-who span { color: #6ee7b7; font-size: 11px; }
.tl-panel-head .tl-close { margin-left: auto; color: rgba(255,255,255,.6); font-size: 18px; padding: 4px 8px; }
.tl-panel-head .tl-demo-tag { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: #c4b5fd; border: 1px solid rgba(168,85,247,.4); border-radius: 999px; padding: 3px 8px; }
.tl-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.tl-msg { max-width: 85%; border-radius: 14px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5; color: #eceaf4; }
.tl-msg.bot { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 5px; }
.tl-msg.user { align-self: flex-end; background: var(--tl-accent); border-bottom-right-radius: 5px; }
.tl-msg.evt { align-self: center; background: rgba(255,255,255,.05); color: #9b97ad; font-size: 11px; border-radius: 8px; text-align: center; }
.tl-wa .tl-msg.bot { background: #1f2c34; } .tl-wa .tl-msg.user { background: #005c4b; }
.tl-wa { background: #0b141a; } .tl-wa .tl-panel-head { background: #1f2c34; }
.tl-typing { align-self: flex-start; color: #8a8698; font-size: 12px; padding: 8px 12px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 14px; }
.tl-chips button { border: 1px solid rgba(168,85,247,.45); background: rgba(124,58,237,.14); color: #d4c8f5; border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; }
.tl-chips button:hover { background: rgba(124,58,237,.3); color: #fff; }

/* ---------- booking slots ---------- */
.tl-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.tl-slots button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #d9d6e4; border-radius: 10px; padding: 11px 6px; font-size: 12px; font-weight: 600; }
.tl-slots button:hover { border-color: var(--tl-accent); color: #fff; }
.tl-book-done { padding: 26px 20px; text-align: center; color: #d9d6e4; font-size: 13px; line-height: 1.6; }
.tl-book-done .tl-check { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: rgba(52,211,153,.15); color: #6ee7b7; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tl-book-done b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.tl-note { padding: 0 14px 12px; color: #77738a; font-size: 10.5px; text-align: center; }

/* ---------- review toasts ---------- */
.tl-toast {
  position: fixed; z-index: 99988; left: 16px; bottom: 64px;
  width: min(300px, calc(100vw - 32px));
  background: #14121f; border: 1px solid rgba(255,255,255,.13); border-radius: 14px;
  padding: 12px 14px; color: #d9d6e4; box-shadow: 0 10px 32px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none;
}
.tl-toast.show { opacity: 1; transform: translateY(0); }
.tl-toast .tl-stars { color: #fbbf24; font-size: 12px; letter-spacing: 2px; margin-bottom: 4px; }
.tl-toast .tl-rev { font-size: 12px; line-height: 1.5; }
.tl-toast .tl-by { margin-top: 5px; font-size: 11px; color: #8a8698; font-weight: 600; }
