/* ==========================================================================
   Ammu & Gajju — floating button, dark-glass chat panel, banter bubbles.
   Scoped under .yd-guides; matches the public site's dark design
   (Dawn Sadhana: indigo night #121629, saffron #f2a541, lotus #e7a3b5 for
   Ammu; Outfit / Inter / Anek Kannada).
   ========================================================================== */
.yd-guides {
  --gd-bg: rgba(18, 22, 41, .88);
  --gd-bg-solid: #121629;
  --gd-surface: rgba(246, 239, 227, .06);
  --gd-surface-2: rgba(246, 239, 227, .10);
  --gd-line: rgba(242, 165, 65, .24);
  --gd-text: #f6efe3;
  --gd-dim: rgba(246, 239, 227, .7);
  --gd-faint: rgba(246, 239, 227, .55);
  --gd-sand: #f2a541;
  --gd-sand-ink: #121629;
  --gd-ammu: #e7a3b5;
  --gd-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --gd-blur: saturate(160%) blur(18px);
  --gd-font: 'Outfit', 'Inter', 'Anek Kannada', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gd-safe-b: env(safe-area-inset-bottom, 0px);
  --gd-safe-r: env(safe-area-inset-right, 0px);
  font-family: var(--gd-font);
  color: var(--gd-text);
}
.yd-guides *, .yd-guides *::before, .yd-guides *::after { box-sizing: border-box; }
.yd-guides [hidden] { display: none !important; }
.yd-guides svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yd-guides button { font: inherit; color: inherit; }
.yd-guides :focus-visible { outline: 2px solid var(--gd-sand); outline-offset: 2px; }
.gd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- avatar (image, or an initial when the mascot file is missing) ---------- */
.gd-av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fbe0b8, var(--gd-sand)); }
.gd-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; } /* whole head incl. crown / turban */
.gd-av-missing::after { content: attr(data-initial); font-weight: 700; color: var(--gd-sand-ink); font-size: .9em; }
.gd-av-ammu { background: radial-gradient(circle at 50% 35%, #f8dbe3, var(--gd-ammu)); }

/* ---------- floating button ---------- */
.gd-fab {
  position: fixed; z-index: 990; right: calc(14px + var(--gd-safe-r)); bottom: calc(16px + var(--gd-safe-b));
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 4px 18px 4px 4px; border-radius: 999px; cursor: pointer;
  background: var(--gd-bg); border: 1px solid var(--gd-line); color: var(--gd-text);
  -webkit-backdrop-filter: var(--gd-blur); backdrop-filter: var(--gd-blur); box-shadow: var(--gd-shadow);
  font-weight: 600; font-size: 15px; line-height: 1; transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.gd-fab:hover { transform: translateY(-2px); }
.gd-fab:active { transform: scale(.96); }
.gd-fab-av { display: inline-grid; border-radius: 50%; box-shadow: 0 0 0 2px var(--gd-sand), 0 4px 12px rgba(0, 0, 0, .35); }
.gd-fab-av .gd-av { width: 48px; height: 48px; font-size: 20px; }
.yd-guides.is-open .gd-fab { opacity: 0; pointer-events: none; visibility: hidden; }
/* the page's own "Ask Gajju" button is on screen: ours steps aside */
.yd-guides.has-hero:not(.is-open) .gd-fab { opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
@media (max-width: 420px) { .gd-fab { padding-right: 4px; } .gd-fab-label { display: none; } }

/* ---------- panel ---------- */
.gd-panel {
  position: fixed; z-index: 1000; display: flex; flex-direction: column; overflow: hidden;
  left: 8px; right: 8px; bottom: calc(8px + var(--gd-safe-b)); height: min(80dvh, 680px);
  border-radius: 28px; border: 1px solid var(--gd-line);
  background: var(--gd-bg); -webkit-backdrop-filter: var(--gd-blur); backdrop-filter: var(--gd-blur); box-shadow: var(--gd-shadow);
  animation: gd-in .45s cubic-bezier(.16, 1, .3, 1) both;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gd-panel, .gd-fab, .gd-tease-bubble { background: var(--gd-bg-solid); } }
@keyframes gd-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@media (min-width: 720px) {
  .gd-panel { left: auto; right: calc(16px + var(--gd-safe-r)); bottom: calc(16px + var(--gd-safe-b)); width: 400px; height: min(78vh, 680px); }
}
.gd-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 12px; border-bottom: 1px solid var(--gd-line); }
.gd-switch { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 16px; background: var(--gd-surface); min-width: 0; }
.gd-switch button {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px 4px 5px; border: 0; border-radius: 13px;
  background: none; cursor: pointer; color: var(--gd-dim); text-align: left; min-width: 0;
}
.gd-switch .gd-av { width: 34px; height: 34px; font-size: 14px; }
.gd-switch span:not(.gd-av) { display: grid; min-width: 0; }
.gd-switch b { font-size: 15px; font-weight: 700; color: var(--gd-text); }
.gd-switch small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-switch button[aria-pressed="true"] { background: var(--gd-surface-2); box-shadow: inset 0 0 0 1px var(--gd-line); }
.gd-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--gd-surface); color: var(--gd-text); }
.gd-close:hover { background: var(--gd-surface-2); }

.gd-log { flex: 1; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.gd-msg { max-width: 88%; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.gd-me { align-self: flex-end; padding: 9px 14px; border-radius: 20px 20px 6px 20px; background: linear-gradient(180deg, #f6bd6e, var(--gd-sand)); color: var(--gd-sand-ink); font-weight: 500; }
.gd-bot { align-self: flex-start; }
.gd-who { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 4px; font-size: 12px; font-weight: 600; color: var(--gd-dim); }
.gd-who .gd-av { width: 22px; height: 22px; font-size: 10px; }
.gd-txt { padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--gd-surface-2); box-shadow: inset 0 0 0 1px var(--gd-line); color: var(--gd-text); }
.gd-ammu .gd-txt { background: color-mix(in srgb, var(--gd-ammu) 12%, rgba(246, 239, 227, .08)); }
.gd-txt b { font-weight: 650; color: #fffaf1; }
.gd-typing { padding: 12px 14px; border-radius: 20px; background: var(--gd-surface-2); display: flex; gap: 4px; align-self: flex-start; }
.gd-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gd-faint); animation: gd-dot 1.2s infinite ease-in-out; }
.gd-typing i:nth-child(2) { animation-delay: .15s; } .gd-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gd-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.gd-link, .gd-tel { color: var(--gd-sand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gd-tel { white-space: nowrap; }
.gd-act {
  display: inline-flex; align-items: center; min-height: 44px; margin: 8px 6px 0 0; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gd-sand); color: var(--gd-sand-ink); font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(242, 165, 65, .25);
}
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gd-chips button, .gd-chips-row button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gd-line); cursor: pointer;
  background: rgba(242, 165, 65, .12); color: var(--gd-sand); font-weight: 600; font-size: 13.5px; line-height: 1.2; text-align: left;
}
.gd-chips button:hover, .gd-chips-row button:hover { background: rgba(242, 165, 65, .2); }
.gd-chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 12px 8px; flex: none; }
.gd-chips-row::-webkit-scrollbar { display: none; }
.gd-chips-row button { flex: none; white-space: nowrap; }
.gd-form { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px 12px; border-top: 1px solid var(--gd-line); }
.gd-in {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gd-line); outline: 0;
  background: var(--gd-surface); color: var(--gd-text); font: 400 16px var(--gd-font);
}
.gd-in::placeholder { color: var(--gd-faint); }
.gd-in:focus-visible { box-shadow: 0 0 0 2px var(--gd-sand); }
.gd-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--gd-sand); color: var(--gd-sand-ink); }
.gd-send svg { width: 20px; height: 20px; stroke-width: 2.4; }

/* ---------- banter bubbles ---------- */
.gd-tease { position: fixed; z-index: 985; display: flex; max-width: min(300px, calc(100vw - 24px)); pointer-events: none; }
.gd-tease.is-in { pointer-events: auto; }
.gd-tease-card { position: relative; }
.gd-tease-bubble {
  position: relative; display: grid; gap: 3px; text-align: left; cursor: pointer; min-height: 44px;
  padding: 10px 36px 11px 14px; border-radius: 20px 20px 6px 20px; border: 1px solid var(--gd-line);
  background: var(--gd-bg); -webkit-backdrop-filter: var(--gd-blur); backdrop-filter: var(--gd-blur);
  box-shadow: var(--gd-shadow); color: var(--gd-text); font-size: 14px; line-height: 1.35; font-weight: 500;
  opacity: 0; transform: translateY(10px) scale(.94); transform-origin: 100% 100%;
  transition: opacity .25s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.gd-tease.is-in .gd-tease-bubble { opacity: 1; transform: none; }
.gd-tease-bubble::after {
  content: ""; position: absolute; right: var(--tail, 16px); bottom: -7px; width: 14px; height: 14px;
  background: inherit; border-right: 1px solid var(--gd-line); border-bottom: 1px solid var(--gd-line);
  transform: rotate(45deg); border-bottom-right-radius: 4px;
}
.gd-tease-who { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gd-sand); }
.gd-tease[data-who="ammu"] .gd-tease-who { color: var(--gd-ammu); }
.gd-tease.has-ask .gd-tease-text::after { content: " ›"; color: var(--gd-sand); font-weight: 700; }
.gd-tease-x {
  position: absolute; top: -9px; right: -9px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0; background: var(--gd-bg-solid); color: var(--gd-text); border: 1px solid var(--gd-line);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.gd-tease-x::before { content: ""; position: absolute; inset: -8px; } /* 44px tap area */
.gd-tease-x svg { width: 14px; height: 14px; stroke-width: 2.4; }
.gd-tease.is-in .gd-tease-x { opacity: 1; transform: none; }
.yd-guides.is-open .gd-tease { display: none; }
.gd-bounce { animation: gd-bounce .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gd-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.14) rotate(-4deg); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .gd-panel { animation: none; }
  .gd-fab, .gd-tease-bubble, .gd-tease-x { transition: opacity .2s; transform: none; }
  .gd-tease.is-in .gd-tease-bubble { transform: none; }
  .gd-bounce, .gd-typing i { animation: none; }
}
@media print { .yd-guides { display: none !important; } }
