/* Ask Maha — elegant white/gold + soft glow; neon accents on chat header */
.am-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem; /* clear Netlify badge / bottom chrome */
  z-index: 9999;
  font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif);
}
.am-fab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 10px 28px rgba(17, 17, 17, 0.12),
    0 0 22px rgba(212, 175, 55, 0.28),
    0 0 18px rgba(200, 245, 66, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.am-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(17, 17, 17, 0.14),
    0 0 28px rgba(212, 175, 55, 0.4),
    0 0 22px rgba(61, 224, 255, 0.22);
}
.am-fab img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  background: #faf8f4;
}
.am-fab-label {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.am-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(92vw, 400px);
}
.am-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(17, 17, 17, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 28px rgba(212, 175, 55, 0.18);
  max-height: min(78vh, 640px);
}
.am-panel--page {
  max-height: none;
  min-height: 560px;
  box-shadow:
    0 12px 40px rgba(17, 17, 17, 0.08),
    0 0 24px rgba(212, 175, 55, 0.16);
}
.am-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #0d0d0d;
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    0 0 24px rgba(200, 245, 66, 0.22),
    0 0 18px rgba(61, 224, 255, 0.12) inset;
}
.am-panel[data-persona="little"] .am-header {
  box-shadow:
    0 0 26px rgba(255, 138, 61, 0.28),
    0 0 18px rgba(200, 245, 66, 0.16) inset;
}
.am-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #d4af37;
  box-shadow: 0 0 14px rgba(200, 245, 66, 0.45);
  background: #1a1a1a;
}
.am-panel[data-persona="little"] .am-header-avatar {
  border-color: #c8f542;
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.5);
}
.am-header-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8f542;
  text-shadow: 0 0 10px rgba(200, 245, 66, 0.55);
}
.am-header-name {
  margin: 0.1rem 0 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.am-header-tag {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}
.am-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  opacity: 0.8;
}
.am-close:hover { opacity: 1; color: #c8f542; }
.am-disclaimer {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b6560;
  background: #faf8f4;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.am-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
  min-height: 220px;
}
.am-msg {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  max-width: 95%;
}
.am-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.am-msg--bot { align-self: flex-start; }
.am-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 1.5px solid #d4af37;
  background: #fff;
}
.am-msg--little .am-avatar { border-color: #c8f542; }
.am-bubble {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px 14px 14px 4px;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.05);
}
.am-msg--user .am-bubble {
  background: #111;
  color: #fff;
  border-color: #111;
  border-radius: 14px 14px 4px 14px;
}
.am-msg--little .am-bubble {
  border-color: rgba(200, 245, 66, 0.55);
  box-shadow: 0 0 16px rgba(200, 245, 66, 0.18);
}
.am-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8892a;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.am-msg--little .am-label { color: #6a9a12; }
.am-text {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.am-cta {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a8892a;
  text-decoration: none;
  border-bottom: 1px solid #d4af37;
}
.am-cta:hover { color: #111; }
.am-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
}
.am-chip {
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #faf8f4;
  color: #111;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.am-chip:hover {
  background: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
}
.am-chip--little {
  border-color: rgba(200, 245, 66, 0.7);
  background: rgba(200, 245, 66, 0.18);
}
.am-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem 0.85rem;
  background: #fff;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}
.am-input {
  flex: 1;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  background: #faf8f4;
}
.am-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.am-send {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #111;
  color: #c8f542;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(200, 245, 66, 0.25);
}
.am-send:hover { color: #fff; }

/* Page layout helpers */
.ask-maha-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .ask-maha-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.ask-maha-stage {
  margin-top: 1.5rem;
}
.maha-teach--gut img {
  filter: drop-shadow(0 8px 18px rgba(200, 245, 66, 0.25));
}

@media (max-width: 520px) {
  .am-fab-label { display: none; }
  .am-fab { padding: 0.3rem; }
  .am-widget { right: 0.75rem; bottom: 5rem; z-index: 9999; }
  .am-widget-panel { width: min(96vw, 380px); }
}


/* Page shell polish */
.page-ask-maha .page-hero {
  padding-bottom: 1.5rem;
}
.page-ask-maha .ask-maha-stage {
  border-radius: 18px;
  box-shadow:
    0 12px 40px rgba(17, 17, 17, 0.08),
    0 0 28px rgba(212, 175, 55, 0.16);
}
.page-ask-maha .soft-card--agni {
  position: relative;
}


.am-handoff {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95em;
  opacity: 0.92;
}
.am-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.am-cta--ghost {
  background: transparent;
  border: 1px solid currentColor;
}
