/* AI ასისტენტი (Tony) — „მინის" სტილი, visionOS-ის მსგავსად (2026-11-21, მფლობელი: 10 ვარიანტიდან „1").
   ⚠️ ფანჯარა ღილაკის ადგილას იშლება (ქვედა-მარჯვენა კუთხიდან), ღილაკი ამ დროს ქრება; დახურვისას ისევ მხოლოდ ღილაკი ჩანს.
   ადრე ფანჯარა ღილაკის ზემოთ ჩნდებოდა (მფლობელს არ მოეწონა). კლასები: .ai-root.is-open / .is-closing (ai-chat.js).
   იტვირთება base.html-ის ბოლოს, ge-custom.css-ის AI-ის წესებს ფარავს. ფუნქციონალი უცვლელია. */

/* ── ღილაკი: გამჭვირვალე აბი Tony-ს სურათით ── */
.ai-fab {
  height: 54px; padding: 0 20px 0 6px !important; gap: 10px !important;
  background: rgba(30, 32, 36, .62) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1) !important;
  font-family: var(--t-head); font-size: 14px !important; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ai-fab:hover { background: rgba(40, 43, 48, .72) !important; transform: translateY(-2px); }
.ai-fab__ava { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(31, 209, 180, .55); }
.ai-fab__ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-fab__ico { display: none !important; }

/* ფანჯარა ღილაკის ადგილას: ღილაკი იმალება, ფანჯარა ქვედა-მარჯვენა კუთხიდან იზრდება */
.ai-root.is-open .ai-fab { visibility: hidden; opacity: 0; pointer-events: none; position: absolute; right: 0; bottom: 0; }
.ai-root.is-closing .ai-fab { animation: aiFabBack .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes aiFabBack { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.ai-panel {
  bottom: 0 !important; right: 0; transform-origin: 100% 100%;
  animation: aiGrow .32s cubic-bezier(.2, .9, .3, 1.05) !important;
}
@keyframes aiGrow {
  from { opacity: 0; transform: scale(.16, .1); border-radius: 999px; }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* ── ფანჯარა: ბუნდოვანი მინა ── */
.ai-panel {
  background: rgba(26, 28, 32, .62) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important; backdrop-filter: blur(28px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 28px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}
.ai-head { border-bottom: 1px solid rgba(255, 255, 255, .08) !important; padding: 14px 16px !important; }
.ai-head__id strong { font-family: var(--t-head); font-size: 15px; }
.ai-ava { width: 38px !important; height: 38px !important; }
.ai-msg--ai, .ai-msg--user {
  background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .08) !important;
  color: #e3e6ea !important;
}
.ai-msg--ai { border-radius: 4px 18px 18px 18px !important; }
.ai-msg--user { border-radius: 18px 4px 18px 18px !important; background: rgba(0, 129, 112, .38) !important; border-color: rgba(31, 209, 180, .25) !important; }
.ai-quick, .ai-quick--ico, .ai-quick--img { border-radius: 16px !important; }
.ai-quick--img { border-color: rgba(255, 255, 255, .12) !important; }
.ai-quick--img:hover { border-color: rgba(31, 209, 180, .75) !important; }
.ai-quick--img span { font-family: var(--t-head); }
.ai-card, .ai-card__img img { border-radius: 14px !important; }
.ai-card { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .08) !important; }
.ai-btn { border-radius: 999px; }

/* ველი — აბი, გაგზავნა თეთრ წრეში */
.ai-form {
  background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 999px !important; padding: 5px 5px 5px 18px !important;
}
.ai-form:focus-within { border-color: rgba(31, 209, 180, .6) !important; }
.ai-send { background: #fff !important; color: #0f0f0f !important; }
.ai-send:hover:not(:disabled) { background: #e7fffa !important; }

/* ტელეფონი: ფანჯარა მთელ ეკრანზე (როგორც ადრე), ოღონდ ფონი უფრო მკვრივი — ქვემოთ საიტი არ უნდა ერეოდეს */
@media (max-width: 600px) {
  .ai-panel { border-radius: 0 !important; border: 0 !important; background: rgba(18, 20, 23, .9) !important; transform-origin: 100% 100%; }
  .ai-fab { height: 46px; padding: 0 14px 0 4px !important; gap: 8px !important; font-size: 12.5px !important; }
  .ai-fab__ava { width: 38px; height: 38px; }
}
