/* Floating AI Converter – Styled Widget */
.aiw-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 24px);
  font: 14px/1.4 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text, #e5e7eb);
}

.aiw-card {
  background: linear-gradient(180deg, #111827, #1e293b);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 16px;
  box-shadow: 0 0 14px rgba(34,197,94,0.25);
  overflow: hidden;
  transition: all 0.3s ease;
}

.aiw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #22c55e, #14b8a6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.aiw-title { font-weight: 700; font-size: 14px; }

.aiw-btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.aiw-btn:hover { background: rgba(255, 255, 255, 0.25); }

.aiw-body { padding: 12px; background: #0f172a; }

.aiw-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #374151;
  background: #0b1220;
  color: #e5e7eb;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3);
}

.aiw-actions { display: flex; gap: 8px; margin-top: 8px; }

.aiw-run {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #22c55e, #14b8a6);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.aiw-run:hover {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.aiw-out { margin-top: 8px; font-size: 13px; color: var(--muted, #94a3b8); }
.aiw-collapsed .aiw-body { display: none; }

@media (max-width: 480px){
  .aiw-wrap{
    right: 6px;
    bottom: 6px;
    left: auto;
    width: 60%;
    max-width: 240px;
  }
}