/* ==========================================================================
   Ask Vinz — Futuristic AI Assistant Modal & WebGL Liquid Transition
   ========================================================================== */

/* Navigation Trigger Button */
.hero button,
.hero [type="button"],
.hero__ask-vinz,
.topbar button,
.topbar [type="button"],
.topbar__ask-vinz {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hero__ask-vinz,
.topbar__ask-vinz {
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0.42rem 0.95rem !important;
  margin-left: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(6, 182, 212, 0.22)) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero__ask-vinz:hover,
.topbar__ask-vinz:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(6, 182, 212, 0.4)) !important;
  border-color: rgba(6, 182, 212, 0.8) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45), 0 0 10px rgba(124, 58, 237, 0.35) !important;
  transform: translateY(-1px) scale(1.02) !important;
  color: #fff !important;
}

.hero__ask-vinz:active,
.topbar__ask-vinz:active {
  transform: translateY(0) scale(0.98) !important;
}

.ask-vinz-spark {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  animation: askVinzSparkle 2.6s infinite ease-in-out;
}

@keyframes askVinzSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; filter: drop-shadow(0 0 4px #a855f7); }
  50% { transform: scale(1.22) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 8px #06b6d4); }
}

.ask-vinz-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  position: relative;
}

.ask-vinz-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: askVinzPulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes askVinzPulseRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Floating trigger for mobile when header tabs are hidden */
.ask-vinz-floating-btn {
  position: fixed;
  bottom: clamp(20px, 4vh, 32px);
  right: clamp(16px, 4vw, 32px);
  z-index: 55;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(6, 182, 212, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 58, 237, 0.45);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ask-vinz-floating-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.6);
}

@media (max-width: 48rem) {
  .ask-vinz-floating-btn {
    display: inline-flex;
  }
}

/* Fullscreen WebGL Liquid Glitch Transition Canvas */
.ask-vinz-liquid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10001;
  pointer-events: none;
  display: none;
}

/* Modal Container */
.ask-vinz-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 20%, rgba(18, 12, 40, 0.96), #06050b 85%);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  color: #fff;
  font-family: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-vinz-modal[data-open="true"] {
  display: flex;
  opacity: 1;
}

/* Background Ambient Orbs & Grid */
.ask-vinz-bg-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ask-vinz-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  mix-blend-mode: screen;
  will-change: transform;
  animation: askVinzOrbFloat 14s infinite ease-in-out alternate;
}

.ask-vinz-glow-orb--1 {
  width: 50vw;
  height: 50vw;
  top: -15vw;
  left: -10vw;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

.ask-vinz-glow-orb--2 {
  width: 55vw;
  height: 55vw;
  bottom: -20vw;
  right: -10vw;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-duration: 18s;
  animation-delay: -5s;
}

.ask-vinz-glow-orb--3 {
  width: 35vw;
  height: 35vw;
  top: 40%;
  left: 60%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -8s;
  opacity: 0.15;
}

@keyframes askVinzOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, -2vh) scale(0.95); }
}

.ask-vinz-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
}

/* Modal Inner Layout */
.ask-vinz-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.5vh, 28px) clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  min-height: 0 !important;
  overflow: hidden;
}

/* Top Modal Bar */
.ask-vinz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(12px, 2vh, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ask-vinz-persona {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ask-vinz-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ask-vinz-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  display: block;
}

.ask-vinz-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.35);
}

.ask-vinz-online-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #080710;
  box-shadow: 0 0 6px #10b981;
}

.ask-vinz-title-block h2 {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ask-vinz-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
}

.ask-vinz-title-block p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}

.ask-vinz-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ask-vinz-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.ask-vinz-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ask-vinz-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.ask-vinz-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Chat Scrollable Area */
.ask-vinz-messages {
  flex: 1 1 0px !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  pointer-events: auto !important;
  padding: 1.25rem 0.5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.6) rgba(255, 255, 255, 0.05);
}

.ask-vinz-messages::-webkit-scrollbar {
  width: 7px;
}
.ask-vinz-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 4px 0;
}
.ask-vinz-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.75), rgba(6, 182, 212, 0.75));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ask-vinz-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Chat Bubble Items */
.ask-vinz-msg {
  display: flex;
  gap: 0.85rem;
  max-width: 86%;
  flex-shrink: 0 !important;
  animation: askVinzMsgIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes askVinzMsgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ask-vinz-msg--bot {
  align-self: flex-start;
}

.ask-vinz-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ask-vinz-msg-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 1.5px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ask-vinz-msg-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #181822;
  display: block;
}

.ask-vinz-msg-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ask-vinz-msg-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ask-vinz-bubble {
  padding: 0.95rem 1.25rem;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  position: relative;
  word-break: break-word;
}

.ask-vinz-msg--bot .ask-vinz-bubble {
  background: rgba(22, 18, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-top-left-radius: 4px;
  color: #f1f0f7;
}

.ask-vinz-msg--user .ask-vinz-bubble {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  border-top-right-radius: 4px;
  color: #fff;
}

.ask-vinz-bubble p {
  margin: 0 0 0.65rem;
}
.ask-vinz-bubble p:last-child {
  margin-bottom: 0;
}

.ask-vinz-bubble ul,
.ask-vinz-bubble ol {
  margin: 0.4rem 0 0.7rem;
  padding-left: 1.25rem;
}

.ask-vinz-bubble li {
  margin-bottom: 0.35rem;
}

.ask-vinz-bubble a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.ask-vinz-bubble a:hover {
  color: #7dd3fc;
}

.ask-vinz-bubble strong,
.ask-vinz-bubble b {
  color: #fff;
  font-weight: 600;
}

/* Typing Indicator */
.ask-vinz-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 1rem;
}

.ask-vinz-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  display: inline-block;
  animation: askVinzDotBounce 1.4s infinite ease-in-out both;
}

.ask-vinz-typing span:nth-child(1) { animation-delay: -0.32s; }
.ask-vinz-typing span:nth-child(2) { animation-delay: -0.16s; }
.ask-vinz-typing span:nth-child(3) { animation-delay: 0s; }

@keyframes askVinzDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; background: #06b6d4; }
}

/* Pre-Default Suggestion Chips Section */
.ask-vinz-chips-wrap {
  padding: 0.65rem 0 0.4rem;
  flex-shrink: 0;
}

.ask-vinz-chips-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ask-vinz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ask-vinz-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ask-vinz-chip:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.35));
  border-color: rgba(6, 182, 212, 0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2);
}

.ask-vinz-chip:active {
  transform: translateY(0);
}

.ask-vinz-chip--download {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(124, 58, 237, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.ask-vinz-chip--download:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(124, 58, 237, 0.45));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

/* Bottom Input Form */
.ask-vinz-input-bar {
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.ask-vinz-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(18, 14, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ask-vinz-form:focus-within {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.ask-vinz-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  padding: 0.5rem 0.5rem 0.5rem 0;
  caret-color: #06b6d4;
}

.ask-vinz-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.ask-vinz-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.ask-vinz-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7);
}

.ask-vinz-send-btn:active {
  transform: scale(0.95);
}

.ask-vinz-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ask-vinz-footer-note {
  font-size: 11px;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

/* Responsive adjustments */
@media (max-width: 48rem) {
  .ask-vinz-inner {
    padding: 12px 14px 16px;
  }
  .ask-vinz-msg {
    max-width: 94%;
  }
  .ask-vinz-bubble {
    font-size: 13.5px;
    padding: 0.8rem 1rem;
  }
  .ask-vinz-chips {
    gap: 0.35rem;
  }
  .ask-vinz-chip {
    font-size: 11.5px;
    padding: 0.35rem 0.65rem;
  }
  .ask-vinz-form {
    padding-left: 1rem;
  }
  .ask-vinz-input {
    font-size: 13.5px;
  }
}
