/* ==========================================================================
   JUFbook Global "আলো" (Alo) AI Assistant — Aurora-Glass UI (Site-Wide)
   ========================================================================== */
@property --juf-alo-a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Header trigger buttons (Mobile icon + Desktop pill) */
.juf-alo-hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-primary, #15222B);
  background: transparent;
  border: 0;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  flex: none;
}
.juf-alo-hdr-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(124, 136, 184, .65));
}
.juf-alo-hdr-mob {
  width: 38px;
  height: 38px;
  padding: 0;
}
.juf-alo-hdr-mob:active { transform: scale(.92); }
.juf-alo-hdr-desk {
  display: none;
  height: 36px;
  padding: 0 13px;
  font: 600 13.5px/1 var(--font-ui, Inter, system-ui, sans-serif);
  background:
    linear-gradient(var(--bg-page, #F6F5F2), var(--bg-page, #F6F5F2)) padding-box,
    linear-gradient(135deg, #6E7BA8, #DB8B6C) border-box;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
html[data-theme="dark"] .juf-alo-hdr-desk {
  color: #ECE8E1;
  background:
    linear-gradient(#1E2228, #1E2228) padding-box,
    linear-gradient(135deg, #8A96C8, #D4AF6A) border-box;
}
.juf-alo-hdr-desk:hover,
.juf-alo-hdr-desk[aria-expanded="true"] {
  background: linear-gradient(135deg, #4A5580, #7C88B8);
  color: #fff;
}
@media (min-width: 1024px) {
  .juf-alo-hdr-mob { display: none !important; }
  .juf-alo-hdr-desk { display: inline-flex; }
}

/* Scrim + Aurora-Glass Sheet/Panel */
.juf-alo-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 30, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
  z-index: 12440;
}
.juf-alo-scrim.is-on { opacity: 1; pointer-events: auto; }

.juf-alo {
  --al-bg: #F6F5F2;
  --al-sf: #EDEBE6;
  --al-ink: #282E37;
  --al-mu: #5B6470;
  --al-ln: #DEDAD2;
  --al-ac: #15222B;
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, 640px);
  height: 86vh;
  height: 86dvh;
  transform: translate(-50%, 106%);
  z-index: 12460;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--al-ink);
  background: color-mix(in srgb, var(--al-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--al-ln);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
  transition: transform .4s cubic-bezier(.2, .9, .25, 1);
  box-sizing: border-box;
}
html[data-theme="pdf"] .juf-alo {
  --al-bg: #F4EFE6;
  --al-sf: #EAE3D5;
  --al-ink: #241E17;
  --al-mu: #62584B;
  --al-ln: #D8CFC0;
  --al-ac: #3B4256;
}
html[data-theme="dark"] .juf-alo {
  --al-bg: #23262B;
  --al-sf: #2C3037;
  --al-ink: #ECE8E1;
  --al-mu: #A9AEB6;
  --al-ln: #3A3F47;
  --al-ac: #D4AF6A;
}
.juf-alo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 230px;
  pointer-events: none;
  background:
    radial-gradient(110% 90% at 20% 0, color-mix(in srgb, #6E7BA8 30%, transparent), transparent 70%),
    radial-gradient(70% 80% at 92% 0, color-mix(in srgb, #DB8B6C 24%, transparent), transparent 72%);
}
.juf-alo > * { position: relative; }
.juf-alo.is-open { transform: translate(-50%, 0); }
.juf-alo.is-full { height: 100vh; height: 100dvh; width: 100%; border-radius: 0; border-width: 0; }

.juf-alo-grab {
  width: 40px; height: 5px; border-radius: 5px; background: var(--al-ln); margin: 8px auto 0; flex: none;
}
.juf-alo-h {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; flex: none;
  border-bottom: 1px solid color-mix(in srgb, var(--al-ln) 60%, transparent);
}
.juf-alo-ib {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  color: var(--al-ink); display: grid; place-items: center; cursor: pointer; flex: none;
}
.juf-alo-ib:hover { background: var(--al-sf); }
.juf-alo-ib svg, .juf-alo-ic svg, .juf-alo-send svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.juf-alo-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; color: #fff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.55), transparent 42%),
    conic-gradient(from 200deg, #15222B, #6E7BA8, #DB8B6C, #6E7BA8, #15222B);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 20px -8px rgba(110,123,168,.9);
}
.juf-alo-ic svg { width: 18px; height: 18px; stroke: #fff; }
.juf-alo-ic.big { width: 54px; height: 54px; margin: 0 auto; animation: jufAloBreathe 4.5s ease-in-out infinite; }
.juf-alo-ic.big svg { width: 26px; height: 26px; }
@keyframes jufAloBreathe {
  50% { transform: scale(1.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 10px 32px -6px rgba(219,139,108,.75); }
}

.juf-alo-t { flex: 1; min-width: 0; line-height: 1.28; }
.juf-alo-t b {
  display: block; font: 600 16px/1.3 var(--font-reading, "Noto Serif Bengali", Georgia, serif);
  background: linear-gradient(90deg, var(--al-ink) 40%, #7C88B8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.juf-alo-t small { display: block; color: var(--al-mu); font: 12.5px/1.3 var(--font-reading, "Noto Serif Bengali", Georgia, serif); }

.juf-alo-q {
  display: inline-flex; align-items: center; gap: 6px;
  font: 13px/1 var(--font-reading, "Noto Serif Bengali", Georgia, serif); color: var(--al-mu); white-space: nowrap;
}
.juf-alo-q[hidden] { display: none; }
.juf-alo-q b { color: var(--al-ink); font-weight: 600; }
.juf-alo-q.is-low, .juf-alo-q.is-low b { color: #B45309; }
.juf-alo-ring { width: 24px; height: 24px; transform: rotate(-90deg); }
.juf-alo-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.juf-alo-rb { stroke: var(--al-ln); }
.juf-alo-rf { stroke: #6E7BA8; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 * (1 - var(--p, 0))); transition: stroke-dashoffset .6s cubic-bezier(.2,.9,.25,1); }
.juf-alo-q.is-low .juf-alo-rf { stroke: #DB8B6C; }

.juf-alo-msgs {
  flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin;
}
.juf-alo-empty { margin: auto; text-align: center; padding: 8px; color: var(--al-mu); width: 100%; }
.juf-alo-empty h3, .juf-alo-gate h3 { margin: 12px 0 6px; font: 600 19px/1.35 var(--font-reading, "Noto Serif Bengali", Georgia, serif); color: var(--al-ink); }
.juf-alo-empty p, .juf-alo-gate p { margin: 0 auto; max-width: 26em; font: 14.5px/1.6 var(--font-reading, "Noto Serif Bengali", Georgia, serif); }
.juf-alo-cards { display: grid; gap: 9px; margin: 18px auto 0; width: 100%; max-width: 410px; }
.juf-alo-card {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border: 0; border-radius: 16px;
  text-align: left; cursor: pointer; font: 14.5px/1.4 var(--font-reading, "Noto Serif Bengali", Georgia, serif);
  color: var(--al-ink); background: color-mix(in srgb, var(--al-sf) 82%, transparent); box-shadow: inset 0 0 0 1px var(--al-ln);
  animation: jufAloRise .5s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i, 0) * 80ms + 90ms);
  transition: transform .18s ease, box-shadow .18s ease;
}
.juf-alo-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #6E7BA8, 0 10px 24px -14px rgba(110,123,168,.8); }
.juf-alo-card i {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: color-mix(in srgb, #6E7BA8 18%, transparent); color: #6E7BA8; flex: none; font-style: normal; font-size: 15px;
}
.juf-alo-card span { flex: 1; }
@keyframes jufAloRise { from { opacity: 0; transform: translateY(10px); } }

.juf-alo-m { animation: jufAloRise .36s cubic-bezier(.2,.9,.25,1) both; }
.juf-alo-m.u {
  align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  font: 15px/1.55 var(--font-reading, "Noto Serif Bengali", Georgia, serif);
  background: linear-gradient(135deg, #15222B, #4A5580); color: #F6F5F2;
  box-shadow: 0 8px 20px -12px rgba(21,34,43,.85);
}
.juf-alo-m.a { display: flex; gap: 10px; align-items: flex-start; }
.juf-alo-m.a .juf-alo-ic { width: 28px; height: 28px; margin-top: 2px; }
.juf-alo-m.a .juf-alo-ic svg { width: 15px; height: 15px; }
.juf-alo-m.a .tx { flex: 1; min-width: 0; font: 15.5px/1.7 var(--font-reading, "Noto Serif Bengali", Georgia, serif); color: var(--al-ink); }
.juf-alo-m.a .tx p { margin: 0 0 8px; }
.juf-alo-m.a .tx p:last-child { margin-bottom: 0; }
.juf-alo-w { opacity: 0; animation: jufAloWf .4s ease forwards; animation-delay: var(--d, 0ms); }
.juf-alo-late { opacity: 0; animation: jufAloWf .45s ease forwards; }
@keyframes jufAloWf { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.juf-alo-dots { display: inline-flex; gap: 4px; align-items: center; color: var(--al-mu); font: 14px var(--font-reading, "Noto Serif Bengali", Georgia, serif); }
.juf-alo-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: jufAloBl 1s infinite; }
.juf-alo-dots i:nth-child(2) { animation-delay: .15s; }
.juf-alo-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes jufAloBl { 0%,80%,100%{opacity:.25} 40%{opacity:1} }

/* Rich clickable site result cards */
.juf-alo-links { display: grid; gap: 7px; margin-top: 10px; }
.juf-alo-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-decoration: none;
  background: color-mix(in srgb, var(--al-sf) 78%, transparent);
  box-shadow: inset 0 0 0 1px var(--al-ln); color: var(--al-ink);
  transition: transform .15s ease, box-shadow .18s ease;
}
.juf-alo-link:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #6E7BA8; }
.juf-alo-link .ico { font-size: 17px; flex: none; line-height: 1; }
.juf-alo-link .meta { flex: 1; min-width: 0; }
.juf-alo-link .meta strong { display: block; font: 600 14px/1.35 var(--font-reading, "Noto Serif Bengali", Georgia, serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juf-alo-link .meta small { display: block; color: var(--al-mu); font: 12px/1.3 var(--font-reading, "Noto Serif Bengali", Georgia, serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juf-alo-link .arr { color: var(--al-mu); font-size: 14px; flex: none; }

.juf-alo-act { display: flex; gap: 2px; margin-top: 4px; }
.juf-alo-act button { min-height: 32px; padding: 0 9px; border: 0; background: transparent; color: var(--al-mu); font: 12.5px var(--font-ui, Inter, system-ui, sans-serif); border-radius: 8px; cursor: pointer; }
.juf-alo-act button:hover { background: var(--al-sf); color: var(--al-ink); }
.juf-alo-retry { margin-top: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--al-ac); color: var(--al-bg); font: 600 13.5px var(--font-ui, Inter, system-ui, sans-serif); cursor: pointer; }

.juf-alo-foot {
  flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--al-ln); background: color-mix(in srgb, var(--al-bg) 95%, transparent);
}
.juf-alo-form { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.juf-alo-row {
  display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 5px 6px 5px 16px;
  border-radius: 26px; border: 1.5px solid transparent;
  background: linear-gradient(var(--al-sf), var(--al-sf)) padding-box, linear-gradient(var(--al-ln), var(--al-ln)) border-box;
}
.juf-alo-row:focus-within {
  box-shadow: 0 10px 30px -14px rgba(110,123,168,.9);
  background: linear-gradient(var(--al-sf), var(--al-sf)) padding-box, conic-gradient(from var(--juf-alo-a), #6E7BA8, #DB8B6C, #A9B6E0, #6E7BA8) border-box;
  animation: jufAloSpin 5s linear infinite;
}
@keyframes jufAloSpin { to { --juf-alo-a: 360deg; } }
.juf-alo-row textarea,
.juf-alo-row textarea:focus,
.juf-alo-row textarea:focus-visible {
  flex: 1 1 auto !important; width: 100% !important; min-width: 0 !important;
  min-height: 24px !important; max-height: 110px !important; height: 34px;
  margin: 0 !important; padding: 6px 2px !important; border: 0 !important; border-radius: 0 !important;
  outline: none !important; box-shadow: none !important; background: transparent !important;
  color: var(--al-ink) !important; resize: none !important; overflow-y: hidden !important;
  -webkit-appearance: none !important; appearance: none !important;
  font: 15px/1.45 var(--font-reading, "Noto Serif Bengali", Georgia, serif) !important;
}
.juf-alo-row textarea.is-scrollable { overflow-y: auto !important; }
.juf-alo-send {
  flex: none; width: 40px; height: 40px; align-self: flex-end; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #4A5580, #7C88B8); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 8px 18px -8px rgba(110,123,168,.95); transition: transform .15s ease, opacity .2s ease;
}
.juf-alo-send svg { stroke: #fff; }
.juf-alo-send:disabled { opacity: .35; cursor: not-allowed; }
.juf-alo-send.busy { opacity: 1; }
.juf-alo-send.busy svg { display: none; }
.juf-alo-send.busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: jufAloRot .8s linear infinite; }
@keyframes jufAloRot { to { transform: rotate(360deg); } }
.juf-alo-disc { margin: 7px 6px 0; text-align: center; color: var(--al-mu); font: 11.5px/1.4 var(--font-reading, "Noto Serif Bengali", Georgia, serif); }

.juf-alo-gate { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--al-mu); }
.juf-alo-gate-btn {
  margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 46px;
  padding: 0 22px; border-radius: 14px; background: var(--al-ac); color: var(--al-bg);
  font: 600 15px var(--font-ui, Inter, system-ui, sans-serif); text-decoration: none;
}
.juf-alo[data-st="login"] .juf-alo-gate,
.juf-alo[data-st="limit"] .juf-alo-gate,
.juf-alo[data-st="off"] .juf-alo-gate { display: flex; }
.juf-alo[data-st="limit"] .juf-alo-gate-btn,
.juf-alo[data-st="off"] .juf-alo-gate-btn { display: none; }
.juf-alo[data-st="login"] :is(.juf-alo-msgs, .juf-alo-foot),
.juf-alo[data-st="limit"] :is(.juf-alo-msgs, .juf-alo-foot),
.juf-alo[data-st="off"] :is(.juf-alo-msgs, .juf-alo-foot) { display: none; }

@media (min-width: 1024px) {
  .juf-alo {
    left: auto; right: 0; top: 0; bottom: 0; width: 400px; height: 100vh; height: 100dvh;
    transform: translateX(105%); border-width: 0 0 0 1px; border-radius: 0; box-shadow: -12px 0 36px rgba(0,0,0,.14);
  }
  .juf-alo.is-open { transform: none; }
  .juf-alo-grab { display: none; }
  .juf-alo.is-full { left: 50%; right: auto; width: min(760px, 100%); transform: translateX(-50%); border-width: 0 1px; }
  .juf-alo.is-full.is-open { transform: translateX(-50%); }
}


/* Mobile Search Box Embedded "✦ Alo" Pill (clean mobile header, zero clutter) */
html body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 0 11px !important;
  margin: 0 2px 0 4px !important;
  border-radius: 999px !important;
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(var(--bg-page, #F6F5F2), var(--bg-page, #F6F5F2)) padding-box,
    linear-gradient(135deg, #6E7BA8, #DB8B6C) border-box !important;
  color: var(--text-primary, #15222B) !important;
  font: 600 13px/1 var(--font-ui, Inter, system-ui, sans-serif) !important;
  white-space: nowrap !important;
  flex: none !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search {
  background:
    linear-gradient(#1E2228, #1E2228) padding-box,
    linear-gradient(135deg, #8A96C8, #D4AF6A) border-box !important;
  color: #ECE8E1 !important;
}
html body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search svg {
  width: 15px !important;
  height: 15px !important;
  flex: none !important;
}
html body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search:active {
  transform: scale(.95);
}
@media (min-width: 1024px) {
  html body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search {
    display: none !important;
  }
}


/* High-specificity override so global textarea:focus white box/border NEVER appears inside #juf-alo */
html body #juf-alo #juf-alo-in,
html body #juf-alo #juf-alo-in:hover,
html body #juf-alo #juf-alo-in:focus,
html body #juf-alo #juf-alo-in:focus-visible,
html body #juf-alo .juf-alo-row textarea,
html body #juf-alo .juf-alo-row textarea:hover,
html body #juf-alo .juf-alo-row textarea:focus,
html body #juf-alo .juf-alo-row textarea:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  outline-style: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-box-shadow: none !important;
}


/* Fix 4-column single-row grid inside mobile #juf-global-search-form so ✦ Alo sits cleanly inline */
@media (max-width: 1023px) {
  html body #juf-global-search-form.juf-global-search-v40 {
    grid-template-columns: 20px minmax(0, 1fr) 34px auto !important;
    column-gap: 4px !important;
    align-items: center !important;
  }
  html body #juf-global-search-form > #juf-alo-open-mob.juf-alo-in-search {
    grid-column: 4 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;
    height: 32px !important;
    padding: 0 11px !important;
    margin: 0 !important;
  }
}

/* High-contrast Sign in CTA inside Global Alo gate */
#juf-alo a.juf-alo-gate-btn,
#juf-alo a.juf-alo-gate-btn:visited {
  color: #F6F5F2 !important;
  background: #15222B !important;
}
html[data-theme="dark"] #juf-alo a.juf-alo-gate-btn {
  color: #15222B !important;
  background: #D4AF6A !important;
}

/* Fancy Premium Book & Author Cards inside Alo */
.juf-alo-m.a .tx { min-width: 0 !important; flex: 1 1 auto !important; max-width: calc(100% - 40px) !important; }
.juf-alo-links { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; width: 100%; max-width: 100%; }
.juf-alo-link.juf-alo-card-fancy {
  display: flex !important; align-items: center !important; gap: 11px !important;
  padding: 10px 12px !important; border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.96) 0%, rgba(246,241,232,0.92) 100%) !important;
  border: 1px solid rgba(183,154,104,0.32) !important;
  box-shadow: 0 6px 18px -12px rgba(21,34,43,0.28), inset 0 1px 0 rgba(255,255,255,0.85) !important;
  text-decoration: none !important; color: #15222B !important;
  width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden !important;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
.juf-alo-link.juf-alo-card-fancy:active { transform: scale(0.98); }
.juf-alo-thumb {
  flex: 0 0 42px; width: 42px; height: 58px; border-radius: 8px; overflow: hidden;
  background: #E8E1D3; border: 1px solid rgba(21,34,43,0.1);
  box-shadow: 0 3px 8px rgba(21,34,43,0.16); display: grid; place-items: center;
}
.juf-alo-thumb.is-round { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
.juf-alo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.juf-alo-ico-badge {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212,175,106,0.18); font-size: 18px;
}
.juf-alo-card-fancy .meta { min-width: 0 !important; flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
.juf-alo-pill {
  align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: rgba(21,34,43,0.08); color: #15222B;
}
.juf-alo-pill.is-audio { background: rgba(212,175,106,0.28); color: #6E4E12; }
.juf-alo-card-fancy .meta strong {
  font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.3 !important; color: #15222B !important;
  white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.juf-alo-card-fancy .meta small { font-size: 11.5px !important; color: #5C6773 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juf-alo-go {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #15222B; color: #F7F3EB !important; font-size: 13px; font-weight: 700;
}
html[data-theme="dark"] .juf-alo-link.juf-alo-card-fancy,
body.dark-mode .juf-alo-link.juf-alo-card-fancy {
  background: linear-gradient(145deg, #242A34 0%, #1C212A 100%) !important;
  border-color: rgba(212,175,106,0.28) !important; color: #F2EFE9 !important;
}
html[data-theme="dark"] .juf-alo-card-fancy .meta strong,
body.dark-mode .juf-alo-card-fancy .meta strong { color: #F2EFE9 !important; }
html[data-theme="dark"] .juf-alo-card-fancy .meta small,
body.dark-mode .juf-alo-card-fancy .meta small { color: #A6B0BC !important; }
html[data-theme="dark"] .juf-alo-pill,
body.dark-mode .juf-alo-pill { background: rgba(255,255,255,0.1); color: #EBD197; }
html[data-theme="dark"] .juf-alo-go,
body.dark-mode .juf-alo-go { background: #D4AF6A; color: #15222B !important; }

/* Interactive In-Chat MCQ Card inside Alo */
.juf-alo-mcq {
  margin-top: 10px; padding: 14px; border-radius: 16px;
  background: linear-gradient(155deg, #FFFFFF 0%, #F7F3EB 100%);
  border: 1px solid rgba(183,154,104,0.38);
  box-shadow: 0 8px 22px -14px rgba(21,34,43,0.28);
  display: flex; flex-direction: column; gap: 10px; box-sizing: border-box;
}
.juf-alo-mcq-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: rgba(212,175,106,0.24); color: #6E4E12;
}
.juf-alo-mcq-q { font-size: 14.5px; font-weight: 700; line-height: 1.45; color: #15222B; }
.juf-alo-mcq-opts { display: flex; flex-direction: column; gap: 7px; }
.juf-alo-mcq-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(21,34,43,0.13);
  background: rgba(255,255,255,0.92); color: #15222B; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: transform .12s ease, border-color .15s, background .15s;
}
.juf-alo-mcq-opt:active:not(:disabled) { transform: scale(0.98); }
.juf-alo-mcq-opt b {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(21,34,43,0.08); color: #15222B; font-size: 12px; font-weight: 700;
}
.juf-alo-mcq-opt.is-correct { background: #E9F7EF; border-color: #2E8B57; color: #14532D; }
.juf-alo-mcq-opt.is-correct b { background: #2E8B57; color: #FFFFFF; }
.juf-alo-mcq-opt.is-wrong { background: #FDEDEC; border-color: #C0392B; color: #78281F; }
.juf-alo-mcq-opt.is-wrong b { background: #C0392B; color: #FFFFFF; }
.juf-alo-mcq-fb { padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.juf-alo-mcq-fb.is-ok { background: rgba(46,139,87,0.12); color: #14532D; }
.juf-alo-mcq-fb.is-no { background: rgba(192,57,43,0.10); color: #78281F; }
.juf-alo-mcq-fb p { margin: 5px 0 0; opacity: 0.92; }
.juf-alo-mcq-next {
  margin-top: 9px; padding: 7px 14px; border: 0; border-radius: 999px;
  background: #15222B; color: #F7F3EB; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
html[data-theme="dark"] .juf-alo-mcq,
body.dark-mode .juf-alo-mcq { background: #212730; border-color: rgba(212,175,106,0.3); }
html[data-theme="dark"] .juf-alo-mcq-q,
body.dark-mode .juf-alo-mcq-q { color: #F2EFE9; }
html[data-theme="dark"] .juf-alo-mcq-opt,
body.dark-mode .juf-alo-mcq-opt { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #F2EFE9; }
html[data-theme="dark"] .juf-alo-mcq-opt b,
body.dark-mode .juf-alo-mcq-opt b { background: rgba(255,255,255,0.12); color: #F2EFE9; }
html[data-theme="dark"] .juf-alo-mcq-next,
body.dark-mode .juf-alo-mcq-next { background: #D4AF6A; color: #15222B; }

/* Multi-MCQ Stack, Live Score & Answer Spoiler */
.juf-alo-mcq-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.juf-alo-mcq-stack .juf-alo-mcq { margin-top: 0; }
.juf-alo-mcq-score {
  position: static; margin-top: 4px; align-self: center;
  padding: 6px 14px; border-radius: 999px;
  background: #15222B; color: #F7F3EB; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(21,34,43,0.45);
}
.juf-alo-ans-spoiler {
  display: inline-block; margin-top: 4px; margin-bottom: 6px;
}
.juf-alo-ans-spoiler summary {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(212,175,106,0.22); color: #6E4E12; list-style: none;
}
.juf-alo-ans-spoiler summary::-webkit-details-marker { display: none; }
.juf-alo-ans-spoiler span {
  display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: #14532D;
}
html[data-theme="dark"] .juf-alo-mcq-score,
body.dark-mode .juf-alo-mcq-score { background: #D4AF6A; color: #15222B; }
html[data-theme="dark"] .juf-alo-ans-spoiler summary,
body.dark-mode .juf-alo-ans-spoiler summary { background: rgba(212,175,106,0.2); color: #F0D497; }
html[data-theme="dark"] .juf-alo-ans-spoiler span,
body.dark-mode .juf-alo-ans-spoiler span { color: #86EFAC; }
