/*
 * components.css — ສ່ວນປະກອບທີ່ໃຊ້ຫຼາຍໜ້າ: card, ບັດສິນຄ້າ, badge, chip, ຕາຕະລາງ, ແບ່ງໜ້າ, toast.
 */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: .1em .65em;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 600;
}
.badge-out { position: absolute; top: .6rem; left: .6rem; background: var(--danger); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  padding: .35em 1em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.chip.active, .chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- ບັດບໍລິການ ---------- */
.service-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0; border-radius: 4px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6 55%, #facc15);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover {
  transform: none; border-color: #93c5fd;
  box-shadow: 0 10px 26px -10px rgba(29, 78, 216, .14), 0 4px 10px rgba(15, 23, 42, .04);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { color: #0f172a; font-weight: 700; transition: color .2s ease; }
.service-card:hover h3 { color: var(--primary); }
.service-card p { color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- ບັດສິນຄ້າ ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg-alt); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.6rem; opacity: .5; }
.product-noimg.sm { width: 48px; height: 48px; font-size: 1.4rem; background: var(--bg-alt); border-radius: 6px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: .8rem 1rem 1rem; }
.product-cat { font-size: .78rem; color: var(--muted); }
.product-name { font-size: 1rem; font-weight: 600; margin: .2rem 0 .6rem; flex: 1; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price { color: var(--primary-dark); font-weight: 700; }
.price-lg { font-size: 1.6rem; margin-bottom: .5rem; }

/* ---------- ຕາຕະລາງ ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .875rem; color: var(--muted); font-weight: 600; }
.table .right { text-align: right; }
.table tr.total td { font-weight: 700; border-bottom: 0; }

/* ---------- ແບ່ງໜ້າ ---------- */
/* ແບ່ງໜ້າ (components/pagination.php): ປຸ່ມວົງມົນ + ລູກສອນ ‹ › */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: 2.25rem; }
.page-link {
  width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--text); font-weight: 600; font-size: .92rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.page-link:hover { border-color: #3b82f6; color: #1d4ed8; background: #eff6ff; }
.page-link.active { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.page-link.active:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.page-link.is-disabled { opacity: .4; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 .1rem; }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  max-width: calc(100% - 2rem);
  padding: .75em 1.25em;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, 150%);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s, opacity .25s, visibility 0s linear .25s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .25s, opacity .25s, visibility 0s; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ---------- Popup ສະມາຊິກ (components/member_modal.php, assets/js/member.js) — ຊ້າຍ ຟອມ WlaoDev POS, ຂວາ ຮູບພື້ນຟ້າເຂັ້ມ ---------- */
html.mm-open,
body.mm-open { overflow: hidden !important; }
.mm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; font-family: inherit; }
.mm[hidden] { display: none; }
.mm-backdrop {
  position: absolute; inset: 0; background: rgba(6, 20, 46, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .65s cubic-bezier(0.22, 1, 0.36, 1);
}
.mm.is-open .mm-backdrop { opacity: 1; }
.mm-dialog {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  width: min(1020px, 100%); max-height: calc(100vh - 2rem); overflow: hidden;
  border-radius: 18px; background: #fff; box-shadow: 0 28px 68px rgba(4, 15, 38, .42);
  opacity: 0; transform: translateY(28px) scale(.94);
  transition: opacity .75s cubic-bezier(0.22, 1, 0.36, 1), transform .85s cubic-bezier(0.22, 1, 0.36, 1);
}
.mm.is-open .mm-dialog {
  opacity: 1; transform: translateY(0) scale(1);
}
.mm-form-side {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; padding: 2rem 2.35rem 1.35rem; background: #ffffff;
}
.mm-lang-corner {
  position: absolute; top: 1.15rem; right: 1.25rem; z-index: 30;
}
.mm-lang-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 2.5px solid #ffffff; background: #ffffff;
  cursor: pointer; box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mm-lang-btn:hover {
  transform: scale(1.08); box-shadow: 0 4px 14px rgba(15, 23, 42, .26);
}
.mm-lang-flag-current {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.mm-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 145px; padding: .45rem; border-radius: 12px;
  background: #ffffff; border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; transform: translateY(-8px) scale(.95); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
}
.mm-lang-corner.open .mm-lang-menu {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.mm-lang-item {
  display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem;
  border-radius: 8px; color: #1e293b; text-decoration: none; font-size: .84rem; font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.mm-lang-item:hover {
  background: #eff6ff; color: #0052cc;
}
.mm-lang-item.active {
  background: #eaf2ff; color: #0052cc;
}
.mm-lang-item img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.mm-brand-top { text-align: center; margin-bottom: 1.15rem; }
.mm-brand-logo {
  display: inline-block; width: 112px; height: auto; object-fit: contain;
  margin-bottom: .45rem;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, .22));
}
.mm-gradient-title {
  margin: 0; font-size: clamp(1.22rem, 2.1vw, 1.48rem); font-weight: 800; line-height: 1.35;
}
.mm-brand-blue {
  background: linear-gradient(90deg, #0062e6 0%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mm-brand-purple {
  background: linear-gradient(90deg, #6d28d9 0%, #a21caf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mm-view[hidden] { display: none; }
/* ຫົວຂໍ້ຟອມ (ເຂົ້າສູ່ລະບົບ / ລົງທະບຽນສະມາຊິກ) — ຢູ່ກາງ, ບໍ່ມີເສັ້ນຂີດລຸ່ມ */
.mm-view-head { text-align: center; margin: 0 0 .9rem; }
.mm-view-title { margin: 0; padding-bottom: 0;
  font-size: clamp(1.18rem, 2vw, 1.4rem); font-weight: 800; color: var(--primary-dark, #1e3a8a); line-height: 1.3; }
.mm-view-title::after { display: none; }
.mm-field { display: block; margin-bottom: .85rem; }
.mm-field > span:first-child {
  display: block; margin-bottom: .38rem; font-size: .92rem; font-weight: 700; color: #1e293b;
}
.mm-input-wrap {
  position: relative; display: flex; align-items: center;
}
.mm-input-ico {
  position: absolute; left: .88rem; top: 50%; transform: translateY(-50%);
  color: #64748b; pointer-events: none; z-index: 1;
}
.mm-field .input {
  width: 100%; padding: .76rem .95rem .76rem 2.6rem;
  border: 1.5px solid #dbe4f0; border-radius: 10px;
  background: #e8eef7; color: #0f172a; font: inherit; font-size: .94rem;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mm-field .input::placeholder { color: #7c8ba1; }
.mm-field .input:focus {
  outline: none; background: #f4f7fc; border-color: #0b65e6;
  box-shadow: 0 0 0 3px rgba(11, 101, 230, .14);
}
.mm-field small { display: block; margin-top: .25rem; color: var(--danger); font-size: .8rem; }
.mm-field small:empty { display: none; }
.mm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mm-pass .input { padding-right: 2.6rem; }
.mm-eye {
  position: absolute; right: .65rem; top: 50%; transform: translateY(-50%);
  padding: .25rem; border: 0; background: none; color: #64748b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mm-eye .mm-ico-open { display: none; }
.mm-eye .mm-ico-closed { display: block; }
.mm-eye.is-on { color: #0b65e6; }
.mm-eye.is-on .mm-ico-open { display: block; }
.mm-eye.is-on .mm-ico-closed { display: none; }
.mm-alert { margin-bottom: .85rem; padding: .6rem .8rem; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: .88rem; }
.mm-alert[hidden] { display: none; }
.mm-submit {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; margin-top: .55rem; padding: .86rem 1.1rem;
  border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #0d6efd 0%, #0052cc 100%);
  box-shadow: 0 6px 18px rgba(0, 82, 204, .32);
  color: #fff; font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  transition: box-shadow .18s ease, filter .18s ease;
}
.mm-submit:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(0, 82, 204, .38); }   /* ບໍ່ຍົກປຸ່ມ (translateY) — ເມົາຢູ່ຂອບປຸ່ມແລ້ວກະຕູກ */
.mm-submit:disabled { opacity: .6; cursor: wait; }
.mm-switch {
  margin: .9rem 0 0; text-align: center; font-size: .9rem; color: #475569;
}
.mm-switch a { color: #0052cc; font-weight: 700; text-decoration: none; }
.mm-switch a:hover { text-decoration: underline; }
.mm-visual {
  position: relative;
  background:
    radial-gradient(circle at 22% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 42%),
    radial-gradient(circle at 82% 24%, rgba(56, 189, 248, 0.30) 0%, transparent 40%),
    radial-gradient(circle at 50% 78%, rgba(99, 102, 241, 0.32) 0%, transparent 52%),
    linear-gradient(155deg, #071229 0%, #0d224f 50%, #153c8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem 1rem;
  min-height: 100%;
}
.mm-x {
  position: absolute; top: .85rem; right: .85rem; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #0f172a; font-size: 1.45rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 6, 23, .22);
}
@media (max-width: 820px) {
  .mm-dialog { grid-template-columns: 1fr; }
  .mm-visual { display: none; }
  .mm-lang-corner { right: 3.4rem; }
  .mm-x { background: #f1f5f9; box-shadow: none; }
}
@media (max-width: 480px) {
  .mm-form-side { padding: 1.5rem 1.1rem 1.1rem; }
  .mm-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- ປ້າຍໂລໂກ້ຕາມເມົາ (layouts/footer.php [data-cursor-badge], assets/js/main.js) ---------- */
.cursor-badge {
  position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none;
  display: inline-flex; align-items: center; gap: .22rem; padding: 2px .38rem 2px 2px;
  border-radius: 2px; background: #0062ff; color: #fff; font-size: .6rem; font-weight: 700; white-space: nowrap; line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 98, 255, .3);
  opacity: 0; scale: .6; transition: opacity .18s ease, scale .18s ease;
  will-change: transform;
}
.cursor-badge.is-on { opacity: 1; scale: 1; }
/* ໂລໂກ້ໃນກ່ອງສີຂາວ (ມຸມ 2px ຄືກັບປ້າຍ) + ຊື່ນ້ອຍໆ */
.cursor-badge img { width: 15px; height: 15px; padding: 2px 1px; border-radius: 2px; background: #fff; object-fit: contain; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-badge { display: none; } }


/* ---------- ແຜນທີ່ພ້ອມກ່ອງສຳຮອງ (components/map_embed.php) ----------
   ກ່ອງສຳຮອງ (ໝຸດ + ປຸ່ມ) ຢູ່ລຸ່ມ; iframe ທັບຢູ່ເທິງ ແຕ່ໂປ່ງໃສຈົນ Google ໂຫຼດແລ້ວ — ໂຫຼດບໍ່ຂຶ້ນ = ຍັງເຫັນປຸ່ມເປີດແຜນທີ່ */
.map-embed { position: relative; overflow: hidden; background: #f1f5f9; }
.map-embed-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  color: #2563eb; font-size: .82rem; font-weight: 700; text-decoration: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(148, 163, 184, .18) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(148, 163, 184, .18) 23px 24px),
    #eef2f7;
}
.map-embed-fallback svg { animation: mapPinBob 1.8s ease-in-out infinite; }
@keyframes mapPinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.map-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; transition: opacity .4s ease;
}
.map-embed iframe.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-embed-fallback svg { animation: none; } }

/* ---------- ແຖບຕິດຕໍ່ຕິດລຸ່ມຈໍມືຖື (layouts/footer.php .mbar) ----------
   ສະເພາະຈໍ ≤767px. ປຸ່ມແຊັດລອຍ (.fc-widget) ຍົກຂຶ້ນເທິງແຖບ; body ເວັ້ນລຸ່ມໃຫ້ແຖບບໍ່ບັງ footer */
.mbar { display: none; }
@media (max-width: 767.98px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 970;
    display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: .5rem;
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .mbar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    height: 44px; border-radius: 6px; font-size: .9rem; font-weight: 700; color: #fff; text-decoration: none;
  }
  .mbar-btn:hover, .mbar-btn:active { color: #fff; filter: brightness(.95); }
  .mbar-btn.is-tel  { background: #1d4ed8; }
  .mbar-btn.is-wa   { background: #16a34a; }   /* ສີຂຽວແທ້ */
  .mbar-btn.is-chat { background: #fff; color: #1d4ed8; border: 1.5px solid #1d4ed8; }
  .mbar-btn.is-chat:hover, .mbar-btn.is-chat:active { color: #1d4ed8; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .fc-widget { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- ໄອຄອນເສັ້ນ (includes/icons.php icon()) ແທນ emoji ---------- */
.ico { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.solutions-tab-icon { color: #1d4ed8; }
.solutions-tab-icon .ico { display: block; margin: 0 auto; }
.eq-promo-icons { display: inline-flex; gap: .5rem; color: #422006; }
.mk-ask { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.sol-member-pill .ico, .mm-chip .ico { color: currentColor; }
.fc-badge-wave { display: inline-flex; align-items: center; justify-content: center; }
.fc-online-dot { display: inline-block; width: 8px; height: 8px; margin-right: .35rem; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); vertical-align: .05em; }


/* ============================================================
   CUTE MULTI-ARM ANIMAL MASCOT & LIVE DASHBOARD ANIMATIONS
   (ດຶງມາຈາກ backend/themes/login.css ໃຫ້ເຄື່ອນໄຫວແບບດຽວກັບໜ້າ login ຂອງ backend)
   ============================================================ */
@keyframes floatMascot {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseShadow {
    0%, 100% { transform: scale(1); opacity: 0.48; }
    50% { transform: scale(0.82); opacity: 0.25; }
}

.cartoon-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 7px 14px 7px 9px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 6;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.2px;
    opacity: 0;
    will-change: transform, opacity;
}

/* ເສັ້ນແສງ Shimmer ແລ່ນຜ່ານປ້າຍ */
.cartoon-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.32) 50%, rgba(255,255,255,0) 100%);
    animation: badgeShimmerSweep 3.4s ease-in-out infinite;
    pointer-events: none;
}

.cartoon-badge .cb-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    animation: badgeIconPulse 2s ease-in-out infinite;
}

.cartoon-badge.badge-1 {
    top: 18px;
    left: 16px;
    border: 1.5px solid rgba(52, 211, 153, 0.65);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.32), inset 0 0 12px rgba(16, 185, 129, 0.18);
    animation: badgeRow1Left 10s ease-in-out infinite;
}
.cartoon-badge.badge-1 .cb-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.65);
}

.cartoon-badge.badge-2 {
    top: 18px;
    right: 16px;
    border: 1.5px solid rgba(56, 189, 248, 0.65);
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.32), inset 0 0 12px rgba(56, 189, 248, 0.18);
    animation: badgeRow1Right 10s ease-in-out infinite;
}
.cartoon-badge.badge-2::after { animation-delay: 1.1s; }
.cartoon-badge.badge-2 .cb-icon {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.65);
}

.cartoon-badge.badge-3 {
    top: 18px;
    left: 16px;
    border: 1.5px solid rgba(168, 85, 247, 0.65);
    box-shadow: 0 10px 26px rgba(147, 51, 234, 0.32), inset 0 0 12px rgba(168, 85, 247, 0.18);
    animation: badgeRow2Left 10s ease-in-out infinite;
}
.cartoon-badge.badge-3::after { animation-delay: 2.0s; }
.cartoon-badge.badge-3 .cb-icon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.65);
}

.cartoon-badge.badge-4 {
    top: 18px;
    right: 16px;
    border: 1.5px solid rgba(251, 191, 36, 0.65);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32), inset 0 0 12px rgba(251, 191, 36, 0.18);
    animation: badgeRow2Right 10s ease-in-out infinite;
}
.cartoon-badge.badge-4::after { animation-delay: 2.8s; }
.cartoon-badge.badge-4 .cb-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
}

/* Cute Cartoon Character Container */
.cute-cartoon-stage {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 395px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.cute-cartoon-svg {
    width: 100%;
    height: auto;
    max-height: 390px;
    animation: floatMascot 2.6s ease-in-out infinite;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.cute-cartoon-floor-shadow {
    width: 170px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 72%);
    border-radius: 50%;
    margin-top: -8px;
    animation: pulseShadow 2.6s ease-in-out infinite;
}

/* ============================================================
   MULTI-ARM ANIMAL MASCOT & DASHBOARD ANIMATIONS
   ============================================================ */

/* 1. 6 Multi-Arms Stemming from the Same Arm Base (ອອກມາຈາກແຂນດຽວກັນ: ຖັດກັນຂຶ້ນ ແລ້ວ ຖັດກັນລົງມາ) */
/* ຄູ່ທີ 1 (ຊ້າຍກາງ - ບາໂຄ້ດ + ຂວາກາງ - ໃບບິນ): ຂຶ້ນຕອນ 0%->14%, ຫຼິ້ນຕໍ່ຈົນຮອດ 64% ແລ້ວຄ່ອຍໆຖອຍລົງຕອນ 74% */
@keyframes armSeq1Left {
    0%   { opacity: 0; transform: translate(36px, 16px) scale(0.32) rotate(14deg); }
    14%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    28%  { opacity: 1; transform: translate(-5px, -7px) scale(1.03) rotate(-7deg); }
    44%  { opacity: 1; transform: translate(2px, -2px) scale(1) rotate(2deg); }
    58%  { opacity: 1; transform: translate(-5px, -7px) scale(1.02) rotate(-7deg); }
    64%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    74%  { opacity: 0; transform: translate(36px, 16px) scale(0.32) rotate(14deg); }
    100% { opacity: 0; transform: translate(36px, 16px) scale(0.32) rotate(14deg); }
}

@keyframes armSeq2Right {
    0%   { opacity: 0; transform: translate(-36px, 16px) scale(0.32) rotate(-14deg); }
    14%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    28%  { opacity: 1; transform: translate(5px, -7px) scale(1.03) rotate(7deg); }
    44%  { opacity: 1; transform: translate(-2px, -2px) scale(1) rotate(-2deg); }
    58%  { opacity: 1; transform: translate(5px, -7px) scale(1.02) rotate(7deg); }
    64%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    74%  { opacity: 0; transform: translate(-36px, 16px) scale(0.32) rotate(-14deg); }
    100% { opacity: 0; transform: translate(-36px, 16px) scale(0.32) rotate(-14deg); }
}

/* ຄູ່ທີ 2 (ຊ້າຍເທິງ - ເງິນ 100,000₭ + ຂວາເທິງ - ເງິນ 50,000₭): ຂຶ້ນຖັດກັນຕອນ 18%->32%, ຫຼິ້ນຕໍ່ຈົນຮອດ 74% ແລ້ວຄ່ອຍໆຖອຍລົງຕອນ 84% */
@keyframes armSeq3Left {
    0%, 18% { opacity: 0; transform: translate(36px, 18px) scale(0.32) rotate(14deg); }
    32%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    46%  { opacity: 1; transform: translate(-5px, -8px) scale(1.03) rotate(-8deg); }
    60%  { opacity: 1; transform: translate(2px, -2px) scale(1) rotate(3deg); }
    74%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    84%  { opacity: 0; transform: translate(36px, 18px) scale(0.32) rotate(14deg); }
    100% { opacity: 0; transform: translate(36px, 18px) scale(0.32) rotate(14deg); }
}

@keyframes armSeq4Right {
    0%, 18% { opacity: 0; transform: translate(-36px, 18px) scale(0.32) rotate(-14deg); }
    32%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    46%  { opacity: 1; transform: translate(5px, -8px) scale(1.03) rotate(8deg); }
    60%  { opacity: 1; transform: translate(-2px, -2px) scale(1) rotate(-3deg); }
    74%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    84%  { opacity: 0; transform: translate(-36px, 18px) scale(0.32) rotate(-14deg); }
    100% { opacity: 0; transform: translate(-36px, 18px) scale(0.32) rotate(-14deg); }
}

/* ຄູ່ທີ 3 (ຊ້າຍລຸ່ມ - ຖົງເງິນຄຳ + ຂວາລຸ່ມ - ເຄື່ອງຄິດໄລ່): ຂຶ້ນຖັດກັນຕອນ 36%->50%, ຫຼິ້ນຕໍ່ຈົນຮອດ 84% ແລ້ວຄ່ອຍໆຖອຍລົງຕອນ 94% */
@keyframes armSeq5Left {
    0%, 36% { opacity: 0; transform: translate(36px, 14px) scale(0.32) rotate(14deg); }
    50%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    64%  { opacity: 1; transform: translate(-5px, -7px) scale(1.03) rotate(-7deg); }
    78%  { opacity: 1; transform: translate(2px, -2px) scale(1) rotate(2deg); }
    84%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    94%  { opacity: 0; transform: translate(36px, 14px) scale(0.32) rotate(14deg); }
    100% { opacity: 0; transform: translate(36px, 14px) scale(0.32) rotate(14deg); }
}

@keyframes armSeq6Right {
    0%, 36% { opacity: 0; transform: translate(-36px, 14px) scale(0.32) rotate(-14deg); }
    50%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    64%  { opacity: 1; transform: translate(5px, -7px) scale(1.03) rotate(7deg); }
    78%  { opacity: 1; transform: translate(-2px, -2px) scale(1) rotate(-2deg); }
    84%  { opacity: 1; transform: translate(0px, 0px) scale(1) rotate(0deg); }
    94%  { opacity: 0; transform: translate(-36px, 14px) scale(0.32) rotate(-14deg); }
    100% { opacity: 0; transform: translate(-36px, 14px) scale(0.32) rotate(-14deg); }
}

@keyframes superCapeFlutter {
    0%, 100% { transform: scaleX(1) skewX(0deg); }
    50% { transform: scaleX(1.05) skewX(2.5deg); }
}

@keyframes catEarTwitchLeft {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-9deg); }
    60% { transform: rotate(4deg); }
}

@keyframes catEarTwitchRight {
    0%, 100% { transform: rotate(0deg); }
    40% { transform: rotate(9deg); }
    70% { transform: rotate(-4deg); }
}

/* 2. Rising Money Fountain Stream from Laptop */
@keyframes moneyFountainUp {
    0% {
        transform: translateY(25px) scale(0.55);
        opacity: 0;
    }
    25% {
        opacity: 0.95;
    }
    80% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-118px) scale(1.08);
        opacity: 0;
    }
}

/* 3. Golden Kip Coins 3D Flipping & Bouncing */
@keyframes goldCoin3DSpin {
    0% { transform: translateY(0px) scaleX(1); }
    25% { transform: translateY(-14px) scaleX(0.18); }
    50% { transform: translateY(-22px) scaleX(-1); }
    75% { transform: translateY(-10px) scaleX(0.18); }
    100% { transform: translateY(0px) scaleX(1); }
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; }
    50% { transform: scale(1.45) rotate(45deg); opacity: 1; }
}

/* 4. Expressive Cat Character Movements */
@keyframes chibiHeadSway {
    0%, 100% { transform: rotate(-3deg) translateY(0px); }
    25% { transform: rotate(0deg) translateY(-4px); }
    50% { transform: rotate(3deg) translateY(1px); }
    75% { transform: rotate(0deg) translateY(-3px); }
}

@keyframes chibiEyeBlink {
    0%, 38%, 42%, 78%, 82%, 100% { transform: scaleY(1); }
    40%, 80% { transform: scaleY(0.08); }
}

@keyframes chibiMouthCheer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12, 0.88); }
}

@keyframes handTapLeft {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(5px, -9px) rotate(12deg); }
}

@keyframes handTapRight {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(-5px, -9px) rotate(-12deg); }
}

@keyframes legKickLeft {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(9deg) translateY(-6px); }
}

@keyframes legKickRight {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(-9deg) translateY(-6px); }
}

/* 5. Live Dashboard Chart & Scanner Animations */
@keyframes chartBarWave {
    0%, 100% { transform: scaleY(1); }
    35% { transform: scaleY(0.42); }
    70% { transform: scaleY(1.16); }
}

@keyframes chartScannerSweep {
    0% { transform: translateX(0px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(154px); opacity: 0; }
}

@keyframes liveBadgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.55; }
}

@keyframes donutContinuousSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progBarWave {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.68); }
}

/* 6. Barcode Scanner Camera Flash / Photo Strobe Effect */
@keyframes flashStarBurst {
    0%, 13% {
        opacity: 0;
        transform: scale(0.08) rotate(0deg);
    }
    16% {
        opacity: 0.5;
        transform: scale(0.55) rotate(12deg);
    }
    18% {
        opacity: 0.1;
        transform: scale(0.25) rotate(16deg);
    }
    21% {
        opacity: 1;
        transform: scale(1.4) rotate(45deg);
    }
    25% {
        opacity: 0.95;
        transform: scale(1.15) rotate(48deg);
    }
    33% {
        opacity: 0.35;
        transform: scale(0.7) rotate(52deg);
    }
    42%, 100% {
        opacity: 0;
        transform: scale(0.08) rotate(60deg);
    }
}

@keyframes flashCoreBurst {
    0%, 13% {
        opacity: 0;
        transform: scale(0.1);
    }
    16% {
        opacity: 0.55;
        transform: scale(0.6);
    }
    18% {
        opacity: 0.12;
        transform: scale(0.2);
    }
    21% {
        opacity: 1;
        transform: scale(1.45);
    }
    26% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    34% {
        opacity: 0.3;
        transform: scale(0.6);
    }
    43%, 100% {
        opacity: 0;
        transform: scale(0.1);
    }
}

@keyframes flashAmbientBurst {
    0%, 15% {
        opacity: 0;
        transform: scale(0.2);
    }
    21% {
        opacity: 0.92;
        transform: scale(1.25);
    }
    28% {
        opacity: 0.6;
        transform: scale(1.4);
    }
    38% {
        opacity: 0.18;
        transform: scale(1.55);
    }
    46%, 100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes flashRingExpand {
    0%, 19% {
        opacity: 0;
        transform: scale(0.3);
    }
    21% {
        opacity: 1;
        transform: scale(0.7);
    }
    30% {
        opacity: 0.75;
        transform: scale(1.9);
    }
    41% {
        opacity: 0;
        transform: scale(2.9);
    }
    100% {
        opacity: 0;
        transform: scale(2.9);
    }
}

@keyframes barcodeFlashLight {
    0%, 15% {
        opacity: 0;
    }
    16% {
        opacity: 0.3;
    }
    18% {
        opacity: 0.08;
    }
    21% {
        opacity: 0.95;
    }
    26% {
        opacity: 0.8;
    }
    35% {
        opacity: 0.22;
    }
    44%, 100% {
        opacity: 0;
    }
}

.anim-camera-flash {
    pointer-events: none;
}

.flash-ambient {
    transform-origin: 0px 0px;
    animation: flashAmbientBurst 1.8s ease-out infinite;
    pointer-events: none;
}

.flash-ring {
    transform-origin: 0px 0px;
    animation: flashRingExpand 1.8s cubic-bezier(0.15, 0.85, 0.35, 1) infinite;
    pointer-events: none;
}

.flash-core {
    transform-origin: 0px 0px;
    animation: flashCoreBurst 1.8s cubic-bezier(0.1, 0.9, 0.2, 1) infinite;
    filter: drop-shadow(0 0 10px #FFFFFF);
    pointer-events: none;
}

.flash-star {
    transform-origin: 0px 0px;
    animation: flashStarBurst 1.8s cubic-bezier(0.1, 0.9, 0.2, 1) infinite;
    filter: drop-shadow(0 0 8px #FFFFFF) drop-shadow(0 0 16px rgba(56, 189, 248, 0.85));
    pointer-events: none;
}

.flash-barcode-overlay {
    animation: barcodeFlashLight 1.8s ease-out infinite;
    pointer-events: none;
}

.anim-super-cape {
    transform-box: fill-box;
    transform-origin: top center;
    animation: superCapeFlutter 2.2s ease-in-out infinite;
}

.anim-cycle-arm {
    transform-box: fill-box;
    opacity: 0;
}
.anim-cycle-arm.cycle-arm-left {
    transform-origin: right center;
}
.anim-cycle-arm.cycle-arm-right {
    transform-origin: left center;
}

/* ແຂນທີ 1 ຫາ 6 ຂຶ້ນສະໂລຖັດກັນໄປເທື່ອລະແຂນ ຄ້າງໄວ້ຈົນຄົບທັງ 6 ແຂນ ແລ້ວເລີ່ມໃໝ່ວົນໄປເລື້ອຍໆ */
.anim-cycle-arm.arm-seq-1 {
    animation: armSeq1Left 11.5s ease-in-out infinite;
}
.anim-cycle-arm.arm-seq-2 {
    animation: armSeq2Right 11.5s ease-in-out infinite;
}
.anim-cycle-arm.arm-seq-3 {
    animation: armSeq3Left 11.5s ease-in-out infinite;
}
.anim-cycle-arm.arm-seq-4 {
    animation: armSeq4Right 11.5s ease-in-out infinite;
}
.anim-cycle-arm.arm-seq-5 {
    animation: armSeq5Left 11.5s ease-in-out infinite;
}
.anim-cycle-arm.arm-seq-6 {
    animation: armSeq6Right 11.5s ease-in-out infinite;
}

.anim-cat-ear-left {
    transform-box: fill-box;
    transform-origin: right bottom;
    animation: catEarTwitchLeft 2.4s ease-in-out infinite;
}

.anim-cat-ear-right {
    transform-box: fill-box;
    transform-origin: left bottom;
    animation: catEarTwitchRight 2.4s ease-in-out infinite 0.6s;
}

.money-fountain-stream {
    transform-box: fill-box;
    transform-origin: center;
    animation: moneyFountainUp 2.8s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
}
.money-fountain-stream.s1 { animation-delay: 0s; }
.money-fountain-stream.s2 { animation-delay: 0.9s; }
.money-fountain-stream.s3 { animation-delay: 1.8s; }

.anim-gold-coin {
    transform-box: fill-box;
    transform-origin: center;
    animation: goldCoin3DSpin 2.2s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(250, 204, 21, 0.55));
}
.anim-gold-coin.coin-b { animation-delay: 0.3s; }
.anim-gold-coin.coin-c { animation-delay: 1.1s; }

.anim-sparkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: starTwinkle 1.5s ease-in-out infinite;
}
.anim-sparkle.sp-2 { animation-delay: 0.6s; }

.anim-chibi-head {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: chibiHeadSway 2.8s ease-in-out infinite;
}

.anim-chibi-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: chibiEyeBlink 3.8s ease-in-out infinite;
}

.anim-eye-pupils {
    transition: transform 0.14s ease-out;
}

.anim-chibi-mouth {
    transform-box: fill-box;
    transform-origin: center;
    animation: chibiMouthCheer 1.4s ease-in-out infinite;
}

.anim-hand-left {
    transform-box: fill-box;
    transform-origin: center;
    animation: handTapLeft 1.2s ease-in-out infinite;
}

.anim-hand-right {
    transform-box: fill-box;
    transform-origin: center;
    animation: handTapRight 1.2s ease-in-out infinite 0.6s;
}

.anim-leg-left {
    transform-box: fill-box;
    transform-origin: top center;
    animation: legKickLeft 1.5s ease-in-out infinite;
}

.anim-leg-right {
    transform-box: fill-box;
    transform-origin: top center;
    animation: legKickRight 1.5s ease-in-out infinite 0.75s;
}

.anim-bar {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: chartBarWave 1.6s ease-in-out infinite;
}
.anim-bar.b1 { animation-delay: 0s; }
.anim-bar.b2 { animation-delay: 0.35s; }
.anim-bar.b3 { animation-delay: 0.7s; }
.anim-bar.b4 { animation-delay: 1.05s; }

.anim-chart-scanner {
    animation: chartScannerSweep 2.4s linear infinite;
}

.anim-live-pill,
.anim-peak-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: liveBadgePulse 1.1s ease-in-out infinite;
}

.anim-donut-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: donutContinuousSpin 5.5s linear infinite;
}

.anim-prog-bar {
    transform-box: fill-box;
    transform-origin: left center;
    animation: progBarWave 1.8s ease-in-out infinite;
}
.anim-prog-bar.p1 { animation-delay: 0s; }
.anim-prog-bar.p2 { animation-delay: 0.5s; }
.anim-prog-bar.p3 { animation-delay: 1.0s; }

/* ============================================================
   ກົດເຂົ້າສູ່ລະບົບ: ຟອມເປີດອອກຄົນລະຂ້າງ (ຊ້າຍ-ຂວາ ຄືເປີດຜ້າ) ແລ້ວໂຕໂຫຼດ (ແບບດາສບອດ,
   #loginLoaderOverlay — themes/dashboard-preloader.css) ຄ່ອຍໆຂຶ້ນມາ (auth/partials/login/login_js.php)
   ============================================================ */
.login-left-pane,
.login-right-pane {
    z-index: 5;
    will-change: transform, opacity;
    transition:
        transform 0.82s cubic-bezier(0.65, 0, 0.25, 1),
        opacity 0.72s cubic-bezier(0.55, 0, 0.25, 1),
        box-shadow 0.45s ease;
}

.login-left-pane {
    transform-origin: left center;
}

.login-right-pane {
    transform-origin: right center;
}




/* 11/2026: ບໍ່ໃຊ້ແຖບ ໂທ / WhatsApp / ແຊັດ ຕິດລຸ່ມຈໍມືຖືແລ້ວ (ຍັງມີປຸ່ມແຊັດລອຍ) — ຄືນພື້ນທີ່ລຸ່ມ ແລະ ຕຳແໜ່ງປຸ່ມແຊັດ */
@media (max-width: 767.98px) {
  .mbar { display: none !important; }
  body { padding-bottom: 0; }
  .fc-widget { bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- ອັດສຽງແບບ WhatsApp (assets/js/voice_rec.js) — ແຊັດລອຍ + ໜ້າແຊັດ ----------
   ລັອກ: [ຖັງຂີ້ເຫຍື້ອ] ● 0:03 [ຄື້ນສຽງ] [ຢຸດ] [ສົ່ງ]; ກົດຄ້າງ: ແຖບວາງທັບຟອມ + ປຸ່ມໄມໃຫຍ່ສີແດງ + ປ້າຍ "ປັດຂຶ້ນເພື່ອລັອກ" */
.vr-bar { display: flex; align-items: center; gap: .7rem; padding: .55rem .85rem; background: #fff; border-top: 1px solid #e2e8f0; }
.vr-bar[hidden], .vr-lockhint[hidden] { display: none !important; }
.vr-btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: #334155; cursor: pointer; }
.vr-trash:hover { background: #f1f5f9; color: #dc2626; }
.vr-time { flex: none; display: inline-flex; align-items: center; gap: .5rem; min-width: 62px; color: #0f172a; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.vr-time b { font-weight: 600; }
.vr-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; animation: vrBlink 1s infinite; }
.vr-bar.is-paused .vr-dot { background: #94a3b8; animation: none; }
@keyframes vrBlink { 50% { opacity: .25; } }
.vr-wave { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 2px; height: 30px; overflow: hidden; }
.vr-wave i { flex: none; width: 3px; height: 3px; border-radius: 3px; background: #cbd5e1; transition: height .08s linear; }
.vr-wave i.is-on { background: #64748b; }
.vr-bar.is-paused .vr-wave i.is-on { background: #94a3b8; }
.vr-slide { display: none; }
.vr-pause { color: #dc2626; }
.vr-pause:hover { background: #fef2f2; }
.vr-send { width: 44px; height: 44px; background: var(--primary, #1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(29, 78, 216, .3); }
.vr-send:hover { filter: brightness(1.08); }
/* ກົດຄ້າງ: ແຖບທັບຟອມ, ຊ່ອນຖັງ/ຢຸດ/ສົ່ງ, ສະແດງ "‹ ປັດຊ້າຍເພື່ອຍົກເລີກ" */
.vr-bar.is-hold { position: absolute; inset: 0; z-index: 3; border-top: 0; padding-right: 70px; }
.vr-bar.is-hold .vr-trash, .vr-bar.is-hold .vr-pause, .vr-bar.is-hold .vr-send { display: none; }
.vr-bar.is-hold .vr-wave { flex: 0 1 120px; }
.vr-bar.is-hold .vr-slide { display: block; flex: 1; color: #64748b; font-size: .85rem; text-align: center; white-space: nowrap; overflow: hidden; }
.vr-holding { position: relative; z-index: 4; transform: scale(1.35); background: #dc2626 !important; color: #fff !important; border-radius: 50% !important; box-shadow: 0 0 0 8px rgba(220, 38, 38, .18); transition: transform .15s ease; }
.vr-lockhint { position: absolute; right: 6px; bottom: calc(100% + 10px); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem .4rem; border-radius: 999px; background: #fff; color: #475569; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); animation: vrHint 1.2s ease-in-out infinite; }
.vr-lockhint small { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: .25rem .5rem; border-radius: 6px; background: rgba(15, 23, 42, .85); color: #fff; font-size: .72rem; white-space: nowrap; }
@keyframes vrHint { 50% { margin-bottom: 6px; } }
.vr-holding, .vr-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* ມືຖື: 2 ແຖວ — ເທິງ: ເວລາ + ຄື້ນສຽງ, ລຸ່ມ: ຖັງຂີ້ເຫຍື້ອ (ຊ້າຍ) | ຢຸດ (ກາງ ວົງແດງ) | ສົ່ງ (ຂວາ) */
@media (max-width: 640px) {
  .vr-bar.is-locked { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "time wave wave" "trash pause send"; row-gap: .6rem; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
  .vr-bar.is-locked .vr-time { grid-area: time; font-size: 1.15rem; }
  .vr-bar.is-locked .vr-wave { grid-area: wave; height: 34px; }
  .vr-bar.is-locked .vr-trash { grid-area: trash; justify-self: start; }
  .vr-bar.is-locked .vr-pause { grid-area: pause; justify-self: center; width: 46px; height: 46px; border: 2.5px solid #dc2626; }
  .vr-bar.is-locked .vr-send { grid-area: send; justify-self: end; width: 50px; height: 50px; }
}

.vr-form-off { display: none !important; }   /* ຟອມພິມ ຕອນອັດສຽງແບບລັອກ (voice_rec.js) */

/* ---------- ຢືນຢັນກ່ອນສົ່ງຮູບ / ໄຟລ໌ ໃນແຊັດ (assets/js/chat_confirm.js) ---------- */
.ccf { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); animation: ccfFade .2s ease; }
@keyframes ccfFade { from { opacity: 0; } }
.ccf-box { width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1rem; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.ccf-title { margin: 0 0 .8rem; color: #0f172a; font-size: 1.05rem; font-weight: 700; text-align: center; }
.ccf-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.ccf-list.is-single { grid-template-columns: 1fr; }
.ccf-item { position: relative; display: flex; align-items: center; gap: .6rem; padding: .55rem; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; min-width: 0; }
.ccf-item.is-media { flex-direction: column; align-items: stretch; padding: .35rem; }
.ccf-media { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 7px; background: #e2e8f0; }
.ccf-list.is-single .ccf-media { height: auto; max-height: 52vh; object-fit: contain; }
.ccf-ext { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #e0e7ff; color: #1d4ed8; font-size: .7rem; font-weight: 800; }
.ccf-cap { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ccf-cap b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; font-size: .82rem; }
.ccf-cap small { color: #64748b; font-size: .72rem; }
.ccf-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .65); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.ccf-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: 1rem; }
.ccf-btns button { height: 44px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.ccf-cancel { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.ccf-send { border: 0; background: var(--primary, #1d4ed8); color: #fff; }
.ccf-send:hover { filter: brightness(1.08); }
/* ຢືນຢັນກ່ອນສົ່ງຂໍ້ຄວາມສຽງ (assets/js/chat_confirm.js): ເຄື່ອງຫຼິ້ນສຽງເຕັມກວ້າງ ຟັງກ່ອນສົ່ງ */
.ccf-item.is-audio { flex-direction: column; align-items: stretch; gap: .45rem; padding: .7rem; }
.ccf-audio { display: block; width: 100%; height: 40px; }

/* ຢືນຢັນກ່ອນສົ່ງ ໃບສະເໜີລາຄາ / ການສັ່ງຊື້ (assets/js/submit_confirm.js) — ໃຊ້ .ccf-* ຮ່ວມ + ສະຫຼຸບລາຍການ */
.scf-box { width: min(520px, 100%); }
.scf-body { flex: 1; min-height: 0; overflow-y: auto; text-align: left; }
.scf-h { margin: .3rem 0 .4rem; font-size: .8rem; font-weight: 800; color: #64748b; text-transform: none; }
.scf-h + .scf-rows { margin-top: 0; }
.scf-rows { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: .35rem .9rem; margin: 0 0 .8rem; padding: .65rem .8rem;
  border: 1px solid #e2e8f0; border-radius: 4px; background: #f8fafc; font-size: .88rem; }
.scf-rows dt { color: #64748b; }
.scf-rows dd { margin: 0; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.scf-rows.is-items { grid-template-columns: minmax(0, 1fr) auto; }
.scf-rows.is-items dt { color: #0f172a; font-weight: 600; }
.scf-rows.is-items dd { text-align: right; white-space: nowrap; color: #1d4ed8; }
.scf-total { display: flex; justify-content: space-between; align-items: baseline; margin: -.3rem 0 .9rem; padding: .55rem .8rem; border-radius: 4px; background: #eff6ff; }
.scf-total span { color: #475569; font-weight: 700; }
.scf-total b { color: #1d4ed8; font-size: 1.1rem; }
