
#fvc-root {
  position: fixed;
  z-index: 9999;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  perspective: 2200px;
  font-family: var(--font-body, 'Manrope', sans-serif);
}

#fvc-root * { box-sizing: border-box; }

.fvc-launcher {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(145deg, #12121c, #0a0a12);
  box-shadow:
    0 14px 34px -10px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 24px -4px rgba(40, 199, 255, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
  animation: fvcFloat 4.2s ease-in-out infinite;
}

@keyframes fvcFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-2deg); }
}

.fvc-launcher:hover {
  transform: translateY(-4px) scale(1.08) rotate(4deg);
  box-shadow:
    0 20px 44px -10px rgba(139, 92, 246, 0.7),
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 0 34px -2px rgba(255, 94, 203, 0.55);
}

.fvc-launcher:active { transform: translateY(-1px) scale(0.96); }

.fvc-launcher__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #28c7ff, #8b5cf6, #ff5ecb, #28c7ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: fvcSpin 5s linear infinite;
  opacity: 0.9;
}

@keyframes fvcSpin { to { transform: rotate(360deg); } }

.fvc-launcher__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.55);
  animation: fvcPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes fvcPulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.fvc-launcher__icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.6));
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fvc-launcher__spark {
  animation: fvcTwinkle 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes fvcTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

.fvc-launcher__close {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fvc-launcher__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5ecb, #ff3b5c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px #0a0a12, 0 4px 10px -2px rgba(255, 59, 92, 0.7);
  animation: fvcBadgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both,
             fvcBadgeBounce 2.6s ease-in-out 2.2s infinite;
}
@keyframes fvcBadgeIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fvcBadgeBounce { 0%, 85%, 100% { transform: scale(1); } 90% { transform: scale(1.25); } }

#fvc-root.is-open .fvc-launcher {
  transform: rotate(0deg) scale(1);
  animation: none;
}
#fvc-root.is-open .fvc-launcher__icon { opacity: 0; transform: rotate(90deg) scale(0.4); }
#fvc-root.is-open .fvc-launcher__close { opacity: 1; transform: rotate(0deg) scale(1); }
#fvc-root.is-open .fvc-launcher__badge { display: none; }

.fvc-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(392px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 140px));
  transform-origin: bottom right;
  transform-style: preserve-3d;
  transform: perspective(1800px) rotateX(-18deg) rotateY(14deg) translateY(24px) scale(0.82);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.42s ease,
              visibility 0s linear 0.6s;
}

#fvc-root.is-open .fvc-panel {
  transform: perspective(1800px) rotateX(0deg) rotateY(0deg) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s ease,
              visibility 0s linear 0s;
}

.fvc-panel__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(40, 199, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(16, 16, 26, 0.96), rgba(9, 9, 15, 0.98));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -20px rgba(139, 92, 246, 0.45);
}

.fvc-panel__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(40,199,255,0.55), rgba(139,92,246,0.4), rgba(255,94,203,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.fvc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.fvc-head__id { display: flex; align-items: center; gap: 12px; min-width: 0; }

.fvc-head__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #14141f, #0b0b12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 6px 16px -4px rgba(139,92,246,0.6);
  flex-shrink: 0;
}
.fvc-head__avatar svg { width: 24px; height: 24px; }
.fvc-head__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 0 2px #0d0d15, 0 0 8px 1px rgba(57,255,136,0.8);
}

.fvc-head__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fvc-head__text strong {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #fff 20%, #b06bff 55%, #fff 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fvcSheen 5s ease-in-out infinite;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes fvcSheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.fvc-head__text span { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

.fvc-head__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.fvc-head__close:hover { background: rgba(255,59,92,0.16); color: #ff8aa3; transform: rotate(90deg); }
.fvc-head__close svg { width: 15px; height: 15px; }

.fvc-premium {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 16px 0;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  flex: 0 0 auto;
  color: #fff7e0;
  background:
    linear-gradient(90deg, rgba(10,10,16,0.9), rgba(10,10,16,0.9)) padding-box,
    conic-gradient(from var(--fvc-spin, 0deg), #ffcc33, #ff5ecb, #8b5cf6, #28c7ff, #ffcc33) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,204,51,0.15), 0 6px 18px -6px rgba(255, 94, 203, 0.55);
  animation: fvcBorderSpin 5s linear infinite;
  overflow: hidden;
}
.fvc-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 38%, transparent 56%);
  background-size: 220% 100%;
  animation: fvcShimmerSweep 2.6s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.fvc-premium__icon {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255,204,51,0.85));
  animation: fvcCrownPulse 2.2s ease-in-out infinite;
}
.fvc-premium__icon svg { width: 14px; height: 14px; }
.fvc-premium__text {
  background: linear-gradient(90deg, #ffe9b0, #fff, #ffcc33, #fff, #ffe9b0);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fvcTextShimmer 3.2s linear infinite;
  white-space: nowrap;
}

@property --fvc-spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes fvcBorderSpin { to { --fvc-spin: 360deg; } }
@keyframes fvcShimmerSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}
@keyframes fvcCrownPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(-6deg); }
}
@keyframes fvcTextShimmer {
  to { background-position: -260% auto; }
}

.fvc-gate {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fvcFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fvcFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fvc-gate__title {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 4px 0 0;
}
.fvc-gate__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
}

.fvc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fvc-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.fvc-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fvc-field__wrap svg.fvc-field__icon {
  position: absolute;
  left: 13px;
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.35);
  transition: color 0.25s ease;
  pointer-events: none;
}
.fvc-field input {
  width: 100%;
  padding: 12px 40px 12px 38px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.fvc-field input::placeholder { color: rgba(255,255,255,0.32); }
.fvc-field input:focus {
  border-color: #8b5cf6;
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.14);
}
.fvc-field input:focus ~ svg.fvc-field__icon,
.fvc-field__wrap:has(input:focus) svg.fvc-field__icon { color: #8b5cf6; }

.fvc-field__status {
  position: absolute;
  right: 12px;
  width: 18px; height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}
.fvc-field__status svg { width: 100%; height: 100%; display: none; }

.fvc-field.is-valid input { border-color: #39ff88; background: rgba(57,255,136,0.06); }
.fvc-field.is-valid .fvc-field__status { display: flex; color: #39ff88; animation: fvcPop 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.fvc-field.is-valid .fvc-field__status .fvc-icon-ok { display: block; }

.fvc-field.is-invalid input {
  border-color: #ff4d6d;
  background: rgba(255,77,109,0.07);
  animation: fvcShake 0.45s cubic-bezier(0.36,0.07,0.19,0.97);
}
.fvc-field.is-invalid .fvc-field__status { display: flex; color: #ff4d6d; animation: fvcPop 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.fvc-field.is-invalid .fvc-field__status .fvc-icon-bad { display: block; }

@keyframes fvcPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fvcShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.fvc-field__error {
  font-size: 0.72rem;
  color: #ff8aa3;
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fvc-field.is-invalid .fvc-field__error { opacity: 1; transform: translateY(0); }
.fvc-field__error svg { width: 12px; height: 12px; flex-shrink: 0; }

.fvc-select {
  position: relative;
}

.fvc-select__native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.fvc-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.fvc-select__btn .fvc-field__icon {
  position: absolute;
  left: 13px;
  width: 16px; height: 16px;
  color: rgba(255, 255, 255, 0.35);
}
.fvc-select__label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fvc-select__chevron { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); color: rgba(255,255,255,0.4); }

.fvc-select__btn:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.06);
}
.fvc-select__btn:focus-visible,
.fvc-select.is-open .fvc-select__btn {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}
.fvc-select.is-open .fvc-select__chevron { transform: rotate(180deg); color: #8b5cf6; }
.fvc-select.has-value .fvc-select__btn { color: #fff; }
.fvc-select.has-value .fvc-select__btn .fvc-field__icon { color: #8b5cf6; }

.fvc-select__menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(20, 20, 32, 0.98), rgba(11, 11, 18, 0.99));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transform-origin: top center;
  transform: perspective(800px) rotateX(-12deg) translateY(-6px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
}

.fvc-select.is-open .fvc-select__menu {
  transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.fvc-select__menu::-webkit-scrollbar { width: 5px; }
.fvc-select__menu::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 999px; }

.fvc-select__menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.fvc-select__menu li:hover,
.fvc-select__menu li.is-active {
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
  transform: translateX(2px);
}
.fvc-select__menu li.is-selected {
  background: linear-gradient(90deg, rgba(40,199,255,0.16), rgba(139,92,246,0.16), rgba(255,94,203,0.14));
  color: #fff;
  font-weight: 700;
}

.fvc-opt__badge {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #15151f;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07) inset;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
}
.fvc-select__menu li:hover .fvc-opt__badge,
.fvc-select__menu li.is-active .fvc-opt__badge,
.fvc-select__menu li.is-selected .fvc-opt__badge {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 16px -3px var(--opt-accent, rgba(139,92,246,0.6)), 0 0 0 1.5px var(--opt-accent, #8b5cf6) inset;
}
.fvc-opt__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.fvc-opt__icon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--opt-accent, #fff);
  background: linear-gradient(180deg, rgba(8,8,14,0) 0%, rgba(8,8,14,0.78) 45%, rgba(8,8,14,0.95) 100%);
}
.fvc-opt__icon svg { width: 12px; height: 12px; filter: drop-shadow(0 0 3px rgba(0,0,0,0.6)); }
.fvc-opt__label { line-height: 1.2; }
.fvc-select__menu li.is-selected::after {
  content: "";
  margin-left: auto;
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #39ff88, #28c7ff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.fvc-field.is-invalid .fvc-select__btn {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.07);
  animation: fvcShake 0.45s cubic-bezier(0.36,0.07,0.19,0.97);
}
.fvc-field.is-valid .fvc-select__btn {
  border-color: #39ff88;
  background: rgba(57, 255, 136, 0.06);
}

.fvc-gate__submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(120deg, #28c7ff, #8b5cf6 55%, #ff5ecb);
  background-size: 180% 180%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.65);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease, background-position 0.6s ease;
}
.fvc-gate__submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(139,92,246,0.8); background-position: 100% 50%; }
.fvc-gate__submit:active { transform: translateY(0) scale(0.98); }
.fvc-gate__submit svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.fvc-gate__submit:hover svg { transform: translateX(3px); }

.fvc-gate__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  justify-content: center;
  margin-top: 2px;
}
.fvc-gate__note svg { width: 12px; height: 12px; flex-shrink: 0; }

.fvc-chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: fvcFadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.fvc-gate[hidden],
.fvc-chat[hidden] {
  display: none !important;
}

.fvc-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.fvc-messages::-webkit-scrollbar { width: 6px; }
.fvc-messages::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 999px; }

.fvc-msg {
  max-width: 84%;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: fvcMsgIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes fvcMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fvc-msg--bot { align-self: flex-start; }
.fvc-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.fvc-msg__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #14141f, #0b0b12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.fvc-msg__avatar svg { width: 14px; height: 14px; }

.fvc-msg__bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  word-break: break-word;
}
.fvc-msg--bot .fvc-msg__bubble {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 5px;
  color: rgba(255,255,255,0.9);
}
.fvc-msg--user .fvc-msg__bubble {
  background: linear-gradient(120deg, #28c7ff, #8b5cf6 60%, #ff5ecb);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 20px -8px rgba(139,92,246,0.7);
}

.fvc-msg__time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.32);
  margin-top: 3px;
}

.fvc-typing { align-self: flex-start; display: flex; gap: 8px; align-items: flex-end; }
.fvc-typing__bubble {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}
.fvc-typing__bubble span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: fvcBounce 1.1s ease-in-out infinite;
}
.fvc-typing__bubble span:nth-child(2) { animation-delay: 0.15s; }
.fvc-typing__bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fvcBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.fvc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 12px;
  flex: 0 0 auto;
}
.fvc-quick button {
  border: 1px solid rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.1);
  color: #cbb8ff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.fvc-quick button:hover { background: rgba(139,92,246,0.26); color: #fff; transform: translateY(-2px); }

.fvc-inputbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
  background: rgba(255,255,255,0.02);
}
.fvc-inputbar textarea {
  flex: 1 1 auto;
  resize: none;
  max-height: 90px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.fvc-inputbar textarea::placeholder { color: rgba(255,255,255,0.35); }
.fvc-inputbar textarea:focus { border-color: #8b5cf6; background: rgba(139,92,246,0.08); }
.fvc-inputbar.is-invalid textarea { border-color: #ff4d6d; animation: fvcShake 0.4s; }

.fvc-count {
  position: absolute;
  right: 62px;
  bottom: 20px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.fvc-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #28c7ff, #8b5cf6, #ff5ecb);
  box-shadow: 0 10px 22px -8px rgba(139,92,246,0.75);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease, box-shadow 0.25s ease;
}
.fvc-send svg { width: 16px; height: 16px; color: #fff; transform: translateX(-1px); }
.fvc-send:hover:not(:disabled) { transform: scale(1.1) rotate(8deg); box-shadow: 0 14px 28px -6px rgba(139,92,246,0.9); }
.fvc-send:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

@media (max-width: 480px) {
  #fvc-root { right: 14px; bottom: 14px; }
  .fvc-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
    bottom: 82px;
    right: -6px;
  }
  .fvc-launcher { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .fvc-launcher, .fvc-launcher__ring, .fvc-launcher__pulse, .fvc-launcher__spark,
  .fvc-panel, .fvc-msg, .fvc-gate, .fvc-chat, .fvc-head__text strong {
    animation: none !important;
  }
  .fvc-panel { transition: opacity 0.25s ease !important; transform: none !important; }
  #fvc-root.is-open .fvc-panel { transform: none !important; }
}
