/* =============================================================================
   onboarding.css — Hướng dẫn animation (đăng ký · đăng nhập · kết nối Zalo / OA / Facebook)
   -----------------------------------------------------------------------------
   Phần 1: khung trình phát   (.ob-root, .ob-card, .ob-head, .ob-body, .ob-cap, .ob-foot …)
   Phần 2: gạch dựng cảnh     (.ob-type .ob-show .ob-win .ob-field .ob-btn .ob-toast .ob-check .ob-ico .ob-qr .ob-phone)
   Phần 3: nút mở hướng dẫn   (.ob-launch — dùng ở trang đăng nhập, trang chủ, hộp thêm kênh …)
   CSS riêng từng cảnh: scenes/<id>.css (nạp khi cảnh được mở). Mọi lớp / keyframes đều tiền tố "ob" để không đụng CSS cũ.
   Quy ước animation: chỉ đổi opacity / translate / scale (chạy trên GPU); dùng thuộc tính riêng `translate` / `scale`
   (không dùng `transform`) để không ghi đè transform tác giả đặt cho phần tử.
   ============================================================================= */

/* ============================== PHẦN 1 — KHUNG TRÌNH PHÁT ============================== */
.ob-root {
  --ob-blue: #0068ff;
  --ob-blue-d: #0056d6;
  --ob-blue-50: #eef5ff;
  --ob-blue-100: #dbe9ff;
  --ob-ink: #081c36;
  --ob-text: #334155;
  --ob-muted: #64748b;
  --ob-line: #e2e8f0;
  --ob-bg: #f6f8fb;
  --ob-green: #0bcb6b;
  --ob-green-d: #08a457;
  --ob-orange: #fa8c16;
  --ob-red: #f5222d;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: fixed;
  inset: 0;
  /* Trên mọi lớp có sẵn của app: modal (1000), cẩm nang (9500-9850), lightbox (10001), toast + modal "tính năng nâng cao" (10050).
     Khi chạy trên localhost / 192.168.* còn có thanh "Bộ công cụ Test" của SubscriptionRenewalModal (10095) nằm góc trái dưới,
     đè lên nút "Bỏ qua / Đóng" nếu hướng dẫn thấp hơn → đặt 10100. (Modal hết hạn 10080 chặn người dùng nên không mở được hướng dẫn.) */
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: var(--ob-text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.ob-root *,
.ob-root *::before,
.ob-root *::after {
  box-sizing: border-box;
}
html.ob-open,
html.ob-open body {
  overflow: hidden !important;
}
.ob-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ob-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 54, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: obFade 0.25s ease both;
}
.ob-card {
  position: relative;
  width: min(1080px, 100%);
  height: min(664px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* không có dòng này, hàng tab dài làm card rộng hơn màn hình */
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(8, 28, 54, 0.4);
  animation: obCardIn 0.4s var(--ease) both;
}
.ob-card:focus {
  outline: none;
}

/* ---- Đầu: logo · các bước (có thanh tiến độ) · nút đóng ---- */
.ob-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 14px 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--ob-line);
}
.ob-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ob-ink);
  white-space: nowrap;
}
.ob-brand img {
  display: block;
  height: 22px;
  width: auto;
}
.ob-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.ob-tabs::-webkit-scrollbar {
  display: none;
}
.ob-tabs li {
  flex: 1 1 0;
  min-width: 0;
}
.ob-tab {
  position: relative;
  width: 100%;
  height: 46px;
  padding: 0 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ob-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.ob-tab i.ph {
  font-size: 16px;
  flex: none;
}
.ob-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-tab:hover {
  background: var(--ob-bg);
  color: var(--ob-ink);
}
.ob-tab.is-active {
  color: var(--ob-blue);
}
.ob-tab.is-done {
  color: var(--ob-green-d);
}
.ob-tab:focus-visible,
.ob-ibtn:focus-visible,
.ob-skip:focus-visible,
.ob-next:focus-visible,
.ob-try:focus-visible,
.ob-close:focus-visible,
.ob-cap-steps li:focus-visible {
  outline: 2px solid var(--ob-blue);
  outline-offset: 2px;
}
.ob-tab-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 3px;
  border-radius: 3px;
  background: #e8eef6;
  overflow: hidden;
}
.ob-tab-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ob-blue);
  transform: scaleX(0);
  transform-origin: left center;
}
.ob-tab.is-active .ob-tab-fill {
  animation: obFill var(--dur, 8s) linear both;
}
.ob-tab.is-done .ob-tab-fill {
  transform: scaleX(1);
  background: var(--ob-green);
}
.ob-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ob-muted);
  font-size: 19px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.ob-close:hover {
  background: var(--ob-bg);
  color: var(--ob-ink);
}

/* ---- Thân: sân khấu (trái) + lời hướng dẫn (phải) ---- */
.ob-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  min-height: 0;
}
.ob-stage-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #eaf2ff;
}
.ob-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 95% at 12% 0%, #fbfdff 0%, #eaf2ff 52%, #dfeaff 100%);
}
.ob-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 104, 255, 0.14) 1.1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
}
.ob-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 420px;
  margin: -210px 0 0 -320px;
  transform: scale(var(--ob-k, 1));
  transform-origin: center center;
  transition: opacity 0.2s ease;
}
.ob-stage.is-out .ob-world {
  opacity: 0;
  transition-duration: 0.15s;
}
.ob-scene {
  position: absolute;
  inset: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ob-text);
}
.ob-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ob-loading .ob-spin,
.ob-qr-load .ob-spin {
  width: 26px;
  height: 26px;
  border-width: 3px;
  border-color: #cfe0ff;
  border-top-color: var(--ob-blue);
}
.ob-loadfail {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: var(--ob-muted);
  font-size: 13px;
}

/* con trỏ chuột minh hoạ (player dựng đường đi từ các phần tử data-ob-click) */
.ob-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
}
.ob-cursor-img {
  position: absolute;
  left: -3px;
  top: -2px;
  width: 24px;
  height: 24px;
  transform-origin: 3px 2px;
  filter: drop-shadow(0 2px 3px rgba(8, 28, 54, 0.38));
}
.ob-ripple {
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ob-blue);
  background: rgba(0, 104, 255, 0.16);
  opacity: 0;
}

/* ---- Lời hướng dẫn ---- */
.ob-cap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 22px 24px 16px;
  overflow-y: auto;
  border-left: 1px solid var(--ob-line);
  background: #fff;
  overscroll-behavior: contain;
}
.ob-cap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--ob-blue-50);
  color: var(--ob-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ob-cap-kicker i {
  font-size: 14px;
}
.ob-cap-title {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.012em;
  color: var(--ob-ink);
}
.ob-cap-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ob-muted);
}
.ob-cap-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.ob-cap-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.42;
  color: #64748b;
  cursor: pointer;
  opacity: 0.58;
  animation:
    obCapOn 0.45s ease var(--at, 0ms) both,
    obCapDone 0.5s ease var(--next, 99999s) forwards;
}
.ob-cap-steps li:hover {
  background: var(--ob-bg);
}
.ob-cap-num {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eef6;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  animation:
    obNumOn 0.45s ease var(--at, 0ms) both,
    obNumDone 0.5s ease var(--next, 99999s) forwards;
}
.ob-cap-steps b {
  color: var(--ob-ink);
  font-weight: 650;
}
.ob-try {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--ob-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--ob-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.ob-try:hover {
  background: var(--ob-blue);
  color: #fff;
}
.ob-cap-tip {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid #ffe6a8;
  border-radius: 12px;
  background: #fff9e8;
  color: #7a4d00;
  font-size: 12px;
  line-height: 1.45;
}
.ob-cap-tip i {
  flex: none;
  margin-top: 1px;
  font-size: 16px;
  color: #e69500;
}

/* ---- Chân: bỏ qua · điều khiển · tiếp ---- */
.ob-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 18px;
  background: #fff;
  border-top: 1px solid var(--ob-line);
}
.ob-skip {
  flex: 1 1 0;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ob-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ob-skip:hover {
  color: var(--ob-ink);
}
.ob-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-ibtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ob-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ob-ink);
  font-size: 18px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    opacity 0.15s;
}
.ob-ibtn:hover:not(:disabled) {
  background: var(--ob-bg);
  border-color: #cbd5e1;
}
.ob-ibtn:disabled {
  opacity: 0.4;
  cursor: default;
}
.ob-ibtn.is-main {
  width: 46px;
  height: 46px;
  border-color: var(--ob-blue);
  background: var(--ob-blue);
  color: #fff;
  font-size: 20px;
}
.ob-ibtn.is-main:hover:not(:disabled) {
  background: var(--ob-blue-d);
  border-color: var(--ob-blue-d);
}
.ob-foot-r {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.ob-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: var(--ob-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.28);
  transition: background-color 0.15s;
}
.ob-next:hover {
  background: var(--ob-blue-d);
}
.ob-next.is-finish {
  animation: obNudge 1.6s ease-in-out 0.3s 3;
}

/* ---- Trạng thái ---- */
.ob-root.is-paused:not(.is-reduced) *,
.ob-root.is-paused:not(.is-reduced) *::before,
.ob-root.is-paused:not(.is-reduced) *::after,
.ob-root.is-booting *,
.ob-root.is-booting *::before,
.ob-root.is-booting *::after {
  animation-play-state: paused !important;
}
/* đo vị trí phần tử bấm: bỏ hết animation để thấy bố cục thật */
.ob-root.is-measuring .ob-scene,
.ob-root.is-measuring .ob-scene *,
.ob-root.is-measuring .ob-scene *::before,
.ob-root.is-measuring .ob-scene *::after {
  animation: none !important;
  transition: none !important;
}

/* ---- Màn nhỏ ---- */
@media (max-width: 860px) {
  .ob-root {
    padding: 0;
    align-items: stretch;
  }
  .ob-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .ob-head {
    flex-wrap: wrap;
    gap: 0 8px;
    min-height: 0;
    padding: 8px 8px 0 14px;
  }
  .ob-brand {
    flex: 1;
    height: 38px;
  }
  .ob-close {
    order: 2;
  }
  .ob-tabs {
    order: 3;
    flex: 1 0 100%;
    gap: 3px;
    padding: 4px 0 0;
    margin: 0 -8px 0 -14px;
    padding-left: 10px;
    padding-right: 8px;
    scroll-snap-type: x proximity;
  }
  .ob-tabs li {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .ob-tab {
    height: 40px;
    padding: 0 10px 6px;
    font-size: 12.5px;
  }
  .ob-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
  }
  .ob-stage-wrap {
    aspect-ratio: 640 / 420;
    width: 100%;
  }
  .ob-cap {
    border-left: 0;
    border-top: 1px solid var(--ob-line);
    padding: 16px 16px 14px;
    overflow: visible;
  }
  .ob-cap-title {
    font-size: 19px;
  }
  .ob-foot {
    min-height: 62px;
    gap: 6px;
    padding: 0 12px calc(env(safe-area-inset-bottom, 0px));
  }
  .ob-skip span {
    display: none;
  }
  .ob-skip {
    flex: 0 0 auto;
    width: 40px;
    justify-content: center;
    padding: 0;
  }
  .ob-skip i {
    font-size: 18px;
  }
  .ob-next {
    height: 40px;
    padding: 0 14px;
    font-size: 13.5px;
  }
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .ob-body {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  .ob-stage-wrap {
    aspect-ratio: auto;
    height: 100%;
  }
  .ob-cap {
    overflow-y: auto;
    border-top: 0;
    border-left: 1px solid var(--ob-line);
  }
  .ob-head {
    padding-top: 4px;
  }
  .ob-brand {
    height: 30px;
  }
}

/* ---- Giảm chuyển động: mọi animation nhảy thẳng tới khung hình cuối (kết quả của cảnh); chữ hướng dẫn vẫn đủ ---- */
@media (prefers-reduced-motion: reduce) {
  /* 1ms (không phải ~0): animation vẫn CHẠY xong trong 1–2 khung hình nên ra đúng khung hình kết quả ở mọi trình duyệt;
     khi bị dừng (paused) ở t=0 thì tuỳ trình duyệt sẽ ra khung hình ĐẦU — vì vậy .is-paused không áp dụng ở chế độ này. */
  .ob-root *,
  .ob-root *::before,
  .ob-root *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .ob-cursor {
    display: none;
  }
}

/* ---- Keyframes của khung ---- */
@keyframes obFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes obCardIn {
  from {
    opacity: 0;
    translate: 0 18px;
    scale: 0.985;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes obFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes obCapOn {
  from {
    opacity: 0.58;
    background: transparent;
    border-color: transparent;
    color: #64748b;
  }
  to {
    opacity: 1;
    background: var(--ob-blue-50);
    border-color: #cfe0ff;
    color: #1e293b;
  }
}
@keyframes obCapDone {
  from {
    background: var(--ob-blue-50);
    border-color: #cfe0ff;
  }
  to {
    background: transparent;
    border-color: transparent;
  }
}
@keyframes obNumOn {
  from {
    background: #e8eef6;
    color: #64748b;
  }
  to {
    background: var(--ob-blue);
    color: #fff;
  }
}
@keyframes obNumDone {
  from {
    background: var(--ob-blue);
  }
  to {
    background: var(--ob-green);
  }
}
@keyframes obNudge {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 4px 0;
  }
}
@keyframes obSpin {
  to {
    rotate: 360deg;
  }
}

/* ============================== PHẦN 2 — GẠCH DỰNG CẢNH ============================== */

/* ---- hiện / ẩn đúng mốc: .ob-show .ob-win .ob-phone .ob-toast (style="--at:…ms; --out:…ms") ---- */
.ob-show,
.ob-win,
.ob-phone,
.ob-toast,
.ob-addmenu {
  opacity: 0;
  animation-name: var(--eff, obUp);
  animation-duration: var(--dur, 380ms);
  animation-delay: var(--at, 0ms);
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}
.e-fade {
  --eff: obFadeIn;
}
.e-up {
  --eff: obUp;
}
.e-down {
  --eff: obDown;
}
.e-left {
  --eff: obLeft;
}
.e-right {
  --eff: obRight;
}
.e-pop {
  --eff: obPop;
}
.e-zoom {
  --eff: obZoom;
}
.ob-show.has-out,
.ob-win.has-out,
.ob-phone.has-out,
.ob-toast.has-out,
.ob-addmenu.has-out {
  animation-name: var(--eff, obUp), obOut;
  animation-duration: var(--dur, 380ms), 280ms;
  animation-delay: var(--at, 0ms), var(--out, 0ms);
  animation-timing-function: var(--ease), ease-in;
  animation-fill-mode: both, forwards;
}
.ob-toast {
  --eff: obUp;
}
@keyframes obFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes obUp {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes obDown {
  from {
    opacity: 0;
    translate: 0 -14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes obLeft {
  from {
    opacity: 0;
    translate: -18px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes obRight {
  from {
    opacity: 0;
    translate: 18px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes obPop {
  from {
    opacity: 0;
    scale: 0.9;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes obZoom {
  from {
    opacity: 0;
    scale: 0.6;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes obOut {
  from {
    opacity: 1;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 0.97;
  }
}
@keyframes obShowOn {
  to {
    opacity: 1;
  }
}
@keyframes obShowOff {
  to {
    opacity: 0;
  }
}

/* ---- gõ chữ + con trỏ nhập ---- */
.ob-type {
  white-space: pre;
}
.ob-ch {
  position: relative;
  display: inline-block;
  white-space: pre;
  opacity: 0;
  animation: obShowOn 0.01s linear var(--d, 0ms) both;
}
.ob-ch::after {
  content: "";
  position: absolute;
  right: -1.5px;
  top: 8%;
  width: 1.5px;
  height: 84%;
  border-radius: 1px;
  background: var(--ob-blue);
  opacity: 0;
  animation: obCaret var(--per, 70ms) steps(1, end) var(--d, 0ms) both;
}
.ob-ch.is-last::after {
  animation: obCaretEnd 0.8s steps(1, end) var(--d, 0ms) var(--blinks, 2) both;
}
.ob-ch.no-caret::after {
  display: none;
}
@keyframes obCaret {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes obCaretEnd {
  0% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ---- ô nhập ---- */
.ob-field {
  min-width: 0;
}
.ob-field-label {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}
.ob-req {
  color: var(--ob-red);
}
.ob-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ob-ink);
  overflow: hidden;
}
.ob-input.is-anim {
  animation: obFocus var(--focus-dur, 2s) ease var(--click, 0ms) both;
}
.ob-input.has-err {
  border-color: var(--ob-red);
}
.ob-ph {
  position: absolute;
  left: 10px;
  right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
  animation: obShowOff 0.01s linear var(--type, 0ms) both;
}
.ob-ph.is-static {
  animation: none;
}
.ob-val {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: pre;
}
.ob-pw-clear {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  animation: obShowOn 0.01s linear var(--reveal, 0ms) both;
}
.ob-pw-mask.has-reveal {
  animation: obShowOff 0.01s linear var(--reveal, 0ms) both;
}
.ob-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 15px;
}
.ob-eye i {
  grid-area: 1 / 1;
}
.ob-eye-off {
  opacity: 0;
}
.ob-eye.has-reveal .ob-eye-on {
  animation: obShowOff 0.01s linear var(--reveal, 0ms) both;
}
.ob-eye.has-reveal .ob-eye-off {
  animation: obShowOn 0.01s linear var(--reveal, 0ms) both;
}
.ob-hint {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #64748b;
}
.ob-hint.is-anim {
  opacity: 0;
  animation: obShowOn 0.3s ease var(--hint, 0ms) both;
}
.ob-field-err {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ob-red);
}
.ob-field-err.is-anim {
  opacity: 0;
  animation: obShowOn 0.25s ease var(--err, 0ms) both;
}
@keyframes obFocus {
  0% {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
  5%,
  95% {
    border-color: var(--ob-blue);
    box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.18);
  }
  100% {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

/* ---- nút ---- */
.ob-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--ob-blue);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(8, 28, 54, 0.14);
  pointer-events: none;
}
.ob-btn > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ob-btn.block {
  display: grid;
  width: 100%;
}
.ob-btn.is-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ob-ink);
  box-shadow: none;
}
.ob-btn.is-zalo {
  background: #0068ff;
}
.ob-btn.is-fb {
  background: #1877f2;
}
.ob-btn.is-ghost {
  background: transparent;
  color: var(--ob-blue);
  box-shadow: none;
}
.ob-btn.is-light {
  background: var(--ob-blue-50);
  color: var(--ob-blue);
  box-shadow: none;
}
.ob-btn.s-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 8px;
}
.ob-btn.s-lg {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
  border-radius: 10px;
}
.ob-btn .ph {
  font-size: 1.2em;
}
.ob-btn.is-press {
  animation: obPress 0.42s ease var(--click, 0ms) both;
}
.ob-btn.is-late {
  opacity: 0;
  animation: obShowOn 0.3s ease var(--at, 0ms) both;
}
.ob-btn.is-late.is-press {
  animation:
    obShowOn 0.3s ease var(--at, 0ms) both,
    obPress 0.42s ease var(--click, 0ms) both;
}
.ob-btn-b {
  opacity: 0;
  animation: obShowOn 0.01s linear calc(var(--click, 0ms) + 150ms) both;
}
.ob-btn.is-press .ob-btn-l:not(:only-child) {
  animation: obShowOff 0.01s linear calc(var(--click, 0ms) + 150ms) both;
}
@keyframes obPress {
  0% {
    scale: 1;
    filter: none;
  }
  35% {
    scale: 0.955;
    filter: brightness(0.9);
  }
  100% {
    scale: 1;
    filter: none;
  }
}
/* phần tử tự dựng (không dùng ObBtn) cũng nhún khi con trỏ bấm: class "ob-press" + style="--click:<ms>ms" */
.ob-press {
  animation: obPress 0.42s ease var(--click, 0ms) both;
}
.ob-spin {
  display: inline-block;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: obSpin 0.7s linear infinite;
}

/* ---- cửa sổ trình duyệt / popup / app ---- */
.ob-win {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 560px);
  height: var(--h, 360px);
  margin: calc(var(--h, 360px) / -2) 0 0 calc(var(--w, 560px) / -2);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 18px 50px rgba(8, 28, 54, 0.18),
    0 0 0 1px rgba(8, 28, 54, 0.07);
  overflow: hidden;
}
.ob-win-bar {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  background: #f1f4f9;
  border-bottom: 1px solid #e3e8ef;
}
.ob-dots {
  display: inline-flex;
  gap: 5px;
}
.ob-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.ob-dots i:nth-child(1) {
  background: #ff6159;
}
.ob-dots i:nth-child(2) {
  background: #ffbd2e;
}
.ob-dots i:nth-child(3) {
  background: #28c941;
}
.ob-url {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 18px;
  padding: 0 10px;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-url i {
  font-size: 10px;
  color: #16a34a;
}
.ob-url-t {
  display: inline-grid;
  min-width: 0;
}
.ob-url-t > span {
  grid-area: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-url-b {
  opacity: 0;
  animation: obShowOn 0.25s ease var(--u2, 0ms) both;
}
.ob-url-a.has-b {
  animation: obShowOff 0.25s ease var(--u2, 0ms) both;
}
.ob-win-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  padding-right: 38px;
}
.ob-win-x {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #64748b;
}
.ob-win.is-popup .ob-dots {
  display: none;
}
.ob-win-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---- thông báo (toast) ---- */
.ob-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  padding: 9px 14px 9px 11px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(8, 28, 54, 0.3);
}
.ob-toast i {
  flex: none;
  font-size: 17px;
}
.ob-toast.is-success i {
  color: #34d27b;
}
.ob-toast.is-info i {
  color: #7fb2ff;
}
.ob-toast.is-error i {
  color: #ff7a7a;
}

/* ---- dấu tick vẽ nét ---- */
.ob-check {
  display: block;
  --c: #0bcb6b;
  opacity: 0;
  animation: obPop 0.4s var(--ease) var(--at, 0ms) both;
}
.ob-check.t-blue {
  --c: #0068ff;
}
.ob-check-ring,
.ob-check-tick {
  stroke: var(--c);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ob-check-ring {
  animation: obDraw 0.55s ease-out var(--at, 0ms) both;
}
.ob-check-tick {
  animation: obDraw 0.4s ease-out calc(var(--at, 0ms) + 320ms) both;
}
@keyframes obDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---- huy hiệu nền tảng (khớp .fx-ch-ico của app) ---- */
.ob-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.ob-ico.zalo {
  background: #0068ff;
}
.ob-ico.oa {
  background: #0088ff;
  font-size: 9.5px;
}
.ob-ico.fb {
  background: #1877f2;
  font-size: 15px;
  font-weight: 700;
}
.ob-ico.tt {
  background: #111;
}
.ob-ico.sp {
  background: #ee4d2d;
}
.ob-ico.vizio {
  background: linear-gradient(135deg, #3a95ff, #0050d8);
}
.ob-ico.s-xs {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: 8px;
}
.ob-ico.s-sm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 9.5px;
}
.ob-ico.s-lg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
}
.ob-ico.s-xl {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 19px;
}
.ob-ico.oa.s-lg {
  font-size: 13px;
}
.ob-ico.oa.s-xl {
  font-size: 17px;
}
.ob-ico.fb.s-lg {
  font-size: 21px;
}
.ob-ico.fb.s-xl {
  font-size: 28px;
}
.ob-ico-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ob-green);
}
.ob-ico-dot.orange {
  background: var(--ob-orange);
}
.ob-ico-dot.red {
  background: var(--ob-red);
}

/* ---- mã QR giả ---- */
.ob-qr {
  position: relative;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  overflow: hidden;
  opacity: 0;
  animation: obPop 0.35s var(--ease) var(--at, 0ms) both;
}
.ob-qr > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ob-qr-load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  animation: obShowOff 0.25s ease var(--load, 0ms) forwards;
}
.ob-qr-laser {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 6%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #18c26a, transparent);
  box-shadow: 0 0 12px 3px rgba(24, 194, 106, 0.55);
  opacity: 0;
  animation: obLaser 1.5s ease-in-out var(--scan, 0ms) 2 both;
}
.ob-qr-brk {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid #18c26a;
  opacity: 0;
  animation: obShowOn 0.3s ease var(--scan, 0ms) both;
}
.ob-qr-brk.tl {
  left: 5px;
  top: 5px;
  border-left-width: 3px;
  border-top-width: 3px;
  border-top-left-radius: 6px;
}
.ob-qr-brk.tr {
  right: 5px;
  top: 5px;
  border-right-width: 3px;
  border-top-width: 3px;
  border-top-right-radius: 6px;
}
.ob-qr-brk.bl {
  left: 5px;
  bottom: 5px;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-bottom-left-radius: 6px;
}
.ob-qr-brk.br {
  right: 5px;
  bottom: 5px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-bottom-right-radius: 6px;
}
@keyframes obLaser {
  0% {
    top: 6%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 6%;
    opacity: 0;
  }
}

/* ---- điện thoại ---- */
.ob-phone {
  position: absolute;
  width: var(--w, 150px);
  height: var(--h, 300px);
  padding: 6px;
  border-radius: 26px;
  background: #0f172a;
  box-shadow:
    0 22px 50px rgba(8, 28, 54, 0.38),
    0 0 0 2px #243246 inset;
}
.ob-phone-notch {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: 3;
  width: 54px;
  height: 14px;
  margin-left: -27px;
  border-radius: 0 0 10px 10px;
  background: #0f172a;
}
.ob-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  background: #fff;
  overflow: hidden;
}



/* trang đăng nhập / đăng ký (ObSignin) */
.ob-si {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  height: 100%;
}
.ob-si-left {
  position: relative;
  padding: 12px 17px;
  background: #fff;
}
.ob-si-logo {
  display: block;
  height: 16px;
  width: auto;
}
.ob-si-layer {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 38px;
}
.ob-si-h {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--ob-ink);
}
.ob-si-sub {
  margin: 2px 0 7px;
  font-size: 9.5px;
  line-height: 1.4;
  color: #64748b;
}
.ob-si-sub b {
  color: var(--ob-ink);
}
.ob-si .ob-field {
  margin-bottom: 6px;
}
.ob-si .ob-field-label {
  margin-bottom: 2px;
  font-size: 10.5px;
}
.ob-si .ob-input {
  height: 25px;
  border-radius: 7px;
  font-size: 11.5px;
}
.ob-si .ob-hint {
  margin-top: 2px;
  font-size: 9px;
}
.ob-si .ob-field-err {
  margin-top: 3px;
  font-size: 9.5px;
}
.ob-si .ob-btn.block {
  height: 28px;
  margin-top: 8px;
  font-size: 11.5px;
}
.ob-si-switch {
  margin: 8px 0 0;
  text-align: center;
  font-size: 9.5px;
  color: #64748b;
}
.ob-si-switch b {
  color: var(--ob-blue);
  font-weight: 650;
}
.ob-si-right {
  position: relative;
  padding: 18px 20px 14px;
  border-left: 1px solid #e3e8ef;
  background: linear-gradient(160deg, #f4f8ff 0%, #e3edff 100%);
  overflow: hidden;
}
.ob-si-hero-t {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ob-ink);
}
.ob-si-hero-t span {
  background: linear-gradient(90deg, #1665f5, #7a3cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ob-si-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
}
.ob-si-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ob-si-feat {
  margin: 6px 0 0;
  font-size: 9.5px;
  color: #64748b;
}
.ob-si-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #081122;
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(8, 17, 34, 0.2);
  animation: obSiCta 1s ease-in-out var(--pulse, 450ms) 1;
}
.ob-si-cta.is-press {
  animation:
    obSiCta 1s ease-in-out var(--pulse, 450ms) 1,
    obPress 0.42s ease var(--click, 0ms) both;
}
@keyframes obSiCta {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(8, 17, 34, 0.2);
  }
  50% {
    box-shadow:
      0 4px 14px rgba(8, 17, 34, 0.2),
      0 0 0 6px rgba(8, 17, 34, 0.12);
  }
}
.ob-si-perks {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.ob-si-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-si-perks i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff;
  color: #1665f5;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(8, 28, 54, 0.1);
}
.ob-si-perks div {
  display: grid;
  line-height: 1.25;
}
.ob-si-perks b {
  font-size: 10.5px;
  color: var(--ob-ink);
}
.ob-si-perks span {
  font-size: 9px;
  color: #64748b;
}
.ob-si-mini {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 28, 54, 0.12);
}
.ob-si-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ob-si-row div {
  display: grid;
  flex: 1;
  gap: 3px;
}
.ob-si-row div i {
  display: block;
  width: 80%;
  height: 4px;
  border-radius: 3px;
  background: #e2e8f0;
}
.ob-si-row div i + i {
  width: 52%;
  background: #eef2f7;
}
.ob-si-row em {
  min-width: 15px;
  padding: 1px 4px;
  border-radius: 8px;
  background: var(--ob-red);
  color: #fff;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

/* ---- GIAO DIỆN ỨNG DỤNG (ObApp / ObStrip / ObAddMenu / ObModal / ObConv) — dựng lại khung Vizio thật ---- */
.ob-app {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  height: 100%;
  background: #fff;
  font-size: 10px;
  color: #334155;
}
.ob-app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 7px;
  border-right: 1px solid #e3e8ef;
  background: #f1f5fb;
}
.ob-app-me {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 3px 9px;
}
.ob-app-me b {
  display: block;
  font-size: 9.5px;
  line-height: 1.2;
  color: #0f172a;
}
.ob-app-me small {
  display: block;
  font-size: 8px;
  line-height: 1.2;
  color: #64748b;
}
.ob-cnt {
  display: inline-grid;
}
.ob-cnt > span {
  grid-area: 1 / 1;
}
.ob-cnt-b {
  opacity: 0;
  animation: obShowOn 0.01s linear var(--cnt, 0ms) both;
}
.ob-cnt-a {
  animation: obShowOff 0.01s linear var(--cnt, 0ms) both;
}
.ob-app-sec {
  padding: 2px 5px 3px;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.ob-app-menu {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ob-app-menu li {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
}
.ob-app-menu li i {
  font-size: 12px;
}
.ob-app-menu li.on {
  background: #fff;
  color: var(--ob-blue);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(8, 28, 54, 0.1);
}
.ob-app-main {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

/* khung Hội thoại (cột danh sách + khung chat) */
.ob-lc {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  height: 100%;
}
.ob-lc-list {
  position: relative;
  min-width: 0;
  border-right: 1px solid #eef2f7;
}
.ob-lc-lbl {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 5px;
  font-size: 9px;
  font-weight: 650;
  color: #334155;
}
.ob-lc-search {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  margin: 0 10px 6px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 9px;
  color: #94a3b8;
}
.ob-lc-tabs {
  display: flex;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}
.ob-lc-tabs span {
  padding: 4px 0 5px;
}
.ob-lc-tabs .on {
  color: var(--ob-blue);
  box-shadow: inset 0 -2px 0 var(--ob-blue);
}
.ob-lc-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 24px;
  background: #f4f6f9;
  text-align: center;
  color: #64748b;
  font-size: 9px;
  line-height: 1.45;
}
.ob-lc-empty i {
  font-size: 30px;
  color: #c3cddb;
}
.ob-lc-empty b {
  font-size: 12px;
  color: #0f172a;
}

/* ảnh đại diện chữ cái + huy hiệu nền tảng */
.ob-av {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}
.ob-av .ob-av-b {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #fff;
  border-radius: 4px;
  font-size: 6.5px;
}
.ob-av .ob-av-b .ob-ico-dot {
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}

/* thanh kênh */
.ob-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 8px;
}
.ob-strip-all {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef3fb;
  color: #475569;
  font-size: 14px;
}
.ob-strip-all.on {
  background: #e6f0ff;
  color: var(--ob-blue);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ob-blue);
}
.ob-strip-ch {
  position: relative;
  flex: none;
}
.ob-strip-n {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border: 1.5px solid #fff;
  border-radius: 8px;
  background: var(--ob-red);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  animation: obShowOn 0.01s linear var(--n, 0ms) both;
}
.ob-strip-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px dashed #7ea8f5;
  border-radius: 50%;
  background: #fff;
  color: var(--ob-blue);
  font-size: 14px;
}
.ob-strip-plus.has-pulse {
  border: 2px solid var(--ob-blue);
  background: #eef6ff;
  animation: obPulse 1.6s ease-out var(--pulse, 0ms) 3;
}
.ob-strip-plus.is-press {
  animation: obPress 0.42s ease var(--click, 0ms) both;
}
.ob-strip-plus.has-pulse.is-press {
  animation:
    obPulse 1.6s ease-out var(--pulse, 0ms) 3,
    obPress 0.42s ease var(--click, 0ms) both;
}
@keyframes obPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(0, 104, 255, 0);
  }
}

/* menu "Thêm kênh" */
.ob-addmenu {
  position: absolute;
  left: 12px;
  top: 46px;
  z-index: 30;
  width: 170px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 12px 30px rgba(8, 28, 54, 0.2),
    0 0 0 1px rgba(8, 28, 54, 0.06);
}
.ob-addmenu-t {
  padding: 3px 6px 5px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}
.ob-addmenu-row {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 500;
  color: #0f172a;
}
.ob-addmenu-row span {
  white-space: nowrap;
}
.ob-addmenu-row em {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 6px;
  background: #e6f0ff;
  color: var(--ob-blue);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
}
.ob-addmenu-row.is-pick {
  animation: obRowPick 0.5s ease var(--click, 0ms) both;
}
@keyframes obRowPick {
  to {
    background: #e6f0ff;
  }
}

/* hộp "Thêm kênh bán hàng / Tài khoản mới" */
.ob-modal-wrap {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ob-modal-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 54, 0.42);
}
.ob-modal {
  position: relative;
  max-width: calc(100% - 24px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 28, 54, 0.32);
  overflow: hidden;
}
.ob-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  color: #0f172a;
}
.ob-modal-head i {
  color: #94a3b8;
  font-size: 12px;
}
.ob-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 9px 14px 0;
}
.ob-mtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.ob-mtab.on {
  border-color: var(--ob-blue);
  background: #eef5ff;
  color: var(--ob-blue);
}
.ob-mtab.sw.on {
  animation: obTabOn 0.3s ease var(--tab-at, 0ms) both;
}
.ob-mtab.sw.was {
  animation: obTabOff 0.3s ease var(--tab-at, 0ms) both;
}
@keyframes obTabOn {
  from {
    border-color: #e2e8f0;
    background: #fff;
    color: #475569;
  }
  to {
    border-color: var(--ob-blue);
    background: #eef5ff;
    color: var(--ob-blue);
  }
}
@keyframes obTabOff {
  from {
    border-color: var(--ob-blue);
    background: #eef5ff;
    color: var(--ob-blue);
  }
  to {
    border-color: #e2e8f0;
    background: #fff;
    color: #475569;
  }
}
.ob-tbadge {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.ob-tbadge.zalo {
  background: #0068ff;
}
.ob-tbadge.fb {
  background: #1877f2;
  font-size: 10px;
}
.ob-tbadge.oa {
  background: #0088ff;
  font-size: 6.5px;
}
.ob-modal-body {
  padding: 11px 14px 14px;
  font-size: 10px;
  line-height: 1.45;
  color: #334155;
}

/* dòng hội thoại */
.ob-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.ob-conv.on {
  background: #eaf2ff;
}
.ob-conv.is-late {
  opacity: 0;
  animation: obLeft 0.4s var(--ease) var(--at, 0ms) both;
}
.ob-conv-t {
  display: grid;
  flex: 1;
  min-width: 0;
}
.ob-conv-t b {
  overflow: hidden;
  font-size: 10px;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-conv-t small {
  overflow: hidden;
  font-size: 8.5px;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-conv-r {
  display: grid;
  justify-items: end;
  gap: 3px;
}
.ob-conv-r small {
  font-size: 8px;
  color: #94a3b8;
}
.ob-conv-r em {
  min-width: 14px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ob-red);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

/* ============================== PHẦN 3 — NÚT MỞ HƯỚNG DẪN (ngoài trình phát) ============================== */
.ob-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1.5px solid var(--primary, #0068ff);
  border-radius: 999px;
  background: #fff;
  color: var(--primary, #0068ff);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.ob-launch:hover {
  background: var(--primary, #0068ff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.25);
}
.ob-launch-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary, #0068ff);
  color: #fff;
  font-size: 11px;
  transition: background-color 0.15s;
}
.ob-launch:hover .ob-launch-ico {
  background: #fff;
  color: var(--primary, #0068ff);
}
.ob-launch.is-link {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--primary, #0068ff);
  font-weight: 600;
  font-size: inherit;
  box-shadow: none;
}
.ob-launch.is-link:hover {
  background: transparent;
  color: var(--primary-hover, #0056d6);
  text-decoration: underline;
  box-shadow: none;
}
.ob-launch.is-link .ob-launch-ico {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
.ob-launch.is-link:hover .ob-launch-ico {
  background: var(--primary-hover, #0056d6);
  color: #fff;
}
.ob-launch:focus-visible {
  outline: 2px solid var(--primary, #0068ff);
  outline-offset: 3px;
}

/* chỗ đặt nút mở hướng dẫn trong các màn có sẵn (SigninPage, HomePage, ChannelStrip, AddChannelModal, App.js) */
.ob-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ob-cta-row .ob-launch {
  height: 38px;
  font-size: 13.5px;
}
.ob-signin-help {
  margin-top: 6px;
}
.ob-signin-help .ob-launch {
  font-size: 12.5px;
  text-align: left;
}
.ob-pop-link {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12px;
}
.ob-addch-help {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 10px;
  font-size: 12.5px;
}
.vg-pop-tour {
  margin-top: 9px;
  font-size: 12px;
}
